From e0a68e0426c7d883f720831ebfeb843c70df697c Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 03 四月 2023 09:05:13 +0800 Subject: [PATCH] 1 --- src/views/datamanage/styleManage.vue | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/views/datamanage/styleManage.vue b/src/views/datamanage/styleManage.vue index dd64620..bb70694 100644 --- a/src/views/datamanage/styleManage.vue +++ b/src/views/datamanage/styleManage.vue @@ -437,16 +437,16 @@ :label-width="formLabelWidth" > <el-select - v-model="upform.status" + v-model="status" style="width:85%" :placeholder="$t('common.choose')" > <el-option - value="0" + value='0' :label="$t('dataManage.styleObj.deactivate')" ></el-option> <el-option - value="1" + value='1' :label="$t('dataManage.styleObj.enable')" ></el-option> </el-select> @@ -1002,7 +1002,7 @@ dialogFormVisible: false, InsertFormdialog: false, showCata: false, - upform: {}, + upform: { status: '0' }, formLabelWidth: "130px", showinfoBox: false, itemdetail: {}, @@ -1060,6 +1060,7 @@ styleVar: { height: "calc(100% - 109px)", }, + status: 0, }; }, created() { @@ -1403,6 +1404,7 @@ if (date === undefined || date === null) { return; } + switch (date) { case 1: return "鍚敤"; @@ -1544,6 +1546,8 @@ this.upform.vname = this.upform.viewGuid; this.upform.viewGuid = this.viewFile; } + this.upform.status = this.status + const data = await updateStyle(this.upform); if (data.code == 200) { this.dialogFormVisible = false; @@ -1657,6 +1661,7 @@ // }, handleEdit(index, row) { + this.upflag = true; this.dialogFormVisible = true; this.upform = row; @@ -1664,7 +1669,10 @@ this.upform.dirValue = row.dirName; this.upform.fileGuid = row.fname; this.upform.viewGuid = row.vname; - this.upform.status = this.forMontStatus(row.status); + // this.upform.status = this.forMontStatus(row.status); + + // this.upform.status = row.status; + this.status = this.forMontStatus(row.status); }, handleDelete(index, row) { this.$confirm("纭畾鏄惁鍒犻櫎?", "鎻愮ず", { -- Gitblit v1.9.3