liuchengxin
2022-01-24 1908a80cd8224860bb704486fa78a18cc9a06bf7
src/views/basics/school/index.vue
@@ -313,6 +313,7 @@
  created() {
    this.getProvince().then(res => {
      this.provinceList = res
      this.provinceFormList = res
    })
    this.getList();
  },
@@ -385,6 +386,10 @@
      getSchool(id).then(response => {
        this.loading = false;
        this.form = response.data;
        listCity(this.form.provinceCode)
          .then(res => {
            this.cityFormList = res.data
          })
        this.open = true;
        this.title = "修改学校";
      });
@@ -417,7 +422,7 @@
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除?').then(() => {
      this.$modal.confirm(`是否确认删除学校代码为${row.code}的学校?`).then(() => {
        this.loading = true;
        return delSchool(ids);
      }).then(() => {
@@ -452,7 +457,6 @@
    },
    // 查询条件省份改变
    provinceQueryChange(v) {
      this.queryParams.cityCode = undefined
      this.getCity(v).then(res => {
        this.cityList = res
      })