1
lzhe
2024-05-19 f751cc0d0aca7a8316ac71325f16a7355f7a2c69
1
已修改2个文件
22 ■■■■ 文件已修改
src/views/console/system/meta-object-type/index.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/station-live.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)) {
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();  //机器履历