From 2fb64f04583573abe4aa61d80fb9b27b0c5b2434 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 15 八月 2023 23:26:56 +0800
Subject: [PATCH] 新增首页

---
 ruoyi-ui/src/views/honor/index.vue |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/ruoyi-ui/src/views/honor/index.vue b/ruoyi-ui/src/views/honor/index.vue
index 96ba9d9..ee60237 100644
--- a/ruoyi-ui/src/views/honor/index.vue
+++ b/ruoyi-ui/src/views/honor/index.vue
@@ -18,7 +18,6 @@
 
       </el-form-item>
       <el-form-item label="鍚嶇О" prop="name">
-
         <el-select v-model="queryParams.name" placeholder="鎵�鏈夊悕绉�" clearable
                    style="width: 240px" @keyup.enter.native="handleQuery">
           <el-option v-for="item in typeOptions"
@@ -26,14 +25,6 @@
         </el-select>
       </el-form-item>
       <el-form-item label="绫诲埆" prop="type" >
-<!--        <el-input-->
-<!--          v-model="queryParams.type"-->
-<!--          placeholder="璇疯緭鍏ョ被鍒�"-->
-<!--          clearable-->
-<!--          style="width: 240px"-->
-<!--          @keyup.enter.native="handleQuery">-->
-<!--          <i slot="prefix" class="el-input__icon el-icon-search"></i>-->
-<!--        </el-input>-->
         <el-select
           v-model="queryParams.type"
           placeholder="鎵�鏈夌被鍒�"
@@ -137,8 +128,8 @@
       <el-table-column type="selection" :reserve-selection="true" width="55"  align="center" />
       <el-table-column fixed label="搴忓彿" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
       <el-table-column label="绫诲埆" prop="type" sortable :show-overflow-tooltip="true" width="120" align="center" >
-<!--        <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>-->
-        <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template>
+        <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>
+<!--        <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template>-->
       </el-table-column>
       <el-table-column label="鍚嶇О" prop="name" sortable  width="120" align="center" >
         <template slot-scope="scope">{{scope.row.name? scope.row.name: '鈥斺�斺�斺��'}}</template>
@@ -479,9 +470,9 @@
       newOption: undefined,
       showInput: true,
       typeOption:[
-        {value:'0',label:'璇佷欢'},
-        {value:'1',label:'鑽h獕'},
-        {value:'2',label:'璧勮川'},]
+        {value:'璇佷欢',label:'璇佷欢'},
+        {value:'鑽h獕',label:'鑽h獕'},
+        {value:'璧勮川',label:'璧勮川'},]
 
     };
   },
@@ -509,7 +500,7 @@
       const newOption = this.newOption.trim();
       if (newOption && !this.typeOptions.includes(newOption)) {
         this.typeOptions.push(newOption);
-        this.$set(this.formDat, 'type', newOption); // 鏇存柊formDat.type鐨勫�间负鏂扮殑閫夐」
+        this.$set(this.formDat, 'name', newOption); // 鏇存柊formDat.type鐨勫�间负鏂扮殑閫夐」
       }
     },
     /** 鏌ヨ璁板綍鍒楄〃 */

--
Gitblit v1.9.1