@newview/permission-service 1.2.44 → 1.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/permission-service.js +15 -11
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -4535,12 +4535,14 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
4535
4535
|
// 响应属性 | ref、reactive、computed
|
|
4536
4536
|
__publicField(this, "institutionTree", ref([]));
|
|
4537
4537
|
__publicField(this, "loadingInstitutionTree", ref(false));
|
|
4538
|
+
__publicField(this, "insTreeIds", ref(""));
|
|
4538
4539
|
// 响应式方法 | xxx = () => {}
|
|
4539
4540
|
/**
|
|
4540
4541
|
* 平台切换
|
|
4541
4542
|
*/
|
|
4542
4543
|
__publicField(this, "doChangePlatform", (data) => {
|
|
4543
4544
|
this.selectedPlatform = data;
|
|
4545
|
+
console.log(data, "11111111111111111111;;;;");
|
|
4544
4546
|
this.loadInsTree();
|
|
4545
4547
|
});
|
|
4546
4548
|
/**
|
|
@@ -4574,6 +4576,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
4574
4576
|
__publicField(this, "doChangeInsTree", (datas) => {
|
|
4575
4577
|
if (datas.length > 0) {
|
|
4576
4578
|
this.selectedInsTree = datas[0];
|
|
4579
|
+
this.insTreeUserGrid.value.setPageIndex(1);
|
|
4577
4580
|
this.loadInstitutionTreeUsers({});
|
|
4578
4581
|
}
|
|
4579
4582
|
});
|
|
@@ -4931,17 +4934,14 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
4931
4934
|
this.saveingUser.value = false;
|
|
4932
4935
|
return;
|
|
4933
4936
|
}
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
this.message.warning(`手机号 ${this.userFormModel.Phone} 已关联其他账号, 请重新输入!`);
|
|
4943
|
-
this.saveingUser.value = false;
|
|
4944
|
-
return;
|
|
4937
|
+
let res = this.utilities.parseApiResult(await this.userinforApi.getInstitutionTreeAllUsers(0, this.selectedPlatform.Id));
|
|
4938
|
+
if (res && res.length > 0) {
|
|
4939
|
+
let user = res.filter((x) => x.IsDel == 0 && x.Phone == this.userFormModel.Phone && x.Id !== this.userFormModel.Id);
|
|
4940
|
+
if (user.length > 0) {
|
|
4941
|
+
this.message.warning(`手机号 ${this.userFormModel.Phone} 已在当前平台下关联其他账号, 请重新输入!`);
|
|
4942
|
+
this.saveingUser.value = false;
|
|
4943
|
+
return;
|
|
4944
|
+
}
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
4947
4947
|
const queryWrapper = QueryWrapper.create();
|
|
@@ -5435,6 +5435,10 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
5435
5435
|
this.loadingInstitutionTree.value = true;
|
|
5436
5436
|
const apiResult = await this.institutionTreeApi.getInstitutionTrees(this.selectedPlatform.Id);
|
|
5437
5437
|
const datas = this.utilities.parseApiResult(apiResult);
|
|
5438
|
+
if (datas && datas.length > 0) {
|
|
5439
|
+
this.insTreeIds.value = datas.map((item) => item.Id).join(",");
|
|
5440
|
+
this.utilities.parseApiResult(await this.userinforApi.getInstitutionTreeAllUsers(0, this.selectedPlatform.Id));
|
|
5441
|
+
}
|
|
5438
5442
|
this.loadingInstitutionTree.value = false;
|
|
5439
5443
|
const whileChildData = (pId) => {
|
|
5440
5444
|
const childDatas = datas.filter((item) => item.PId == pId);
|