@newview/permission-service 1.2.45 → 1.2.46
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 +5 -0
- package/dist/permission-service.js +13 -13
- package/dist/permission-service.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -285,7 +285,8 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
|
|
|
285
285
|
LastUpdateUserId: 0,
|
|
286
286
|
LastUpdateUserName: "",
|
|
287
287
|
LastUpdateDate: "",
|
|
288
|
-
DefaultPwd: ""
|
|
288
|
+
DefaultPwd: "",
|
|
289
|
+
RoadSection: ""
|
|
289
290
|
}));
|
|
290
291
|
__publicField(this, "platformFormItems", reactive([
|
|
291
292
|
{ model: "PlatformName", label: "系统名称", prop: "PlatformName", type: "Input", span: 24, rules: [{ required: true, message: "系统名称不能为空", trigger: "blur" }] },
|
|
@@ -308,7 +309,8 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
|
|
|
308
309
|
{ model: "PlatformUrl", label: "系统URL", prop: "PlatformUrl", type: "Input", span: 24 },
|
|
309
310
|
{ model: "CABusinessKey", label: "CAKey", prop: "CABusinessKey", type: "Input", span: 24 },
|
|
310
311
|
{ model: "DefaultPwd", label: "用户默认密码", prop: "DefaultPwd", type: "Input", span: 24 },
|
|
311
|
-
{ model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber", span: 24 }
|
|
312
|
+
{ model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber", span: 24 },
|
|
313
|
+
{ model: "RoadSection", label: "路段", prop: "RoadSection", type: "Input", span: 24 }
|
|
312
314
|
]));
|
|
313
315
|
// 响应式方法 | xxx = () => {}
|
|
314
316
|
/**
|
|
@@ -475,6 +477,7 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
|
|
|
475
477
|
this.platformFormModel.PId = data.PId;
|
|
476
478
|
this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
|
|
477
479
|
this.platformFormModel.DefaultPwd = data.DefaultPwd;
|
|
480
|
+
this.platformFormModel.RoadSection = data.RoadSection;
|
|
478
481
|
this.editPlatformModalTitle.value = `编辑 - ${data.PlatformName}`;
|
|
479
482
|
const tableData = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
|
|
480
483
|
this.platformFormItems[4].selectProp.datas = tableData.length > 0 ? tableData == null ? void 0 : tableData.map((item) => {
|
|
@@ -11951,17 +11954,14 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
11951
11954
|
this.saveingUser.value = false;
|
|
11952
11955
|
return;
|
|
11953
11956
|
}
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
this.message.warning(`手机号 ${this.userFormModel.Phone} 已关联其他账号, 请重新输入!`);
|
|
11963
|
-
this.saveingUser.value = false;
|
|
11964
|
-
return;
|
|
11957
|
+
let res = this.utilities.parseApiResult(await this.userinforApi.getInstitutionTreeAllUsers(0, this.selectedPlatform.Id));
|
|
11958
|
+
if (res && res.length > 0) {
|
|
11959
|
+
let user = res.filter((x) => x.IsDel == 0 && x.Phone == this.userFormModel.Phone && x.Id !== this.userFormModel.Id);
|
|
11960
|
+
if (user.length > 0) {
|
|
11961
|
+
this.message.warning(`手机号 ${this.userFormModel.Phone} 已在当前平台下关联其他账号, 请重新输入!`);
|
|
11962
|
+
this.saveingUser.value = false;
|
|
11963
|
+
return;
|
|
11964
|
+
}
|
|
11965
11965
|
}
|
|
11966
11966
|
}
|
|
11967
11967
|
const queryWrapper = QueryWrapper.create();
|