@newview/permission-service 1.2.29 → 1.2.31

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,5 @@
1
+ ### 版本 1.2.30
2
+ 1、平台增加配置字段
1
3
  ### 版本 1.2.29
2
4
 
3
5
  1、修改导出路径
@@ -7,13 +7,42 @@ var __publicField = (obj, key, value) => {
7
7
  import { BaseInstance } from "@newview/base-vue";
8
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
- import { QueryWrapper, BaseApi } from "@newview/infrastructure";
10
+ import { BaseApi, QueryWrapper } from "@newview/infrastructure";
11
11
  import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
12
- import { SelectPlatform, BaseLogin } from "@newview/permission-ui";
12
+ import { SelectPlatform, BaseLogin, PersonSel } from "@newview/permission-ui";
13
13
  import { SignTaskInfoApi } from "@newview/casign-api";
14
14
  import { ProvinceApi, CityApi, AreaApi, DictionaryDetailApi, DictionaryTypeApi } from "@newview/basics-api";
15
15
  import { NvComFormUp } from "@newview/file-ui";
16
16
  import { NvMap } from "@newview/map";
17
+ class DBCenterBaseApi extends BaseApi {
18
+ get ProxyName() {
19
+ return "CalcPythonApi";
20
+ }
21
+ constructor() {
22
+ super();
23
+ this.addHeader("projectid", 0);
24
+ this.addHeader("devprod", "prod");
25
+ this.addHeader("dbSkey", "08fb72ad2cf661088849ef17fdaab21a");
26
+ }
27
+ }
28
+ class CorePartnerApi extends DBCenterBaseApi {
29
+ get ControllerName() {
30
+ return "currency";
31
+ }
32
+ constructor() {
33
+ super();
34
+ this.addHeader("tableName", "core_partner");
35
+ }
36
+ }
37
+ class CorePlatformConfigApi extends DBCenterBaseApi {
38
+ get ControllerName() {
39
+ return "currency";
40
+ }
41
+ constructor() {
42
+ super();
43
+ this.addHeader("tableName", "core_platform_config");
44
+ }
45
+ }
17
46
  const propDefine$l = {
18
47
  linkParam: {
19
48
  // 带入的参数
@@ -45,6 +74,7 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
45
74
  // API 实例化
46
75
  __publicField(this, "platformApi", new PlatformApi());
47
76
  __publicField(this, "platformGroupApi", new PlatformGroupApi());
77
+ __publicField(this, "corePlatformConfigApi", new CorePlatformConfigApi());
48
78
  //#region 平台组
49
79
  // 私有属性 | private
50
80
  __publicField(this, "currentGroupRow", ref({}));
@@ -174,12 +204,12 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
174
204
  },
175
205
  { colType: "ro", field: "SKey", title: "唯一KEY", width: 240 },
176
206
  { colType: "ed", field: "PlatformName", title: "系统名称", minWidth: 250 },
177
- { colType: "ed", field: "PlatformAbbreviation", title: "系统简称", width: 150 },
207
+ { colType: "ed", field: "PlatformAbbreviation", title: "系统简称", width: 140 },
178
208
  {
179
209
  colType: "select",
180
210
  field: "PId",
181
211
  title: "上级平台",
182
- width: 150,
212
+ width: 180,
183
213
  select: {
184
214
  data: this.upList,
185
215
  clearable: true,
@@ -191,12 +221,19 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
191
221
  }
192
222
  },
193
223
  { colType: "ed", field: "PlatformNo", title: "系统代号", width: 100 },
194
- { colType: "ed", field: "PlatformUrl", title: "系统URL", width: 230 },
224
+ { colType: "ed", field: "PlatformUrl", title: "系统URL", width: 200 },
195
225
  { colType: "num", field: "OrderNo", title: "排序号", width: 90, align: "center" },
196
226
  {
197
227
  title: "操作",
198
- width: 140,
228
+ width: 200,
199
229
  rowButtons: [
230
+ {
231
+ name: "edit",
232
+ text: "扩展信息",
233
+ onclick: (row) => {
234
+ this.doEditPlatConfig(row);
235
+ }
236
+ },
200
237
  {
201
238
  name: "edit",
202
239
  text: "编辑",
@@ -247,8 +284,7 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
247
284
  LastUpdateUserId: 0,
248
285
  LastUpdateUserName: "",
249
286
  LastUpdateDate: "",
250
- DefaultPwd: "",
251
- PlatformType: 1
287
+ DefaultPwd: ""
252
288
  }));
253
289
  __publicField(this, "platformFormItems", reactive([
254
290
  { model: "PlatformName", label: "系统名称", prop: "PlatformName", type: "Input", span: 24, rules: [{ required: true, message: "系统名称不能为空", trigger: "blur" }] },
@@ -268,6 +304,51 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
268
304
  multiple: false
269
305
  }
270
306
  },
307
+ { model: "PlatformUrl", label: "系统URL", prop: "PlatformUrl", type: "Input", span: 24 },
308
+ { model: "CABusinessKey", label: "CAKey", prop: "CABusinessKey", type: "Input", span: 24 },
309
+ { model: "DefaultPwd", label: "用户默认密码", prop: "DefaultPwd", type: "Input", span: 24 },
310
+ { model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber", span: 24 }
311
+ ]));
312
+ // 响应式方法 | xxx = () => {}
313
+ /**
314
+ * 保存系统平台数据
315
+ */
316
+ __publicField(this, "doSavePlatform", async () => {
317
+ const validate = await this.refPlatformForm.value.validate();
318
+ if (!validate) {
319
+ return;
320
+ }
321
+ this.saveingPlatform.value = true;
322
+ let apiResult = await this.platformApi.save(this.platformFormModel);
323
+ let result = this.utilities.parseApiResult(apiResult);
324
+ if (result <= 0) {
325
+ this.message.warning("保存失败,请稍后重试!");
326
+ this.saveingPlatform.value = false;
327
+ return;
328
+ }
329
+ this.message.success("保存成功!");
330
+ this.platformGrid.value.refreshData();
331
+ this.saveingPlatform.value = false;
332
+ this.showEditPlatform.value = false;
333
+ });
334
+ //#endregion 系统平台编辑 END
335
+ //#region 扩展信息
336
+ // 私有属性 | private
337
+ // 响应属性 | ref、reactive、computed、watch
338
+ __publicField(this, "isShowPlatConfig", ref(false));
339
+ __publicField(this, "saveingPlatConfig", ref(false));
340
+ __publicField(this, "configTitle", ref(""));
341
+ __publicField(this, "platConfigFormModel", ref({
342
+ Id: 0,
343
+ PlatformId: 0,
344
+ PlatformType: 1,
345
+ AppId: "",
346
+ AppSecret: "",
347
+ LastUpdateUserId: this.storageInfo.getUser().Id,
348
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
349
+ LastUpdateDate: this.utilities.getCurrentDate()
350
+ }));
351
+ __publicField(this, "platConfigFormItems", reactive([
271
352
  {
272
353
  model: "PlatformType",
273
354
  label: "线路状态",
@@ -298,32 +379,19 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
298
379
  multiple: false
299
380
  }
300
381
  },
301
- { model: "PlatformUrl", label: "系统URL", prop: "PlatformUrl", type: "Input", span: 24 },
302
- { model: "CABusinessKey", label: "CAKey", prop: "CABusinessKey", type: "Input", span: 24 },
303
- { model: "DefaultPwd", label: "用户默认密码", prop: "DefaultPwd", type: "Input", span: 24 },
304
- { model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber", span: 24 }
382
+ { model: "AppId", label: "小程序AppId", prop: "AppId", type: "Input", span: 24 },
383
+ { model: "AppSecret", label: "小程序秘钥", prop: "AppSecret", type: "Input", span: 24 }
305
384
  ]));
306
- // 响应式方法 | xxx = () => {}
307
- /**
308
- * 保存系统平台数据
309
- */
310
- __publicField(this, "doSavePlatform", async () => {
311
- const validate = await this.refPlatformForm.value.validate();
312
- if (!validate) {
313
- return;
314
- }
315
- this.saveingPlatform.value = true;
316
- let apiResult = await this.platformApi.save(this.platformFormModel);
317
- let result = this.utilities.parseApiResult(apiResult);
318
- if (result <= 0) {
319
- this.message.warning("保存失败,请稍后重试!");
320
- this.saveingPlatform.value = false;
321
- return;
385
+ __publicField(this, "doSavePlatConfig", async () => {
386
+ this.saveingPlatConfig.value = true;
387
+ const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(this.platConfigFormModel.value));
388
+ if (res > 0) {
389
+ this.message.success("保存成功");
390
+ this.isShowPlatConfig.value = false;
391
+ } else {
392
+ this.message.error("保存失败");
322
393
  }
323
- this.message.success("保存成功!");
324
- this.platformGrid.value.refreshData();
325
- this.saveingPlatform.value = false;
326
- this.showEditPlatform.value = false;
394
+ this.saveingPlatConfig.value = false;
327
395
  });
328
396
  this.props = props;
329
397
  this.ctx = ctx;
@@ -390,7 +458,6 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
390
458
  this.platformFormModel.PId = data.PId;
391
459
  this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
392
460
  this.platformFormModel.DefaultPwd = data.DefaultPwd;
393
- this.platformFormModel.PlatformType = data.PlatformType;
394
461
  this.editPlatformModalTitle.value = `编辑 - ${data.PlatformName}`;
395
462
  const tableData = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
396
463
  this.platformFormItems[4].selectProp.datas = tableData.length > 0 ? tableData == null ? void 0 : tableData.map((item) => {
@@ -420,7 +487,6 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
420
487
  this.platformFormModel.LastUpdateUserId = user.Id;
421
488
  this.platformFormModel.LastUpdateUserName = user.UserName;
422
489
  this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
423
- this.platformFormModel.PlatformType = 1;
424
490
  this.editPlatformModalTitle.value = `新增 - 系统平台`;
425
491
  const data = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
426
492
  this.platformFormItems[4].selectProp.datas = data.length > 0 ? data == null ? void 0 : data.map((item) => {
@@ -431,9 +497,34 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
431
497
  }) : [];
432
498
  this.showEditPlatform.value = true;
433
499
  }
434
- //#endregion 系统平台编辑 END
500
+ // 私有方法 | private 方法名() {}
501
+ // 响应式方法 | xxx = () => {}
502
+ /**扩展信息 */
503
+ async doEditPlatConfig(data) {
504
+ this.configTitle.value = `编辑扩展信息-${data.PlatformName}`;
505
+ const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.getEntityByFilter(QueryWrapper.create().eq("PlatformId", data.Id)));
506
+ if (this.utilities.isNull(res)) {
507
+ this.platConfigFormModel.value = {
508
+ Id: 0,
509
+ PlatformId: data.Id,
510
+ PlatformType: 1,
511
+ AppId: "",
512
+ AppSecret: "",
513
+ LastUpdateUserId: this.storageInfo.getUser().Id,
514
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
515
+ LastUpdateDate: this.utilities.getCurrentDate()
516
+ };
517
+ } else {
518
+ this.platConfigFormModel.value = res;
519
+ this.platConfigFormModel.valueLastUpdateUserId = this.storageInfo.getUser().Id;
520
+ this.platConfigFormModel.valueLastUpdateUserNamed = this.storageInfo.getUser().UserName;
521
+ this.platConfigFormModel.valueLastUpdateDated = this.utilities.getCurrentDate();
522
+ }
523
+ this.isShowPlatConfig.value = true;
524
+ }
525
+ //#endregion 扩展信息 END
435
526
  };
436
- const Platform_vue_vue_type_style_index_0_scoped_e44fc32c_lang = "";
527
+ const Platform_vue_vue_type_style_index_0_scoped_7e8dbe7a_lang = "";
437
528
  const _export_sfc = (sfc, props) => {
438
529
  const target = sfc.__vccOpts || sfc;
439
530
  for (const [key, val] of props) {
@@ -617,12 +708,55 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
617
708
  ])
618
709
  ]),
619
710
  _: 1
711
+ }, 8, ["modelValue", "title"]),
712
+ createVNode(_component_Modal, {
713
+ modelValue: _ctx.isShowPlatConfig,
714
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.isShowPlatConfig = $event),
715
+ title: _ctx.configTitle
716
+ }, {
717
+ footer: withCtx(() => [
718
+ createVNode(_component_Button, {
719
+ type: "text",
720
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.isShowPlatConfig = false)
721
+ }, {
722
+ default: withCtx(() => [
723
+ createTextVNode("关闭")
724
+ ]),
725
+ _: 1
726
+ }),
727
+ createVNode(_component_Button, {
728
+ type: "primary",
729
+ loading: _ctx.saveingPlatConfig,
730
+ onClick: _ctx.doSavePlatConfig
731
+ }, {
732
+ default: withCtx(() => [
733
+ createTextVNode("保存")
734
+ ]),
735
+ _: 1
736
+ }, 8, ["loading", "onClick"])
737
+ ]),
738
+ default: withCtx(() => [
739
+ createVNode(_component_Form, {
740
+ ref: "refPlatformForm",
741
+ model: _ctx.platConfigFormModel,
742
+ "label-width": 120
743
+ }, {
744
+ default: withCtx(() => [
745
+ createVNode(_component_NvComForm, {
746
+ formModel: _ctx.platConfigFormModel,
747
+ formItems: _ctx.platConfigFormItems
748
+ }, null, 8, ["formModel", "formItems"])
749
+ ]),
750
+ _: 1
751
+ }, 8, ["model"])
752
+ ]),
753
+ _: 1
620
754
  }, 8, ["modelValue", "title"])
621
755
  ]),
622
756
  _: 1
623
757
  });
624
758
  }
625
- const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-e44fc32c"]]);
759
+ const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-7e8dbe7a"]]);
626
760
  const propDefine$k = {
627
761
  linkParam: {
628
762
  // 带入的参数
@@ -6262,35 +6396,6 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
6262
6396
  });
6263
6397
  }
6264
6398
  const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-58aa3e77"]]);
6265
- class DBCenterBaseApi extends BaseApi {
6266
- get ProxyName() {
6267
- return "CalcPythonApi";
6268
- }
6269
- constructor() {
6270
- super();
6271
- this.addHeader("projectid", 0);
6272
- this.addHeader("devprod", "prod");
6273
- this.addHeader("dbSkey", "08fb72ad2cf661088849ef17fdaab21a");
6274
- }
6275
- }
6276
- class CorePartnerApi extends DBCenterBaseApi {
6277
- get ControllerName() {
6278
- return "currency";
6279
- }
6280
- constructor() {
6281
- super();
6282
- this.addHeader("tableName", "core_partner");
6283
- }
6284
- }
6285
- class CorePlatformConfigApi extends DBCenterBaseApi {
6286
- get ControllerName() {
6287
- return "currency";
6288
- }
6289
- constructor() {
6290
- super();
6291
- this.addHeader("tableName", "core_platform_config");
6292
- }
6293
- }
6294
6399
  const propDefine$d = {
6295
6400
  linkParam: {
6296
6401
  // 带入的参数
@@ -7392,7 +7497,8 @@ const propDefine$b = {
7392
7497
  const _sfc_main$b = defineComponent({
7393
7498
  name: "Platform",
7394
7499
  components: {
7395
- GeneralConfiguration
7500
+ GeneralConfiguration,
7501
+ PersonSel
7396
7502
  },
7397
7503
  emits: [""],
7398
7504
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
@@ -7409,6 +7515,7 @@ class PlatformInstance2 extends BaseInstance {
7409
7515
  __publicField(this, "ctx");
7410
7516
  // API 实例化
7411
7517
  __publicField(this, "platformApi", new PlatformApi());
7518
+ __publicField(this, "corePlatformConfigApi", new CorePlatformConfigApi());
7412
7519
  //#region 系统平台
7413
7520
  __publicField(this, "isShowGeneralConfig", ref(false));
7414
7521
  __publicField(this, "generalConfigTitle", ref("概况配置"));
@@ -7525,9 +7632,16 @@ class PlatformInstance2 extends BaseInstance {
7525
7632
  },
7526
7633
  {
7527
7634
  title: "操作",
7528
- width: 140,
7635
+ width: 200,
7529
7636
  fixed: "right",
7530
7637
  rowButtons: [
7638
+ {
7639
+ name: "edit",
7640
+ text: "扩展信息",
7641
+ onclick: (row) => {
7642
+ this.doEditPlatConfig(row);
7643
+ }
7644
+ },
7531
7645
  {
7532
7646
  name: "edit",
7533
7647
  text: "编辑",
@@ -7578,8 +7692,7 @@ class PlatformInstance2 extends BaseInstance {
7578
7692
  LastUpdateUserId: 0,
7579
7693
  LastUpdateUserName: "",
7580
7694
  LastUpdateDate: "",
7581
- DefaultPwd: "",
7582
- PlatformType: 1
7695
+ DefaultPwd: ""
7583
7696
  }));
7584
7697
  __publicField(this, "platformFormItems", reactive([
7585
7698
  { model: "PlatformName", label: "系统名称", prop: "PlatformName", type: "Input", span: 24, rules: [{ required: true, message: "系统名称不能为空", trigger: "blur" }] },
@@ -7603,6 +7716,51 @@ class PlatformInstance2 extends BaseInstance {
7603
7716
  }
7604
7717
  }
7605
7718
  },
7719
+ { model: "PlatformUrl", label: "系统URL", prop: "PlatformUrl", type: "Input", span: 24 },
7720
+ { model: "CABusinessKey", label: "CAKey", prop: "CABusinessKey", type: "Input", span: 24 },
7721
+ { model: "DefaultPwd", label: "用户默认密码", prop: "DefaultPwd", type: "Input", span: 24 },
7722
+ { model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber", span: 24 }
7723
+ ]));
7724
+ // 响应式方法 | xxx = () => {}
7725
+ /**
7726
+ * 保存系统平台数据
7727
+ */
7728
+ __publicField(this, "doSavePlatform", async () => {
7729
+ const validate = await this.refPlatformForm.value.validate();
7730
+ if (!validate) {
7731
+ return;
7732
+ }
7733
+ this.saveingPlatform.value = true;
7734
+ let apiResult = await this.platformApi.save(this.platformFormModel);
7735
+ let result = this.utilities.parseApiResult(apiResult);
7736
+ if (result <= 0) {
7737
+ this.message.warning("保存失败,请稍后重试!");
7738
+ this.saveingPlatform.value = false;
7739
+ return;
7740
+ }
7741
+ this.message.success("保存成功!");
7742
+ this.platformGrid.value.refreshData();
7743
+ this.saveingPlatform.value = false;
7744
+ this.showEditPlatform.value = false;
7745
+ });
7746
+ //#endregion 系统平台编辑 END
7747
+ //#region 扩展信息
7748
+ // 私有属性 | private
7749
+ // 响应属性 | ref、reactive、computed、watch
7750
+ __publicField(this, "isShowPlatConfig", ref(false));
7751
+ __publicField(this, "saveingPlatConfig", ref(false));
7752
+ __publicField(this, "configTitle", ref(""));
7753
+ __publicField(this, "platConfigFormModel", ref({
7754
+ Id: 0,
7755
+ PlatformId: 0,
7756
+ PlatformType: 1,
7757
+ AppId: "",
7758
+ AppSecret: "",
7759
+ LastUpdateUserId: this.storageInfo.getUser().Id,
7760
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
7761
+ LastUpdateDate: this.utilities.getCurrentDate()
7762
+ }));
7763
+ __publicField(this, "platConfigFormItems", reactive([
7606
7764
  {
7607
7765
  model: "PlatformType",
7608
7766
  label: "线路状态",
@@ -7633,32 +7791,19 @@ class PlatformInstance2 extends BaseInstance {
7633
7791
  multiple: false
7634
7792
  }
7635
7793
  },
7636
- { model: "PlatformUrl", label: "系统URL", prop: "PlatformUrl", type: "Input", span: 24 },
7637
- { model: "CABusinessKey", label: "CAKey", prop: "CABusinessKey", type: "Input", span: 24 },
7638
- { model: "DefaultPwd", label: "用户默认密码", prop: "DefaultPwd", type: "Input", span: 24 },
7639
- { model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber", span: 24 }
7794
+ { model: "AppId", label: "小程序AppId", prop: "AppId", type: "Input", span: 24 },
7795
+ { model: "AppSecret", label: "小程序秘钥", prop: "AppSecret", type: "Input", span: 24 }
7640
7796
  ]));
7641
- // 响应式方法 | xxx = () => {}
7642
- /**
7643
- * 保存系统平台数据
7644
- */
7645
- __publicField(this, "doSavePlatform", async () => {
7646
- const validate = await this.refPlatformForm.value.validate();
7647
- if (!validate) {
7648
- return;
7649
- }
7650
- this.saveingPlatform.value = true;
7651
- let apiResult = await this.platformApi.save(this.platformFormModel);
7652
- let result = this.utilities.parseApiResult(apiResult);
7653
- if (result <= 0) {
7654
- this.message.warning("保存失败,请稍后重试!");
7655
- this.saveingPlatform.value = false;
7656
- return;
7797
+ __publicField(this, "doSavePlatConfig", async () => {
7798
+ this.saveingPlatConfig.value = true;
7799
+ const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(this.platConfigFormModel.value));
7800
+ if (res > 0) {
7801
+ this.message.success("保存成功");
7802
+ this.isShowPlatConfig.value = false;
7803
+ } else {
7804
+ this.message.error("保存失败");
7657
7805
  }
7658
- this.message.success("保存成功!");
7659
- this.platformGrid.value.refreshData();
7660
- this.saveingPlatform.value = false;
7661
- this.showEditPlatform.value = false;
7806
+ this.saveingPlatConfig.value = false;
7662
7807
  });
7663
7808
  this.props = props;
7664
7809
  this.ctx = ctx;
@@ -7720,7 +7865,6 @@ class PlatformInstance2 extends BaseInstance {
7720
7865
  this.platformFormModel.LastUpdateUserId = user.Id;
7721
7866
  this.platformFormModel.LastUpdateUserName = user.UserName;
7722
7867
  this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
7723
- this.platformFormModel.PlatformType = data.PlatformType;
7724
7868
  this.platformFormModel.DefaultPwd = data.DefaultPwd;
7725
7869
  const tableData = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
7726
7870
  this.platformFormItems[4].selectProp.datas = tableData.length > 0 ? tableData == null ? void 0 : tableData.map((item) => {
@@ -7753,7 +7897,6 @@ class PlatformInstance2 extends BaseInstance {
7753
7897
  this.platformFormModel.LastUpdateUserName = user.UserName;
7754
7898
  this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
7755
7899
  this.platformFormModel.DefaultPwd = "";
7756
- this.platformFormModel.PlatformType = 1;
7757
7900
  this.editPlatformModalTitle.value = `新增 - 系统平台`;
7758
7901
  const data = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
7759
7902
  this.platformFormItems[4].selectProp.datas = data.length > 0 ? data == null ? void 0 : data.map((item) => {
@@ -7767,9 +7910,34 @@ class PlatformInstance2 extends BaseInstance {
7767
7910
  this.platformFormModel.PlatformGroup = data.length > 0 ? data[0].PlatformGroup : 0;
7768
7911
  this.showEditPlatform.value = true;
7769
7912
  }
7770
- //#endregion 系统平台编辑 END
7913
+ // 私有方法 | private 方法名() {}
7914
+ // 响应式方法 | xxx = () => {}
7915
+ /**扩展信息 */
7916
+ async doEditPlatConfig(data) {
7917
+ this.configTitle.value = `编辑扩展信息-${data.PlatformName}`;
7918
+ const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.getEntityByFilter(QueryWrapper.create().eq("PlatformId", data.Id)));
7919
+ if (this.utilities.isNull(res)) {
7920
+ this.platConfigFormModel.value = {
7921
+ Id: 0,
7922
+ PlatformId: data.Id,
7923
+ PlatformType: 1,
7924
+ AppId: "",
7925
+ AppSecret: "",
7926
+ LastUpdateUserId: this.storageInfo.getUser().Id,
7927
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
7928
+ LastUpdateDate: this.utilities.getCurrentDate()
7929
+ };
7930
+ } else {
7931
+ this.platConfigFormModel.value = res;
7932
+ this.platConfigFormModel.valueLastUpdateUserId = this.storageInfo.getUser().Id;
7933
+ this.platConfigFormModel.valueLastUpdateUserNamed = this.storageInfo.getUser().UserName;
7934
+ this.platConfigFormModel.valueLastUpdateDated = this.utilities.getCurrentDate();
7935
+ }
7936
+ this.isShowPlatConfig.value = true;
7937
+ }
7938
+ //#endregion 扩展信息 END
7771
7939
  }
7772
- const Platform_vue_vue_type_style_index_0_scoped_0ada9242_lang = "";
7940
+ const Platform_vue_vue_type_style_index_0_scoped_d318c7ed_lang = "";
7773
7941
  const _hoisted_1$a = { style: { "height": "600px", "overflow-y": "auto" } };
7774
7942
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
7775
7943
  const _component_NvGrid = resolveComponent("NvGrid");
@@ -7869,12 +8037,55 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
7869
8037
  }, null, 8, ["platformInfo", "configType"])) : createCommentVNode("", true)
7870
8038
  ]),
7871
8039
  _: 1
8040
+ }, 8, ["modelValue", "title"]),
8041
+ createVNode(_component_Modal, {
8042
+ modelValue: _ctx.isShowPlatConfig,
8043
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.isShowPlatConfig = $event),
8044
+ title: _ctx.configTitle
8045
+ }, {
8046
+ footer: withCtx(() => [
8047
+ createVNode(_component_Button, {
8048
+ type: "text",
8049
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.isShowPlatConfig = false)
8050
+ }, {
8051
+ default: withCtx(() => [
8052
+ createTextVNode("关闭")
8053
+ ]),
8054
+ _: 1
8055
+ }),
8056
+ createVNode(_component_Button, {
8057
+ type: "primary",
8058
+ loading: _ctx.saveingPlatConfig,
8059
+ onClick: _ctx.doSavePlatConfig
8060
+ }, {
8061
+ default: withCtx(() => [
8062
+ createTextVNode("保存")
8063
+ ]),
8064
+ _: 1
8065
+ }, 8, ["loading", "onClick"])
8066
+ ]),
8067
+ default: withCtx(() => [
8068
+ createVNode(_component_Form, {
8069
+ ref: "refPlatformForm",
8070
+ model: _ctx.platConfigFormModel,
8071
+ "label-width": 120
8072
+ }, {
8073
+ default: withCtx(() => [
8074
+ createVNode(_component_NvComForm, {
8075
+ formModel: _ctx.platConfigFormModel,
8076
+ formItems: _ctx.platConfigFormItems
8077
+ }, null, 8, ["formModel", "formItems"])
8078
+ ]),
8079
+ _: 1
8080
+ }, 8, ["model"])
8081
+ ]),
8082
+ _: 1
7872
8083
  }, 8, ["modelValue", "title"])
7873
8084
  ]),
7874
8085
  _: 1
7875
8086
  });
7876
8087
  }
7877
- const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-0ada9242"]]);
8088
+ const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-d318c7ed"]]);
7878
8089
  const propDefine$a = {
7879
8090
  linkParam: {
7880
8091
  // 带入的参数