From 1870c6d392aada4cd48fb148a12c5bd6e2838159 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期日, 22 十月 2023 23:31:48 +0800
Subject: [PATCH] 1022 修正保洁收纳导入

---
 ruoyi-ui/src/views/clean/index.vue |   35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/ruoyi-ui/src/views/clean/index.vue b/ruoyi-ui/src/views/clean/index.vue
index 45a1965..bf961a1 100644
--- a/ruoyi-ui/src/views/clean/index.vue
+++ b/ruoyi-ui/src/views/clean/index.vue
@@ -130,21 +130,21 @@
         <el-table-column type="selection" :reserve-selection="true"  width="55"  align="center" />
         <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/>
 
-        <el-table-column label="绫诲瀷" prop="kind" sortable width="120" >
+        <el-table-column label="绫诲瀷" prop="kind" sortable width="80px" >
           <template slot-scope="scope">
           {{ getSrc1(scope.row.kind) }}
            </template>
           </el-table-column>
-       <el-table-column label="閫傜敤浜�" prop="suitable" sortable :show-overflow-tooltip="true" width="150" />
+       <el-table-column label="閫傜敤浜�" prop="suitable" sortable :show-overflow-tooltip="true" width="110px" />
         <el-table-column label="绫诲埆" prop="type" sortable width="100" />
         <el-table-column label="淇濇磥鏂规硶" prop="method" sortable width="120" />
-        <el-table-column label="鏉愭枡瀛樻斁鍦�" prop="location" sortable width="150" />
+        <el-table-column label="鏉愭枡瀛樻斁鍦�" prop="location" sortable width="140" />
         <el-table-column label="鏀剧疆鍦扮偣" prop="place" sortable width="120" />
         <el-table-column label="鍙戠敓鏃堕棿" prop="happenTime" sortable width="150" align="center">
           <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '鈥斺�斺�斺��'}}</template>
         </el-table-column>
-        <el-table-column label="澶囨敞" prop="remark" sortable width="100" />
-        <el-table-column label="鏄惁鏄湰瀹跺涵璁板綍" prop="ownData" sortable width="150px" >
+        <el-table-column label="澶囨敞" prop="remark" sortable width="70px" />
+        <el-table-column label="鏈搴褰�" prop="ownData" sortable width="110px" >
           <template slot-scope="scope">{{scope.row.ownData === 0 ? '鍚�': '鏄�'}}</template>
         </el-table-column>
         <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="180" align="center">
@@ -325,6 +325,7 @@
 
   //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁�
   import {listClean,enload,delClean, addClean, uploadPic} from "@/api/clean/index";
+  import {Message} from "element-ui";
   export default {
     name: "Role",
     dicts: ['sys_normal_disable'],
@@ -717,21 +718,21 @@
 
       /** 瀵煎叆鎿嶄綔*/
       handleEnport(params){
-      var file = params.file;
-      var formData = new FormData();
-      formData.append('excelImport', file);
-      let _this = this
-      alert(file)
-      enload(formData).then(response => {
-         _this.getList();
-        Message({ message: "瀵煎叆鎴愬姛", type: 'warning' })
+        var file = params.file;
+        var formData = new FormData();
+        formData.append('excelImport', file);
+        let _this = this
+        enload(formData).then(response => {
+          _this.getList();
+          Message({ message: "瀵煎叆鎴愬姛", type: 'warning' })
 
-      }).catch(err)
-      {
-        Message({ message: "瀵煎叆澶辫触", type: 'error' })
-      }
+        }).catch(err)
+        {
+          Message({ message: "瀵煎叆澶辫触", type: 'error' })
+        }
 
       }
+
     }
   };
   </script>

--
Gitblit v1.9.1