From 4f8513a18fd7cc6f0568cd2d9f94135ef861adc1 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 02 六月 2024 19:18:04 +0800
Subject: [PATCH] update
---
src/views/console/system/meta-object-type/index.vue | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 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..f8b2261 100644
--- a/src/views/console/system/meta-object-type/index.vue
+++ b/src/views/console/system/meta-object-type/index.vue
@@ -199,7 +199,6 @@
this.isAdd = true;
var obj = Object.assign({},this.searchDataList[index],{isEdit: true});
this.searchDataList.splice(index,1,obj);
- console.log(obj,this.searchDataList[index])
},
deleteTable(index) {
this.searchDataList.splice(index,1);
@@ -221,12 +220,19 @@
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;
this.searchDataList.unshift(this.tableForm);
@@ -279,7 +285,6 @@
gettableName() {
this.$HTTP.get(`/api/blade-system/meta-object-type/detail?fId=${this.dictKey}`).then(res=> { //鐗╃悊琛ㄦ暟鎹�
if(res.code == 200) {
- console.log(this.tableNameList,res.data.tableName,'gi')
this.tableNameList.forEach(item=> {
if(res.data.tableName == item.tableName) {
this.refCodeList = item.tableColumns;
@@ -291,7 +296,6 @@
this.metaForm.code = res.data.code;
this.detailobj = res.data;
this.detailobj.objectId = res.data.fid;
- console.log(this.detailobj,888)
}
})
},
@@ -323,8 +327,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)) {
--
Gitblit v1.9.3