From 8560c8517964e0ea2b5fb02811f4a43e1974d973 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期四, 06 一月 2022 09:58:59 +0800
Subject: [PATCH] 优化

---
 src/views/your/accident-manage/accidentManage.vue |   55 +++++++++++++++++++++++++++++++++----------------------
 1 files changed, 33 insertions(+), 22 deletions(-)

diff --git a/src/views/your/accident-manage/accidentManage.vue b/src/views/your/accident-manage/accidentManage.vue
index e20fadd..1aa345e 100644
--- a/src/views/your/accident-manage/accidentManage.vue
+++ b/src/views/your/accident-manage/accidentManage.vue
@@ -8,7 +8,6 @@
     <Card>
       <Row class="operation">
         <Button @click="addOil" type="primary" icon="md-add">娣诲姞浜嬫晠璁板綍</Button>
-        <Button @click="delAll" icon="md-trash">鎵归噺鍒犻櫎</Button>
         <Button @click="init" icon="md-refresh">鍒锋柊</Button>
         <Button type="dashed" @click="openTip = !openTip">{{
           openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�"
@@ -63,7 +62,7 @@
       <Form
               ref="accidentForm"
               :model="accidentForm"
-              :label-width="80"
+              :label-width="100"
               :rules="accidentFormValidate"
       >
         <FormItem label="杞﹁締" prop="carId">
@@ -92,6 +91,9 @@
         </FormItem>
         <FormItem label="瑙e喅鏂规" prop="solve">
           <Input v-model="accidentForm.solve"/>
+        </FormItem>
+        <FormItem label="淇濊垂璧斿伩" prop="peiChang">
+          <Input v-model="accidentForm.peiChang"/>
         </FormItem>
       </Form>
       <div slot="footer">
@@ -277,18 +279,25 @@
             title: "浜嬫晠鎻忚堪",
             key: "description",
             width: 150,
+            tooltip:true,
           },
           {
             title: "璐d换璁ゅ畾",
             key: "dutySure",
             width:150,
-            sortable: true,
+            tooltip:true,
           },
           {
             title: "瑙e喅鏂规",
             key: "solve",
             minWidth: 150,
-            sortable: true,
+            tooltip:true,
+          },
+          {
+            title: "淇濊垂璧斿伩",
+            key: "peiChang",
+            minWidth: 150,
+            tooltip:true,
           },
           {
             title: "鎿嶄綔",
@@ -299,15 +308,15 @@
             render: (h, params) => {
               return h("div", [
                 h(
-                        "a",
-                        {
-                          on: {
-                            click: () => {
-                              this.edit(params.row);
-                            },
-                          },
-                        },
-                        "缂栬緫"
+                  "a",
+                  {
+                    on: {
+                      click: () => {
+                        this.edit(params.row);
+                      },
+                    },
+                  },
+                  "缂栬緫"
                 ),
                 h("Divider", {
                   props: {
@@ -315,15 +324,15 @@
                   },
                 }),
                 h(
-                        "a",
-                        {
-                          on: {
-                            click: () => {
-                              this.remove(params.row);
-                            },
-                          },
-                        },
-                        "鍒犻櫎"
+                  "a",
+                  {
+                    on: {
+                      click: () => {
+                        this.remove(params.row);
+                      },
+                    },
+                  },
+                  "鍒犻櫎"
                 ),
               ]);
             },
@@ -463,6 +472,7 @@
                   this.$Message.success("鎿嶄綔鎴愬姛");
                   this.getDataList();
                   this.roleModalVisible = false;
+                  this.accidentForm={};
                 }
               });
             } else {
@@ -473,6 +483,7 @@
                   this.$Message.success("鎿嶄綔鎴愬姛");
                   this.getDataList();
                   this.roleModalVisible = false;
+                  this.accidentForm={};
                 }
               });
             }

--
Gitblit v1.9.1