From 25ddd158fa9be7784c5b513bd3f7f8290e372b7f Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 11 四月 2023 20:27:53 +0800
Subject: [PATCH] 提交图标,更改大事记、设备、家庭资产样式

---
 ruoyi-ui/src/views/bignote/index.vue |   59 ++++++++++++++++++++++++++++++++---------------------------
 1 files changed, 32 insertions(+), 27 deletions(-)

diff --git a/ruoyi-ui/src/views/bignote/index.vue b/ruoyi-ui/src/views/bignote/index.vue
index 5099535..8b977a6 100644
--- a/ruoyi-ui/src/views/bignote/index.vue
+++ b/ruoyi-ui/src/views/bignote/index.vue
@@ -38,7 +38,7 @@
           v-model="queryParams.address"
           placeholder="璇疯緭鍏ュ湴鐐�"
           clearable
-          style="width: 197px;
+          style=" width:197px;
 height: 30px;
 background: #FFFFFF;
 border-radius: 14px 14px 14px 14px;
@@ -51,7 +51,7 @@
       <el-form-item label="鏃堕棿">
         <el-date-picker
           v-model="dateRange"
-          style=" width: 197px;
+          style="width:  197px;
 height: 30px;
 background: #FFFFFF;
 border-radius: 14px 14px 14px 14px;
@@ -65,12 +65,12 @@
         ></el-date-picker>
       </el-form-item>
       <el-form-item>
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
+        <el-button size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3;
+          border-radius: 6px 6px 6px 6px;opacity:1; " >鎼滅储</el-button>
+        <el-button  size="mini" @click="resetQuery" style=" width: 65px; height: 32px;background: #FFDDE3;
+          border-radius: 6px 6px 6px 6px;opacity:1; " >閲嶇疆</el-button>
       </el-form-item>
     </el-form>
-
-
 
     <div style="width: 72px;
 height: 24px;
@@ -118,7 +118,7 @@
     </el-row>
     <!-- 搴忓彿銆佹椂闂淬�佷汉鐗┿�佸湴鐐广�佸ぇ浜嬫爣棰樸�佺數瀛愭枃浠躲�佸娉� -->
     <!-- 杩欓噷鏈変釜familyList鏁扮粍 鏄湪data()涓畾涔夌殑 -->
-    <el-table v-loading="loading"  :data="familyList" @selection-change="handleSelectionChange" >
+    <el-table v-loading="loading"  :data="familyList" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName">
       <el-table-column type="selection" width="55"  align="center" />
       <el-table-column label="搴忓彿" prop="id" sortable width="120" />
 
@@ -132,7 +132,7 @@
       <el-table-column label="澶т簨鏍囬" prop="title" sortable :show-overflow-tooltip="true" width="150" />
 
       <el-table-column label="澶囨敞" prop="remark" sortable width="100" />
-      <el-table-colum label="鐢靛瓙鏂囦欢" prop="fujian" sortable width="100"/>
+      <!-- <el-table-colum label="鐢靛瓙鏂囦欢" prop="url" sortable width="100"/> -->
       <el-table-column label="瀹跺涵鍙�" prop="familyId" sortable width="100" />
       <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope" v-if="scope.row.roleId !== 1">
@@ -164,6 +164,7 @@
       :page.sync="queryParams.pageNum"
       :limit.sync="queryParams.pageSize"
       @pagination="getList"
+      style="background: #FEF7FC;"
     />
 
     <!-- 娣诲姞鎴栦慨鏀硅祫浜т俊鎭厤缃璇濇 -->
@@ -318,7 +319,7 @@
       dsb:true,
       btn:false,
       formDat: {
-        type: undefined,
+        // type: undefined,
         title: undefined,
         location: undefined,
         holder: undefined,
@@ -391,29 +392,25 @@
     },
 
     //闅旇鍙樿壊
+    tableRowClassName({ row, rowIndex }) {
+      if (rowIndex % 2 == 0) {
+        return "statistics-warning-row1";
+      } else {
+        return "statistics-warning-row";
+      }
+    },
 
-    //   methods: {
-    //   tableRowClassName({row, rowIndex}) {
-    //     if (rowIndex === 1)  //=>杩欓噷鍙互鏀规垚 rowIndex%2=== 1锛屽悗闈㈢洿鎺lse鍗冲彲杈惧埌闅旇鍙樿壊鏁堟灉銆�
-    //     {
-    //       return 'warning-row';
-    //     } else if (rowIndex === 3) {
-    //       return 'success-row';
-    //     }
-    //     return '';
-    //   }
-    // },
 
     /** 鏌ヨ瑙掕壊鍒楄〃 */
     //鍒楄〃鏄剧ず瀹跺ぇ浜嬭
 
     getList() {
       this.loading = true;
-       console.log(this.queryParams)
+      console.log(this.queryParams)
       //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
       listFamilyevent(this.queryParams).then(response => {
-
-         //    console.log(response.data.data)
+          //  alert(123)
+          //   console.log(response.data)
           this.familyList = response.data.data;
 
           this.total = response.data.total;
@@ -458,7 +455,6 @@
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
       this.queryParams.pageNum = 1;
-
       this.getList();
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
@@ -486,8 +482,7 @@
     /** 鏌ョ湅璇︾粏淇℃伅 */
     handleCheck(row){
       const id = row.id;
-
-      this.$router.push("/family1/bignote/familyeventInfo/" + id);
+      this.$router.push("/family/zfEvent/bignote/familyeventInfo/" + id);
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {
@@ -495,7 +490,7 @@
       let jd = true
 
       this.$router.push({
-        path:"/family1/bignote/familyeventInfo/" + id,
+        path:"/family/zfEvent/bignote/familyeventInfo/" + id,
         query:{
           detail:jd
         }
@@ -570,3 +565,13 @@
   }
 };
 </script>
+<style>
+.el-table__row.statistics-warning-row {
+  background: #E0EEFE;
+
+}
+.el-table__row.statistics-warning-row1 {
+  background: #FFEFF2;
+
+}
+</style>

--
Gitblit v1.9.1