@fmdeui/fmui 1.0.93 → 1.0.94

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.93 */
1
+ /*! fmdeui-fmui v1.0.94 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -21688,8 +21688,8 @@
21688
21688
  const _hoisted_1$q = { class: "inside_box" };
21689
21689
  const _hoisted_2$i = { class: "inside_box_title" };
21690
21690
  const _hoisted_3$b = { class: "check-box" };
21691
- const _hoisted_4$7 = { class: "more_dropdown_icon" };
21692
- const _hoisted_5$6 = { class: "out_box" };
21691
+ const _hoisted_4$8 = { class: "more_dropdown_icon" };
21692
+ const _hoisted_5$7 = { class: "out_box" };
21693
21693
  var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
21694
21694
  ...{
21695
21695
  name: "MoreChoose"
@@ -21810,10 +21810,10 @@
21810
21810
  ref: "popover"
21811
21811
  }, {
21812
21812
  reference: vue.withCtx(() => [
21813
- vue.createElementVNode("div", _hoisted_4$7, [
21813
+ vue.createElementVNode("div", _hoisted_4$8, [
21814
21814
  vue.createElementVNode(
21815
21815
  "span",
21816
- _hoisted_5$6,
21816
+ _hoisted_5$7,
21817
21817
  vue.toDisplayString(__props.popoverAttrsBind.showTxt),
21818
21818
  1
21819
21819
  /* TEXT */
@@ -22708,7 +22708,7 @@
22708
22708
  };
22709
22709
  const _hoisted_2$h = ["element-loading-text"];
22710
22710
  const _hoisted_3$a = { key: 2 };
22711
- const _hoisted_4$6 = {
22711
+ const _hoisted_4$7 = {
22712
22712
  key: 0,
22713
22713
  class: "f-table-select__page"
22714
22714
  };
@@ -23495,7 +23495,7 @@
23495
23495
  _: 3
23496
23496
  /* FORWARDED */
23497
23497
  }, 16, ["data", "class"]),
23498
- __props.isShowPagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
23498
+ __props.isShowPagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7, [
23499
23499
  vue.createVNode(_component_el_pagination, vue.mergeProps({
23500
23500
  "current-page": __props.table.currentPage,
23501
23501
  "onUpdate:currentPage": _cache[6] || (_cache[6] = ($event) => __props.table.currentPage = $event),
@@ -24497,8 +24497,8 @@
24497
24497
  const _hoisted_1$m = { class: "layout-breadcrumb-seting" };
24498
24498
  const _hoisted_2$f = { class: "layout-breadcrumb-seting-bar-flex" };
24499
24499
  const _hoisted_3$9 = { class: "layout-breadcrumb-seting-bar-flex-label" };
24500
- const _hoisted_4$5 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24501
- const _hoisted_5$5 = { style: { "margin": "10px 0" } };
24500
+ const _hoisted_4$6 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24501
+ const _hoisted_5$6 = { style: { "margin": "10px 0" } };
24502
24502
  const _hoisted_6$3 = { class: "layout-breadcrumb-seting-bar-flex mt15" };
24503
24503
  const _hoisted_7$3 = { class: "layout-breadcrumb-seting-bar-flex-label" };
24504
24504
  const _hoisted_8$2 = { class: "layout-breadcrumb-seting-bar-flex-value" };
@@ -24916,7 +24916,7 @@
24916
24916
  1
24917
24917
  /* TEXT */
24918
24918
  ),
24919
- vue.createElementVNode("div", _hoisted_4$5, [
24919
+ vue.createElementVNode("div", _hoisted_4$6, [
24920
24920
  vue.createVNode(_component_el_color_picker, {
24921
24921
  modelValue: getThemeConfig.value.primary,
24922
24922
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => getThemeConfig.value.primary = $event),
@@ -24925,7 +24925,7 @@
24925
24925
  }, null, 8, ["modelValue"])
24926
24926
  ])
24927
24927
  ]),
24928
- vue.createElementVNode("div", _hoisted_5$5, [
24928
+ vue.createElementVNode("div", _hoisted_5$6, [
24929
24929
  vue.createVNode(
24930
24930
  _component_el_button,
24931
24931
  {
@@ -26948,8 +26948,10 @@
26948
26948
  const FmInputNumber = _sfc_main$r;
26949
26949
 
26950
26950
  const _hoisted_1$l = { style: { "color": "#fff" } };
26951
- const _hoisted_2$e = { style: { "margin-top": "10px" } };
26952
- const _hoisted_3$8 = { class: "dialog-footer" };
26951
+ 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" } };
26952
+ 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" } };
26953
+ const _hoisted_4$5 = { style: { "margin-top": "10px" } };
26954
+ const _hoisted_5$5 = { class: "dialog-footer" };
26953
26955
  var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
26954
26956
  __name: "userSelectDialog",
26955
26957
  props: {
@@ -26957,9 +26959,39 @@
26957
26959
  type: Boolean,
26958
26960
  default: false
26959
26961
  },
26962
+ title: {
26963
+ type: String,
26964
+ default: ""
26965
+ },
26960
26966
  data: {
26961
26967
  type: Array,
26962
26968
  default: () => []
26969
+ },
26970
+ orgService: {
26971
+ type: String,
26972
+ default: "sysOrg"
26973
+ },
26974
+ orgAction: {
26975
+ type: String,
26976
+ default: "tree"
26977
+ },
26978
+ orgparas: {
26979
+ type: Object,
26980
+ default: () => {
26981
+ }
26982
+ },
26983
+ userService: {
26984
+ type: String,
26985
+ default: "sysUser"
26986
+ },
26987
+ userAction: {
26988
+ type: String,
26989
+ default: "page"
26990
+ },
26991
+ userParams: {
26992
+ type: Object,
26993
+ default: () => {
26994
+ }
26963
26995
  }
26964
26996
  },
26965
26997
  emits: ["update:visible", "change"],
@@ -26997,7 +27029,7 @@
26997
27029
  };
26998
27030
  const getUserList = async () => {
26999
27031
  var _a, _b, _c, _d;
27000
- let res = await useBaseApi("sysUser").page(state.queryParams);
27032
+ let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
27001
27033
  userList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
27002
27034
  state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
27003
27035
  };
@@ -27058,28 +27090,28 @@
27058
27090
  _: 1
27059
27091
  /* STABLE */
27060
27092
  }),
27061
- _cache[2] || (_cache[2] = vue.createElementVNode(
27093
+ vue.createElementVNode(
27062
27094
  "span",
27063
27095
  null,
27064
- " \u9009\u62E9\u8D26\u53F7 ",
27065
- -1
27066
- /* CACHED */
27067
- ))
27096
+ vue.toDisplayString(_ctx.$t("\u9009\u62E9")) + vue.toDisplayString(_ctx.$t(__props.title)),
27097
+ 1
27098
+ /* TEXT */
27099
+ )
27068
27100
  ])
27069
27101
  ]),
27070
27102
  footer: vue.withCtx(() => [
27071
- vue.createElementVNode("div", _hoisted_3$8, [
27103
+ vue.createElementVNode("div", _hoisted_5$5, [
27072
27104
  vue.createVNode(_component_el_button, {
27073
27105
  icon: "ele-CircleCloseFilled",
27074
27106
  onClick: closeDialog
27075
27107
  }, {
27076
- default: vue.withCtx(() => [..._cache[7] || (_cache[7] = [
27108
+ default: vue.withCtx(() => [
27077
27109
  vue.createTextVNode(
27078
- "\u53D6\u6D88",
27079
- -1
27080
- /* CACHED */
27110
+ vue.toDisplayString(_ctx.$t("\u53D6\u6D88")),
27111
+ 1
27112
+ /* TEXT */
27081
27113
  )
27082
- ])]),
27114
+ ]),
27083
27115
  _: 1
27084
27116
  /* STABLE */
27085
27117
  }),
@@ -27091,45 +27123,44 @@
27091
27123
  default: vue.withCtx(() => [
27092
27124
  vue.createVNode(_component_el_col, { span: 6 }, {
27093
27125
  default: vue.withCtx(() => [
27094
- _cache[3] || (_cache[3] = vue.createElementVNode(
27126
+ vue.createElementVNode(
27095
27127
  "p",
27096
- { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } },
27097
- "\u673A\u6784",
27098
- -1
27099
- /* CACHED */
27100
- )),
27101
- vue.createVNode(
27102
- _component_FmTree,
27103
- {
27104
- ref: "orgTreeRef",
27105
- onNodeClick: handleNodeChange,
27106
- style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
27107
- },
27108
- null,
27109
- 512
27110
- /* NEED_PATCH */
27111
- )
27128
+ _hoisted_2$e,
27129
+ vue.toDisplayString(_ctx.$t("\u673A\u6784")),
27130
+ 1
27131
+ /* TEXT */
27132
+ ),
27133
+ vue.createVNode(_component_FmTree, {
27134
+ ref: "orgTreeRef",
27135
+ apiService: __props.orgService,
27136
+ apiAction: __props.orgAction,
27137
+ paras: __props.orgparas,
27138
+ onNodeClick: handleNodeChange,
27139
+ style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
27140
+ }, null, 8, ["apiService", "apiAction", "paras"])
27112
27141
  ]),
27113
27142
  _: 1
27114
27143
  /* STABLE */
27115
27144
  }),
27116
27145
  vue.createVNode(_component_el_col, { span: 18 }, {
27117
27146
  default: vue.withCtx(() => [
27118
- _cache[6] || (_cache[6] = vue.createElementVNode(
27147
+ vue.createElementVNode(
27119
27148
  "p",
27120
- { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } },
27121
- "\u7528\u6237\u5217\u8868",
27122
- -1
27123
- /* CACHED */
27124
- )),
27125
- vue.createElementVNode("div", _hoisted_2$e, [
27149
+ _hoisted_3$8,
27150
+ vue.toDisplayString(_ctx.$t(__props.title)) + vue.toDisplayString(_ctx.$t("\u5217\u8868")),
27151
+ 1
27152
+ /* TEXT */
27153
+ ),
27154
+ vue.createElementVNode("div", _hoisted_4$5, [
27126
27155
  vue.createVNode(_component_el_form, {
27127
27156
  model: state.queryParams,
27128
27157
  ref: "queryRef",
27129
27158
  inline: true
27130
27159
  }, {
27131
27160
  default: vue.withCtx(() => [
27132
- vue.createVNode(_component_el_form_item, { label: "\u5173\u952E\u5B57" }, {
27161
+ vue.createVNode(_component_el_form_item, {
27162
+ label: _ctx.$t("\u5173\u952E\u5B57")
27163
+ }, {
27133
27164
  default: vue.withCtx(() => [
27134
27165
  vue.createVNode(_component_el_input, {
27135
27166
  modelValue: state.queryParams.keyword,
@@ -27141,7 +27172,7 @@
27141
27172
  ]),
27142
27173
  _: 1
27143
27174
  /* STABLE */
27144
- }),
27175
+ }, 8, ["label"]),
27145
27176
  vue.createVNode(_component_el_form_item, null, {
27146
27177
  default: vue.withCtx(() => [
27147
27178
  vue.createVNode(_component_el_button_group, null, {
@@ -27151,13 +27182,13 @@
27151
27182
  icon: "ele-Search",
27152
27183
  onClick: handleQuery
27153
27184
  }, {
27154
- default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
27185
+ default: vue.withCtx(() => [
27155
27186
  vue.createTextVNode(
27156
- " \u67E5\u8BE2 ",
27157
- -1
27158
- /* CACHED */
27187
+ vue.toDisplayString(_ctx.$t("\u67E5\u8BE2")),
27188
+ 1
27189
+ /* TEXT */
27159
27190
  )
27160
- ])]),
27191
+ ]),
27161
27192
  _: 1
27162
27193
  /* STABLE */
27163
27194
  }),
@@ -27165,13 +27196,13 @@
27165
27196
  icon: "ele-Refresh",
27166
27197
  onClick: resetQuery
27167
27198
  }, {
27168
- default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
27199
+ default: vue.withCtx(() => [
27169
27200
  vue.createTextVNode(
27170
- " \u91CD\u7F6E ",
27171
- -1
27172
- /* CACHED */
27201
+ vue.toDisplayString(_ctx.$t("\u91CD\u7F6E")),
27202
+ 1
27203
+ /* TEXT */
27173
27204
  )
27174
- ])]),
27205
+ ]),
27175
27206
  _: 1
27176
27207
  /* STABLE */
27177
27208
  })
@@ -27227,41 +27258,41 @@
27227
27258
  /* STABLE */
27228
27259
  }),
27229
27260
  vue.createVNode(_component_el_table_column, {
27230
- label: "\u8D26\u53F7\u540D\u79F0",
27261
+ label: _ctx.$t("\u8D26\u53F7\u540D\u79F0"),
27231
27262
  prop: "account",
27232
27263
  align: "center",
27233
27264
  "show-overflow-tooltip": true
27234
- }),
27265
+ }, null, 8, ["label"]),
27235
27266
  vue.createVNode(_component_el_table_column, {
27236
- label: "\u771F\u5B9E\u59D3\u540D",
27267
+ label: _ctx.$t("\u771F\u5B9E\u59D3\u540D"),
27237
27268
  prop: "realName",
27238
27269
  align: "center",
27239
27270
  "show-overflow-tooltip": true
27240
- }),
27271
+ }, null, 8, ["label"]),
27241
27272
  vue.createVNode(_component_el_table_column, {
27242
- label: "\u8054\u7CFB\u65B9\u5F0F",
27273
+ label: _ctx.$t("\u8054\u7CFB\u65B9\u5F0F"),
27243
27274
  prop: "phone",
27244
27275
  align: "center",
27245
27276
  "show-overflow-tooltip": true
27246
- }),
27277
+ }, null, 8, ["label"]),
27247
27278
  vue.createVNode(_component_el_table_column, {
27248
- label: "\u5C97\u4F4D",
27279
+ label: _ctx.$t("\u5C97\u4F4D"),
27249
27280
  prop: "posName",
27250
27281
  align: "center",
27251
27282
  "show-overflow-tooltip": true
27252
- }),
27283
+ }, null, 8, ["label"]),
27253
27284
  vue.createVNode(_component_el_table_column, {
27254
- label: "\u5DE5\u53F7",
27285
+ label: _ctx.$t("\u5DE5\u53F7"),
27255
27286
  prop: "jobNum",
27256
27287
  align: "center",
27257
27288
  "show-overflow-tooltip": true
27258
- }),
27289
+ }, null, 8, ["label"]),
27259
27290
  vue.createVNode(_component_el_table_column, {
27260
- label: "\u6240\u5C5E\u673A\u6784",
27291
+ label: _ctx.$t("\u6240\u5C5E\u673A\u6784"),
27261
27292
  prop: "orgName",
27262
27293
  align: "center",
27263
27294
  "show-overflow-tooltip": true
27264
- })
27295
+ }, null, 8, ["label"])
27265
27296
  ]),
27266
27297
  _: 1
27267
27298
  /* STABLE */
@@ -27348,6 +27379,10 @@
27348
27379
  type: Number,
27349
27380
  default: 0
27350
27381
  },
27382
+ title: {
27383
+ type: String,
27384
+ default: ""
27385
+ },
27351
27386
  params: {
27352
27387
  type: Object,
27353
27388
  default: () => {
@@ -27368,6 +27403,32 @@
27368
27403
  type: Object,
27369
27404
  default: () => {
27370
27405
  }
27406
+ },
27407
+ orgService: {
27408
+ type: String,
27409
+ default: "sysOrg"
27410
+ },
27411
+ orgAction: {
27412
+ type: String,
27413
+ default: "list"
27414
+ },
27415
+ orgparas: {
27416
+ type: Object,
27417
+ default: () => {
27418
+ }
27419
+ },
27420
+ userService: {
27421
+ type: String,
27422
+ default: "sysUser"
27423
+ },
27424
+ userAction: {
27425
+ type: String,
27426
+ default: "page"
27427
+ },
27428
+ userParams: {
27429
+ type: Object,
27430
+ default: () => {
27431
+ }
27371
27432
  }
27372
27433
  }, {
27373
27434
  "name": {
@@ -27443,26 +27504,31 @@
27443
27504
  )
27444
27505
  ]),
27445
27506
  append: vue.withCtx(() => [
27446
- vue.renderSlot(_ctx.$slots, "append", {}, () => [
27447
- vue.createVNode(_component_el_icon, {
27448
- color: "#E6A23C",
27449
- onClick: _cache[0] || (_cache[0] = () => visibleopenDialog.value = true)
27450
- }, {
27451
- default: vue.withCtx(() => [
27452
- vue.createVNode(vue.unref(svg.Search))
27453
- ]),
27454
- _: 1
27455
- /* STABLE */
27456
- }),
27457
- vue.createVNode(_sfc_main$q, {
27458
- visible: visibleopenDialog.value,
27459
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
27460
- onChange: handleSelectDialogChange
27461
- }, null, 8, ["visible"])
27462
- ])
27507
+ vue.createVNode(_component_el_icon, {
27508
+ color: "#E6A23C",
27509
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => visibleopenDialog.value = true, ["stop"]))
27510
+ }, {
27511
+ default: vue.withCtx(() => [
27512
+ vue.createVNode(vue.unref(svg.Search))
27513
+ ]),
27514
+ _: 1
27515
+ /* STABLE */
27516
+ }),
27517
+ vue.createVNode(_sfc_main$q, {
27518
+ visible: visibleopenDialog.value,
27519
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
27520
+ orgService: __props.orgService,
27521
+ orgAction: __props.orgAction,
27522
+ orgparas: __props.orgparas,
27523
+ title: __props.title,
27524
+ userService: __props.userService,
27525
+ userAction: __props.userAction,
27526
+ userParams: __props.userParams,
27527
+ onChange: handleSelectDialogChange
27528
+ }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])
27463
27529
  ]),
27464
- _: 3
27465
- /* FORWARDED */
27530
+ _: 1
27531
+ /* STABLE */
27466
27532
  }, 8, ["modelValue", "placeholder"]);
27467
27533
  };
27468
27534
  }