@fmdeui/fmui 1.0.143 → 1.0.145

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.143 */
1
+ /*! fmdeui-fmui v1.0.145 */
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) :
@@ -27864,7 +27864,7 @@
27864
27864
  /* STABLE */
27865
27865
  }, 8, ["data"]),
27866
27866
  vue.createVNode(_component_el_pagination, {
27867
- currentPage: state.queryParams.page,
27867
+ "current-page": state.queryParams.page,
27868
27868
  "page-size": state.queryParams.pageSize,
27869
27869
  total: state.queryParams.total,
27870
27870
  "page-sizes": [10, 20, 50, 100],
@@ -27873,7 +27873,7 @@
27873
27873
  onCurrentChange: handleCurrentChange,
27874
27874
  layout: "total, sizes, prev, pager, next, jumper",
27875
27875
  style: { "padding-bottom": "8px" }
27876
- }, null, 8, ["currentPage", "page-size", "total"])
27876
+ }, null, 8, ["current-page", "page-size", "total"])
27877
27877
  ]),
27878
27878
  _: 1
27879
27879
  /* STABLE */
@@ -30002,7 +30002,12 @@
30002
30002
  const modelValue = vue.useModel(__props, "modelValue");
30003
30003
  const props = __props;
30004
30004
  const visibleopenDialog = vue.ref(false);
30005
- const tableDialogRef = vue.ref();
30005
+ const tableUserDialogRef = vue.ref();
30006
+ const tableSupplierUserDialogRef = vue.ref();
30007
+ const tableAccountDialogRef = vue.ref();
30008
+ const tableSubjectDialogRef = vue.ref();
30009
+ const tableLineDialogRef = vue.ref();
30010
+ const tableSupplierDialogRef = vue.ref();
30006
30011
  const emit = __emit;
30007
30012
  const querySearchAsync = async (queryString, cb) => {
30008
30013
  var _a;
@@ -30032,7 +30037,7 @@
30032
30037
  };
30033
30038
  const resetValue = () => {
30034
30039
  for (let item of props.vGroup) {
30035
- if (!item.key || item.key === "name") {
30040
+ if (!item.key || item.key === props.vName) {
30036
30041
  continue;
30037
30042
  }
30038
30043
  modelValue.value[item.key] = item.value;
@@ -30049,17 +30054,40 @@
30049
30054
  }
30050
30055
  emit("select", item);
30051
30056
  };
30052
- const handleRefresh = () => {
30053
- if (tableDialogRef.value) {
30054
- tableDialogRef.value.handleQuery();
30057
+ const handleRefresh = async () => {
30058
+ var _a;
30059
+ await vue.nextTick();
30060
+ if (props.openType == 0) {
30061
+ if (tableUserDialogRef.value) {
30062
+ tableUserDialogRef.value.handleQuery();
30063
+ }
30064
+ } else if (props.openType == 1) {
30065
+ if (tableSupplierUserDialogRef.value) {
30066
+ tableSupplierUserDialogRef.value.handleQuery();
30067
+ }
30068
+ }
30069
+ if (props.openType == 2) {
30070
+ if (tableSupplierDialogRef.value) {
30071
+ tableSupplierDialogRef.value.handleQuery();
30072
+ }
30073
+ } else if (props.openType == 3) {
30074
+ if (tableAccountDialogRef.value) {
30075
+ tableAccountDialogRef.value.handleQuery();
30076
+ }
30077
+ } else if (props.openType == 4) {
30078
+ if (tableSubjectDialogRef.value) {
30079
+ tableSubjectDialogRef.value.handleQuery();
30080
+ }
30081
+ } else if (props.openType == 5) {
30082
+ (_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
30055
30083
  }
30056
30084
  };
30057
30085
  return (_ctx, _cache) => {
30058
30086
  const _component_el_icon = vue.resolveComponent("el-icon");
30059
30087
  const _component_el_autocomplete = vue.resolveComponent("el-autocomplete");
30060
30088
  return vue.openBlock(), vue.createBlock(_component_el_autocomplete, {
30061
- modelValue: modelValue.value.name,
30062
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => modelValue.value.name = $event),
30089
+ modelValue: modelValue.value[__props.vName],
30090
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => modelValue.value[__props.vName] = $event),
30063
30091
  debounce: 500,
30064
30092
  "fetch-suggestions": querySearchAsync,
30065
30093
  placeholder: props.placeholder,
@@ -30100,8 +30128,8 @@
30100
30128
  }, 8, ["size"]),
30101
30129
  __props.openType == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
30102
30130
  key: 0,
30103
- ref_key: "tableDialogRef",
30104
- ref: tableDialogRef,
30131
+ ref_key: "tableUserDialogRef",
30132
+ ref: tableUserDialogRef,
30105
30133
  visible: visibleopenDialog.value,
30106
30134
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
30107
30135
  orgService: __props.orgService,
@@ -30115,8 +30143,8 @@
30115
30143
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
30116
30144
  __props.openType == 1 ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
30117
30145
  key: 1,
30118
- ref_key: "tableDialogRef",
30119
- ref: tableDialogRef,
30146
+ ref_key: "tableSupplierUserDialogRef",
30147
+ ref: tableSupplierUserDialogRef,
30120
30148
  visible: visibleopenDialog.value,
30121
30149
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
30122
30150
  title: __props.title,
@@ -30127,8 +30155,8 @@
30127
30155
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
30128
30156
  __props.openType == 2 ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
30129
30157
  key: 2,
30130
- ref_key: "tableDialogRef",
30131
- ref: tableDialogRef,
30158
+ ref_key: "tableSupplierDialogRef",
30159
+ ref: tableSupplierDialogRef,
30132
30160
  visible: visibleopenDialog.value,
30133
30161
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
30134
30162
  title: __props.title,
@@ -30140,8 +30168,8 @@
30140
30168
  vue.createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
30141
30169
  __props.openType == 3 ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
30142
30170
  key: 3,
30143
- ref_key: "tableDialogRef",
30144
- ref: tableDialogRef,
30171
+ ref_key: "tableAccountDialogRef",
30172
+ ref: tableAccountDialogRef,
30145
30173
  visible: visibleopenDialog.value,
30146
30174
  "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
30147
30175
  title: __props.title,
@@ -30153,8 +30181,8 @@
30153
30181
  vue.createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
30154
30182
  __props.openType == 4 ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
30155
30183
  key: 4,
30156
- ref_key: "tableDialogRef",
30157
- ref: tableDialogRef,
30184
+ ref_key: "tableSubjectDialogRef",
30185
+ ref: tableSubjectDialogRef,
30158
30186
  visible: visibleopenDialog.value,
30159
30187
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
30160
30188
  title: __props.title,
@@ -30166,8 +30194,8 @@
30166
30194
  vue.createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
30167
30195
  __props.openType == 5 ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
30168
30196
  key: 5,
30169
- ref_key: "tableDialogRef",
30170
- ref: tableDialogRef,
30197
+ ref_key: "tableLineDialogRef",
30198
+ ref: tableLineDialogRef,
30171
30199
  visible: visibleopenDialog.value,
30172
30200
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
30173
30201
  title: __props.title,