wenhongquan 3 年之前
父节点
当前提交
4561190fbc

+ 1 - 4
src/api/incident.ts

@@ -24,10 +24,7 @@ export interface IncidentItem {
 }
 
 export interface IncidentListResponse extends BaseResponse {
-  rows?: IncidentItem[];
-  total?: number;
-  pageSize?: number;
-  pageNum?: number;
+  data?: IncidentItem[];
 }
 
 export interface GetIncidentListParams {

二进制
src/assets/card-bg/archive@2x.png


二进制
src/assets/card-bg/dispose@2x.png


二进制
src/assets/card-bg/neglect@2x.png


二进制
src/assets/card-bg/send@2x.png


二进制
src/assets/card-bg/warning@2x.png


+ 3 - 3
src/store/useIncidentStore.ts

@@ -1,6 +1,7 @@
 import {
   getIncidentList,
   getIncidentItem,
+  getHDIncidentList,
   GetIncidentListParams,
   IncidentItemDetail,
   IncidentListResponse,
@@ -33,8 +34,7 @@ export default defineStore<
 >('incident', {
   state: () => ({
     incidents: {
-      rows: [],
-      total: 0,
+      data: [],
     },
     incidentDetail: {
       baseInfo: {},
@@ -50,7 +50,7 @@ export default defineStore<
     async getIncidentList(params) {
       try {
         this.toggleLoading();
-        this.incidents = await getIncidentList(params);
+        this.incidents = await getHDIncidentList(params);
       } finally {
         this.toggleLoading();
       }

+ 1 - 1
src/views/HomePage/MessageCard/index.tsx

@@ -19,7 +19,7 @@ export default defineComponent({
     return () => (
       <Card cardType="message-list">
         <div class="message-card-container">
-          {store.incidents.rows?.map((item, idx) => (
+          {store.incidents.data?.map((item, idx) => (
             <a
               onClick={async (e) => {
                 e.preventDefault();

+ 4 - 4
src/views/IncidentDetail/index.scss

@@ -628,17 +628,17 @@
                     }
                     .pitem3 {
                         .ptime {
-                            background-image: url("../../assets/card-bg/blue@2x.png") !important;
+                            background-image: url("../../assets/card-bg/dispose@2x.png") !important;
                         }
                     }
                     .pitem1 {
                         .ptime {
-                            background-image: url("../../assets/card-bg/red@2x.png") !important;
+                            background-image: url("../../assets/card-bg/warning@2x.png") !important;
                         }
                     }
                     .pitem2 {
                         .ptime {
-                            background-image: url("../../assets/card-bg/yellow@2x.png") !important;
+                            background-image: url("../../assets/card-bg/send@2x.png") !important;
                         }
                     }
                     .pitem4 {
@@ -703,7 +703,7 @@
                             }
                             .ptime {
                                 background-image: url("../../assets/card-bg/blue@2x.png");
-                                width: px2rem(254px * 2);
+                                width: px2rem(310px * 2);
                                 height: px2rem(48px * 2);
                                 background-repeat: no-repeat;
                                 background-size: 100% 100%;