1
lzhe
2024-05-19 f751cc0d0aca7a8316ac71325f16a7355f7a2c69
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物理数据,metaForm基础数据
            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)) {