From 1b98ab0d3d007a5a65bdd446483853df34b8919c Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期三, 05 一月 2022 15:58:39 +0800
Subject: [PATCH] 优化

---
 src/views/your/addOil-manage/addOilManage.vue |   50 ++++++++++++++++++++++++++++++--------------------
 1 files changed, 30 insertions(+), 20 deletions(-)

diff --git a/src/views/your/addOil-manage/addOilManage.vue b/src/views/your/addOil-manage/addOilManage.vue
index 1cd128a..9209933 100644
--- a/src/views/your/addOil-manage/addOilManage.vue
+++ b/src/views/your/addOil-manage/addOilManage.vue
@@ -82,24 +82,32 @@
         <Row :gutter="0">
           <Col span="12">
             <FormItem label="鍔犳补閲�" prop="amount">
-              <Input v-model="addOilForm.amount" type="number"/>
+              <Input v-model="addOilForm.amount" type="number">
+                <span slot="append">鍗�</span>
+              </Input>
             </FormItem>
           </Col>
           <Col span="12">
             <FormItem label="鍗曚环" prop="unitPrice">
-              <Input v-model="addOilForm.unitPrice" type="number"/>
+              <Input v-model="addOilForm.unitPrice" type="number">
+                <span slot="append">鍏�</span>
+              </Input>
             </FormItem>
           </Col>
         </Row>
         <Row :gutter="0">
           <Col span="12">
             <FormItem label="鍔犳补閲戦" prop="money">
-              <Input v-model="addOilForm.money" type="number"/>
+              <Input v-model="addOilForm.money" type="number">
+                <span slot="append">鍏�</span>
+              </Input>
             </FormItem>
           </Col>
           <Col span="12">
             <FormItem label="閲岀▼" prop="mileage">
-              <Input v-model="addOilForm.mileage" type="number"/>
+              <Input v-model="addOilForm.mileage" type="number">
+                <span slot="append">鍏噷</span>
+              </Input>
             </FormItem>
           </Col>
         </Row>
@@ -274,19 +282,18 @@
           {
             title: "杞︾墝鍙�",
             key: "carNo",
-            width: 100,
+            width: 120,
             sortable: true,
           },
           {
             title: "鍔犳补鍗″彿",
             key: "addOilCode",
             width: 100,
-            sortable: true,
           },
           {
             title: "鍔犳补鏃ユ湡",
             key: "addDate",
-            width: 150,
+            width: 120,
             sortable: true,
           },
           {
@@ -304,19 +311,22 @@
           {
             title: "鍔犳补閲戦",
             key: "money",
-            minWidth: 100,
+            minWidth: 120,
             sortable: true,
           },
           {
             title: "鍔犳补鏃堕噷绋�",
             key: "mileage",
-            minWidth: 100,
+            minWidth: 130,
             sortable: true,
           },
           {
             title: "澶囨敞",
             key: "remarks",
-            minWidth: 150,
+            width: 150,
+            render: (h, params) => {
+              return h("div",params.row.remarks=="undefined" ? '':params.row.remarks);
+            }
           },
           {
             title: "鎿嶄綔",
@@ -326,15 +336,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: {
@@ -446,7 +456,7 @@
           this.loading = false;
           if (res.success) {
             this.data = res.result.records;
-            this.total = res.result.length;
+            this.total = res.result.total;
           }
         });
       },

--
Gitblit v1.9.1