| | |
| | | <el-table-column fixed label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="100"/> |
| | | <el-table-column label="家族号名称" prop="clanName" sortable :show-overflow-tooltip="true" width="150" /> |
| | | |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" > |
| | | <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" > |
| | | <template slot-scope="scope" v-if="scope.row.id !== 1"> |
| | | <el-button |
| | | size="mini" |
| | |
| | | }, |
| | | personInfos:[], |
| | | personInfos1:[], |
| | | res: false, |
| | | // 表单参数 |
| | | form: { |
| | | clanId: undefined, |
| | |
| | | } |
| | | }; |
| | | }, |
| | | watch: { |
| | | 'form.clanName': function(newVal, oldVal){ |
| | | // alert(newVal) |
| | | // alert(oldVal) |
| | | |
| | | if(newVal==oldVal||oldVal==undefined) |
| | | this.res = false; |
| | | else |
| | | this.res = true; |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | //this.getAllUser(); |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | //this.dateRange = []; |
| | | this.queryParams.clanName = undefined |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | |
| | | /** 提交按钮 */ |
| | | submitForm: function() { |
| | | let _this = this |
| | | //alert(this.res) |
| | | if(this.res == false) |
| | | { |
| | | this.$modal.msgSuccess("家族名称没有修改,不能提交") |
| | | |
| | | return; |
| | | } |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | //alert(this.form.id) |
| | |
| | | // this.form.menuIds = this.getMenuAllCheckedKeys(); |
| | | updateClan(this.form).then(response => { |
| | | console.log(response) |
| | | this.res = false; |
| | | if(response.msg=="家族名称不能重复!") |
| | | this.$modal.msgSuccess("家族名称不能重复") |
| | | else{ |