feige
2024-10-09 3d8bff94da257d3f429373297975c33b1b7ce28c
ruoyi-ui/src/views/clanManager/clan/index.vue
@@ -71,13 +71,13 @@
            @click="handleUpdate(scope.row)"
            v-hasPermi="['system:role:edit']"
          >修改</el-button>
          <el-button
     <!--     <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:role:remove']"
          >删除</el-button>
          >删除</el-button> -->
        </template>
      </el-table-column>
@@ -228,19 +228,19 @@
  methods: {
    chongf(){
      //alert(2)
      if(this.form.name!=""){
      findByFname(this.form.name).then(response => {
          console.log(response.data)
       //   alert(response.data!=null)
          if(response.data!=null)
          {
            this.$set(this.form,'name',"")
            this.$modal.msgSuccess("家庭号已经存在!")
          }
      // if(this.form.name!=""){
      // findByFname(this.form.name).then(response => {
      //     console.log(response.data)
      //  //   alert(response.data!=null)
      //     if(response.data!=null)
      //     {
      //       this.$set(this.form,'name',"")
      //       this.$modal.msgSuccess("家庭号已经存在!")
      //     }
         
      });
      }
      // });
      // }
    },
    handleChange(){
      let _this = this;
@@ -477,14 +477,19 @@
      let _this = this
      this.$refs["form"].validate(valid => {
        if (valid) {
        //  alert(this.form.id)
         //alert(this.form.id)
          if (this.form.clanId != undefined) {
          //  alert(this.form.name)
           // this.form.menuIds = this.getMenuAllCheckedKeys();
            updateClan(this.form).then(response => {
            console.log(response)
           if(response.msg=="家族名称不能重复!")
            this.$modal.msgSuccess("家族名称不能重复")
            else{
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
           }
            });
          } else {