From c62776b21679c54f8e65baeb805b891e962c3eef Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 01 八月 2023 19:45:56 +0800
Subject: [PATCH] 部分行列间隔修改

---
 ruoyi-ui/src/views/honor/index.vue |  107 ++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 72 insertions(+), 35 deletions(-)

diff --git a/ruoyi-ui/src/views/honor/index.vue b/ruoyi-ui/src/views/honor/index.vue
index 732a9c1..79a32e1 100644
--- a/ruoyi-ui/src/views/honor/index.vue
+++ b/ruoyi-ui/src/views/honor/index.vue
@@ -179,10 +179,10 @@
     <el-table v-loading="loading" :data="honorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
       <el-table-column type="selection" :reserve-selection="true" width="25"  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="createTime" sortable width="120" align="center">
+<!--      <el-table-column label="鏃堕棿" prop="createTime" sortable width="120" align="center">-->
 
-        <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '鈥斺�斺�斺��'}}</template>
-      </el-table-column>
+<!--        <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '鈥斺�斺�斺��'}}</template>-->
+<!--      </el-table-column>-->
       <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">{{ getSrc(scope.row.type) }}</template>
@@ -207,22 +207,24 @@
       </el-table-column>
       <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="160" align="center">
         <template slot-scope="scope" >
-          <img
-            class="el-upload-list__item-thumbnail"
-            src="../../assets/images/deviceLis.png"
-            alt=""
-            style="width: 35px; height: 35px;"
-            fit="cover"
-            v-if="scope.row.url !== ','"
-          >
-          <img
-            class="el-upload-list__item-thumbnail"
-            src="../../assets/images/deviceA.png"
-            alt=""
-            style="width: 35px; height: 35px;"
-            fit="cover"
-            v-if="scope.row.url ===',' "
-          >
+          <div  @click="handleCheck(scope.row)">
+            <img
+              class="el-upload-list__item-thumbnail"
+              src="../../assets/images/deviceLis.png"
+              alt=""
+              style="width: 35px; height: 35px;"
+              fit="cover"
+              v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)"
+            >
+            <img
+              v-else
+              class="el-upload-list__item-thumbnail"
+              src="../../assets/images/deviceA.png"
+              alt=""
+              style="width: 35px; height: 35px;"
+              fit="cover"
+
+            ></div>
         </template>
       </el-table-column>
       <el-table-column label="澶囨敞" prop="remark" sortable width="120" align="center">
@@ -269,10 +271,13 @@
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
       <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px">
 
-        <el-form-item label="鏃堕棿" prop="createTime">
-          <el-input v-model="formDat.createTime" placeholder="璇疯緭鍏ュ垱寤烘椂闂�" clearable :style="{width: '100%'}" >
-          </el-input>
-        </el-form-item>
+<!--        <el-form-item label="鏃堕棿" prop="createTime">-->
+<!--          <el-input v-model="formDat.createTime" type='date' placeholder='閫夋嫨鏃ユ湡' clearable :style="{width: '100%'}" >-->
+<!--          </el-input>-->
+<!--        </el-form-item>-->
+<!--        <el-form-item label="鑾峰緱鏃堕棿" prop="happenTime">-->
+<!--          <el-date-picker v-model='formDat.happenTime' type='date' placeholder='閫夋嫨鏃ユ湡'></el-date-picker>-->
+<!--        </el-form-item>-->
         <el-form-item label="绫诲埆" prop="type">
 <!--          <el-input v-model="formDat.type" placeholder="璇疯緭鍏ョ被鍒�" clearable :style="{width: '100%'}" >-->
 <!--          </el-input>-->
@@ -293,11 +298,12 @@
           </el-input>
         </el-form-item>
         <el-form-item label="鏈夋晥鏃堕棿" prop="validityDate">
-          <el-input v-model="formDat.validityDate" placeholder="璇疯緭鍏ユ湁鏁堟椂闂�" clearable :style="{width: '100%'}" >
+          <el-input v-model="formDat.validityDate" type='date' placeholder='閫夋嫨鏃ユ湡' clearable :style="{width: '100%'}" >
           </el-input>
         </el-form-item>
+
         <el-form-item label="鑾峰緱鏃堕棿" prop="getDate">
-          <el-input v-model="formDat.getDate" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" clearable :style="{width: '100%'}" >
+          <el-input v-model="formDat.getDate" type='date' placeholder='閫夋嫨鏃ユ湡' clearable :style="{width: '100%'}" >
           </el-input>
         </el-form-item>
         <el-form-item label="瀛樻斁浣嶇疆" prop="location">
@@ -354,7 +360,7 @@
           class="upload-demo"
           multiple
 
-          :on-remove="handleRemove"
+          :on-remove="handleRemoveFile"
           :http-request="requestUpload"
           :show-file-list="true"
         >
@@ -549,7 +555,9 @@
     /** 鏌ヨ璁板綍鍒楄〃 */
     getList() {
       this.loading = true;
-      // console.log(this.queryParams)
+      console.log(this.queryParams)
+      this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
+      this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
       //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
       listHonor(this.queryParams).then(response => {
           //  alert(123)
@@ -574,19 +582,42 @@
     },
     //绫诲埆閫夋嫨
     getSrc(type) {
-      if (type === '鍑虹敓璇�'){
+      if (type === 1){
         return '鍑虹敓璇�'
-      }else if(type === '鐗欑'){
-        return '鐗欑'
-      }else if(type === '鍐呯'){
-        return '鍐呯'
+      }else if(type === 2){
+        return '瀛︾敓璇�'
+      }else if(type === 3){
+        return '姣曚笟璇�'
+      }else if(type === 4){
+        return '缁撳璇�'
+      }else if(type === 5){
+        return '鎴峰彛绨�'
+      }else if(type === 6){
+        return '鐙敓瀛愬コ璇�'
+      }else if(type === 7){
+        return '楂樼骇鑱岀О'
+      }else if(type === 8){
+        return '鎶ょ収'
+      }else if(type === 9){
+        return '閫氳璇�'
       }else {
         return '鍏跺畠'
       }
     },
 
     handleRemove(file) {
-      alert(323)
+      for(let i = 0; i < this.fileList.length; i++)
+      {
+        if(this.fileList[i].url==file.url)
+          this.$delete(this.fileList,i);
+      }
+    },
+    handleRemoveFile(file) {
+      for(let i = 0; i < this.fileListOther.length; i++)
+      {
+        if(this.fileListOther[i].url==file.url)
+          this.$delete(this.fileListOther,i);
+      }
     },
     // 鍙栨秷鎸夐挳
     cancel() {
@@ -661,7 +692,7 @@
     /** 鏌ョ湅璇︾粏淇℃伅 */
     handleCheck(row){
       const id = row.id;
-      this.$router.push("/self/honor/honorInfo/" + id);
+      this.$router.push("/self/Honor/honorInfo/" + id);
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {
@@ -669,7 +700,7 @@
       let jd = true
 
       this.$router.push({
-        path:"/self/honor/honorInfo/" + id,
+        path:"/self/Honor/honorInfo/" + id,
         query:{
           detail:jd
         }
@@ -701,6 +732,12 @@
           });
         }
       });
+      // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
+      Object.keys(this.formDat).forEach(key => {
+        this.formDat[key] = '';
+      });
+      this.handleRemove(this.fileList[0]);
+      this.handleRemoveFile(this.fileListOther[0]);
     },
     requestUpload(params)
     {

--
Gitblit v1.9.1