@newview/permission-service 1.2.25 → 1.2.26

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,3 +1,7 @@
1
+ ### 版本 1.2.26
2
+
3
+ 1、功能缺陷修改
4
+
1
5
  ### 版本 1.2.25
2
6
 
3
7
  1、项目概况修改
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { BaseInstance } from "@newview/base-vue";
8
- import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, nextTick, toDisplayString, createElementBlock, Fragment, renderList, withDirectives, vShow, pushScopeId, popScopeId, onUnmounted, createCommentVNode, withModifiers } from "vue";
8
+ import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, nextTick, toDisplayString, createElementBlock, Fragment, renderList, withDirectives, vShow, pushScopeId, popScopeId, onUnmounted, createCommentVNode, computed, withModifiers } from "vue";
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 { QueryWrapper, BaseApi } from "@newview/infrastructure";
11
11
  import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
@@ -8650,7 +8650,7 @@ class RoleInstance2 extends BaseInstance {
8650
8650
  }
8651
8651
  //#endregion 导入角色 END
8652
8652
  }
8653
- const Role_vue_vue_type_style_index_0_scoped_414834fa_lang = "";
8653
+ const Role_vue_vue_type_style_index_0_scoped_bbf1cb02_lang = "";
8654
8654
  const _hoisted_1$9 = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
8655
8655
  const _hoisted_2$5 = {
8656
8656
  class: "import-role",
@@ -8844,7 +8844,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8844
8844
  default: withCtx(() => [
8845
8845
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.originPlatform.list, (item, index2) => {
8846
8846
  return openBlock(), createBlock(_component_Option, {
8847
- key: _ctx.originPlatform.selectedId + "" + index2,
8847
+ key: index2,
8848
8848
  value: item.Id
8849
8849
  }, {
8850
8850
  default: withCtx(() => [
@@ -8921,7 +8921,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8921
8921
  _: 1
8922
8922
  });
8923
8923
  }
8924
- const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-414834fa"]]);
8924
+ const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-bbf1cb02"]]);
8925
8925
  const propDefine$9 = {
8926
8926
  linkParam: {
8927
8927
  // 带入的参数
@@ -10439,7 +10439,7 @@ class InstitutionInstance2 extends BaseInstance {
10439
10439
  }
10440
10440
  //#endregion 绑定角色 END
10441
10441
  }
10442
- const Institution_vue_vue_type_style_index_0_scoped_ed65a91d_lang = "";
10442
+ const Institution_vue_vue_type_style_index_0_scoped_ba4186ba_lang = "";
10443
10443
  const _hoisted_1$7 = { style: { "width": "100%", "height": "100%", "position": "relative" } };
10444
10444
  const _hoisted_2$4 = { style: { "height": "500px", "overflow-y": "auto" } };
10445
10445
  const _hoisted_3$4 = {
@@ -10680,7 +10680,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
10680
10680
  default: withCtx(() => [
10681
10681
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.originPlatform.list, (item, index2) => {
10682
10682
  return openBlock(), createBlock(_component_Option, {
10683
- key: _ctx.originPlatform.selectedId + "" + index2,
10683
+ key: index2,
10684
10684
  value: item.Id
10685
10685
  }, {
10686
10686
  default: withCtx(() => [
@@ -10752,7 +10752,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
10752
10752
  _: 1
10753
10753
  });
10754
10754
  }
10755
- const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-ed65a91d"]]);
10755
+ const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-ba4186ba"]]);
10756
10756
  const propDefine$7 = {};
10757
10757
  const _sfc_main$7 = defineComponent({
10758
10758
  name: "LoginLog",
@@ -11193,6 +11193,9 @@ class UserinforInstance2 extends BaseInstance {
11193
11193
  __publicField(this, "doChangeUserBoxWidth", (isExpand) => {
11194
11194
  this.userBoxWidth.value = isExpand ? "calc(100% - 300px)" : "calc(100% - 45px)";
11195
11195
  });
11196
+ __publicField(this, "expiredDateDisabled", computed(() => {
11197
+ return this.userFormModel.Id == 0;
11198
+ }));
11196
11199
  //#endregion 用户列表 END
11197
11200
  //#region 编辑用户
11198
11201
  // 响应属性 | ref、reactive、computed、watch
@@ -11219,6 +11222,7 @@ class UserinforInstance2 extends BaseInstance {
11219
11222
  LastUpdateUserName: "",
11220
11223
  LastUpdateDate: ""
11221
11224
  }));
11225
+ __publicField(this, "isDe", false);
11222
11226
  __publicField(this, "userFormItems", reactive([
11223
11227
  {
11224
11228
  model: "",
@@ -11263,7 +11267,14 @@ class UserinforInstance2 extends BaseInstance {
11263
11267
  transfer: true
11264
11268
  }
11265
11269
  },
11266
- { model: "ExpiredDate", label: "密码过期时间", type: "DatePicker" },
11270
+ {
11271
+ model: "ExpiredDate",
11272
+ label: "密码过期时间",
11273
+ type: "DatePicker",
11274
+ datePickerProp: {
11275
+ disabled: true
11276
+ }
11277
+ },
11267
11278
  {
11268
11279
  model: "PwdAuthentication",
11269
11280
  label: "密码强认证",
@@ -11759,6 +11770,13 @@ class UserinforInstance2 extends BaseInstance {
11759
11770
  option.success(datas);
11760
11771
  });
11761
11772
  }
11773
+ // dateDis = computed(() => {
11774
+ // return this.userFormModel.Id == 0
11775
+ // });
11776
+ dateDis() {
11777
+ debugger;
11778
+ return this.userFormModel.Id == 0;
11779
+ }
11762
11780
  // 私有方法 | private 方法名() {}
11763
11781
  /**
11764
11782
  * 编辑用户信息
@@ -11964,8 +11982,8 @@ class UserinforInstance2 extends BaseInstance {
11964
11982
  // 响应式方法 | xxx = () => {}
11965
11983
  //#endregion 重置密码 END
11966
11984
  }
11967
- const Userinfor_vue_vue_type_style_index_0_scoped_d910e362_lang = "";
11968
- const _withScopeId$2 = (n) => (pushScopeId("data-v-d910e362"), n = n(), popScopeId(), n);
11985
+ const Userinfor_vue_vue_type_style_index_0_scoped_6a60ce29_lang = "";
11986
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-6a60ce29"), n = n(), popScopeId(), n);
11969
11987
  const _hoisted_1$5 = { class: "instree-search" };
11970
11988
  const _hoisted_2$3 = { class: "instree-list" };
11971
11989
  const _hoisted_3$3 = { style: { "height": "600px", "overflow-y": "auto" } };
@@ -12086,7 +12104,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12086
12104
  }, 8, ["onChange"]),
12087
12105
  createVNode(_component_NvBox, {
12088
12106
  width: _ctx.userBoxWidth,
12089
- title: "用户列表1"
12107
+ title: "用户列表"
12090
12108
  }, {
12091
12109
  default: withCtx(() => [
12092
12110
  createVNode(_component_NvGrid, {
@@ -12136,11 +12154,12 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12136
12154
  rules: _ctx.userFormRule
12137
12155
  }, {
12138
12156
  default: withCtx(() => [
12139
- createVNode(_component_NvComForm, {
12157
+ _ctx.showEditUser ? (openBlock(), createBlock(_component_NvComForm, {
12158
+ key: 0,
12140
12159
  ref: "userComForm",
12141
12160
  formModel: _ctx.userFormModel,
12142
12161
  formItems: _ctx.userFormItems
12143
- }, null, 8, ["formModel", "formItems"])
12162
+ }, null, 8, ["formModel", "formItems"])) : createCommentVNode("", true)
12144
12163
  ]),
12145
12164
  _: 1
12146
12165
  }, 8, ["model", "rules"]),
@@ -12377,7 +12396,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12377
12396
  _: 1
12378
12397
  });
12379
12398
  }
12380
- const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-d910e362"]]);
12399
+ const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-6a60ce29"]]);
12381
12400
  const propDefine$5 = {
12382
12401
  linkParam: {
12383
12402
  // 带入的参数
@@ -26186,7 +26205,7 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
26186
26205
  }
26187
26206
  }
26188
26207
  if (this.polyline.getLatLngs().length > 0) {
26189
- const params = this.polyline.getLatLngs().map((item) => {
26208
+ const params = this.polyline.getLatLngs().map((item, index2) => {
26190
26209
  return {
26191
26210
  Id: 0,
26192
26211
  Longitude: item.lng,
@@ -26196,7 +26215,8 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
26196
26215
  InsTreeId: this.selectedInsTree.Id,
26197
26216
  InsName: this.selectedInsTree.InstitutionAbbreviation,
26198
26217
  InstitutionId: this.selectedInsTree.InstitutionId,
26199
- Altitude: 0
26218
+ Altitude: 0,
26219
+ OrderNo: index2 + 1
26200
26220
  };
26201
26221
  });
26202
26222
  const res = this.utilities.parseApiResult(await this.institutionLinePointApi.saves(params));
@@ -26379,15 +26399,6 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
26379
26399
  titleField: "name"
26380
26400
  }));
26381
26401
  // 私有方法 | private 方法名() {}
26382
- // private async loadPintData() {
26383
- // this.groupData.value!.loadData(async (option) => {
26384
- // let res = this.utilities.parseApiResult(await this.institutionPointApi.getEntities())
26385
- // res.list = res.list.map((item) => {
26386
- // return { ...item, Id: item.indexCode }
26387
- // })
26388
- // option.success(res.list)
26389
- // })
26390
- // }
26391
26402
  // 响应式方法 | xxx = () => {}
26392
26403
  //#endregion 右侧点list END
26393
26404
  //#region 导入数据
@@ -26408,7 +26419,7 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
26408
26419
  this.isImporting.value = true;
26409
26420
  console.log(datas, "表格导入数据");
26410
26421
  this.refExcelImport.value.messageInfo(`***数据导入开始***'`);
26411
- datas = datas.map((item) => {
26422
+ datas = datas.map((item, index2) => {
26412
26423
  return {
26413
26424
  Id: 0,
26414
26425
  Longitude: item["经度"],
@@ -26418,7 +26429,8 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
26418
26429
  InsTreeId: this.selectedInsTree.Id,
26419
26430
  InsName: this.selectedInsTree.InstitutionAbbreviation,
26420
26431
  InstitutionId: this.selectedInsTree.InstitutionId,
26421
- Altitude: 0
26432
+ Altitude: 0,
26433
+ OrderNo: index2 + 1
26422
26434
  };
26423
26435
  });
26424
26436
  this.utilities.parseApiResult(await this.institutionLinePointApi.saves(datas));
@@ -27051,6 +27063,7 @@ class ProjectSummaryInstance extends BaseInstance {
27051
27063
  this.areaIndex.value = i;
27052
27064
  }
27053
27065
  });
27066
+ console.log("xxxxxxxxxxxxx", this.mainFormItems);
27054
27067
  this.getForm(this.mainFormItems);
27055
27068
  } else {
27056
27069
  this.isShowForm.value = false;
@@ -27099,6 +27112,9 @@ class ProjectSummaryInstance extends BaseInstance {
27099
27112
  console.log("表单数据xxxx", res);
27100
27113
  Object.assign(this.nowData, res[0]);
27101
27114
  let formData = JSON.parse(res[0].ConfigData);
27115
+ for (let [key, value] of Object.entries(formData)) {
27116
+ formData[key] = formData.toString();
27117
+ }
27102
27118
  console.log("xxxxxxxxxx解析json", formData);
27103
27119
  Object.assign(formData, {
27104
27120
  Province: res[0].Province ? res[0].Province : "",
@@ -27146,6 +27162,7 @@ class ProjectSummaryInstance extends BaseInstance {
27146
27162
  */
27147
27163
  setProvinceDatas() {
27148
27164
  if (!this.utilities.isNull(this.provinceIndex.value)) {
27165
+ debugger;
27149
27166
  this.mainFormItems[this.provinceIndex.value].selectProp.datas = this.provinces.map((item) => {
27150
27167
  return { text: item.ProvinceName, value: item.ProvinceCode };
27151
27168
  });
@@ -28330,8 +28347,8 @@ class ProjectUserinforInstance2 extends BaseInstance {
28330
28347
  }
28331
28348
  }
28332
28349
  }
28333
- const ProjectUserinfor_vue_vue_type_style_index_0_scoped_86385f96_lang = "";
28334
- const _withScopeId = (n) => (pushScopeId("data-v-86385f96"), n = n(), popScopeId(), n);
28350
+ const ProjectUserinfor_vue_vue_type_style_index_0_scoped_d1697a07_lang = "";
28351
+ const _withScopeId = (n) => (pushScopeId("data-v-d1697a07"), n = n(), popScopeId(), n);
28335
28352
  const _hoisted_1$1 = { class: "instree-search" };
28336
28353
  const _hoisted_2 = { class: "instree-list" };
28337
28354
  const _hoisted_3 = { style: { "height": "600px", "overflow-y": "auto" } };
@@ -28450,7 +28467,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
28450
28467
  }, 8, ["onChange"]),
28451
28468
  createVNode(_component_NvBox, {
28452
28469
  width: _ctx.userBoxWidth,
28453
- title: "用户列表"
28470
+ title: "用户列表111"
28454
28471
  }, {
28455
28472
  default: withCtx(() => [
28456
28473
  createVNode(_component_NvGrid, {
@@ -28695,7 +28712,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
28695
28712
  _: 1
28696
28713
  });
28697
28714
  }
28698
- const projectUser = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-86385f96"]]);
28715
+ const projectUser = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-d1697a07"]]);
28699
28716
  const propDefine$1 = {
28700
28717
  linkParam: {
28701
28718
  // 带入的参数