@newview/permission-service 1.2.46 → 1.2.48
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 +9 -0
- package/dist/permission-service.js +119 -5
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7701,6 +7701,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
7701
7701
|
PlatformId: this.props.platformInfo.Id
|
|
7702
7702
|
})));
|
|
7703
7703
|
if (res && res.length > 0) {
|
|
7704
|
+
if (this.utilities.isNull(res[0].ProjectConfig)) {
|
|
7705
|
+
res[0].ProjectConfig = "[]";
|
|
7706
|
+
}
|
|
7704
7707
|
Object.assign(this.nowRow, res[0]);
|
|
7705
7708
|
let data = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(res[0].ProjectConfig)) : this.utilities.deepCopy(JSON.parse(res[0].ConstructConfig));
|
|
7706
7709
|
if (data && data.length > 0) {
|
|
@@ -11586,6 +11589,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
11586
11589
|
__publicField(this, "doChangeInsTree", (datas) => {
|
|
11587
11590
|
if (datas.length > 0) {
|
|
11588
11591
|
this.selectedInsTree = datas[0];
|
|
11592
|
+
this.insTreeUserGrid.value.setPageIndex(1);
|
|
11589
11593
|
this.loadInstitutionTreeUsers({});
|
|
11590
11594
|
}
|
|
11591
11595
|
});
|
|
@@ -12332,6 +12336,98 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
12332
12336
|
}
|
|
12333
12337
|
});
|
|
12334
12338
|
});
|
|
12339
|
+
/**
|
|
12340
|
+
* 上传用户印章图片
|
|
12341
|
+
*/
|
|
12342
|
+
__publicField(this, "doUploadUserSealImg", async () => {
|
|
12343
|
+
if (this.utilities.isNull(this.userSignFormModel.CAUserSealImg)) {
|
|
12344
|
+
this.proceedWithUpload();
|
|
12345
|
+
} else {
|
|
12346
|
+
this.modal.confirm({
|
|
12347
|
+
title: "提示",
|
|
12348
|
+
content: "确定要覆盖当前已存在的印章图片吗?",
|
|
12349
|
+
onOk: async () => {
|
|
12350
|
+
this.proceedWithUpload();
|
|
12351
|
+
}
|
|
12352
|
+
});
|
|
12353
|
+
}
|
|
12354
|
+
});
|
|
12355
|
+
/**
|
|
12356
|
+
* 继续选择印章上传
|
|
12357
|
+
*/
|
|
12358
|
+
__publicField(this, "proceedWithUpload", async () => {
|
|
12359
|
+
let inputObj = document.createElement("input");
|
|
12360
|
+
inputObj.setAttribute("id", "UserSeal");
|
|
12361
|
+
inputObj.setAttribute("type", "file");
|
|
12362
|
+
inputObj.setAttribute("style", "visibility:hidden");
|
|
12363
|
+
inputObj.setAttribute("accept", "image/*");
|
|
12364
|
+
document.body.appendChild(inputObj);
|
|
12365
|
+
inputObj.addEventListener("change", (event) => {
|
|
12366
|
+
const files = event.target.files;
|
|
12367
|
+
if (files && files.length > 0) {
|
|
12368
|
+
const file = files[0];
|
|
12369
|
+
if (file.size > 50 * 1024) {
|
|
12370
|
+
this.message.warning("图片大小不能超过50KB!");
|
|
12371
|
+
return;
|
|
12372
|
+
}
|
|
12373
|
+
const reader = new FileReader();
|
|
12374
|
+
reader.onloadend = () => {
|
|
12375
|
+
const base64String = reader.result;
|
|
12376
|
+
this.userSignFormModel.CAUserSealImg = base64String;
|
|
12377
|
+
this.userSignFormModel.CAUserSealToken = this.userSignFormModel.CAUserSealToken ? this.userSignFormModel.CAUserSealToken : this.utilities.getUniqueCode();
|
|
12378
|
+
this.uploadUserSignImg(this.userSignFormModel.UserId, this.userSignFormModel.CAUserSealToken, this.userSignFormModel.CAUserSealImg);
|
|
12379
|
+
};
|
|
12380
|
+
reader.readAsDataURL(file);
|
|
12381
|
+
}
|
|
12382
|
+
});
|
|
12383
|
+
inputObj.click();
|
|
12384
|
+
});
|
|
12385
|
+
/**
|
|
12386
|
+
* 上传用户圆章图片
|
|
12387
|
+
*/
|
|
12388
|
+
__publicField(this, "doUploadUserYZImg", async () => {
|
|
12389
|
+
if (this.utilities.isNull(this.userSignFormModel.CAUserYZImg)) {
|
|
12390
|
+
this.proceedWithUploadYZImg();
|
|
12391
|
+
} else {
|
|
12392
|
+
this.modal.confirm({
|
|
12393
|
+
title: "提示",
|
|
12394
|
+
content: "确定要覆盖当前已存在的圆章图片吗?",
|
|
12395
|
+
onOk: async () => {
|
|
12396
|
+
this.proceedWithUploadYZImg();
|
|
12397
|
+
}
|
|
12398
|
+
});
|
|
12399
|
+
}
|
|
12400
|
+
});
|
|
12401
|
+
/**
|
|
12402
|
+
* 继续选择圆章上传
|
|
12403
|
+
*/
|
|
12404
|
+
__publicField(this, "proceedWithUploadYZImg", async () => {
|
|
12405
|
+
let inputObj = document.createElement("input");
|
|
12406
|
+
inputObj.setAttribute("id", "YZImg");
|
|
12407
|
+
inputObj.setAttribute("type", "file");
|
|
12408
|
+
inputObj.setAttribute("style", "visibility:hidden");
|
|
12409
|
+
inputObj.setAttribute("accept", "image/*");
|
|
12410
|
+
document.body.appendChild(inputObj);
|
|
12411
|
+
inputObj.addEventListener("change", (event) => {
|
|
12412
|
+
const files = event.target.files;
|
|
12413
|
+
if (files && files.length > 0) {
|
|
12414
|
+
const file = files[0];
|
|
12415
|
+
if (file.size > 50 * 1024) {
|
|
12416
|
+
this.message.warning("图片大小不能超过50KB!");
|
|
12417
|
+
return;
|
|
12418
|
+
}
|
|
12419
|
+
const reader = new FileReader();
|
|
12420
|
+
reader.onloadend = () => {
|
|
12421
|
+
const base64String = reader.result;
|
|
12422
|
+
this.userSignFormModel.CAUserYZImg = base64String;
|
|
12423
|
+
this.userSignFormModel.CAUserYZToken = this.userSignFormModel.CAUserYZToken ? this.userSignFormModel.CAUserYZToken : this.utilities.getUniqueCode();
|
|
12424
|
+
this.uploadUserSignImg(this.userSignFormModel.UserId, this.userSignFormModel.CAUserYZToken, this.userSignFormModel.CAUserYZImg);
|
|
12425
|
+
};
|
|
12426
|
+
reader.readAsDataURL(file);
|
|
12427
|
+
}
|
|
12428
|
+
});
|
|
12429
|
+
inputObj.click();
|
|
12430
|
+
});
|
|
12335
12431
|
/**
|
|
12336
12432
|
* 加载圆章KEY
|
|
12337
12433
|
*/
|
|
@@ -12836,8 +12932,8 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
12836
12932
|
};
|
|
12837
12933
|
}
|
|
12838
12934
|
}
|
|
12839
|
-
const
|
|
12840
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
12935
|
+
const Userinfor_vue_vue_type_style_index_0_scoped_bed8ccac_lang = "";
|
|
12936
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-bed8ccac"), n = n(), popScopeId(), n);
|
|
12841
12937
|
const _hoisted_1$5 = { class: "instree-search" };
|
|
12842
12938
|
const _hoisted_2$3 = { class: "instree-list" };
|
|
12843
12939
|
const _hoisted_3$3 = { style: { "height": "750px", "overflow-y": "auto" } };
|
|
@@ -13235,10 +13331,19 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13235
13331
|
type: "primary",
|
|
13236
13332
|
size: "small",
|
|
13237
13333
|
ghost: "",
|
|
13238
|
-
style: { "float": "right" },
|
|
13334
|
+
style: { "float": "right", "margin-left": "3px" },
|
|
13239
13335
|
icon: "md-refresh",
|
|
13240
13336
|
onClick: _ctx.doLoadUserSealImg,
|
|
13241
13337
|
title: "加载印章图片"
|
|
13338
|
+
}, null, 8, ["onClick"]),
|
|
13339
|
+
createVNode(_component_Button, {
|
|
13340
|
+
type: "primary",
|
|
13341
|
+
size: "small",
|
|
13342
|
+
ghost: "",
|
|
13343
|
+
style: { "float": "right" },
|
|
13344
|
+
icon: "md-arrow-round-up",
|
|
13345
|
+
onClick: _ctx.doUploadUserSealImg,
|
|
13346
|
+
title: "上传印章图片"
|
|
13242
13347
|
}, null, 8, ["onClick"])
|
|
13243
13348
|
]),
|
|
13244
13349
|
_: 1
|
|
@@ -13264,10 +13369,19 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13264
13369
|
type: "primary",
|
|
13265
13370
|
size: "small",
|
|
13266
13371
|
ghost: "",
|
|
13267
|
-
style: { "float": "right" },
|
|
13372
|
+
style: { "float": "right", "margin-left": "3px" },
|
|
13268
13373
|
icon: "md-refresh",
|
|
13269
13374
|
onClick: _ctx.doLoadUserYZImg,
|
|
13270
13375
|
title: "加载圆章图片"
|
|
13376
|
+
}, null, 8, ["onClick"]),
|
|
13377
|
+
createVNode(_component_Button, {
|
|
13378
|
+
type: "primary",
|
|
13379
|
+
size: "small",
|
|
13380
|
+
ghost: "",
|
|
13381
|
+
style: { "float": "right" },
|
|
13382
|
+
icon: "md-arrow-round-up",
|
|
13383
|
+
onClick: _ctx.doUploadUserYZImg,
|
|
13384
|
+
title: "上传圆章图片"
|
|
13271
13385
|
}, null, 8, ["onClick"])
|
|
13272
13386
|
]),
|
|
13273
13387
|
_: 1
|
|
@@ -13377,7 +13491,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13377
13491
|
_: 1
|
|
13378
13492
|
});
|
|
13379
13493
|
}
|
|
13380
|
-
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
13494
|
+
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-bed8ccac"]]);
|
|
13381
13495
|
const propDefine$5 = {
|
|
13382
13496
|
linkParam: {
|
|
13383
13497
|
// 带入的参数
|