From cbbbc6bd2d854270b9342ce2ff2a3432aaca22cf Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期六, 18 二月 2023 15:19:31 +0800 Subject: [PATCH] 版本更新 --- src/views/datamanage/metadataManage.vue | 41 +++++++++++++++++++++++++++-------------- 1 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/views/datamanage/metadataManage.vue b/src/views/datamanage/metadataManage.vue index dcb5d3e..dbaffa4 100644 --- a/src/views/datamanage/metadataManage.vue +++ b/src/views/datamanage/metadataManage.vue @@ -17,7 +17,7 @@ v-model="queryForm.depName" > <el-option - :value="queryForm.depid" + :value="queryForm.depcode" :label="queryForm.depName" style=" height:auto" > @@ -50,7 +50,7 @@ v-model="queryForm.dirName" > <el-option - :value="queryForm.dirid" + :value="queryForm.dircode" :label="queryForm.dirName" style=" height:auto" > @@ -158,7 +158,10 @@ size="small" >{{ $t('common.iquery') }}</el-button> </el-form-item> - <el-form-item v-if="btnStatus.delete" style="float:right"> + <el-form-item + v-if="btnStatus.delete" + style="float:right" + > <el-button type="danger" size="small" @@ -166,7 +169,10 @@ icon="el-icon-delete" >{{ $t('common.delete') }}</el-button> </el-form-item> - <el-form-item v-if="btnStatus.download" style="float:right"> + <el-form-item + v-if="btnStatus.download" + style="float:right" + > <el-button @click="downFormData" icon="el-icon-download" @@ -283,10 +289,10 @@ </div> </div> <div - class="infoBox" + class="infoBox box_div" v-show="showinfoBox" > - <el-card class="box-card"> + <div slot="header" class="clearfix" @@ -299,6 +305,7 @@ <i class="el-icon-close"></i> </div> </div> + <el-divider></el-divider> <div class="contentBox" style="padding:1%" @@ -351,7 +358,7 @@ }} </p> </div> - </el-card> + </div> <el-dialog width="80vh" @@ -816,7 +823,7 @@ return; } this.companyOption1 = this.treeData(res.result); - this.queryForm.depid = this.companyOption1[0].id + this.queryForm.depcode = this.companyOption1[0].code this.queryForm.depName = this.companyOption1[0].name this.getQueryDirTree(); @@ -829,7 +836,8 @@ return; } this.companyOption = this.treeData(res.result); - this.queryForm.dirid = this.companyOption[0].id + this.queryForm.dirid = this.companyOption[0].id; + this.queryForm.dircode = this.companyOption[0].code this.queryForm.dirName = this.companyOption[0].name this.getQueryVerList(); }, @@ -853,6 +861,7 @@ handleChange(data, node, nodeData) { this.listData.pageSize = 10; this.listData.pageIndex = 1; + this.queryForm.dircode = data.code; this.queryForm.dirid = data.id; this.queryForm.dirName = data.name this.getQueryVerList() @@ -860,19 +869,21 @@ handleChange1(data, node, nodeData) { this.listData.pageSize = 10; this.listData.pageIndex = 1; - this.queryForm.depid = data.id; + this.queryForm.depcode = data.code; this.queryForm.depName = data.name this.getMetaData(); }, handleChange2(data, node, nodeData) { this.editForm.depid = data.id; + this.editForm.depcode = data.code; this.editForm.depName = data.name }, handleChange3(data, node, nodeData) { this.editForm.dirid = data.id; + this.editForm.dircode = data.code; this.editForm.dirName = data.name }, @@ -942,7 +953,7 @@ } this.optionCount = this.treeData(res.result); this.dirComPanyOption = this.treeData(res.result); - this.listData.dirid = this.optionCount[0].id; + this.listData.depcode = this.optionCount[0].code; }, handleNodeClick(data) { @@ -996,8 +1007,8 @@ // }, // 璇锋眰鏁版嵁鍐呭 getMetaData() { - this.listData.depid = this.queryForm.depid; - this.listData.dirid = this.queryForm.dirid; + this.listData.depcode = this.queryForm.depcode; + this.listData.dircode = this.queryForm.dircode; this.listData.verid = this.queryForm.verid; // this.listData.dirid = 57 @@ -1023,6 +1034,8 @@ this.listData.name = null; this.queryForm.dirid = this.companyOption[0].id; this.queryForm.depid = this.companyOption1[0].id; + this.queryForm.dircode = this.companyOption[0].code; + this.queryForm.depcode = this.companyOption1[0].code; this.queryForm.dirName = this.companyOption[0].name; this.queryForm.depName = this.companyOption1[0].name; this.getQueryVerList(); @@ -1041,7 +1054,7 @@ sendAdd(formName) { this.$refs[formName].validate((valid) => { if (valid) { - console.log(this.editForm); + this.fullscreenLoading = true; insertMeta(this.editForm) .then((res) => { -- Gitblit v1.9.3