@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 CHANGED
@@ -1,3 +1,8 @@
1
+ ### 版本 1.2.46
2
+ 1、修改系统平台,增加路段字段
3
+
4
+
5
+
1
6
  ### 版本 1.2.45
2
7
  1、判断同一平台下手机号是否唯一
3
8
 
@@ -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
- const queryWrapper2 = QueryWrapper.create();
11955
- queryWrapper2.eq("Phone", this.userFormModel.Phone).eq("IsDel", 0);
11956
- if (this.userFormModel.Id > 0) {
11957
- queryWrapper2.ne("Id", this.userFormModel.Id);
11958
- }
11959
- const apiResult2 = await this.userinforApi.isExist(queryWrapper2);
11960
- result = this.utilities.parseApiResult(apiResult2);
11961
- if (result) {
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();