From b0a47d6a7303b8510aca6593f4c59720eab9206e Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期一, 13 二月 2023 09:50:36 +0800 Subject: [PATCH] 1 --- src/views/userManage/templateManage.vue | 23 ++++++++++++++++++++--- src/views/datamanage/styleManage.vue | 12 ++++++++---- src/views/datamanage/SpatialData.vue | 4 ++-- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/src/views/datamanage/SpatialData.vue b/src/views/datamanage/SpatialData.vue index 60ce304..aa0a375 100644 --- a/src/views/datamanage/SpatialData.vue +++ b/src/views/datamanage/SpatialData.vue @@ -409,8 +409,8 @@ children: [], }, { id: 3, - tabDesc: '鍏冩暟鎹�', - label: '鍏冩暟鎹�', + tabDesc: '婧愭暟鎹鐞�', + label: '婧愭暟鎹鐞�', value: 'MD', ns: 'md', children: [], diff --git a/src/views/datamanage/styleManage.vue b/src/views/datamanage/styleManage.vue index 786a6f0..dc1f238 100644 --- a/src/views/datamanage/styleManage.vue +++ b/src/views/datamanage/styleManage.vue @@ -1029,7 +1029,7 @@ let val = document.getElementById("insertimageFile").files; this.insertViewGuid = val[0].name; - this.insertViewName = val[0].name; + this.insertViewName = val[0].name; } }, async setinsertFile(res) { @@ -1245,9 +1245,9 @@ } if (this.viewFile != null) { this.insertform.viewGuid = this.viewFile; - this.insertform.vname = this.insertViewName; + this.insertform.vname = this.insertViewName; } - + const data = await insertStyle(this.insertform); if (data.code == 200) { this.InsertFormdialog = false; @@ -1435,9 +1435,11 @@ this.upform.status = this.statusFormat(this.upform.status); } if (this.guidFile != null) { + this.upform.fname = this.upform.fileGuid; this.upform.fileGuid = this.guidFile; } if (this.viewFile != null) { + this.upform.vname = this.upform.viewGuid; this.upform.viewGuid = this.viewFile; } const data = await updateStyle(this.upform); @@ -1482,7 +1484,7 @@ showDetail(index, row) { var token = getToken(); this.showinfoBox = true; - + this.itemdetail = row; this.itemdetail.createTime = this.formomentTime( this.itemdetail.createTime @@ -1505,6 +1507,8 @@ this.upform = row; this.upform.depValue = row.depName; this.upform.dirValue = row.dirName; + this.upform.fileGuid = row.fname; + this.upform.viewGuid = row.vname; this.upform.status = this.forMontStatus(row.status); }, handleDelete(index, row) { diff --git a/src/views/userManage/templateManage.vue b/src/views/userManage/templateManage.vue index b46d4fb..1cbc6a1 100644 --- a/src/views/userManage/templateManage.vue +++ b/src/views/userManage/templateManage.vue @@ -89,6 +89,7 @@ align="center" prop="code" :label="$t('common.domCode')" + :formatter="codeData" /> <el-table-column align="center" @@ -452,8 +453,24 @@ }) .catch((_) => { }); }, + codeData(row, column) { + let data = row[column.property]; + if (data == null) { + return data; + } + var val; + if (row.code.indexOf('countSizes') != -1) { + val = "鏁版嵁閲忕粺璁�" + } else if (row.code.indexOf('countServices') != -1) { + val = "鏈嶅姟璋冪敤閲忕粺璁�" + } else if (row.code.indexOf('countOperates') != -1) { + val = "鐢ㄦ埛娴侀噺缁熻" + } + return val; + }, //鏌ョ湅 showDetail(index, row) { + this.itemdetail = row; if (parseInt(row.type) == 1) { @@ -461,11 +478,11 @@ } else if (parseInt(row.type) == 2) { this.itemdetail.fileType = "Excel妯℃澘" } - if (row.code == 'countSizes') { + if (row.code.indexOf('countSizes') != -1) { this.itemdetail.code = "鏁版嵁閲忕粺璁�" - } else if (row.code == 'countServices') { + } else if (row.code.indexOf('countServices') != -1) { this.itemdetail.code = "鏈嶅姟璋冪敤閲忕粺璁�" - }else if (row.code == 'countOperates') { + } else if (row.code.indexOf('countOperates') != -1) { this.itemdetail.code = "鐢ㄦ埛娴侀噺缁熻" } -- Gitblit v1.9.3