|
@@ -583,6 +583,10 @@ export default {
|
|
|
trigger: "blur"
|
|
|
}
|
|
|
]
|
|
|
+ },{
|
|
|
+ label: '登录用户id',
|
|
|
+ prop: 'userId',
|
|
|
+ cell: true
|
|
|
}, {
|
|
|
label: '备注',
|
|
|
prop: 'remarks',
|
|
@@ -724,6 +728,7 @@ export default {
|
|
|
this.$message.success(
|
|
|
"创建用户成功,默认帐号:手机号。默认密码:123456"
|
|
|
);
|
|
|
+ this.getDetail(this.form.id)
|
|
|
});
|
|
|
} else {
|
|
|
return false;
|
|
@@ -991,9 +996,13 @@ export default {
|
|
|
console.log("row", row)
|
|
|
if (row.id) {
|
|
|
if (row.tel) {
|
|
|
- this.dialogVisibleBt = true;
|
|
|
- this.formDataTwo = {};
|
|
|
- this.formRow = row;
|
|
|
+ if (!row.userId) {
|
|
|
+ this.dialogVisibleBt = true;
|
|
|
+ this.formDataTwo = {};
|
|
|
+ this.formRow = row;
|
|
|
+ }else {
|
|
|
+ this.$message.error("已经存在用户,请勿重复创建");
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error("请输入手机号");
|
|
|
}
|