南昌市物联网技防平台-前端
zengh
2021-04-30 f0ca4d8ba074e441b85f4d689850f14c41bb229c
用户更改部门调整为级联选择器
1 files modified
16 ■■■■■ changed files
src/views/clientManagement/clientManagement.vue 16 ●●●●● patch | view | raw | blame | history
src/views/clientManagement/clientManagement.vue
@@ -30,7 +30,7 @@
                   @refresh-change="refreshChange"
                   @on-load="onLoad"
                   @row-click="rowClick">
          <template slot="menuLeft">
            <el-button type="danger"
                       size="mini"
@@ -141,7 +141,7 @@
            </el-form-item>
          </el-col>
        </el-form>
      </el-dialog>
@@ -575,7 +575,7 @@
              },
              span:5,
            },
            {
              label: "主要负责人",
              prop: "oneId",
@@ -708,7 +708,7 @@
            var that = this;
            //重新加载一次页面详情数据,解决新的省市区无法写入问题
            getclient(this.form.id).then(res => {
              this.form = res.data.data;
              //this.form = res.data.data;
              //经纬度替换
              this.form.wd = val.latitude;
              this.form.jd = val.longitude;
@@ -779,7 +779,7 @@
      //     this.initData();
      //   }
      // }
    },
    computed: {
      ...mapGetters(["permission"]),
@@ -819,7 +819,7 @@
        });
      },
      //初始化数据
      //初始化数据
      // initData() {
      //   //部门tree数据
      //   getDeptTree().then(res => {
@@ -827,7 +827,7 @@
      //     column.dicData = res.data.data;
      //   });
      // },
      handleClick(row) {
        this.form = row;
        this.dialogTableVisible = true;
@@ -839,6 +839,7 @@
        this.onLoad(this.page);
      },
      rowSave(row, done, loading) {
        row.deptId = row.deptId.join(",");
        add(row).then(() => {
          this.onLoad(this.page);
          this.$message({
@@ -852,6 +853,7 @@
        });
      },
      rowUpdate(row, index, done, loading) {
        row.deptId = row.deptId.join(",");
        // row.jd=row.map.latitude;
        // row.wd=row.map.longitude;
        update(row).then(() => {