@newview/permission-service 1.2.22 → 1.2.23

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,10 +1,11 @@
1
- ### 版本 1.2.21
1
+ ### 版本 1.2.23
2
2
 
3
3
  1、地图定点功能修改优化
4
4
 
5
- ### 版本 1.2.18
5
+ ### 版本 1.2.21
6
6
 
7
- 1、增加地图定点功能
7
+ 1. 角色列表->模块权限 增加 web/app 区分
8
+ 2. 菜单模块->模块图标 app 采用 input 输入方式
8
9
 
9
10
  ### 版本 1.2.15
10
11
 
@@ -788,6 +788,14 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
788
788
  this.selectedPlatform = data;
789
789
  this.loadModuleGridData();
790
790
  });
791
+ /**
792
+ * 模块类型改变
793
+ * web/app
794
+ */
795
+ __publicField(this, "handleModuleTypeChange", () => {
796
+ this.setModuleFormItems();
797
+ this.loadModuleGridData();
798
+ });
791
799
  /**
792
800
  * 加载模块菜单
793
801
  */
@@ -1175,6 +1183,21 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
1175
1183
  this.props = props;
1176
1184
  this.ctx = ctx;
1177
1185
  }
1186
+ // 私有方法
1187
+ /**
1188
+ * 设置模块表单配置
1189
+ */
1190
+ setModuleFormItems() {
1191
+ if (this.webOrApp.value === 0) {
1192
+ if (this.moduleFormItems[0].children) {
1193
+ this.moduleFormItems[0].children[4].type = "IconSelect";
1194
+ }
1195
+ } else {
1196
+ if (this.moduleFormItems[0].children) {
1197
+ this.moduleFormItems[0].children[4].type = "Input";
1198
+ }
1199
+ }
1200
+ }
1178
1201
  // 私有方法 | private 方法名() {}
1179
1202
  /**
1180
1203
  * 设置编辑模块的PId,并更新相关的数据链
@@ -1408,8 +1431,8 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
1408
1431
  // 响应式方法 | xxx = () => {}
1409
1432
  //#endregion 业务逻辑 END
1410
1433
  };
1411
- const Module_vue_vue_type_style_index_0_scoped_5a5ef504_lang = "";
1412
- const _withScopeId$4 = (n) => (pushScopeId("data-v-5a5ef504"), n = n(), popScopeId(), n);
1434
+ const Module_vue_vue_type_style_index_0_scoped_e41c07fc_lang = "";
1435
+ const _withScopeId$4 = (n) => (pushScopeId("data-v-e41c07fc"), n = n(), popScopeId(), n);
1413
1436
  const _hoisted_1$h = { style: { "height": "650px", "overflow-y": "auto" } };
1414
1437
  const _hoisted_2$9 = {
1415
1438
  class: "import-module",
@@ -1456,7 +1479,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
1456
1479
  modelValue: _ctx.webOrApp,
1457
1480
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.webOrApp = $event),
1458
1481
  type: "button",
1459
- onOnChange: _ctx.loadModuleGridData
1482
+ onOnChange: _ctx.handleModuleTypeChange
1460
1483
  }, {
1461
1484
  default: withCtx(() => [
1462
1485
  createVNode(_component_Radio, { label: 0 }, {
@@ -1644,7 +1667,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
1644
1667
  _: 1
1645
1668
  });
1646
1669
  }
1647
- const Module = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-5a5ef504"]]);
1670
+ const Module = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-e41c07fc"]]);
1648
1671
  const propDefine$g = {
1649
1672
  linkParam: {
1650
1673
  // 带入的参数
@@ -7826,6 +7849,8 @@ class RoleInstance2 extends BaseInstance {
7826
7849
  __publicField(this, "platId", ref(0));
7827
7850
  __publicField(this, "platData", ref([]));
7828
7851
  __publicField(this, "spinPlatShow", ref(false));
7852
+ __publicField(this, "webOrApp", ref(0));
7853
+ // 0:WEB 1:APP
7829
7854
  // 私有方法 | private 方法名() {}
7830
7855
  // 响应式方法 | xxx = () => {}
7831
7856
  /**
@@ -8291,7 +8316,10 @@ class RoleInstance2 extends BaseInstance {
8291
8316
  */
8292
8317
  __publicField(this, "loadModuleGridData", (searchData) => {
8293
8318
  this.moduleGrid.value.loadData(async (option) => {
8294
- const queryWrapper = QueryWrapper.create().eq("PlatformId", this.platId.value).ne("ModuleStatus", 0).orderBy(["OrderNo"]);
8319
+ const queryWrapper = QueryWrapper.create().allEq({
8320
+ "PlatformId": this.platId.value,
8321
+ "WebOrApp": this.webOrApp.value
8322
+ }).ne("ModuleStatus", 0).orderBy(["OrderNo"]);
8295
8323
  if (!this.utilities.isNull(searchData.ModuleName)) {
8296
8324
  queryWrapper.like("ModuleName", searchData.ModuleName);
8297
8325
  }
@@ -8622,7 +8650,7 @@ class RoleInstance2 extends BaseInstance {
8622
8650
  }
8623
8651
  //#endregion 导入角色 END
8624
8652
  }
8625
- const Role_vue_vue_type_style_index_0_scoped_ffab91cb_lang = "";
8653
+ const Role_vue_vue_type_style_index_0_scoped_414834fa_lang = "";
8626
8654
  const _hoisted_1$7 = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
8627
8655
  const _hoisted_2$5 = {
8628
8656
  class: "import-role",
@@ -8637,6 +8665,8 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8637
8665
  const _component_NvControlGroup = resolveComponent("NvControlGroup");
8638
8666
  const _component_NvGrid = resolveComponent("NvGrid");
8639
8667
  const _component_NvBox = resolveComponent("NvBox");
8668
+ const _component_Radio = resolveComponent("Radio");
8669
+ const _component_RadioGroup = resolveComponent("RadioGroup");
8640
8670
  const _component_Button = resolveComponent("Button");
8641
8671
  const _component_Modal = resolveComponent("Modal");
8642
8672
  const _component_NvComForm = resolveComponent("NvComForm");
@@ -8701,7 +8731,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8701
8731
  }),
8702
8732
  createVNode(_component_Modal, {
8703
8733
  modelValue: _ctx.showRoleModule,
8704
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.showRoleModule = $event),
8734
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showRoleModule = $event),
8705
8735
  draggable: "",
8706
8736
  mask: true,
8707
8737
  "mask-closable": false,
@@ -8712,7 +8742,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8712
8742
  footer: withCtx(() => [
8713
8743
  createVNode(_component_Button, {
8714
8744
  type: "text",
8715
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.showRoleModule = false)
8745
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.showRoleModule = false)
8716
8746
  }, {
8717
8747
  default: withCtx(() => [
8718
8748
  createTextVNode("关闭")
@@ -8735,14 +8765,40 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8735
8765
  createVNode(_component_NvGrid, {
8736
8766
  ref: "moduleGrid",
8737
8767
  option: _ctx.moduleGridOption
8738
- }, null, 8, ["option"])
8768
+ }, {
8769
+ default: withCtx(() => [
8770
+ createVNode(_component_RadioGroup, {
8771
+ modelValue: _ctx.webOrApp,
8772
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.webOrApp = $event),
8773
+ type: "button",
8774
+ onOnChange: _ctx.loadModuleGridData
8775
+ }, {
8776
+ default: withCtx(() => [
8777
+ createVNode(_component_Radio, { label: 0 }, {
8778
+ default: withCtx(() => [
8779
+ createTextVNode("Web")
8780
+ ]),
8781
+ _: 1
8782
+ }),
8783
+ createVNode(_component_Radio, { label: 1 }, {
8784
+ default: withCtx(() => [
8785
+ createTextVNode("App")
8786
+ ]),
8787
+ _: 1
8788
+ })
8789
+ ]),
8790
+ _: 1
8791
+ }, 8, ["modelValue", "onOnChange"])
8792
+ ]),
8793
+ _: 1
8794
+ }, 8, ["option"])
8739
8795
  ])
8740
8796
  ]),
8741
8797
  _: 1
8742
8798
  }, 8, ["modelValue"]),
8743
8799
  createVNode(_component_Modal, {
8744
8800
  modelValue: _ctx.showImportRole,
8745
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.showImportRole = $event),
8801
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.showImportRole = $event),
8746
8802
  draggable: "",
8747
8803
  mask: true,
8748
8804
  "mask-closable": false,
@@ -8753,7 +8809,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8753
8809
  footer: withCtx(() => [
8754
8810
  createVNode(_component_Button, {
8755
8811
  type: "text",
8756
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.showImportRole = false)
8812
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.showImportRole = false)
8757
8813
  }, {
8758
8814
  default: withCtx(() => [
8759
8815
  createTextVNode("关闭")
@@ -8781,7 +8837,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8781
8837
  default: withCtx(() => [
8782
8838
  createVNode(_component_Select, {
8783
8839
  modelValue: _ctx.originPlatform.selectedId,
8784
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.originPlatform.selectedId = $event),
8840
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.originPlatform.selectedId = $event),
8785
8841
  onOnChange: _ctx.doChangeOriginPlatform,
8786
8842
  style: { "width": "250px" }
8787
8843
  }, {
@@ -8813,7 +8869,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8813
8869
  }, 8, ["modelValue"]),
8814
8870
  createVNode(_component_Modal, {
8815
8871
  modelValue: _ctx.showEditRole,
8816
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.showEditRole = $event),
8872
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.showEditRole = $event),
8817
8873
  draggable: "",
8818
8874
  mask: true,
8819
8875
  "mask-closable": false,
@@ -8824,7 +8880,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8824
8880
  footer: withCtx(() => [
8825
8881
  createVNode(_component_Button, {
8826
8882
  type: "text",
8827
- onClick: _cache[6] || (_cache[6] = ($event) => _ctx.showEditRole = false)
8883
+ onClick: _cache[7] || (_cache[7] = ($event) => _ctx.showEditRole = false)
8828
8884
  }, {
8829
8885
  default: withCtx(() => [
8830
8886
  createTextVNode("关闭")
@@ -8865,7 +8921,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
8865
8921
  _: 1
8866
8922
  });
8867
8923
  }
8868
- const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-ffab91cb"]]);
8924
+ const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-414834fa"]]);
8869
8925
  const propDefine$6 = {
8870
8926
  linkParam: {
8871
8927
  // 带入的参数