上饶市警务平台后台管理前端
guoshilong
2023-02-11 6e6eee914a41f364d913adeb90015c3cb0ae56f8
小区人员管理添加数据覆盖选项
1 files modified
60 ■■■■■ changed files
src/views/villagePersonInfo/villagePersonInfo.vue 60 ●●●●● patch | view | raw | blame | history
src/views/villagePersonInfo/villagePersonInfo.vue
@@ -87,32 +87,32 @@
              tip: '请上传 .xls,.xlsx 标准格式文件',
              action: "/api/villagePersonInfo/villagePersonInfo/import-village-person-info"
            },
            // {
            //   label: "数据覆盖",
            //   prop: "isCovered",
            //   type: "switch",
            //   align: "center",
            //   width: 80,
            //   dicData: [
            //     {
            //       label: "否",
            //       value: 0
            //     },
            //     {
            //       label: "是",
            //       value: 1
            //     }
            //   ],
            //   value: 0,
            //   slot: true,
            //   rules: [
            //     {
            //       required: true,
            //       message: "请选择是否覆盖",
            //       trigger: "blur"
            //     }
            //   ]
            // },
            {
              label: "数据覆盖",
              prop: "isCovered",
              type: "switch",
              align: "center",
              width: 80,
              dicData: [
                {
                  label: "否",
                  value: 0
                },
                {
                  label: "是",
                  value: 1
                }
              ],
              value: 0,
              slot: true,
              rules: [
                {
                  required: true,
                  message: "请选择是否覆盖",
                  trigger: "blur"
                }
              ]
            },
            {
              label: '模板下载',
              prop: 'excelTemplate',
@@ -221,6 +221,14 @@
        return ids.join(",");
      }
    },
    watch: {
      'excelForm.isCovered'() {
        if (this.excelForm.isCovered !== '') {
          const column = this.findObject(this.excelOption.column, "excelFile");
          column.action = `/api/villagePersonInfo/villagePersonInfo/import-village-person-info?isCovered=${this.excelForm.isCovered}`;
        }
      }
    },
    methods: {
      rowSave(row, done, loading) {
        add(row).then(() => {