From ecec72d382a83718d3b1d8e60a473829c8d90d40 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 15 八月 2023 21:38:03 +0800
Subject: [PATCH] 完善荣誉证书模块的类别和名称的选择输入功能;家根网可以按照身份、姓名搜索;成长经历阅历的各个小模块的时间在修改时变成可选形式

---
 ruoyi-ui/src/views/honor/honorInfo.vue |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/ruoyi-ui/src/views/honor/honorInfo.vue b/ruoyi-ui/src/views/honor/honorInfo.vue
index 2e1edb2..966daba 100644
--- a/ruoyi-ui/src/views/honor/honorInfo.vue
+++ b/ruoyi-ui/src/views/honor/honorInfo.vue
@@ -25,18 +25,10 @@
 <!--                </el-cow>-->
                 <el-cow :span="8">
                   <el-form-item label="绫诲埆" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;" :disabled="dsb">
-                    <template v-if="!isEditing" >
-                      <el-input v-if="formData.type===0" placeholder="璇佷欢"></el-input>
-                      <el-input v-if="formData.type===1" placeholder="鑽h獕"></el-input>
-                      <el-input v-if="formData.type===2" placeholder="璧勮川"></el-input>
-                    </template>
-                    <template v-else>
-                    <el-select v-model="types" placeholder="璇烽�夋嫨绫诲埆" clearable :style="{width: '100%'}" >
-                      <el-option label="璇佷欢" value='0'></el-option>
-                      <el-option label="鑽h獕" value='1'></el-option>
-                      <el-option label="璧勮川" value='2'></el-option>
+                    <el-select v-model="formData.type" placeholder="璇烽�夋嫨绫诲埆" clearable :style="{width: '100%'}"   :disabled="dsb">
+                      <el-option v-for="(item, index) in typeOption" :key="index" :label="item.label" :value="item.value"
+                      ></el-option>
                     </el-select>
-                    </template>
                   </el-form-item>
                 </el-cow>
                 <el-cow :span="8">
@@ -299,9 +291,9 @@
       newOption: undefined,
       showInput: false,
       typeOption:[
-        {value:'0',label:'璇佷欢'},
-        {value:'1',label:'鑽h獕'},
-        {value:'2',label:'璧勮川'},],
+        {value:'璇佷欢',label:'璇佷欢'},
+        {value:'鑽h獕',label:'鑽h獕'},
+        {value:'璧勮川',label:'璧勮川'},],
       types:undefined
     }
   },

--
Gitblit v1.9.1