From cfa5f387337a497fed7e70775855d93f7cb6addf Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期日, 30 七月 2023 17:10:45 +0800
Subject: [PATCH] 7.30提交

---
 ruoyi-ui/src/views/note/index.vue |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/ruoyi-ui/src/views/note/index.vue b/ruoyi-ui/src/views/note/index.vue
index 7661f80..4af6735 100644
--- a/ruoyi-ui/src/views/note/index.vue
+++ b/ruoyi-ui/src/views/note/index.vue
@@ -48,11 +48,11 @@
         />
       </el-form-item>
       <!-- </el-form-item> -->
-      <el-form-item label="鍙戠敓鏃堕棿">
+      <el-form-item label="鍙戠敓鏃堕棿"  prop="happenTime">
         <el-date-picker
           v-model="dateRange"
           style="width: 240px"
-          value-format="yyyy-MM-dd HH-MM-SS"
+          value-format="yyyy-MM-dd"
           type="daterange"
           range-separator="-"
           start-placeholder="寮�濮嬫棩鏈�"
@@ -128,7 +128,7 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="propertyList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
+    <el-table v-loading="loading" :data="propertyList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
       <el-table-column type="selection" width="55"  align="center" />
 
       <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
@@ -147,6 +147,7 @@
       </el-table-column>
       <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="160" >
         <template slot-scope="scope" >
+          <div  @click="handleCheck(scope.row)">
           <img
             class="el-upload-list__item-thumbnail"
             src="../../assets/images/deviceLis.png"
@@ -162,7 +163,7 @@
             style="width: 35px; height: 35px;"
             fit="cover"
             v-if="scope.row.url === ','"
-          >
+          ></div>
         </template>
       </el-table-column>
       <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
@@ -281,7 +282,7 @@
           class="upload-demo"
           multiple
 
-          :on-remove="handleRemove"
+          :on-remove="handleRemoveFile"
           :http-request="requestUpload"
           :show-file-list="true"
         >
@@ -385,7 +386,8 @@
         holder:undefined,
         address:undefined,
         happenStartTime:undefined,
-        happenEndTime:undefined
+        happenEndTime:undefined,
+        happenTime:undefined
       },
       // 琛ㄥ崟鍙傛暟
       form: {},
@@ -450,7 +452,10 @@
         return "statistics-warning-row";
       }
     },
-
+    getRowId(row)
+    {
+      return row.id
+    },
     /** 鏌ヨ瑙掕壊鍒楄〃 */
     getList() {
       this.loading = true;
@@ -482,6 +487,13 @@
     },
 
     handleRemove(file) {
+      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)
@@ -593,6 +605,8 @@
       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