zhangzeli
2022-01-05 7220683e68d6cdccd1a7358aee7824b37f2b8e98
src/views/your/area-manage/areaManage.vue
@@ -277,6 +277,7 @@
  addCar,
  getCarList,
  getUser,
  getDriver,
  addArea,
  deleteArea,
  getAreaSection,
@@ -600,7 +601,9 @@
      data2: [],
      data3: [],
      total: 0,
      type: {
        type : 1
      },
      total2: 0,
      permData: [],
      editRolePermId: "",
@@ -706,7 +709,7 @@
      });
    },
    getAllUser(){
      getUser().then((res)=>{
      getDriver({type:1}).then((res)=>{
        if (res.success){
          this.userList=res.result;
        }
@@ -772,16 +775,19 @@
                this.$Message.success("操作成功");
                this.getDataList();
                this.roleModalVisible = false;
                this.areaForm={};
              }
            });
          } else {
            this.submitLoading = true;
            this.$delete(this.areaForm,'children')
            addArea(this.areaForm).then((res) => {
              this.submitLoading = false;
              if (res.success) {
                this.$Message.success("操作成功");
                this.getDataList();
                this.roleModalVisible = false;
                this.areaForm={};
              }
            });
          }
@@ -922,6 +928,7 @@
      let str = JSON.stringify(v);
      let roleInfo = JSON.parse(str);
      this.areaForm = roleInfo;
      console.log(this.areaForm);
      this.roleModalVisible = true;
    },
    editEquipment(v) {