@fmdeui/fmui 1.0.118 → 1.0.120

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.118 */
1
+ /*! fmdeui-fmui v1.0.120 */
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) :
@@ -21924,9 +21924,9 @@
21924
21924
 
21925
21925
  const _hoisted_1$t = { class: "inside_box" };
21926
21926
  const _hoisted_2$k = { class: "inside_box_title" };
21927
- const _hoisted_3$c = { class: "check-box" };
21928
- const _hoisted_4$8 = { class: "more_dropdown_icon" };
21929
- const _hoisted_5$7 = { class: "out_box" };
21927
+ const _hoisted_3$d = { class: "check-box" };
21928
+ const _hoisted_4$9 = { class: "more_dropdown_icon" };
21929
+ const _hoisted_5$8 = { class: "out_box" };
21930
21930
  var _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
21931
21931
  ...{
21932
21932
  name: "MoreChoose"
@@ -22047,10 +22047,10 @@
22047
22047
  ref: "popover"
22048
22048
  }, {
22049
22049
  reference: vue.withCtx(() => [
22050
- vue.createElementVNode("div", _hoisted_4$8, [
22050
+ vue.createElementVNode("div", _hoisted_4$9, [
22051
22051
  vue.createElementVNode(
22052
22052
  "span",
22053
- _hoisted_5$7,
22053
+ _hoisted_5$8,
22054
22054
  vue.toDisplayString(__props.popoverAttrsBind.showTxt),
22055
22055
  1
22056
22056
  /* TEXT */
@@ -22074,7 +22074,7 @@
22074
22074
  1
22075
22075
  /* TEXT */
22076
22076
  ),
22077
- vue.createElementVNode("div", _hoisted_3$c, [
22077
+ vue.createElementVNode("div", _hoisted_3$d, [
22078
22078
  vue.createVNode(_component_el_button, {
22079
22079
  size: "small",
22080
22080
  link: "",
@@ -22944,8 +22944,8 @@
22944
22944
  class: "table_query_condition"
22945
22945
  };
22946
22946
  const _hoisted_2$j = ["element-loading-text"];
22947
- const _hoisted_3$b = { key: 2 };
22948
- const _hoisted_4$7 = {
22947
+ const _hoisted_3$c = { key: 2 };
22948
+ const _hoisted_4$8 = {
22949
22949
  key: 0,
22950
22950
  class: "f-table-select__page"
22951
22951
  };
@@ -23710,7 +23710,7 @@
23710
23710
  key: 1,
23711
23711
  scope
23712
23712
  }) : vue.createCommentVNode("v-if", true),
23713
- !item.render && !item.slotName ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
23713
+ !item.render && !item.slotName ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
23714
23714
  vue.createElementVNode(
23715
23715
  "span",
23716
23716
  null,
@@ -23732,7 +23732,7 @@
23732
23732
  _: 3
23733
23733
  /* FORWARDED */
23734
23734
  }, 16, ["data", "class"]),
23735
- __props.isShowPagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7, [
23735
+ __props.isShowPagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$8, [
23736
23736
  vue.createVNode(_component_el_pagination, vue.mergeProps({
23737
23737
  "current-page": __props.table.currentPage,
23738
23738
  "onUpdate:currentPage": _cache[6] || (_cache[6] = ($event) => __props.table.currentPage = $event),
@@ -24733,9 +24733,9 @@
24733
24733
 
24734
24734
  const _hoisted_1$p = { class: "layout-breadcrumb-seting" };
24735
24735
  const _hoisted_2$h = { class: "layout-breadcrumb-seting-bar-flex" };
24736
- const _hoisted_3$a = { class: "layout-breadcrumb-seting-bar-flex-label" };
24737
- const _hoisted_4$6 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24738
- const _hoisted_5$6 = { style: { "margin": "10px 0" } };
24736
+ const _hoisted_3$b = { class: "layout-breadcrumb-seting-bar-flex-label" };
24737
+ const _hoisted_4$7 = { class: "layout-breadcrumb-seting-bar-flex-value" };
24738
+ const _hoisted_5$7 = { style: { "margin": "10px 0" } };
24739
24739
  const _hoisted_6$3 = { class: "layout-breadcrumb-seting-bar-flex mt15" };
24740
24740
  const _hoisted_7$3 = { class: "layout-breadcrumb-seting-bar-flex-label" };
24741
24741
  const _hoisted_8$2 = { class: "layout-breadcrumb-seting-bar-flex-value" };
@@ -25148,12 +25148,12 @@
25148
25148
  vue.createElementVNode("div", _hoisted_2$h, [
25149
25149
  vue.createElementVNode(
25150
25150
  "div",
25151
- _hoisted_3$a,
25151
+ _hoisted_3$b,
25152
25152
  vue.toDisplayString(_ctx.$t("message.layout.themeColors")),
25153
25153
  1
25154
25154
  /* TEXT */
25155
25155
  ),
25156
- vue.createElementVNode("div", _hoisted_4$6, [
25156
+ vue.createElementVNode("div", _hoisted_4$7, [
25157
25157
  vue.createVNode(_component_el_color_picker, {
25158
25158
  modelValue: getThemeConfig.value.primary,
25159
25159
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => getThemeConfig.value.primary = $event),
@@ -25162,7 +25162,7 @@
25162
25162
  }, null, 8, ["modelValue"])
25163
25163
  ])
25164
25164
  ]),
25165
- vue.createElementVNode("div", _hoisted_5$6, [
25165
+ vue.createElementVNode("div", _hoisted_5$7, [
25166
25166
  vue.createVNode(
25167
25167
  _component_el_button,
25168
25168
  {
@@ -27403,9 +27403,9 @@
27403
27403
 
27404
27404
  const _hoisted_1$n = { style: { "color": "#fff" } };
27405
27405
  const _hoisted_2$g = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27406
- const _hoisted_3$9 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27407
- const _hoisted_4$5 = { style: { "margin-top": "10px" } };
27408
- const _hoisted_5$5 = { class: "dialog-footer" };
27406
+ const _hoisted_3$a = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27407
+ const _hoisted_4$6 = { style: { "margin-top": "10px" } };
27408
+ const _hoisted_5$6 = { class: "dialog-footer" };
27409
27409
  var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
27410
27410
  __name: "userSelectDialog",
27411
27411
  props: {
@@ -27564,7 +27564,7 @@
27564
27564
  ])
27565
27565
  ]),
27566
27566
  footer: vue.withCtx(() => [
27567
- vue.createElementVNode("div", _hoisted_5$5, [
27567
+ vue.createElementVNode("div", _hoisted_5$6, [
27568
27568
  vue.createVNode(_component_el_button, {
27569
27569
  icon: "ele-CircleCloseFilled",
27570
27570
  onClick: closeDialog
@@ -27611,12 +27611,12 @@
27611
27611
  default: vue.withCtx(() => [
27612
27612
  vue.createElementVNode(
27613
27613
  "p",
27614
- _hoisted_3$9,
27614
+ _hoisted_3$a,
27615
27615
  vue.toDisplayString(_ctx.$t(__props.title)) + vue.toDisplayString(_ctx.$t("\u5217\u8868")),
27616
27616
  1
27617
27617
  /* TEXT */
27618
27618
  ),
27619
- vue.createElementVNode("div", _hoisted_4$5, [
27619
+ vue.createElementVNode("div", _hoisted_4$6, [
27620
27620
  vue.createVNode(_component_el_form, {
27621
27621
  model: state.queryParams,
27622
27622
  ref: "queryRef",
@@ -27797,7 +27797,7 @@
27797
27797
 
27798
27798
  const _hoisted_1$m = { style: { "color": "#fff" } };
27799
27799
  const _hoisted_2$f = { style: { "margin-top": "10px" } };
27800
- const _hoisted_3$8 = { class: "dialog-footer" };
27800
+ const _hoisted_3$9 = { class: "dialog-footer" };
27801
27801
  var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
27802
27802
  __name: "supplierSelectDialog",
27803
27803
  props: {
@@ -27931,7 +27931,7 @@
27931
27931
  ])
27932
27932
  ]),
27933
27933
  footer: vue.withCtx(() => [
27934
- vue.createElementVNode("div", _hoisted_3$8, [
27934
+ vue.createElementVNode("div", _hoisted_3$9, [
27935
27935
  vue.createVNode(_component_el_button, {
27936
27936
  icon: "ele-CircleCloseFilled",
27937
27937
  onClick: closeDialog
@@ -28161,7 +28161,10 @@
28161
28161
  });
28162
28162
 
28163
28163
  const _hoisted_1$l = { style: { "color": "#fff" } };
28164
- const _hoisted_2$e = { class: "dialog-footer" };
28164
+ 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" } };
28165
+ 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" } };
28166
+ const _hoisted_4$5 = { style: { "margin-top": "10px" } };
28167
+ const _hoisted_5$5 = { class: "dialog-footer" };
28165
28168
  var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
28166
28169
  __name: "subjectSelectDialog",
28167
28170
  props: {
@@ -28203,12 +28206,39 @@
28203
28206
  closeDialog();
28204
28207
  }
28205
28208
  });
28209
+ const state = vue.reactive({
28210
+ treeData: [{ id: 1, name: "\u8D44\u4EA7", code: "" }, { id: 2, name: "\u8D1F\u503A", code: "" }, { id: 3, name: "\u6743\u76CA", code: "" }, { id: 4, name: "\u6210\u672C", code: "" }, { id: 5, name: "\u635F\u76CA", code: "" }],
28211
+ total: 0,
28212
+ queryParams: {
28213
+ pid: 0
28214
+ }
28215
+ });
28216
+ const tableList = vue.ref([]);
28206
28217
  vue.onMounted(async () => {
28218
+ await getTableList();
28207
28219
  });
28220
+ const getTableList = async () => {
28221
+ var _a;
28222
+ const res = await useBaseApi(props.subjectService).post(state.queryParams, props.subjectAction);
28223
+ tableList.value = (_a = res.data.result) != null ? _a : [];
28224
+ };
28225
+ function handleSelect(row) {
28226
+ if (!row || row.id == "" || row.isLeaf == 0) return;
28227
+ emits("change", { id: row.id, name: row.subjectName, code: row.subjectCode, data: row });
28228
+ }
28229
+ const handledbclick = (row) => {
28230
+ handleSelect(row);
28231
+ };
28232
+ async function handleQuery() {
28233
+ await getTableList();
28234
+ }
28208
28235
  const handleNodeChange = async (node) => {
28209
- if (node.data.isLeaf == 1) {
28210
- emits("change", { id: node.id, name: node.name, code: node.data.subjectCode, data: node.data });
28211
- }
28236
+ state.queryParams.pid = node.id;
28237
+ await handleQuery();
28238
+ };
28239
+ const resetQuery = () => {
28240
+ state.queryParams = {};
28241
+ handleQuery();
28212
28242
  };
28213
28243
  const closeDialog = () => {
28214
28244
  emits("update:visible", false);
@@ -28218,12 +28248,20 @@
28218
28248
  const _component_el_icon = vue.resolveComponent("el-icon");
28219
28249
  const _component_FmTree = vue.resolveComponent("FmTree");
28220
28250
  const _component_el_col = vue.resolveComponent("el-col");
28221
- const _component_el_row = vue.resolveComponent("el-row");
28251
+ const _component_el_input = vue.resolveComponent("el-input");
28252
+ const _component_el_form_item = vue.resolveComponent("el-form-item");
28222
28253
  const _component_el_button = vue.resolveComponent("el-button");
28254
+ const _component_el_button_group = vue.resolveComponent("el-button-group");
28255
+ const _component_el_form = vue.resolveComponent("el-form");
28256
+ const _component_ele_Plus = vue.resolveComponent("ele-Plus");
28257
+ const _component_el_table_column = vue.resolveComponent("el-table-column");
28258
+ const _component_el_table = vue.resolveComponent("el-table");
28259
+ const _component_el_card = vue.resolveComponent("el-card");
28260
+ const _component_el_row = vue.resolveComponent("el-row");
28223
28261
  const _component_el_dialog = vue.resolveComponent("el-dialog");
28224
28262
  return vue.openBlock(), vue.createBlock(_component_el_dialog, {
28225
28263
  modelValue: vue.unref(visibleDialog),
28226
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
28264
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
28227
28265
  style: { "width": "70vw" },
28228
28266
  "append-to-body": "",
28229
28267
  draggable: "",
@@ -28251,7 +28289,7 @@
28251
28289
  ])
28252
28290
  ]),
28253
28291
  footer: vue.withCtx(() => [
28254
- vue.createElementVNode("div", _hoisted_2$e, [
28292
+ vue.createElementVNode("div", _hoisted_5$5, [
28255
28293
  vue.createVNode(_component_el_button, {
28256
28294
  icon: "ele-CircleCloseFilled",
28257
28295
  onClick: closeDialog
@@ -28272,18 +28310,163 @@
28272
28310
  default: vue.withCtx(() => [
28273
28311
  vue.createVNode(_component_el_row, { gutter: 10 }, {
28274
28312
  default: vue.withCtx(() => [
28275
- vue.createVNode(_component_el_col, { span: 24 }, {
28313
+ vue.createVNode(_component_el_col, { span: 6 }, {
28276
28314
  default: vue.withCtx(() => [
28315
+ vue.createElementVNode(
28316
+ "p",
28317
+ _hoisted_2$e,
28318
+ vue.toDisplayString(_ctx.$t("\u5927\u7C7B")),
28319
+ 1
28320
+ /* TEXT */
28321
+ ),
28277
28322
  vue.createVNode(_component_FmTree, {
28278
- ref: "orgTreeRef",
28279
- apiService: __props.subjectService,
28280
- apiAction: __props.subjectAction,
28281
- isPost: true,
28282
- defaultProps: { children: "children", label: "subjectName" },
28283
- paras: __props.subjectParams,
28323
+ treeData: state.treeData,
28284
28324
  onNodeClick: handleNodeChange,
28285
28325
  style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
28286
- }, null, 8, ["apiService", "apiAction", "paras"])
28326
+ }, null, 8, ["treeData"])
28327
+ ]),
28328
+ _: 1
28329
+ /* STABLE */
28330
+ }),
28331
+ vue.createVNode(_component_el_col, { span: 18 }, {
28332
+ default: vue.withCtx(() => [
28333
+ vue.createElementVNode(
28334
+ "p",
28335
+ _hoisted_3$8,
28336
+ vue.toDisplayString(_ctx.$t(__props.title)) + vue.toDisplayString(_ctx.$t("\u5217\u8868")),
28337
+ 1
28338
+ /* TEXT */
28339
+ ),
28340
+ vue.createElementVNode("div", _hoisted_4$5, [
28341
+ vue.createVNode(_component_el_form, {
28342
+ model: state.queryParams,
28343
+ ref: "queryRef",
28344
+ inline: true
28345
+ }, {
28346
+ default: vue.withCtx(() => [
28347
+ vue.createVNode(_component_el_form_item, {
28348
+ label: _ctx.$t("\u5173\u952E\u5B57")
28349
+ }, {
28350
+ default: vue.withCtx(() => [
28351
+ vue.createVNode(_component_el_input, {
28352
+ modelValue: state.queryParams.keyword,
28353
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
28354
+ clearable: "",
28355
+ style: { "width": "150px" },
28356
+ onKeyup: vue.withKeys(handleQuery, ["enter"])
28357
+ }, null, 8, ["modelValue"])
28358
+ ]),
28359
+ _: 1
28360
+ /* STABLE */
28361
+ }, 8, ["label"]),
28362
+ vue.createVNode(_component_el_form_item, null, {
28363
+ default: vue.withCtx(() => [
28364
+ vue.createVNode(_component_el_button_group, null, {
28365
+ default: vue.withCtx(() => [
28366
+ vue.createVNode(_component_el_button, {
28367
+ type: "primary",
28368
+ icon: "ele-Search",
28369
+ onClick: handleQuery
28370
+ }, {
28371
+ default: vue.withCtx(() => [
28372
+ vue.createTextVNode(
28373
+ vue.toDisplayString(_ctx.$t("\u67E5\u8BE2")),
28374
+ 1
28375
+ /* TEXT */
28376
+ )
28377
+ ]),
28378
+ _: 1
28379
+ /* STABLE */
28380
+ }),
28381
+ vue.createVNode(_component_el_button, {
28382
+ icon: "ele-Refresh",
28383
+ onClick: resetQuery
28384
+ }, {
28385
+ default: vue.withCtx(() => [
28386
+ vue.createTextVNode(
28387
+ vue.toDisplayString(_ctx.$t("\u91CD\u7F6E")),
28388
+ 1
28389
+ /* TEXT */
28390
+ )
28391
+ ]),
28392
+ _: 1
28393
+ /* STABLE */
28394
+ })
28395
+ ]),
28396
+ _: 1
28397
+ /* STABLE */
28398
+ })
28399
+ ]),
28400
+ _: 1
28401
+ /* STABLE */
28402
+ })
28403
+ ]),
28404
+ _: 1
28405
+ /* STABLE */
28406
+ }, 8, ["model"]),
28407
+ vue.createVNode(_component_el_card, {
28408
+ class: "full-table",
28409
+ shadow: "hover"
28410
+ }, {
28411
+ default: vue.withCtx(() => [
28412
+ vue.createVNode(_component_el_table, {
28413
+ ref: "refTable",
28414
+ data: tableList.value,
28415
+ "row-key": "id",
28416
+ "default-expand-all": "",
28417
+ style: { "height": "calc(70vh - 96px)" },
28418
+ onRowDblclick: handledbclick
28419
+ }, {
28420
+ default: vue.withCtx(() => [
28421
+ vue.createVNode(_component_el_table_column, {
28422
+ label: "\u64CD\u4F5C",
28423
+ width: "60",
28424
+ align: "center"
28425
+ }, {
28426
+ default: vue.withCtx((scope) => [
28427
+ scope.row.isLeaf == 1 ? (vue.openBlock(), vue.createBlock(_component_el_button, {
28428
+ key: 0,
28429
+ link: "",
28430
+ type: "primary",
28431
+ onClick: ($event) => handleSelect(scope.row)
28432
+ }, {
28433
+ default: vue.withCtx(() => [
28434
+ vue.createVNode(_component_el_icon, null, {
28435
+ default: vue.withCtx(() => [
28436
+ vue.createVNode(_component_ele_Plus)
28437
+ ]),
28438
+ _: 1
28439
+ /* STABLE */
28440
+ })
28441
+ ]),
28442
+ _: 1
28443
+ /* STABLE */
28444
+ }, 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
28445
+ ]),
28446
+ _: 1
28447
+ /* STABLE */
28448
+ }),
28449
+ vue.createVNode(_component_el_table_column, {
28450
+ label: _ctx.$t("\u79D1\u76EE\u7F16\u7801"),
28451
+ prop: "subjectCode",
28452
+ align: "center",
28453
+ "show-overflow-tooltip": true
28454
+ }, null, 8, ["label"]),
28455
+ vue.createVNode(_component_el_table_column, {
28456
+ label: _ctx.$t("\u79D1\u76EE\u540D\u79F0"),
28457
+ prop: "subjectName",
28458
+ align: "center",
28459
+ "show-overflow-tooltip": true
28460
+ }, null, 8, ["label"])
28461
+ ]),
28462
+ _: 1
28463
+ /* STABLE */
28464
+ }, 8, ["data"])
28465
+ ]),
28466
+ _: 1
28467
+ /* STABLE */
28468
+ })
28469
+ ])
28287
28470
  ]),
28288
28471
  _: 1
28289
28472
  /* STABLE */
@@ -28347,6 +28530,13 @@
28347
28530
  type: String,
28348
28531
  default: "name"
28349
28532
  },
28533
+ /**
28534
+ * 过滤出来显示的名称 加上属性标签
28535
+ */
28536
+ vLabel: {
28537
+ type: String,
28538
+ default: ""
28539
+ },
28350
28540
  /**
28351
28541
  * 查询业务表ID
28352
28542
  */
@@ -28463,7 +28653,7 @@
28463
28653
  vue.createElementVNode(
28464
28654
  "div",
28465
28655
  _hoisted_1$k,
28466
- vue.toDisplayString(item[__props.vName]),
28656
+ vue.toDisplayString(item[__props.vName]) + " " + vue.toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
28467
28657
  1
28468
28658
  /* TEXT */
28469
28659
  )