|
|
@@ -1015,6 +1015,8 @@ export default {
|
|
|
url: "/company/selectUserList",
|
|
|
headers: {
|
|
|
token: window.localStorage.getItem("zfb_token"),
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:99999999
|
|
|
},
|
|
|
}).then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
@@ -1091,6 +1093,18 @@ export default {
|
|
|
//保存子账号修改
|
|
|
saveZichange() {
|
|
|
let i;
|
|
|
+ let data = this.ShowChildUser.filter((res) => {
|
|
|
+ if (res.phone == this.changeZi.phone &&this.changeZi.id !=res.id) {
|
|
|
+ this.$notify.error({
|
|
|
+ title: "添加失败",
|
|
|
+ message: "子账号已被该企业绑定",
|
|
|
+ });
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (data.length>=1) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
for (i = 0; i < this.ShowChildUser.length; i++) {
|
|
|
if (this.ShowChildUser[i].id == this.changeZi.id) {
|
|
|
this.ShowChildUser[i].memoName = this.changeZi.memoName;
|