@fmdeui/fmui 1.0.93 → 1.0.95

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.93 */
1
+ /*! fmdeui-fmui v1.0.95 */
2
2
  import VxeUITable from 'vxe-table';
3
3
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
4
4
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
@@ -21686,8 +21686,8 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
21686
21686
  const _hoisted_1$q = { class: "inside_box" };
21687
21687
  const _hoisted_2$i = { class: "inside_box_title" };
21688
21688
  const _hoisted_3$b = { class: "check-box" };
21689
- const _hoisted_4$7 = { class: "more_dropdown_icon" };
21690
- const _hoisted_5$6 = { class: "out_box" };
21689
+ const _hoisted_4$8 = { class: "more_dropdown_icon" };
21690
+ const _hoisted_5$7 = { class: "out_box" };
21691
21691
  var _sfc_main$D = /* @__PURE__ */ defineComponent({
21692
21692
  ...{
21693
21693
  name: "MoreChoose"
@@ -21808,10 +21808,10 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
21808
21808
  ref: "popover"
21809
21809
  }, {
21810
21810
  reference: withCtx(() => [
21811
- createElementVNode("div", _hoisted_4$7, [
21811
+ createElementVNode("div", _hoisted_4$8, [
21812
21812
  createElementVNode(
21813
21813
  "span",
21814
- _hoisted_5$6,
21814
+ _hoisted_5$7,
21815
21815
  toDisplayString(__props.popoverAttrsBind.showTxt),
21816
21816
  1
21817
21817
  /* TEXT */
@@ -22706,7 +22706,7 @@ const _hoisted_1$p = {
22706
22706
  };
22707
22707
  const _hoisted_2$h = ["element-loading-text"];
22708
22708
  const _hoisted_3$a = { key: 2 };
22709
- const _hoisted_4$6 = {
22709
+ const _hoisted_4$7 = {
22710
22710
  key: 0,
22711
22711
  class: "f-table-select__page"
22712
22712
  };
@@ -23493,7 +23493,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
23493
23493
  _: 3
23494
23494
  /* FORWARDED */
23495
23495
  }, 16, ["data", "class"]),
23496
- __props.isShowPagination ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
23496
+ __props.isShowPagination ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
23497
23497
  createVNode(_component_el_pagination, mergeProps({
23498
23498
  "current-page": __props.table.currentPage,
23499
23499
  "onUpdate:currentPage": _cache[6] || (_cache[6] = ($event) => __props.table.currentPage = $event),
@@ -24495,8 +24495,8 @@ const other = {
24495
24495
  const _hoisted_1$m = { class: "layout-breadcrumb-seting" };
24496
24496
  const _hoisted_2$f = { class: "layout-breadcrumb-seting-bar-flex" };
24497
24497
  const _hoisted_3$9 = { class: "layout-breadcrumb-seting-bar-flex-label" };
24498
- const _hoisted_4$5 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24499
- const _hoisted_5$5 = { style: { "margin": "10px 0" } };
24498
+ const _hoisted_4$6 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24499
+ const _hoisted_5$6 = { style: { "margin": "10px 0" } };
24500
24500
  const _hoisted_6$3 = { class: "layout-breadcrumb-seting-bar-flex mt15" };
24501
24501
  const _hoisted_7$3 = { class: "layout-breadcrumb-seting-bar-flex-label" };
24502
24502
  const _hoisted_8$2 = { class: "layout-breadcrumb-seting-bar-flex-value" };
@@ -24914,7 +24914,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
24914
24914
  1
24915
24915
  /* TEXT */
24916
24916
  ),
24917
- createElementVNode("div", _hoisted_4$5, [
24917
+ createElementVNode("div", _hoisted_4$6, [
24918
24918
  createVNode(_component_el_color_picker, {
24919
24919
  modelValue: getThemeConfig.value.primary,
24920
24920
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => getThemeConfig.value.primary = $event),
@@ -24923,7 +24923,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
24923
24923
  }, null, 8, ["modelValue"])
24924
24924
  ])
24925
24925
  ]),
24926
- createElementVNode("div", _hoisted_5$5, [
24926
+ createElementVNode("div", _hoisted_5$6, [
24927
24927
  createVNode(
24928
24928
  _component_el_button,
24929
24929
  {
@@ -26946,8 +26946,10 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
26946
26946
  const FmInputNumber = _sfc_main$r;
26947
26947
 
26948
26948
  const _hoisted_1$l = { style: { "color": "#fff" } };
26949
- const _hoisted_2$e = { style: { "margin-top": "10px" } };
26950
- const _hoisted_3$8 = { class: "dialog-footer" };
26949
+ const _hoisted_2$e = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
26950
+ const _hoisted_3$8 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
26951
+ const _hoisted_4$5 = { style: { "margin-top": "10px" } };
26952
+ const _hoisted_5$5 = { class: "dialog-footer" };
26951
26953
  var _sfc_main$q = /* @__PURE__ */ defineComponent({
26952
26954
  __name: "userSelectDialog",
26953
26955
  props: {
@@ -26955,9 +26957,39 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
26955
26957
  type: Boolean,
26956
26958
  default: false
26957
26959
  },
26960
+ title: {
26961
+ type: String,
26962
+ default: ""
26963
+ },
26958
26964
  data: {
26959
26965
  type: Array,
26960
26966
  default: () => []
26967
+ },
26968
+ orgService: {
26969
+ type: String,
26970
+ default: "sysOrg"
26971
+ },
26972
+ orgAction: {
26973
+ type: String,
26974
+ default: "tree"
26975
+ },
26976
+ orgparas: {
26977
+ type: Object,
26978
+ default: () => {
26979
+ }
26980
+ },
26981
+ userService: {
26982
+ type: String,
26983
+ default: "sysUser"
26984
+ },
26985
+ userAction: {
26986
+ type: String,
26987
+ default: "page"
26988
+ },
26989
+ userParams: {
26990
+ type: Object,
26991
+ default: () => {
26992
+ }
26961
26993
  }
26962
26994
  },
26963
26995
  emits: ["update:visible", "change"],
@@ -26995,7 +27027,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
26995
27027
  };
26996
27028
  const getUserList = async () => {
26997
27029
  var _a, _b, _c, _d;
26998
- let res = await useBaseApi("sysUser").page(state.queryParams);
27030
+ let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
26999
27031
  userList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
27000
27032
  state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
27001
27033
  };
@@ -27056,28 +27088,28 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
27056
27088
  _: 1
27057
27089
  /* STABLE */
27058
27090
  }),
27059
- _cache[2] || (_cache[2] = createElementVNode(
27091
+ createElementVNode(
27060
27092
  "span",
27061
27093
  null,
27062
- " \u9009\u62E9\u8D26\u53F7 ",
27063
- -1
27064
- /* CACHED */
27065
- ))
27094
+ toDisplayString(_ctx.$t("\u9009\u62E9")) + toDisplayString(_ctx.$t(__props.title)),
27095
+ 1
27096
+ /* TEXT */
27097
+ )
27066
27098
  ])
27067
27099
  ]),
27068
27100
  footer: withCtx(() => [
27069
- createElementVNode("div", _hoisted_3$8, [
27101
+ createElementVNode("div", _hoisted_5$5, [
27070
27102
  createVNode(_component_el_button, {
27071
27103
  icon: "ele-CircleCloseFilled",
27072
27104
  onClick: closeDialog
27073
27105
  }, {
27074
- default: withCtx(() => [..._cache[7] || (_cache[7] = [
27106
+ default: withCtx(() => [
27075
27107
  createTextVNode(
27076
- "\u53D6\u6D88",
27077
- -1
27078
- /* CACHED */
27108
+ toDisplayString(_ctx.$t("\u53D6\u6D88")),
27109
+ 1
27110
+ /* TEXT */
27079
27111
  )
27080
- ])]),
27112
+ ]),
27081
27113
  _: 1
27082
27114
  /* STABLE */
27083
27115
  }),
@@ -27089,45 +27121,44 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
27089
27121
  default: withCtx(() => [
27090
27122
  createVNode(_component_el_col, { span: 6 }, {
27091
27123
  default: withCtx(() => [
27092
- _cache[3] || (_cache[3] = createElementVNode(
27124
+ createElementVNode(
27093
27125
  "p",
27094
- { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } },
27095
- "\u673A\u6784",
27096
- -1
27097
- /* CACHED */
27098
- )),
27099
- createVNode(
27100
- _component_FmTree,
27101
- {
27102
- ref: "orgTreeRef",
27103
- onNodeClick: handleNodeChange,
27104
- style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
27105
- },
27106
- null,
27107
- 512
27108
- /* NEED_PATCH */
27109
- )
27126
+ _hoisted_2$e,
27127
+ toDisplayString(_ctx.$t("\u673A\u6784")),
27128
+ 1
27129
+ /* TEXT */
27130
+ ),
27131
+ createVNode(_component_FmTree, {
27132
+ ref: "orgTreeRef",
27133
+ apiService: __props.orgService,
27134
+ apiAction: __props.orgAction,
27135
+ paras: __props.orgparas,
27136
+ onNodeClick: handleNodeChange,
27137
+ style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
27138
+ }, null, 8, ["apiService", "apiAction", "paras"])
27110
27139
  ]),
27111
27140
  _: 1
27112
27141
  /* STABLE */
27113
27142
  }),
27114
27143
  createVNode(_component_el_col, { span: 18 }, {
27115
27144
  default: withCtx(() => [
27116
- _cache[6] || (_cache[6] = createElementVNode(
27145
+ createElementVNode(
27117
27146
  "p",
27118
- { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } },
27119
- "\u7528\u6237\u5217\u8868",
27120
- -1
27121
- /* CACHED */
27122
- )),
27123
- createElementVNode("div", _hoisted_2$e, [
27147
+ _hoisted_3$8,
27148
+ toDisplayString(_ctx.$t(__props.title)) + toDisplayString(_ctx.$t("\u5217\u8868")),
27149
+ 1
27150
+ /* TEXT */
27151
+ ),
27152
+ createElementVNode("div", _hoisted_4$5, [
27124
27153
  createVNode(_component_el_form, {
27125
27154
  model: state.queryParams,
27126
27155
  ref: "queryRef",
27127
27156
  inline: true
27128
27157
  }, {
27129
27158
  default: withCtx(() => [
27130
- createVNode(_component_el_form_item, { label: "\u5173\u952E\u5B57" }, {
27159
+ createVNode(_component_el_form_item, {
27160
+ label: _ctx.$t("\u5173\u952E\u5B57")
27161
+ }, {
27131
27162
  default: withCtx(() => [
27132
27163
  createVNode(_component_el_input, {
27133
27164
  modelValue: state.queryParams.keyword,
@@ -27139,7 +27170,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
27139
27170
  ]),
27140
27171
  _: 1
27141
27172
  /* STABLE */
27142
- }),
27173
+ }, 8, ["label"]),
27143
27174
  createVNode(_component_el_form_item, null, {
27144
27175
  default: withCtx(() => [
27145
27176
  createVNode(_component_el_button_group, null, {
@@ -27149,13 +27180,13 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
27149
27180
  icon: "ele-Search",
27150
27181
  onClick: handleQuery
27151
27182
  }, {
27152
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
27183
+ default: withCtx(() => [
27153
27184
  createTextVNode(
27154
- " \u67E5\u8BE2 ",
27155
- -1
27156
- /* CACHED */
27185
+ toDisplayString(_ctx.$t("\u67E5\u8BE2")),
27186
+ 1
27187
+ /* TEXT */
27157
27188
  )
27158
- ])]),
27189
+ ]),
27159
27190
  _: 1
27160
27191
  /* STABLE */
27161
27192
  }),
@@ -27163,13 +27194,13 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
27163
27194
  icon: "ele-Refresh",
27164
27195
  onClick: resetQuery
27165
27196
  }, {
27166
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
27197
+ default: withCtx(() => [
27167
27198
  createTextVNode(
27168
- " \u91CD\u7F6E ",
27169
- -1
27170
- /* CACHED */
27199
+ toDisplayString(_ctx.$t("\u91CD\u7F6E")),
27200
+ 1
27201
+ /* TEXT */
27171
27202
  )
27172
- ])]),
27203
+ ]),
27173
27204
  _: 1
27174
27205
  /* STABLE */
27175
27206
  })
@@ -27225,41 +27256,41 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
27225
27256
  /* STABLE */
27226
27257
  }),
27227
27258
  createVNode(_component_el_table_column, {
27228
- label: "\u8D26\u53F7\u540D\u79F0",
27259
+ label: _ctx.$t("\u8D26\u53F7\u540D\u79F0"),
27229
27260
  prop: "account",
27230
27261
  align: "center",
27231
27262
  "show-overflow-tooltip": true
27232
- }),
27263
+ }, null, 8, ["label"]),
27233
27264
  createVNode(_component_el_table_column, {
27234
- label: "\u771F\u5B9E\u59D3\u540D",
27265
+ label: _ctx.$t("\u771F\u5B9E\u59D3\u540D"),
27235
27266
  prop: "realName",
27236
27267
  align: "center",
27237
27268
  "show-overflow-tooltip": true
27238
- }),
27269
+ }, null, 8, ["label"]),
27239
27270
  createVNode(_component_el_table_column, {
27240
- label: "\u8054\u7CFB\u65B9\u5F0F",
27271
+ label: _ctx.$t("\u8054\u7CFB\u65B9\u5F0F"),
27241
27272
  prop: "phone",
27242
27273
  align: "center",
27243
27274
  "show-overflow-tooltip": true
27244
- }),
27275
+ }, null, 8, ["label"]),
27245
27276
  createVNode(_component_el_table_column, {
27246
- label: "\u5C97\u4F4D",
27277
+ label: _ctx.$t("\u5C97\u4F4D"),
27247
27278
  prop: "posName",
27248
27279
  align: "center",
27249
27280
  "show-overflow-tooltip": true
27250
- }),
27281
+ }, null, 8, ["label"]),
27251
27282
  createVNode(_component_el_table_column, {
27252
- label: "\u5DE5\u53F7",
27283
+ label: _ctx.$t("\u5DE5\u53F7"),
27253
27284
  prop: "jobNum",
27254
27285
  align: "center",
27255
27286
  "show-overflow-tooltip": true
27256
- }),
27287
+ }, null, 8, ["label"]),
27257
27288
  createVNode(_component_el_table_column, {
27258
- label: "\u6240\u5C5E\u673A\u6784",
27289
+ label: _ctx.$t("\u6240\u5C5E\u673A\u6784"),
27259
27290
  prop: "orgName",
27260
27291
  align: "center",
27261
27292
  "show-overflow-tooltip": true
27262
- })
27293
+ }, null, 8, ["label"])
27263
27294
  ]),
27264
27295
  _: 1
27265
27296
  /* STABLE */
@@ -27325,6 +27356,10 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
27325
27356
  type: Number,
27326
27357
  default: 15
27327
27358
  },
27359
+ searchsize: {
27360
+ type: Number,
27361
+ default: 20
27362
+ },
27328
27363
  /**
27329
27364
  * 值的属性值
27330
27365
  */
@@ -27346,6 +27381,10 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
27346
27381
  type: Number,
27347
27382
  default: 0
27348
27383
  },
27384
+ title: {
27385
+ type: String,
27386
+ default: ""
27387
+ },
27349
27388
  params: {
27350
27389
  type: Object,
27351
27390
  default: () => {
@@ -27366,6 +27405,32 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
27366
27405
  type: Object,
27367
27406
  default: () => {
27368
27407
  }
27408
+ },
27409
+ orgService: {
27410
+ type: String,
27411
+ default: "sysOrg"
27412
+ },
27413
+ orgAction: {
27414
+ type: String,
27415
+ default: "list"
27416
+ },
27417
+ orgparas: {
27418
+ type: Object,
27419
+ default: () => {
27420
+ }
27421
+ },
27422
+ userService: {
27423
+ type: String,
27424
+ default: "sysUser"
27425
+ },
27426
+ userAction: {
27427
+ type: String,
27428
+ default: "page"
27429
+ },
27430
+ userParams: {
27431
+ type: Object,
27432
+ default: () => {
27433
+ }
27369
27434
  }
27370
27435
  }, {
27371
27436
  "name": {
@@ -27440,27 +27505,33 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
27440
27505
  /* TEXT */
27441
27506
  )
27442
27507
  ]),
27443
- append: withCtx(() => [
27444
- renderSlot(_ctx.$slots, "append", {}, () => [
27445
- createVNode(_component_el_icon, {
27446
- color: "#E6A23C",
27447
- onClick: _cache[0] || (_cache[0] = () => visibleopenDialog.value = true)
27448
- }, {
27449
- default: withCtx(() => [
27450
- createVNode(unref(Search))
27451
- ]),
27452
- _: 1
27453
- /* STABLE */
27454
- }),
27455
- createVNode(_sfc_main$q, {
27456
- visible: visibleopenDialog.value,
27457
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
27458
- onChange: handleSelectDialogChange
27459
- }, null, 8, ["visible"])
27460
- ])
27508
+ suffix: withCtx(() => [
27509
+ createVNode(_component_el_icon, {
27510
+ color: "#E6A23C",
27511
+ size: __props.searchsize,
27512
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
27513
+ }, {
27514
+ default: withCtx(() => [
27515
+ createVNode(unref(Search))
27516
+ ]),
27517
+ _: 1
27518
+ /* STABLE */
27519
+ }, 8, ["size"]),
27520
+ createVNode(_sfc_main$q, {
27521
+ visible: visibleopenDialog.value,
27522
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
27523
+ orgService: __props.orgService,
27524
+ orgAction: __props.orgAction,
27525
+ orgparas: __props.orgparas,
27526
+ title: __props.title,
27527
+ userService: __props.userService,
27528
+ userAction: __props.userAction,
27529
+ userParams: __props.userParams,
27530
+ onChange: handleSelectDialogChange
27531
+ }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])
27461
27532
  ]),
27462
- _: 3
27463
- /* FORWARDED */
27533
+ _: 1
27534
+ /* STABLE */
27464
27535
  }, 8, ["modelValue", "placeholder"]);
27465
27536
  };
27466
27537
  }
@@ -4,10 +4,38 @@ declare const _default: DefineComponent<ExtractPropTypes<{
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
6
  };
7
+ title: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
7
11
  data: {
8
12
  type: ArrayConstructor;
9
13
  default: () => never[];
10
14
  };
15
+ orgService: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ orgAction: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ orgparas: {
24
+ type: ObjectConstructor;
25
+ default: () => void;
26
+ };
27
+ userService: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ userAction: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ userParams: {
36
+ type: ObjectConstructor;
37
+ default: () => void;
38
+ };
11
39
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
40
  change: (...args: any[]) => void;
13
41
  "update:visible": (...args: any[]) => void;
@@ -16,16 +44,51 @@ declare const _default: DefineComponent<ExtractPropTypes<{
16
44
  type: BooleanConstructor;
17
45
  default: boolean;
18
46
  };
47
+ title: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
19
51
  data: {
20
52
  type: ArrayConstructor;
21
53
  default: () => never[];
22
54
  };
55
+ orgService: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ orgAction: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ orgparas: {
64
+ type: ObjectConstructor;
65
+ default: () => void;
66
+ };
67
+ userService: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ userAction: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ userParams: {
76
+ type: ObjectConstructor;
77
+ default: () => void;
78
+ };
23
79
  }>> & Readonly<{
24
80
  onChange?: ((...args: any[]) => any) | undefined;
25
81
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
26
82
  }>, {
83
+ title: string;
27
84
  data: unknown[];
28
85
  visible: boolean;
86
+ orgService: string;
87
+ orgAction: string;
88
+ orgparas: Record<string, any>;
89
+ userService: string;
90
+ userAction: string;
91
+ userParams: Record<string, any>;
29
92
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
30
93
  orgTreeRef: unknown;
31
94
  queryRef: unknown;