zhangzeli
2022-01-06 8560c8517964e0ea2b5fb02811f4a43e1974d973
src/views/your/accident-manage/accidentManage.vue
@@ -62,7 +62,7 @@
      <Form
              ref="accidentForm"
              :model="accidentForm"
              :label-width="80"
              :label-width="100"
              :rules="accidentFormValidate"
      >
        <FormItem label="车辆" prop="carId">
@@ -91,6 +91,9 @@
        </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">
@@ -276,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: "操作",
@@ -298,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: {
@@ -314,15 +324,15 @@
                  },
                }),
                h(
                        "a",
                        {
                          on: {
                            click: () => {
                              this.remove(params.row);
                            },
                          },
                        },
                        "删除"
                  "a",
                  {
                    on: {
                      click: () => {
                        this.remove(params.row);
                      },
                    },
                  },
                  "删除"
                ),
              ]);
            },
@@ -462,6 +472,7 @@
                  this.$Message.success("操作成功");
                  this.getDataList();
                  this.roleModalVisible = false;
                  this.accidentForm={};
                }
              });
            } else {
@@ -472,6 +483,7 @@
                  this.$Message.success("操作成功");
                  this.getDataList();
                  this.roleModalVisible = false;
                  this.accidentForm={};
                }
              });
            }