@newview/permission-service 1.2.6 → 1.2.8
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 +8 -3
- package/dist/permission-service.js +44 -19
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3752,7 +3752,7 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
3752
3752
|
isHover: true
|
|
3753
3753
|
},
|
|
3754
3754
|
isPagination: true,
|
|
3755
|
-
pageSize:
|
|
3755
|
+
pageSize: 15
|
|
3756
3756
|
},
|
|
3757
3757
|
searchOptions: [
|
|
3758
3758
|
{
|
|
@@ -4050,7 +4050,8 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
4050
4050
|
},
|
|
4051
4051
|
treeConfig: {
|
|
4052
4052
|
expandAll: true
|
|
4053
|
-
}
|
|
4053
|
+
},
|
|
4054
|
+
pageSize: 15
|
|
4054
4055
|
},
|
|
4055
4056
|
searchOptions: [
|
|
4056
4057
|
{
|
|
@@ -4502,7 +4503,7 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
4502
4503
|
}
|
|
4503
4504
|
//#endregion 导入角色 END
|
|
4504
4505
|
};
|
|
4505
|
-
const
|
|
4506
|
+
const Role_vue_vue_type_style_index_0_scoped_df8b5532_lang = "";
|
|
4506
4507
|
const _hoisted_1$h = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
|
|
4507
4508
|
const _hoisted_2$8 = {
|
|
4508
4509
|
class: "import-role",
|
|
@@ -4529,7 +4530,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4529
4530
|
default: withCtx(() => [
|
|
4530
4531
|
createVNode(_component_NvBox, {
|
|
4531
4532
|
width: "100%",
|
|
4532
|
-
title: "角色列表"
|
|
4533
|
+
title: "角色列表2"
|
|
4533
4534
|
}, {
|
|
4534
4535
|
default: withCtx(() => [
|
|
4535
4536
|
createVNode(_component_NvGrid, {
|
|
@@ -4710,7 +4711,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4710
4711
|
_: 1
|
|
4711
4712
|
});
|
|
4712
4713
|
}
|
|
4713
|
-
const Role = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
4714
|
+
const Role = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-df8b5532"]]);
|
|
4714
4715
|
const propDefine$h = {
|
|
4715
4716
|
linkParam: {
|
|
4716
4717
|
// 带入的参数
|
|
@@ -24233,7 +24234,8 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24233
24234
|
{ value: "TextEditor", text: "富文本" },
|
|
24234
24235
|
{ value: "DatePicker", text: "日期选择" },
|
|
24235
24236
|
{ value: "TimePicker", text: "时间选择" },
|
|
24236
|
-
{ value: "UploadFile", text: "附件" }
|
|
24237
|
+
{ value: "UploadFile", text: "附件" },
|
|
24238
|
+
{ value: "region", text: "地区选择" }
|
|
24237
24239
|
]
|
|
24238
24240
|
},
|
|
24239
24241
|
change: (row) => {
|
|
@@ -24273,6 +24275,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24273
24275
|
row.type = "TextEditor";
|
|
24274
24276
|
row.textHeight = 160;
|
|
24275
24277
|
break;
|
|
24278
|
+
case "region":
|
|
24279
|
+
row.type = "region";
|
|
24280
|
+
break;
|
|
24276
24281
|
}
|
|
24277
24282
|
}
|
|
24278
24283
|
},
|
|
@@ -24603,6 +24608,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24603
24608
|
if (res && res.length > 0) {
|
|
24604
24609
|
Object.assign(this.nowRow, res[0]);
|
|
24605
24610
|
let data = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(res[0].ProjectConfig)) : this.utilities.deepCopy(JSON.parse(res[0].ConstructConfig));
|
|
24611
|
+
if (data && data.length > 0) {
|
|
24612
|
+
data = data.sort((a, b) => a.orderNum - b.orderNum);
|
|
24613
|
+
}
|
|
24606
24614
|
this.loadMainData(data);
|
|
24607
24615
|
}
|
|
24608
24616
|
}
|
|
@@ -24989,6 +24997,7 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
24989
24997
|
* @param data
|
|
24990
24998
|
*/
|
|
24991
24999
|
doEditPlatform(data) {
|
|
25000
|
+
var _a;
|
|
24992
25001
|
const user = this.storageInfo.getUser();
|
|
24993
25002
|
this.platformFormModel.Id = data.Id;
|
|
24994
25003
|
this.platformFormModel.SKey = data.SKey;
|
|
@@ -25003,6 +25012,14 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
25003
25012
|
this.platformFormModel.LastUpdateUserId = user.Id;
|
|
25004
25013
|
this.platformFormModel.LastUpdateUserName = user.UserName;
|
|
25005
25014
|
this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
|
|
25015
|
+
this.platformFormModel.PId = data.PId;
|
|
25016
|
+
const tableData = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
|
|
25017
|
+
this.platformFormItems[4].selectProp.datas = tableData.length > 0 ? tableData == null ? void 0 : tableData.map((item) => {
|
|
25018
|
+
return {
|
|
25019
|
+
value: item.Id,
|
|
25020
|
+
text: item.PlatformAbbreviation
|
|
25021
|
+
};
|
|
25022
|
+
}) : [];
|
|
25006
25023
|
this.editPlatformModalTitle.value = `编辑 - ${data.PlatformName}`;
|
|
25007
25024
|
this.showEditPlatform.value = true;
|
|
25008
25025
|
}
|
|
@@ -25030,14 +25047,14 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
25030
25047
|
this.platformFormItems[4].selectProp.datas = data.length > 0 ? data == null ? void 0 : data.map((item) => {
|
|
25031
25048
|
return {
|
|
25032
25049
|
value: item.Id,
|
|
25033
|
-
text: item.
|
|
25050
|
+
text: item.PlatformAbbreviation
|
|
25034
25051
|
};
|
|
25035
25052
|
}) : [];
|
|
25036
25053
|
this.showEditPlatform.value = true;
|
|
25037
25054
|
}
|
|
25038
25055
|
//#endregion 系统平台编辑 END
|
|
25039
25056
|
}
|
|
25040
|
-
const
|
|
25057
|
+
const Platform_vue_vue_type_style_index_0_scoped_30a3712d_lang = "";
|
|
25041
25058
|
const _hoisted_1$6 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
25042
25059
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25043
25060
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
@@ -25142,7 +25159,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25142
25159
|
_: 1
|
|
25143
25160
|
});
|
|
25144
25161
|
}
|
|
25145
|
-
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
25162
|
+
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-30a3712d"]]);
|
|
25146
25163
|
const propDefine$5 = {
|
|
25147
25164
|
linkParam: {
|
|
25148
25165
|
// 带入的参数
|
|
@@ -25778,7 +25795,6 @@ class RoleInstance2 extends BaseInstance {
|
|
|
25778
25795
|
*/
|
|
25779
25796
|
__publicField(this, "doChangeOriginPlatform", () => {
|
|
25780
25797
|
const values = this.originPlatform.list.filter((item) => item.Id == this.originPlatform.selectedId);
|
|
25781
|
-
debugger;
|
|
25782
25798
|
if (values.length > 0) {
|
|
25783
25799
|
this.originPlatform.selectedItem = values[0];
|
|
25784
25800
|
} else {
|
|
@@ -26273,9 +26289,7 @@ class EnterpriseInstance2 extends BaseInstance {
|
|
|
26273
26289
|
var _a;
|
|
26274
26290
|
this.spinPlatShow.value = true;
|
|
26275
26291
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
26276
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).
|
|
26277
|
-
PId: platId
|
|
26278
|
-
})).orderBy(["OrderNo"]));
|
|
26292
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).orderBy(["OrderNo"]));
|
|
26279
26293
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
26280
26294
|
this.spinPlatShow.value = false;
|
|
26281
26295
|
if (this.platData.value.length > 0)
|
|
@@ -26821,6 +26835,7 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
26821
26835
|
// 私有属性 | private
|
|
26822
26836
|
// 响应属性 | ref、reactive、computed、watch
|
|
26823
26837
|
__publicField(this, "platId", ref(0));
|
|
26838
|
+
__publicField(this, "selectPlat", ref({}));
|
|
26824
26839
|
__publicField(this, "platData", ref([]));
|
|
26825
26840
|
__publicField(this, "spinPlatShow", ref(false));
|
|
26826
26841
|
// 私有方法 | private 方法名() {}
|
|
@@ -26837,11 +26852,12 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
26837
26852
|
})).orderBy(["OrderNo"]));
|
|
26838
26853
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
26839
26854
|
this.spinPlatShow.value = false;
|
|
26840
|
-
if (this.platData.value.length > 0)
|
|
26855
|
+
if (this.platData.value.length > 0) {
|
|
26841
26856
|
this.platId.value = this.platData.value[0].Id;
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26857
|
+
nextTick(() => {
|
|
26858
|
+
this.doPlatformListSelect(this.platId.value);
|
|
26859
|
+
});
|
|
26860
|
+
}
|
|
26845
26861
|
});
|
|
26846
26862
|
//#endregion 系统平台 END
|
|
26847
26863
|
//#region 机构类别
|
|
@@ -27000,7 +27016,9 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
27000
27016
|
* 系统平台List选中事件
|
|
27001
27017
|
* @param data
|
|
27002
27018
|
*/
|
|
27003
|
-
__publicField(this, "doPlatformListSelect", async () => {
|
|
27019
|
+
__publicField(this, "doPlatformListSelect", async (data) => {
|
|
27020
|
+
const res = this.platData.value.find((item) => item.Id == data);
|
|
27021
|
+
this.selectPlat.value = res;
|
|
27004
27022
|
await this.loadEnterprises();
|
|
27005
27023
|
this.loadInstitutionGridData(this.platId.value, "", "", "");
|
|
27006
27024
|
this.loadInstitutionTree();
|
|
@@ -27521,7 +27539,14 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
27521
27539
|
*/
|
|
27522
27540
|
setEnterpriseDatas() {
|
|
27523
27541
|
const datas = [];
|
|
27524
|
-
|
|
27542
|
+
let plat = [];
|
|
27543
|
+
if (this.selectPlat.PId !== 0) {
|
|
27544
|
+
plat = this.platData.value.filter((item) => item.Id == this.selectPlat.value.PId || this.selectPlat.value.Id == item.Id);
|
|
27545
|
+
} else {
|
|
27546
|
+
plat = this.platData.value.filter((item) => item.Id == this.selectPlat.value.Id);
|
|
27547
|
+
}
|
|
27548
|
+
const res = this.enterprises.filter((itemA) => plat.some((itemB) => itemB.Id == itemA.PlatformId));
|
|
27549
|
+
for (const item of res) {
|
|
27525
27550
|
datas.push({ text: item.EnterpriseName, value: item.Id });
|
|
27526
27551
|
}
|
|
27527
27552
|
this.institutionFormItems[3].selectProp.datas = datas;
|