From d5efa1b1cdbab10b034357ae3e7b65c21754a123 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期六, 11 二月 2023 11:47:01 +0800
Subject: [PATCH] 样式管理界面修改,数据上传添加附件

---
 src/views/userManage/templateManage.vue |   43 +++++++++++++++++++++++++++++++++++++------
 1 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/src/views/userManage/templateManage.vue b/src/views/userManage/templateManage.vue
index 39a1a06..b46d4fb 100644
--- a/src/views/userManage/templateManage.vue
+++ b/src/views/userManage/templateManage.vue
@@ -196,10 +196,24 @@
             </el-select>
           </el-form-item>
           <el-form-item :label="$t('common.domCode')">
-            <el-input
+            <!-- <el-input
               style="width:100%"
               v-model=" editForm.code"
-            ></el-input>
+            ></el-input> -->
+            <el-select
+              :popper-append-to-body="false"
+              style="width:100%"
+              v-model="editForm.code"
+              placeholder="璇烽�夋嫨"
+            >
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
+              >
+              </el-option>
+            </el-select>
           </el-form-item>
           <el-form-item :label="$t('common.filePath')">
             <div class="BoxFlex">
@@ -369,6 +383,16 @@
   components: { MyBread, },
   data() {
     return {
+      options: [{
+        value: 'countSizes',
+        label: '鏁版嵁閲忕粺璁�'
+      }, {
+        value: 'countServices',
+        label: '鏈嶅姟璋冪敤閲忕粺璁�'
+      }, {
+        value: 'countOperates ',
+        label: '鐢ㄦ埛娴侀噺缁熻'
+      }],
       itemdetail: {},
       showinfoBox: false,
       behavior: '鏂板',
@@ -437,6 +461,13 @@
       } else if (parseInt(row.type) == 2) {
         this.itemdetail.fileType = "Excel妯℃澘"
       }
+      if (row.code == 'countSizes') {
+        this.itemdetail.code = "鏁版嵁閲忕粺璁�"
+      } else if (row.code == 'countServices') {
+        this.itemdetail.code = "鏈嶅姟璋冪敤閲忕粺璁�"
+      }else if (row.code == 'countOperates') {
+        this.itemdetail.code = "鐢ㄦ埛娴侀噺缁熻"
+      }
 
       this.itemdetail.uTime = this.format(row.updateTime);
       this.showinfoBox = true
@@ -466,9 +497,9 @@
     //鏂囦欢绫诲瀷鍒囨崲
     selFileTypeChange(val) {
       if (parseInt(val) == 1) {
-        this.selectFileType = ".doc,.docx"
+        this.selectFileType = ".docx"
       } else if (parseInt(val) == 2) {
-        this.selectFileType = ".xls,.xlsx"
+        this.selectFileType = ".xlsx"
       }
     },
     //淇敼
@@ -476,9 +507,9 @@
       this.behavior = "淇敼"
       this.editForm = row;
       if (parseInt(row.type) == 1) {
-        this.selectFileType = ".doc,.docx"
+        this.selectFileType = ".docx"
       } else if (parseInt(row.type) == 2) {
-        this.selectFileType = ".xls,.xlsx"
+        this.selectFileType = ".xlsx"
       }
       this.dialogVisible = true;
     },

--
Gitblit v1.9.3