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