bug
zhangzeli
2022-01-11 19c87c33b2892d8b7ec40ee3c569e25947623da6
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="责任认定" prop="dutySure">
          <Input v-model="accidentForm.dutySure"/>
        </FormItem>
        <FormItem label="解决方案" 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: "责任认定",
            key: "dutySure",
            width:150,
            sortable: true,
            tooltip:true,
          },
          {
            title: "解决方案",
            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={};
                }
              });
            }