| | |
| | | @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> |
| | |
| | | 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; |
| | |
| | | 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 { |
| | | |