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 | 63 +++++++++++++++++++------------
1 files changed, 39 insertions(+), 24 deletions(-)
diff --git a/src/views/your/accident-manage/accidentManage.vue b/src/views/your/accident-manage/accidentManage.vue
index 6da0203..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">
@@ -84,14 +83,17 @@
<FormItem label="浜嬫晠鎻忚堪" prop="description">
<Input v-model="accidentForm.description"/>
</FormItem>
- <FormItem label="浜嬫晠鐓х墖" prop="img">
- <upload-pic-thumb v-model="accidentForm.img" :multiple="false"></upload-pic-thumb>
+ <FormItem label="浜嬫晠鐓х墖" prop="imgs">
+ <upload-pic-thumb v-model="accidentForm.imgs" :multiple="false"></upload-pic-thumb>
</FormItem>
<FormItem label="璐d换璁ゅ畾" prop="dutySure">
<Input v-model="accidentForm.dutySure"/>
</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">
@@ -199,7 +201,11 @@
getCarList,
} from "@/api/open";
import util from "@/libs/util.js";
+ import uploadPicThumb from "@/views/my-components/xboot/upload-pic-thumb";
export default {
+ components: {
+ uploadPicThumb
+ },
name: "car-manage",
data() {
return {
@@ -273,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: "鎿嶄綔",
@@ -295,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: {
@@ -311,15 +324,15 @@
},
}),
h(
- "a",
- {
- on: {
- click: () => {
- this.remove(params.row);
- },
- },
- },
- "鍒犻櫎"
+ "a",
+ {
+ on: {
+ click: () => {
+ this.remove(params.row);
+ },
+ },
+ },
+ "鍒犻櫎"
),
]);
},
@@ -459,6 +472,7 @@
this.$Message.success("鎿嶄綔鎴愬姛");
this.getDataList();
this.roleModalVisible = false;
+ this.accidentForm={};
}
});
} else {
@@ -469,6 +483,7 @@
this.$Message.success("鎿嶄綔鎴愬姛");
this.getDataList();
this.roleModalVisible = false;
+ this.accidentForm={};
}
});
}
--
Gitblit v1.9.1