From f751cc0d0aca7a8316ac71325f16a7355f7a2c69 Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期日, 19 五月 2024 22:53:39 +0800
Subject: [PATCH] 1
---
src/views/console/system/meta-object-type/index.vue | 20 +++++++++++++++++---
src/views/mdc/station-live.vue | 2 +-
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/views/console/system/meta-object-type/index.vue b/src/views/console/system/meta-object-type/index.vue
index bc33e05..75482e0 100644
--- a/src/views/console/system/meta-object-type/index.vue
+++ b/src/views/console/system/meta-object-type/index.vue
@@ -221,14 +221,22 @@
this.tableForm.refObjectTypeId = "";
},
saveBtn() {
- var obj = Object.assign(this.detailobj,this.metaForm);
- console.log(this.searchDataList,'okla');
+ var obj = Object.assign(this.detailobj,this.metaForm); //detailobj鐗╃悊鏁版嵁锛宮etaForm鍩虹鏁版嵁
+ obj.fields = this.searchDataList;
+ this.$HTTP.post("/api/blade-system/meta-object-type/submit",obj).then(res=> {
+ if(res.code == 200) {
+ this.$message.success("淇濆瓨鎴愬姛");
+ }
+ })
},
comfirmTable() {
this.cancelTable();
+ this.tableForm.refObjectTypeIdZn = this.tableForm.dictKey;
this.tableForm.elementTypeName = this.elementTypeValue;
+ this.tableForm.enumType = this.tableForm.enumTypeZn;
this.tableForm.id = null;
this.tableForm.objectId = this.detailobj.objectId;
+ console.log(this.tableForm,123)
this.searchDataList.unshift(this.tableForm);
},
cancelTable() {
@@ -323,8 +331,14 @@
};
},
handleNodeClick1(data) {
- if(this.firstChild.includes(data.id)) return; //涓�绾ц彍鍗曡繑鍥�
+ if(this.firstChild.includes(data.id)) { //涓�绾ц彍鍗曡繑鍥�
+ this.$nextTick(()=> {
+ this.tableForm.refObjectTypeId = "";
+ })
+ return;
+ };
this.tableForm.refObjectTypeIdZn = data.dictValue;
+ this.tableForm.dictKey = data.dictKey;
},
handleNodeClick(data) {
if(!this.firstChild.includes(data.id)) {
diff --git a/src/views/mdc/station-live.vue b/src/views/mdc/station-live.vue
index fd2b8c0..65a95a1 100644
--- a/src/views/mdc/station-live.vue
+++ b/src/views/mdc/station-live.vue
@@ -634,7 +634,7 @@
if(res.code == 200) {
this.stationForm = res.data;
this.getdmp(this.lastLevelId,this.stationForm.machineId);
- this.newDate(); //鑾峰彇褰撳墠鏃ユ湡
+ //this.newDate(); //鑾峰彇褰撳墠鏃ユ湡
this.getwcsR();
this.getwscLvalue(); //宸︿晶鍥捐〃
this.alarmsearchBtn(); //鏈哄櫒灞ュ巻
--
Gitblit v1.9.3