liyu-pc-base 1.0.550 → 1.0.552

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.
@@ -8215,261 +8215,34 @@ var nu = /* @__PURE__ */ t({
8215
8215
  event_obj: l(),
8216
8216
  queryConditionGroupData: null,
8217
8217
  is_selection: !0
8218
- }), du = /* @__PURE__ */ t({
8219
- btn_list: () => fu,
8220
- config: () => pu,
8221
- head_btn_list: () => mu
8222
- }), fu = [{
8223
- name: "修改",
8224
- type: "dropdown",
8225
- clazz: "primary",
8226
- cb: ({ record: e }) => {
8227
- let t = k({
8228
- visible: !0,
8229
- title: "修改",
8230
- loading: !1,
8231
- form: {
8232
- settings: {
8233
- labelAlign: "right",
8234
- layout: "horizontal",
8235
- col: []
8236
- },
8237
- fields: [
8238
- {
8239
- type: "remoteselect",
8240
- name: "aim_org_id",
8241
- label: "隶属组织",
8242
- disabled: !0,
8243
- allowClear: !0,
8244
- labelKey: "name",
8245
- valueKey: "id",
8246
- placeholder: "请选择隶属组织",
8247
- datasourceType: "remote",
8248
- mode: "default",
8249
- default: !0,
8250
- modalType: "select-org-id"
8251
- },
8252
- {
8253
- type: "input",
8254
- name: "username",
8255
- label: "手机号",
8256
- disabled: !1,
8257
- allowClear: !0,
8258
- inputType: "number",
8259
- maxlength: 100,
8260
- defaultValue: "",
8261
- placeholder: "请填手机号"
8262
- },
8263
- {
8264
- type: "input",
8265
- name: "realname",
8266
- label: "姓名",
8267
- disabled: !1,
8268
- allowClear: !0,
8269
- inputType: "text",
8270
- maxlength: 100,
8271
- defaultValue: "",
8272
- placeholder: "请填姓名"
8273
- },
8274
- {
8275
- type: "select",
8276
- name: "manage_type",
8277
- label: "用户类型",
8278
- disabled: !1,
8279
- allowClear: !0,
8280
- inputType: "text",
8281
- maxlength: 100,
8282
- defaultValue: "",
8283
- placeholder: "请填姓名"
8284
- },
8285
- {
8286
- type: "remoteselect",
8287
- name: "role_ids",
8288
- label: "角色",
8289
- disabled: !1,
8290
- placeholder: "请选择角色",
8291
- datasourceType: "remote",
8292
- mode: "multiple",
8293
- allowClear: !0,
8294
- modalType: "liyu_permission-role"
8295
- }
8296
- ],
8297
- rules: {},
8298
- model: k({
8299
- aim_org_id: e.org_id,
8300
- person_id: e.id,
8301
- username: e.user__username,
8302
- realname: e.realname,
8303
- title: e.title,
8304
- manage_type: e.manage_type,
8305
- email: e.email,
8306
- role_ids: e.role_list?.map((e) => e.id)
8307
- })
8308
- },
8309
- options: { manage_type: [
8310
- {
8311
- label: "普通用户",
8312
- value: 0
8313
- },
8314
- {
8315
- label: "管理员",
8316
- value: 1
8317
- },
8318
- {
8319
- label: "超级管理员",
8320
- value: 2
8321
- }
8322
- ] },
8323
- ok: (n) => new Promise((r) => {
8324
- t.loading = !0, $e({ ...n }).then((t) => {
8325
- M.success("修改成功"), Object.assign(e, t), l().emit("refresh"), r(null);
8326
- }).finally(() => {
8327
- t.loading = !1;
8328
- });
8329
- })
8330
- });
8331
- te(t);
8332
- }
8333
- }, {
8334
- name: "重置密码",
8335
- clazz: "primary",
8336
- cb: ({ record: e }) => {
8337
- xe.confirm({
8338
- title: "温馨提示",
8339
- content: "是否重置 [" + e.realname + "] 的密码?",
8340
- icon: () => E(Ce),
8341
- okText: "确定",
8342
- onOk() {
8343
- return new Promise((t) => {
8344
- Ze({
8345
- org_id: e.org_id,
8346
- username: e.user__username
8347
- }).then(() => {
8348
- M.success("重置密码成功");
8349
- }).finally(() => {
8350
- t(null);
8351
- });
8352
- }).catch(() => console.log("Oops errors!"));
8353
- },
8354
- onCancel() {}
8355
- });
8356
- }
8357
- }], pu = {
8218
+ }), du = /* @__PURE__ */ t({ config: () => fu }), fu = {
8358
8219
  creatCol: [],
8359
8220
  updateCol: []
8360
- }, mu = [{
8361
- name: "新建用户",
8362
- type: "dropdown",
8363
- is_show: !0,
8364
- clazz: "primary",
8365
- cb: ({ searchModel: e }) => {
8366
- let t = k({
8367
- visible: !0,
8368
- title: "新建用户",
8369
- loading: !1,
8370
- form: {
8371
- settings: {
8372
- labelAlign: "right",
8373
- layout: "horizontal",
8374
- col: []
8375
- },
8376
- fields: [
8377
- {
8378
- type: "remoteselect",
8379
- name: "aim_org_id",
8380
- label: "隶属组织",
8381
- disabled: !0,
8382
- allowClear: !0,
8383
- labelKey: "name",
8384
- valueKey: "id",
8385
- placeholder: "请选择隶属组织",
8386
- datasourceType: "remote",
8387
- mode: "default",
8388
- default: !0,
8389
- modalType: "select-org-id"
8390
- },
8391
- {
8392
- type: "input",
8393
- name: "username",
8394
- label: "手机号",
8395
- disabled: !1,
8396
- allowClear: !0,
8397
- inputType: "number",
8398
- maxlength: 100,
8399
- defaultValue: "",
8400
- placeholder: "请填手机号"
8401
- },
8402
- {
8403
- type: "input",
8404
- name: "realname",
8405
- label: "姓名",
8406
- disabled: !1,
8407
- allowClear: !0,
8408
- inputType: "text",
8409
- maxlength: 100,
8410
- defaultValue: "",
8411
- placeholder: "请填姓名"
8412
- },
8413
- {
8414
- type: "select",
8415
- name: "manage_type",
8416
- label: "用户类型",
8417
- disabled: !1,
8418
- allowClear: !0,
8419
- inputType: "text",
8420
- maxlength: 100,
8421
- defaultValue: "",
8422
- placeholder: "请填姓名"
8423
- },
8424
- {
8425
- type: "remoteselect",
8426
- name: "role_ids",
8427
- label: "角色",
8428
- disabled: !1,
8429
- placeholder: "请选择角色",
8430
- datasourceType: "remote",
8431
- mode: "multiple",
8432
- allowClear: !0,
8433
- modalType: "liyu_permission-role"
8434
- }
8435
- ],
8436
- rules: {},
8437
- model: k({
8438
- aim_org_id: e.aim_org_id,
8439
- person_id: null,
8440
- username: null,
8441
- realname: null,
8442
- manage_type: 1,
8443
- role_ids: []
8444
- })
8445
- },
8446
- options: { manage_type: [
8447
- {
8448
- label: "普通用户",
8449
- value: 0
8450
- },
8451
- {
8452
- label: "管理员",
8453
- value: 1
8454
- },
8455
- {
8456
- label: "超级管理员",
8457
- value: 2
8458
- }
8459
- ] },
8460
- ok: (e) => new Promise((n) => {
8461
- t.loading = !0, Qe({ ...e }).then((e) => {
8462
- M.success("修改成功"), l().emit("refresh"), n(null);
8463
- }).finally(() => {
8464
- t.loading = !1;
8465
- });
8466
- })
8467
- });
8468
- te(t);
8469
- }
8470
- }], hu = /* @__PURE__ */ t({ default: () => gu }), gu = () => {
8471
- let e = a().currentOrg;
8472
- return {
8221
+ }, pu = /* @__PURE__ */ t({ default: () => mu }), mu = () => {
8222
+ let e = a(), t = e.person.manage_type, n = e.currentOrg, r = [];
8223
+ return t === 2 ? r = [
8224
+ {
8225
+ label: "普通用户",
8226
+ value: 0
8227
+ },
8228
+ {
8229
+ label: "管理员",
8230
+ value: 1
8231
+ },
8232
+ {
8233
+ label: "超级管理员",
8234
+ value: 2
8235
+ }
8236
+ ] : t === 1 ? r = [{
8237
+ label: "普通用户",
8238
+ value: 0
8239
+ }, {
8240
+ label: "管理员",
8241
+ value: 1
8242
+ }] : t === 0 && (r = [{
8243
+ label: "普通用户",
8244
+ value: 0
8245
+ }]), {
8473
8246
  searchConfig: {
8474
8247
  settings: {
8475
8248
  labelAlign: "right",
@@ -8514,33 +8287,20 @@ var nu = /* @__PURE__ */ t({
8514
8287
  ],
8515
8288
  rules: {},
8516
8289
  model: k({
8517
- org_id: e.id,
8518
- aim_org_id: e.id,
8290
+ org_id: n.id,
8291
+ aim_org_id: n.id,
8519
8292
  is_active: !0,
8520
8293
  name: "",
8521
8294
  manage_type: null,
8522
8295
  get_role: !0
8523
8296
  }),
8524
- options: { manage_type: [
8525
- {
8526
- label: "普通用户",
8527
- value: 0
8528
- },
8529
- {
8530
- label: "管理员",
8531
- value: 1
8532
- },
8533
- {
8534
- label: "超级管理员",
8535
- value: 2
8536
- }
8537
- ] }
8297
+ options: { manage_type: r }
8538
8298
  },
8539
8299
  formModalConfig: {
8540
8300
  settings: {
8541
8301
  labelAlign: "right",
8542
8302
  layout: "horizontal",
8543
- col: pu.creatCol
8303
+ col: fu.creatCol
8544
8304
  },
8545
8305
  fields: [
8546
8306
  {
@@ -8614,38 +8374,25 @@ var nu = /* @__PURE__ */ t({
8614
8374
  }]
8615
8375
  },
8616
8376
  model: {
8617
- org_id: e?.id,
8377
+ org_id: n?.id,
8618
8378
  id: null,
8619
8379
  username: "",
8620
8380
  realname: "",
8621
8381
  manage_type: 1,
8622
- aim_org_id: e?.id
8382
+ aim_org_id: n?.id
8623
8383
  },
8624
- options: { manage_type: [
8625
- {
8626
- label: "普通用户",
8627
- value: 0
8628
- },
8629
- {
8630
- label: "管理员",
8631
- value: 1
8632
- },
8633
- {
8634
- label: "超级管理员",
8635
- value: 2
8636
- }
8637
- ] }
8384
+ options: { manage_type: r }
8638
8385
  },
8639
8386
  updateFormModalConfig: {
8640
8387
  settings: {
8641
8388
  labelAlign: "right",
8642
8389
  layout: "horizontal",
8643
- col: pu.creatCol
8390
+ col: fu.creatCol
8644
8391
  },
8645
8392
  fields: [],
8646
8393
  rules: {},
8647
8394
  model: k({
8648
- org_id: e.id,
8395
+ org_id: n.id,
8649
8396
  id: null,
8650
8397
  username: "",
8651
8398
  realname: "",
@@ -8759,8 +8506,233 @@ var nu = /* @__PURE__ */ t({
8759
8506
  person_id: "id"
8760
8507
  }
8761
8508
  },
8762
- btn_list: fu,
8763
- head_btn_list: mu,
8509
+ btn_list: [{
8510
+ name: "修改",
8511
+ type: "dropdown",
8512
+ clazz: "primary",
8513
+ authority: "sys/update_user",
8514
+ urls: ["sys/update_user"],
8515
+ cb: ({ record: e }) => {
8516
+ let t = k({
8517
+ visible: !0,
8518
+ title: "修改",
8519
+ loading: !1,
8520
+ form: {
8521
+ settings: {
8522
+ labelAlign: "right",
8523
+ layout: "horizontal",
8524
+ col: []
8525
+ },
8526
+ fields: [
8527
+ {
8528
+ type: "remoteselect",
8529
+ name: "aim_org_id",
8530
+ label: "隶属组织",
8531
+ disabled: !0,
8532
+ allowClear: !0,
8533
+ labelKey: "name",
8534
+ valueKey: "id",
8535
+ placeholder: "请选择隶属组织",
8536
+ datasourceType: "remote",
8537
+ mode: "default",
8538
+ default: !0,
8539
+ modalType: "select-org-id"
8540
+ },
8541
+ {
8542
+ type: "input",
8543
+ name: "username",
8544
+ label: "手机号",
8545
+ disabled: !1,
8546
+ allowClear: !0,
8547
+ inputType: "number",
8548
+ maxlength: 100,
8549
+ defaultValue: "",
8550
+ placeholder: "请填手机号"
8551
+ },
8552
+ {
8553
+ type: "input",
8554
+ name: "realname",
8555
+ label: "姓名",
8556
+ disabled: !1,
8557
+ allowClear: !0,
8558
+ inputType: "text",
8559
+ maxlength: 100,
8560
+ defaultValue: "",
8561
+ placeholder: "请填姓名"
8562
+ },
8563
+ {
8564
+ type: "select",
8565
+ name: "manage_type",
8566
+ label: "用户类型",
8567
+ disabled: !1,
8568
+ allowClear: !0,
8569
+ inputType: "text",
8570
+ maxlength: 100,
8571
+ defaultValue: "",
8572
+ placeholder: "请填姓名"
8573
+ },
8574
+ {
8575
+ type: "remoteselect",
8576
+ name: "role_ids",
8577
+ label: "角色",
8578
+ disabled: !1,
8579
+ placeholder: "请选择角色",
8580
+ datasourceType: "remote",
8581
+ mode: "multiple",
8582
+ allowClear: !0,
8583
+ modalType: "liyu_permission-role"
8584
+ }
8585
+ ],
8586
+ rules: {},
8587
+ model: k({
8588
+ aim_org_id: e.org_id,
8589
+ person_id: e.id,
8590
+ username: e.user__username,
8591
+ realname: e.realname,
8592
+ title: e.title,
8593
+ manage_type: e.manage_type,
8594
+ email: e.email,
8595
+ role_ids: e.role_list?.map((e) => e.id)
8596
+ })
8597
+ },
8598
+ options: { manage_type: r },
8599
+ ok: (n) => new Promise((r) => {
8600
+ t.loading = !0, $e({ ...n }).then((t) => {
8601
+ M.success("修改成功"), Object.assign(e, t), l().emit("refresh"), r(null);
8602
+ }).finally(() => {
8603
+ t.loading = !1;
8604
+ });
8605
+ })
8606
+ });
8607
+ te(t);
8608
+ }
8609
+ }, {
8610
+ name: "重置密码",
8611
+ clazz: "primary",
8612
+ authority: "sys/reset_password",
8613
+ urls: ["sys/reset_password"],
8614
+ cb: ({ record: e }) => {
8615
+ xe.confirm({
8616
+ title: "温馨提示",
8617
+ content: "是否重置 [" + e.realname + "] 的密码?",
8618
+ icon: () => E(Ce),
8619
+ okText: "确定",
8620
+ onOk() {
8621
+ return new Promise((t) => {
8622
+ Ze({
8623
+ org_id: e.org_id,
8624
+ username: e.user__username
8625
+ }).then(() => {
8626
+ M.success("重置密码成功");
8627
+ }).finally(() => {
8628
+ t(null);
8629
+ });
8630
+ }).catch(() => console.log("Oops errors!"));
8631
+ },
8632
+ onCancel() {}
8633
+ });
8634
+ }
8635
+ }],
8636
+ head_btn_list: [{
8637
+ name: "新建用户",
8638
+ type: "dropdown",
8639
+ is_show: !0,
8640
+ clazz: "primary",
8641
+ authority: "sys/create_user",
8642
+ urls: ["sys/create_user"],
8643
+ cb: ({ searchModel: e }) => {
8644
+ let t = k({
8645
+ visible: !0,
8646
+ title: "新建用户",
8647
+ loading: !1,
8648
+ form: {
8649
+ settings: {
8650
+ labelAlign: "right",
8651
+ layout: "horizontal",
8652
+ col: []
8653
+ },
8654
+ fields: [
8655
+ {
8656
+ type: "remoteselect",
8657
+ name: "aim_org_id",
8658
+ label: "隶属组织",
8659
+ disabled: !0,
8660
+ allowClear: !0,
8661
+ labelKey: "name",
8662
+ valueKey: "id",
8663
+ placeholder: "请选择隶属组织",
8664
+ datasourceType: "remote",
8665
+ mode: "default",
8666
+ default: !0,
8667
+ modalType: "select-org-id"
8668
+ },
8669
+ {
8670
+ type: "input",
8671
+ name: "username",
8672
+ label: "手机号",
8673
+ disabled: !1,
8674
+ allowClear: !0,
8675
+ inputType: "number",
8676
+ maxlength: 100,
8677
+ defaultValue: "",
8678
+ placeholder: "请填手机号"
8679
+ },
8680
+ {
8681
+ type: "input",
8682
+ name: "realname",
8683
+ label: "姓名",
8684
+ disabled: !1,
8685
+ allowClear: !0,
8686
+ inputType: "text",
8687
+ maxlength: 100,
8688
+ defaultValue: "",
8689
+ placeholder: "请填姓名"
8690
+ },
8691
+ {
8692
+ type: "select",
8693
+ name: "manage_type",
8694
+ label: "用户类型",
8695
+ disabled: !1,
8696
+ allowClear: !0,
8697
+ inputType: "text",
8698
+ maxlength: 100,
8699
+ defaultValue: "",
8700
+ placeholder: "请填姓名"
8701
+ },
8702
+ {
8703
+ type: "remoteselect",
8704
+ name: "role_ids",
8705
+ label: "角色",
8706
+ disabled: !1,
8707
+ placeholder: "请选择角色",
8708
+ datasourceType: "remote",
8709
+ mode: "multiple",
8710
+ allowClear: !0,
8711
+ modalType: "liyu_permission-role"
8712
+ }
8713
+ ],
8714
+ rules: {},
8715
+ model: k({
8716
+ aim_org_id: e.aim_org_id,
8717
+ person_id: null,
8718
+ username: null,
8719
+ realname: null,
8720
+ manage_type: 0,
8721
+ role_ids: []
8722
+ })
8723
+ },
8724
+ options: { manage_type: r },
8725
+ ok: (e) => new Promise((n) => {
8726
+ t.loading = !0, Qe({ ...e }).then((e) => {
8727
+ M.success("修改成功"), l().emit("refresh"), n(null);
8728
+ }).finally(() => {
8729
+ t.loading = !1;
8730
+ });
8731
+ })
8732
+ });
8733
+ te(t);
8734
+ }
8735
+ }],
8764
8736
  event_obj: l(),
8765
8737
  base_search_condition_config_list: [],
8766
8738
  default_search_condition_config_list: [[]],
@@ -8772,7 +8744,7 @@ var nu = /* @__PURE__ */ t({
8772
8744
  queryConditionGroupData: null,
8773
8745
  isView: !1
8774
8746
  };
8775
- }, _u = /* @__PURE__ */ t({ default: () => vu }), vu = () => {
8747
+ }, hu = /* @__PURE__ */ t({ default: () => gu }), gu = () => {
8776
8748
  let e = a().currentOrg;
8777
8749
  return {
8778
8750
  searchConfig: {
@@ -9036,17 +9008,17 @@ var nu = /* @__PURE__ */ t({
9036
9008
  queryConditionGroupData: null,
9037
9009
  isView: !1
9038
9010
  };
9039
- }, yu = /* @__PURE__ */ e(ne(), 1);
9040
- function bu(e) {
9041
- return (0, yu.default)(e);
9011
+ }, _u = /* @__PURE__ */ e(ne(), 1);
9012
+ function vu(e) {
9013
+ return (0, _u.default)(e);
9042
9014
  }
9043
- var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) || e.forEach((e) => {
9015
+ var yu = (e) => vu(e).slice(-3), bu = (e, t, n, r) => (!e || !Array.isArray(e) || e.forEach((e) => {
9044
9016
  e.title &&= t(`${n}_${e.title}`, { defaultValue: e.title }), e.contentMap && Object.keys(e.contentMap).forEach((i) => {
9045
9017
  e.contentMap[i] = t(`${n}_${r(e.dataIndex)}_${e.contentMap[i]}`, { defaultValue: e.contentMap[i] });
9046
9018
  }), e.filters && e.filters.forEach((i) => {
9047
9019
  i.text &&= t(`${n}_${r(e.dataIndex)}_${i.text}`, { defaultValue: i.text });
9048
9020
  });
9049
- }), e), Cu = (e, t, n, r) => {
9021
+ }), e), xu = (e, t, n, r) => {
9050
9022
  if (e?.fields && Array.isArray(e.fields) && e.fields.forEach((e) => {
9051
9023
  e.label &&= t(`${n}_${e.label}`, { defaultValue: e.label }), Array.isArray(e.placeholder) ? e.placeholder = e.placeholder.map((e) => t(`${n}_${e}`, { defaultValue: e })) : e.placeholder &&= t(`${n}_${e.placeholder}`, { defaultValue: e.placeholder });
9052
9024
  }), e?.options) for (let i in e.options) e.options[i].forEach((e) => {
@@ -9058,7 +9030,7 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9058
9030
  e.message &&= t(`${n}_${e.message}`, { defaultValue: e.message });
9059
9031
  });
9060
9032
  }), e;
9061
- }, wu = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9033
+ }, Su = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9062
9034
  e.name &&= t(`${n}_${e.name}`, { defaultValue: e.name });
9063
9035
  let i = e.group;
9064
9036
  i && Array.isArray(i) && i.forEach((e) => {
@@ -9066,13 +9038,13 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9066
9038
  i.label &&= t(`${n}_${r(e.field_name)}_${i.label}`, { defaultValue: i.label });
9067
9039
  });
9068
9040
  });
9069
- }), e), Tu = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9041
+ }), e), Cu = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9070
9042
  e && Array.isArray(e) && e.forEach((e) => {
9071
9043
  e.label &&= t(`${n}_${e.label}`, { defaultValue: e.label });
9072
9044
  });
9073
- }), e), Eu = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9045
+ }), e), wu = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9074
9046
  e.label &&= t(`${n}_${e.label}`, { defaultValue: e.label });
9075
- }), e), Du = (e, t, n, r) => {
9047
+ }), e), Tu = (e, t, n, r) => {
9076
9048
  let i = e?.dynamicFieldList;
9077
9049
  i && Array.isArray(i) && i.forEach((e) => {
9078
9050
  e.group_name &&= t(`${n}_${e.group_name}`, { defaultValue: e.group_name });
@@ -9095,38 +9067,38 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9095
9067
  i.name &&= t(`${n}_${r(e)}_${i.name}`, { defaultValue: i.name }), i.label &&= t(`${n}_${r(e)}_${i.label}`, { defaultValue: i.label });
9096
9068
  });
9097
9069
  }), e;
9098
- }, Ou = (e, t, n, r) => (e?.title && (e.title = t(`${n}_${e.title}`, { defaultValue: e.title })), e?.addModalTitle && (e.addModalTitle = t(`${n}_${e.addModalTitle}`, { defaultValue: e.addModalTitle })), e?.updateTitle && (e.updateTitle = t(`${n}_${e.updateTitle}`, { defaultValue: e.updateTitle })), e), ku = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9070
+ }, Eu = (e, t, n, r) => (e?.title && (e.title = t(`${n}_${e.title}`, { defaultValue: e.title })), e?.addModalTitle && (e.addModalTitle = t(`${n}_${e.addModalTitle}`, { defaultValue: e.addModalTitle })), e?.updateTitle && (e.updateTitle = t(`${n}_${e.updateTitle}`, { defaultValue: e.updateTitle })), e), Du = (e, t, n, r) => (e && Array.isArray(e) && e.forEach((e) => {
9099
9071
  e.name &&= t(`${n}_${e.name}`, { defaultValue: e.name });
9100
9072
  let i = e.model_config;
9101
- i && (i.title &&= t(`${n}_${i.title}`, { defaultValue: i.title }), i.content &&= t(`${n}_${i.content}`, { defaultValue: i.content }), i.form &&= Du(i.form, t, n, r));
9102
- }), e), Au = {
9103
- baseColumns: Su,
9104
- searchConfig: Cu,
9105
- base_search_condition_config_list: wu,
9106
- default_search_condition_config_list: Tu,
9107
- condition_group_config_list: Eu,
9108
- formModalConfig: Du,
9109
- updateFormModalConfig: Du,
9110
- titleList: Ou,
9111
- btn_list: ku,
9112
- head_btn_list: ku,
9113
- batch_update_list: ku
9114
- }, ju = (e, t, n) => {
9073
+ i && (i.title &&= t(`${n}_${i.title}`, { defaultValue: i.title }), i.content &&= t(`${n}_${i.content}`, { defaultValue: i.content }), i.form &&= Tu(i.form, t, n, r));
9074
+ }), e), Ou = {
9075
+ baseColumns: bu,
9076
+ searchConfig: xu,
9077
+ base_search_condition_config_list: Su,
9078
+ default_search_condition_config_list: Cu,
9079
+ condition_group_config_list: wu,
9080
+ formModalConfig: Tu,
9081
+ updateFormModalConfig: Tu,
9082
+ titleList: Eu,
9083
+ btn_list: Du,
9084
+ head_btn_list: Du,
9085
+ batch_update_list: Du
9086
+ }, ku = (e, t, n) => {
9115
9087
  if (!c().VITE_APP_ENABLE_ZH_EN) return e;
9116
9088
  let r = x(e), i = r.i18n;
9117
9089
  return Object.keys(r).forEach((e) => {
9118
- if (Au[e]) {
9090
+ if (Ou[e]) {
9119
9091
  let a = i?.i18n_id, o = i?.fields;
9120
- a ||= xu(n), r[e] = Au[e](r[e], t, a, (e) => {
9092
+ a ||= yu(n), r[e] = Ou[e](r[e], t, a, (e) => {
9121
9093
  if (o) {
9122
9094
  let t = o[e]?.i18n_id;
9123
9095
  if (t) return t;
9124
9096
  }
9125
- return xu(e);
9097
+ return yu(e);
9126
9098
  });
9127
9099
  }
9128
9100
  }), console.log("result====", r), r;
9129
- }, Mu = (e, t) => {
9101
+ }, Au = (e, t) => {
9130
9102
  if (!t) return e;
9131
9103
  let n = (0, N.cloneDeep)(e || []), r = /* @__PURE__ */ new Map();
9132
9104
  n.forEach((e, t) => {
@@ -9138,24 +9110,24 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9138
9110
  let t = r.get(e.name);
9139
9111
  if (t !== void 0) {
9140
9112
  let r = n[t];
9141
- e.children && r.children && (r.children = Mu(r.children, e.children));
9113
+ e.children && r.children && (r.children = Au(r.children, e.children));
9142
9114
  let i = (0, N.cloneDeep)(e);
9143
9115
  delete i.children, Object.assign(r, i);
9144
9116
  } else {
9145
9117
  let t = (0, N.cloneDeep)(e);
9146
- n.push(t), t.children &&= Mu([], t.children);
9118
+ n.push(t), t.children &&= Au([], t.children);
9147
9119
  }
9148
9120
  }), n;
9149
- }, Nu = {
9150
- btn_list: Mu,
9151
- head_btn_list: Mu,
9152
- batch_update_list: Mu
9153
- }, Pu = (e, t) => {
9121
+ }, ju = {
9122
+ btn_list: Au,
9123
+ head_btn_list: Au,
9124
+ batch_update_list: Au
9125
+ }, Mu = (e, t) => {
9154
9126
  let n = (0, N.cloneDeep)(e);
9155
9127
  Object.keys(t).forEach((r) => {
9156
- Nu[r] ? n[r] = Nu[r](e[r], t[r]) : n[r] = t[r];
9128
+ ju[r] ? n[r] = ju[r](e[r], t[r]) : n[r] = t[r];
9157
9129
  }), Object.assign(e, n);
9158
- }, Fu = {
9130
+ }, Nu = {
9159
9131
  baseColumns: (e, t) => {
9160
9132
  if (e) return e.forEach((e) => {
9161
9133
  let n = e.dataIndex;
@@ -9185,12 +9157,12 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9185
9157
  options: a
9186
9158
  }), e;
9187
9159
  }
9188
- }, Iu = (e, t) => {
9160
+ }, Pu = (e, t) => {
9189
9161
  let n = (0, N.cloneDeep)(e);
9190
9162
  return Object.keys(t).forEach((n) => {
9191
- Fu[n] && (e[n] = Fu[n](e[n], t[n]));
9163
+ Nu[n] && (e[n] = Nu[n](e[n], t[n]));
9192
9164
  }), n;
9193
- }, Lu = { baseColumns: (e) => {
9165
+ }, Fu = { baseColumns: (e) => {
9194
9166
  if (!e || !Array.isArray(e)) return e;
9195
9167
  let t = s(), n = r();
9196
9168
  for (let r of e) if (r.cellComponent && !r.formatExcelValue) {
@@ -9201,12 +9173,12 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9201
9173
  }
9202
9174
  }
9203
9175
  return e;
9204
- } }, Ru = (e) => {
9176
+ } }, Iu = (e) => {
9205
9177
  Object.keys(e).forEach((t) => {
9206
- Lu[t] && (e[t] = Lu[t](e[t]));
9178
+ Fu[t] && (e[t] = Fu[t](e[t]));
9207
9179
  });
9208
- }, zu = {}, Bu = () => {
9209
- if (Object.keys(zu).length > 0) return;
9180
+ }, Lu = {}, Ru = () => {
9181
+ if (Object.keys(Lu).length > 0) return;
9210
9182
  let e = /* #__PURE__ */ Object.assign({
9211
9183
  "/src/components/remotePages/configs/global/sync_data_source.ts": we,
9212
9184
  "/src/components/remotePages/configs/global/sync_export_task.ts": Ee,
@@ -9224,14 +9196,14 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9224
9196
  "/src/components/remotePages/configs/permission/permission-role-manage-config.ts": au,
9225
9197
  "/src/components/remotePages/configs/permission/permission-role.ts": lu,
9226
9198
  "/src/components/remotePages/configs/permission/permission-user-config.ts": du,
9227
- "/src/components/remotePages/configs/permission/permission-user.ts": hu,
9228
- "/src/components/remotePages/configs/permission/role-manage.ts": _u
9199
+ "/src/components/remotePages/configs/permission/permission-user.ts": pu,
9200
+ "/src/components/remotePages/configs/permission/role-manage.ts": hu
9229
9201
  }), t = i("remotePages");
9230
9202
  Object.assign(e, t), Object.keys(e).forEach((t) => {
9231
9203
  let n = t.split("/"), r = n[n.length - 1].replace(".ts", "");
9232
- r.endsWith("-config") || (zu[r] = e[t].default);
9204
+ r.endsWith("-config") || (Lu[r] = e[t].default);
9233
9205
  });
9234
- }, Vu = async ({ org_id: e, user_id: t, app_flag: n, modalType: r, sort_fields: i, is_cache: a, history_id: o }) => {
9206
+ }, zu = async ({ org_id: e, user_id: t, app_flag: n, modalType: r, sort_fields: i, is_cache: a, history_id: o }) => {
9235
9207
  let s = c(), [l, u] = await Promise.all([g({
9236
9208
  org_id: e,
9237
9209
  user_id: t,
@@ -9240,7 +9212,7 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9240
9212
  history_id: o,
9241
9213
  sort_fields: i,
9242
9214
  is_cache: a
9243
- }, "/view/get_view_settings_for_user"), Hu({
9215
+ }, "/view/get_view_settings_for_user"), Bu({
9244
9216
  org_id: e,
9245
9217
  app_flag: n,
9246
9218
  modalType: r,
@@ -9250,7 +9222,7 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9250
9222
  ...l,
9251
9223
  defaultAndServerConfig: u
9252
9224
  };
9253
- }, Hu = async ({ org_id: e, app_flag: t, modalType: n, history_id: r }) => {
9225
+ }, Bu = async ({ org_id: e, app_flag: t, modalType: n, history_id: r }) => {
9254
9226
  let i = c(), a = n.split("-")[1], o = {
9255
9227
  flag: n + "_config",
9256
9228
  org_id: e
@@ -9276,7 +9248,7 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9276
9248
  ]);
9277
9249
  return u.defaultConfig = e || {}, u.override = n || {}, u.serverConfig = r || {}, u;
9278
9250
  }
9279
- }, Uu = (e, t) => {
9251
+ }, Vu = (e, t) => {
9280
9252
  if (!e || !t) return;
9281
9253
  let n = (e) => typeof e == "string" && e && !e.endsWith(`-${t}`) ? `${e}-${t}` : e;
9282
9254
  e.titleList && [
@@ -9293,9 +9265,9 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9293
9265
  });
9294
9266
  };
9295
9267
  r(e.btn_list), r(e.head_btn_list), r(e.batch_update_list);
9296
- }, Wu = (e, t, n, r, i) => {
9268
+ }, Hu = (e, t, n, r, i) => {
9297
9269
  let { use_store: a = !0, to_i18n: s = !1, enable_btn: c = !1 } = i || {};
9298
- Bu();
9270
+ Ru();
9299
9271
  let l = a ? o() : null, u, d, f, p, m = t.split("-");
9300
9272
  if (m.length >= 2) d = m[0], f = m[1], p = m[2];
9301
9273
  else {
@@ -9307,12 +9279,12 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9307
9279
  let e = l.getCachedConfig(t);
9308
9280
  if (e) return e;
9309
9281
  }
9310
- let h = zu[t], g = !1;
9311
- if (!h && p && (h = zu[`${d}-${f}`], h && (g = !0)), !h) {
9312
- let e = zu[`${f}`];
9282
+ let h = Lu[t], g = !1;
9283
+ if (!h && p && (h = Lu[`${d}-${f}`], h && (g = !0)), !h) {
9284
+ let e = Lu[`${f}`];
9313
9285
  e && (h = e);
9314
9286
  }
9315
- h ? (u = (0, N.cloneDeep)(h(r, { model_app: d })), g && Uu(u, p), l && l.setCustomConfig(t, u)) : (console.log("remotePages3没有组件:" + t), l && l.setCustomConfig(t, {}));
9287
+ h ? (u = (0, N.cloneDeep)(h(r, { model_app: d })), g && Vu(u, p), l && l.setCustomConfig(t, u)) : (console.log("remotePages3没有组件:" + t), l && l.setCustomConfig(t, {}));
9316
9288
  let _ = k({
9317
9289
  title: "",
9318
9290
  addModalTitle: "新建",
@@ -9412,7 +9384,7 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9412
9384
  ],
9413
9385
  default_view_type: "normal"
9414
9386
  };
9415
- if (n) Object.assign(y, n.defaultConfig), p && Uu(y, p), l && l.setDefaultConfig(t, y);
9387
+ if (n) Object.assign(y, n.defaultConfig), p && Vu(y, p), l && l.setDefaultConfig(t, y);
9416
9388
  else {
9417
9389
  let e = l && l.getDefaultConfig(t);
9418
9390
  e && Object.assign(y, e);
@@ -9420,16 +9392,16 @@ var xu = (e) => bu(e).slice(-3), Su = (e, t, n, r) => (!e || !Array.isArray(e) |
9420
9392
  let b = (0, N.cloneDeep)(y), x = null;
9421
9393
  n ? (x = n.serverConfig, l && l.setServerConfig(t, x)) : x = l && l.getServerConfig(t), !x?.default_column_field && x?.searchConfig?.default_column_field && x?.searchConfig?.default_column_field?.length > 0 && (x.default_column_field = x.searchConfig.default_column_field), !c && x && (delete x.btn_list, delete x.head_btn_list, delete x.batch_update_list), Object.assign(b, x);
9422
9394
  let S = null;
9423
- n ? (S = n.override, l && S && l.setOverrideConfig(t, S)) : S = l && l.getOverrideConfig(t), S && Iu(b, S), u && (Pu(b, u), u?.default_column_field && u?.default_column_field?.length > 0 ? b.default_column_field = u?.default_column_field : u?.searchConfig?.default_column_field && u?.searchConfig?.default_column_field?.length > 0 && (b.default_column_field = u?.searchConfig?.default_column_field)), l && l.setMergedConfig(t, b), b.is_stripe && (b.processData = (e) => {
9395
+ n ? (S = n.override, l && S && l.setOverrideConfig(t, S)) : S = l && l.getOverrideConfig(t), S && Pu(b, S), u && (Mu(b, u), u?.default_column_field && u?.default_column_field?.length > 0 ? b.default_column_field = u?.default_column_field : u?.searchConfig?.default_column_field && u?.searchConfig?.default_column_field?.length > 0 && (b.default_column_field = u?.searchConfig?.default_column_field)), l && l.setMergedConfig(t, b), b.is_stripe && (b.processData = (e) => {
9424
9396
  let t = 0, n = {};
9425
9397
  return e.forEach((e) => {
9426
9398
  e.color_index0 = 1, n?.[e?.[b.is_stripe]] ?? (n[e[b.is_stripe]] = t, t += 1, e.color_index0 = 0), e.color_index = n[e[b.is_stripe]];
9427
9399
  }), e;
9428
- }, b.customRow = (e) => e.color_index0 == 1 ? { style: { background: "rgba(85,162,235,0.3)" } } : e.color_index % 2 == 0 ? { style: { background: "#FFFFFE" } } : { style: { background: "#FAFAFA" } }), Ru(b);
9400
+ }, b.customRow = (e) => e.color_index0 == 1 ? { style: { background: "rgba(85,162,235,0.3)" } } : e.color_index % 2 == 0 ? { style: { background: "#FFFFFE" } } : { style: { background: "#FAFAFA" } }), Iu(b);
9429
9401
  let C = b;
9430
- return s && (C = ju(b, r, t)), l && l.setCachedConfig(t, C), C;
9431
- }, Gu = {}, Ku = (e, t) => {
9432
- Gu[e] = (0, N.cloneDeep)(t);
9433
- }, qu = (e) => (0, N.cloneDeep)(Gu[e]);
9402
+ return s && (C = ku(b, r, t)), l && l.setCachedConfig(t, C), C;
9403
+ }, Uu = {}, Wu = (e, t) => {
9404
+ Uu[e] = (0, N.cloneDeep)(t);
9405
+ }, Gu = (e) => (0, N.cloneDeep)(Uu[e]);
9434
9406
  //#endregion
9435
- export { Ku as a, Vu as i, Hu as n, Wu as r, qu as t };
9407
+ export { Wu as a, zu as i, Bu as n, Hu as r, Gu as t };