@newview/permission-service 1.2.35 → 1.2.37
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/dist/permission-service.js +74 -34
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock,
|
|
|
9
9
|
import { PlatformApi, PlatformGroupApi, ModuleApi, RoleApi, RoleModuleApi, InstitutionRoleApi, InstitutionTypeApi, InstitutioninforApi, InstitutionPlatformApi, InstitutionTreeApi, EnterpriseApi, LoginLogApi, UserinforApi, InstitutionUserApi, UserRoleApi, OAuthApi, UserSignApi, InstitutionLinePointApi, InstitutionPointApi, ProjectSummaryApi, DataBoardModuleApi, DataInistitutionRelationApi, DataInstitutionBoardRelationApi } from "@newview/permission-api";
|
|
10
10
|
import { BaseApi, QueryWrapper, request } from "@newview/infrastructure";
|
|
11
11
|
import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
|
|
12
|
-
import { SelectPlatform, BaseLogin, PersonSel } from "@newview/permission-ui";
|
|
12
|
+
import { SelectPlatform, BaseLogin, PersonSel, getUserSealImg } from "@newview/permission-ui";
|
|
13
13
|
import { SignTaskInfoApi } from "@newview/casign-api";
|
|
14
14
|
import { NvComFormUp } from "@newview/file-ui";
|
|
15
15
|
import { ProvinceApi, CityApi, AreaApi, DictionaryDetailApi, DictionaryTypeApi } from "@newview/basics-api";
|
|
@@ -12297,14 +12297,29 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
12297
12297
|
this.message.warning("请输入印章KEY");
|
|
12298
12298
|
return;
|
|
12299
12299
|
}
|
|
12300
|
-
const
|
|
12301
|
-
const result = this.utilities.parseApiResult(apiResult);
|
|
12300
|
+
const result = await getUserSealImg(this.userSignFormModel.CAUserSealKey);
|
|
12302
12301
|
if (result) {
|
|
12303
|
-
this.userSignFormModel.CAUserSealImg =
|
|
12302
|
+
this.userSignFormModel.CAUserSealImg = result;
|
|
12304
12303
|
} else {
|
|
12305
12304
|
this.message.error("读取失败,请稍后重试");
|
|
12306
12305
|
}
|
|
12307
12306
|
});
|
|
12307
|
+
/**
|
|
12308
|
+
* 删除用户印章图片
|
|
12309
|
+
*/
|
|
12310
|
+
__publicField(this, "delUserSealImg", async () => {
|
|
12311
|
+
this.modal.confirm({
|
|
12312
|
+
title: "提示",
|
|
12313
|
+
content: "确定要清除该印章图片吗?",
|
|
12314
|
+
onOk: async () => {
|
|
12315
|
+
const apiResult = await this.userSignApi.save({ Id: this.userSignFormModel.Id, CAUserSealImg: "" });
|
|
12316
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
12317
|
+
if (result) {
|
|
12318
|
+
this.userSignFormModel.CAUserSealImg = "";
|
|
12319
|
+
}
|
|
12320
|
+
}
|
|
12321
|
+
});
|
|
12322
|
+
});
|
|
12308
12323
|
/**
|
|
12309
12324
|
* 加载圆章KEY
|
|
12310
12325
|
*/
|
|
@@ -12317,18 +12332,29 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
12317
12332
|
this.message.warning("请输入圆章KEY");
|
|
12318
12333
|
return;
|
|
12319
12334
|
}
|
|
12320
|
-
const
|
|
12321
|
-
const result = this.utilities.parseApiResult(apiResult);
|
|
12335
|
+
const result = await getUserSealImg(this.userSignFormModel.CAUserYZKey);
|
|
12322
12336
|
if (result) {
|
|
12323
|
-
|
|
12324
|
-
this.userSignFormModel.CAUserYZImg = "data:image/png;base64," + result.data.sealPic;
|
|
12325
|
-
} else {
|
|
12326
|
-
this.message.error(result.head.msg);
|
|
12327
|
-
}
|
|
12337
|
+
this.userSignFormModel.CAUserYZImg = result;
|
|
12328
12338
|
} else {
|
|
12329
12339
|
this.message.error("读取失败,请稍后重试");
|
|
12330
12340
|
}
|
|
12331
12341
|
});
|
|
12342
|
+
/**
|
|
12343
|
+
* 删除用户圆章图片
|
|
12344
|
+
*/
|
|
12345
|
+
__publicField(this, "delUserYZImg", async () => {
|
|
12346
|
+
this.modal.confirm({
|
|
12347
|
+
title: "提示",
|
|
12348
|
+
content: "确定要清除该圆章图片吗?",
|
|
12349
|
+
onOk: async () => {
|
|
12350
|
+
const apiResult = await this.userSignApi.save({ Id: this.userSignFormModel.Id, CAUserYZImg: "" });
|
|
12351
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
12352
|
+
if (result) {
|
|
12353
|
+
this.userSignFormModel.CAUserYZImg = "";
|
|
12354
|
+
}
|
|
12355
|
+
}
|
|
12356
|
+
});
|
|
12357
|
+
});
|
|
12332
12358
|
// 响应式方法 | xxx = () => {}
|
|
12333
12359
|
//#endregion 重置密码 END
|
|
12334
12360
|
__publicField(this, "importCAModal", ref(false));
|
|
@@ -12419,7 +12445,6 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
12419
12445
|
* 选择签字信息
|
|
12420
12446
|
*/
|
|
12421
12447
|
__publicField(this, "doSelUserSeal", async () => {
|
|
12422
|
-
console.log(this.selUserSealId.value);
|
|
12423
12448
|
let sealInfo = this.userSealAllData.find((e) => e["Id"] == this.selUserSealId.value);
|
|
12424
12449
|
if (sealInfo.CertType == 3) {
|
|
12425
12450
|
this.userSignFormModel.CAUserSealKey = sealInfo.SKey;
|
|
@@ -12748,8 +12773,8 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
12748
12773
|
};
|
|
12749
12774
|
}
|
|
12750
12775
|
}
|
|
12751
|
-
const
|
|
12752
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
12776
|
+
const Userinfor_vue_vue_type_style_index_0_scoped_38293ad4_lang = "";
|
|
12777
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-38293ad4"), n = n(), popScopeId(), n);
|
|
12753
12778
|
const _hoisted_1$5 = { class: "instree-search" };
|
|
12754
12779
|
const _hoisted_2$3 = { class: "instree-list" };
|
|
12755
12780
|
const _hoisted_3$3 = { style: { "height": "750px", "overflow-y": "auto" } };
|
|
@@ -12763,7 +12788,7 @@ const _hoisted_7$3 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
|
12763
12788
|
const _hoisted_8$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
|
|
12764
12789
|
const _hoisted_9$2 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
12765
12790
|
const _hoisted_10$1 = { style: { "display": "none" } };
|
|
12766
|
-
const _hoisted_11$1 = { style: { "height": "400px"
|
|
12791
|
+
const _hoisted_11$1 = { style: { "height": "400px" } };
|
|
12767
12792
|
const _hoisted_12 = ["src"];
|
|
12768
12793
|
const _hoisted_13 = ["src"];
|
|
12769
12794
|
const _hoisted_14 = { style: { "height": "260px" } };
|
|
@@ -12794,8 +12819,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12794
12819
|
const _component_BaseLogin = resolveComponent("BaseLogin");
|
|
12795
12820
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
12796
12821
|
const _component_FormItem = resolveComponent("FormItem");
|
|
12797
|
-
const _component_NvExcelImport = resolveComponent("NvExcelImport");
|
|
12798
12822
|
const _component_nvModal = resolveComponent("nvModal");
|
|
12823
|
+
const _component_NvExcelImport = resolveComponent("NvExcelImport");
|
|
12799
12824
|
const _component_Input = resolveComponent("Input");
|
|
12800
12825
|
const _component_Radio = resolveComponent("Radio");
|
|
12801
12826
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
@@ -13083,15 +13108,14 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13083
13108
|
autoLogin: false
|
|
13084
13109
|
}, null, 512)
|
|
13085
13110
|
]),
|
|
13086
|
-
createVNode(
|
|
13111
|
+
createVNode(_component_nvModal, {
|
|
13087
13112
|
modelValue: _ctx.showEditUserSign,
|
|
13088
13113
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.showEditUserSign = $event),
|
|
13089
13114
|
draggable: "",
|
|
13090
13115
|
mask: true,
|
|
13091
13116
|
"mask-closable": false,
|
|
13092
13117
|
width: 400,
|
|
13093
|
-
title: _ctx.activeUserSealRow.UserName + "签字信息"
|
|
13094
|
-
styles: { top: "3%" }
|
|
13118
|
+
title: _ctx.activeUserSealRow.UserName + "签字信息"
|
|
13095
13119
|
}, {
|
|
13096
13120
|
footer: withCtx(() => [
|
|
13097
13121
|
createVNode(_component_Button, {
|
|
@@ -13135,16 +13159,24 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13135
13159
|
alt: "",
|
|
13136
13160
|
style: { "width": "120px", "height": "35px" }
|
|
13137
13161
|
}, null, 8, _hoisted_12)) : createCommentVNode("", true),
|
|
13162
|
+
createVNode(_component_Button, {
|
|
13163
|
+
type: "error",
|
|
13164
|
+
size: "small",
|
|
13165
|
+
ghost: "",
|
|
13166
|
+
style: { "float": "right", "margin-left": "3px" },
|
|
13167
|
+
icon: "md-trash",
|
|
13168
|
+
onClick: _ctx.delUserSealImg,
|
|
13169
|
+
title: "清除印章图片"
|
|
13170
|
+
}, null, 8, ["onClick"]),
|
|
13138
13171
|
createVNode(_component_Button, {
|
|
13139
13172
|
type: "primary",
|
|
13173
|
+
size: "small",
|
|
13174
|
+
ghost: "",
|
|
13140
13175
|
style: { "float": "right" },
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
]),
|
|
13146
|
-
_: 1
|
|
13147
|
-
}, 8, ["onClick"])
|
|
13176
|
+
icon: "md-refresh",
|
|
13177
|
+
onClick: _ctx.doLoadUserSealImg,
|
|
13178
|
+
title: "加载印章图片"
|
|
13179
|
+
}, null, 8, ["onClick"])
|
|
13148
13180
|
]),
|
|
13149
13181
|
_: 1
|
|
13150
13182
|
}),
|
|
@@ -13156,16 +13188,24 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13156
13188
|
alt: "",
|
|
13157
13189
|
style: { "width": "120px", "height": "120px", "margin-left": "16px" }
|
|
13158
13190
|
}, null, 8, _hoisted_13)) : createCommentVNode("", true),
|
|
13191
|
+
createVNode(_component_Button, {
|
|
13192
|
+
type: "error",
|
|
13193
|
+
size: "small",
|
|
13194
|
+
ghost: "",
|
|
13195
|
+
style: { "float": "right", "margin-left": "3px" },
|
|
13196
|
+
icon: "md-trash",
|
|
13197
|
+
onClick: _ctx.delUserYZImg,
|
|
13198
|
+
title: "清除圆章图片"
|
|
13199
|
+
}, null, 8, ["onClick"]),
|
|
13159
13200
|
createVNode(_component_Button, {
|
|
13160
13201
|
type: "primary",
|
|
13202
|
+
size: "small",
|
|
13203
|
+
ghost: "",
|
|
13161
13204
|
style: { "float": "right" },
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
]),
|
|
13167
|
-
_: 1
|
|
13168
|
-
}, 8, ["onClick"])
|
|
13205
|
+
icon: "md-refresh",
|
|
13206
|
+
onClick: _ctx.doLoadUserYZImg,
|
|
13207
|
+
title: "加载圆章图片"
|
|
13208
|
+
}, null, 8, ["onClick"])
|
|
13169
13209
|
]),
|
|
13170
13210
|
_: 1
|
|
13171
13211
|
})
|
|
@@ -13274,7 +13314,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13274
13314
|
_: 1
|
|
13275
13315
|
});
|
|
13276
13316
|
}
|
|
13277
|
-
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
13317
|
+
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-38293ad4"]]);
|
|
13278
13318
|
const propDefine$5 = {
|
|
13279
13319
|
linkParam: {
|
|
13280
13320
|
// 带入的参数
|