@fmdeui/fmui 1.0.138 → 1.0.139

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.
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function handleQuery(): Promise<void>;
2
3
  declare const _default: DefineComponent<ExtractPropTypes<{
3
4
  visible: {
4
5
  type: BooleanConstructor;
@@ -24,7 +25,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
24
25
  type: ObjectConstructor;
25
26
  default: () => void;
26
27
  };
27
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
+ }>, {
29
+ handleQuery: typeof handleQuery;
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
31
  change: (...args: any[]) => void;
29
32
  "update:visible": (...args: any[]) => void;
30
33
  }, string, PublicProps, Readonly< ExtractPropTypes<{
@@ -1,4 +1,4 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
2
  export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
3
3
  placeholder: {
4
4
  type: StringConstructor;
@@ -80,6 +80,10 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
80
80
  type: StringConstructor;
81
81
  default: string;
82
82
  };
83
+ refresh: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
83
87
  name: {
84
88
  type: PropType<string>;
85
89
  required: true;
@@ -174,6 +178,10 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
174
178
  type: StringConstructor;
175
179
  default: string;
176
180
  };
181
+ refresh: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
177
185
  name: {
178
186
  type: PropType<string>;
179
187
  required: true;
@@ -191,6 +199,7 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
191
199
  top: number;
192
200
  params: Record<string, any>;
193
201
  title: string;
202
+ refresh: boolean;
194
203
  placeholder: string;
195
204
  vId: string;
196
205
  orgService: string;
@@ -208,4 +217,93 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
208
217
  openType: number;
209
218
  accountService: string;
210
219
  accountAction: string;
211
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
220
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
221
+ tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
222
+ visible: {
223
+ type: BooleanConstructor;
224
+ default: boolean;
225
+ };
226
+ title: {
227
+ type: StringConstructor;
228
+ default: string;
229
+ };
230
+ data: {
231
+ type: ArrayConstructor;
232
+ default: () => never[];
233
+ };
234
+ userService: {
235
+ type: StringConstructor;
236
+ default: string;
237
+ };
238
+ userAction: {
239
+ type: StringConstructor;
240
+ default: string;
241
+ };
242
+ userParams: {
243
+ type: ObjectConstructor;
244
+ default: () => void;
245
+ };
246
+ }>> & Readonly<{
247
+ onChange?: ((...args: any[]) => any) | undefined;
248
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
249
+ }>, {
250
+ handleQuery: () => Promise<void>;
251
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
252
+ change: (...args: any[]) => void;
253
+ "update:visible": (...args: any[]) => void;
254
+ }, PublicProps, {
255
+ title: string;
256
+ data: unknown[];
257
+ visible: boolean;
258
+ userService: string;
259
+ userAction: string;
260
+ userParams: Record<string, any>;
261
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
262
+ queryRef: unknown;
263
+ refTable: unknown;
264
+ }, any, ComponentProvideOptions, {
265
+ P: {};
266
+ B: {};
267
+ D: {};
268
+ C: {};
269
+ M: {};
270
+ Defaults: {};
271
+ }, Readonly< ExtractPropTypes<{
272
+ visible: {
273
+ type: BooleanConstructor;
274
+ default: boolean;
275
+ };
276
+ title: {
277
+ type: StringConstructor;
278
+ default: string;
279
+ };
280
+ data: {
281
+ type: ArrayConstructor;
282
+ default: () => never[];
283
+ };
284
+ userService: {
285
+ type: StringConstructor;
286
+ default: string;
287
+ };
288
+ userAction: {
289
+ type: StringConstructor;
290
+ default: string;
291
+ };
292
+ userParams: {
293
+ type: ObjectConstructor;
294
+ default: () => void;
295
+ };
296
+ }>> & Readonly<{
297
+ onChange?: ((...args: any[]) => any) | undefined;
298
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
299
+ }>, {
300
+ handleQuery: () => Promise<void>;
301
+ }, {}, {}, {}, {
302
+ title: string;
303
+ data: unknown[];
304
+ visible: boolean;
305
+ userService: string;
306
+ userAction: string;
307
+ userParams: Record<string, any>;
308
+ }> | null;
309
+ }, any>;
@@ -1,4 +1,4 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
3
  placeholder: {
4
4
  type: StringConstructor;
@@ -102,6 +102,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
102
102
  type: StringConstructor;
103
103
  default: string;
104
104
  };
105
+ refresh: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
105
109
  name: {
106
110
  type: PropType<string>;
107
111
  required: true;
@@ -218,6 +222,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
218
222
  type: StringConstructor;
219
223
  default: string;
220
224
  };
225
+ refresh: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ };
221
229
  name: {
222
230
  type: PropType<string>;
223
231
  required: true;
@@ -235,6 +243,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
235
243
  top: number;
236
244
  params: Record<string, any>;
237
245
  title: string;
246
+ refresh: boolean;
238
247
  placeholder: string;
239
248
  vId: string;
240
249
  orgService: string;
@@ -252,5 +261,94 @@ declare const _default: DefineComponent<ExtractPropTypes<{
252
261
  openType: number;
253
262
  accountService: string;
254
263
  accountAction: string;
255
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
264
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
265
+ tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
266
+ visible: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
270
+ title: {
271
+ type: StringConstructor;
272
+ default: string;
273
+ };
274
+ data: {
275
+ type: ArrayConstructor;
276
+ default: () => never[];
277
+ };
278
+ userService: {
279
+ type: StringConstructor;
280
+ default: string;
281
+ };
282
+ userAction: {
283
+ type: StringConstructor;
284
+ default: string;
285
+ };
286
+ userParams: {
287
+ type: ObjectConstructor;
288
+ default: () => void;
289
+ };
290
+ }>> & Readonly<{
291
+ onChange?: ((...args: any[]) => any) | undefined;
292
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
293
+ }>, {
294
+ handleQuery: () => Promise<void>;
295
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
296
+ change: (...args: any[]) => void;
297
+ "update:visible": (...args: any[]) => void;
298
+ }, PublicProps, {
299
+ title: string;
300
+ data: unknown[];
301
+ visible: boolean;
302
+ userService: string;
303
+ userAction: string;
304
+ userParams: Record<string, any>;
305
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
306
+ queryRef: unknown;
307
+ refTable: unknown;
308
+ }, any, ComponentProvideOptions, {
309
+ P: {};
310
+ B: {};
311
+ D: {};
312
+ C: {};
313
+ M: {};
314
+ Defaults: {};
315
+ }, Readonly< ExtractPropTypes<{
316
+ visible: {
317
+ type: BooleanConstructor;
318
+ default: boolean;
319
+ };
320
+ title: {
321
+ type: StringConstructor;
322
+ default: string;
323
+ };
324
+ data: {
325
+ type: ArrayConstructor;
326
+ default: () => never[];
327
+ };
328
+ userService: {
329
+ type: StringConstructor;
330
+ default: string;
331
+ };
332
+ userAction: {
333
+ type: StringConstructor;
334
+ default: string;
335
+ };
336
+ userParams: {
337
+ type: ObjectConstructor;
338
+ default: () => void;
339
+ };
340
+ }>> & Readonly<{
341
+ onChange?: ((...args: any[]) => any) | undefined;
342
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
343
+ }>, {
344
+ handleQuery: () => Promise<void>;
345
+ }, {}, {}, {}, {
346
+ title: string;
347
+ data: unknown[];
348
+ visible: boolean;
349
+ userService: string;
350
+ userAction: string;
351
+ userParams: Record<string, any>;
352
+ }> | null;
353
+ }, any>;
256
354
  export default _default;
@@ -35,7 +35,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  }
36
36
  },
37
37
  emits: ["update:visible", "change"],
38
- setup(__props, { emit: __emit }) {
38
+ setup(__props, { expose: __expose, emit: __emit }) {
39
39
  let emits = __emit;
40
40
  const props = __props;
41
41
  const userList = ref([]);
@@ -76,7 +76,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  }
77
77
  function handleSelectUser(row) {
78
78
  if (!row || row.id == "") return;
79
- if (row.pid == 0) state.pdata = null;
80
79
  emits("change", { id: row.id, name: row.supplierName, supplierType: row.supplierType, pdata: state.pdata, data: row });
81
80
  }
82
81
  const handledbclick = (row) => {
@@ -101,6 +100,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
101
100
  checkedUsersList.value = [];
102
101
  emits("update:visible", false);
103
102
  };
103
+ __expose({
104
+ handleQuery
105
+ });
104
106
  return (_ctx, _cache) => {
105
107
  const _component_ele_Edit = resolveComponent("ele-Edit");
106
108
  const _component_el_icon = resolveComponent("el-icon");
@@ -120,6 +120,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
120
  accountAction: {
121
121
  type: String,
122
122
  default: "accountTable"
123
+ },
124
+ refresh: {
125
+ type: Boolean,
126
+ default: false
123
127
  }
124
128
  }, {
125
129
  "name": {
@@ -139,6 +143,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
139
143
  const autoId = useModel(__props, "id");
140
144
  const props = __props;
141
145
  const visibleopenDialog = ref(false);
146
+ const tableDialogRef = ref();
142
147
  const emit = __emit;
143
148
  const querySearchAsync = async (queryString, cb) => {
144
149
  var _a;
@@ -172,6 +177,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
172
177
  autoId.value = value.id;
173
178
  emit("select", value);
174
179
  };
180
+ const handleRefresh = () => {
181
+ if (tableDialogRef.value) {
182
+ tableDialogRef.value.handleQuery();
183
+ }
184
+ };
175
185
  return (_ctx, _cache) => {
176
186
  const _component_el_icon = resolveComponent("el-icon");
177
187
  const _component_el_autocomplete = resolveComponent("el-autocomplete");
@@ -203,7 +213,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
203
213
  createVNode(_component_el_icon, {
204
214
  color: "#E6A23C",
205
215
  size: __props.searchsize,
206
- onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
216
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
217
+ visibleopenDialog.value = true;
218
+ if (props.refresh) {
219
+ handleRefresh();
220
+ }
221
+ }, ["stop"]))
207
222
  }, {
208
223
  default: withCtx(() => [
209
224
  createVNode(unref(Search))
@@ -226,6 +241,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
226
241
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
227
242
  __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$2, {
228
243
  key: 1,
244
+ ref_key: "tableDialogRef",
245
+ ref: tableDialogRef,
229
246
  visible: visibleopenDialog.value,
230
247
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
231
248
  title: __props.title,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.138 */
1
+ /*! fmdeui-fmui v1.0.139 */
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) :
@@ -27926,7 +27926,7 @@
27926
27926
  }
27927
27927
  },
27928
27928
  emits: ["update:visible", "change"],
27929
- setup(__props, { emit: __emit }) {
27929
+ setup(__props, { expose: __expose, emit: __emit }) {
27930
27930
  let emits = __emit;
27931
27931
  const props = __props;
27932
27932
  const userList = vue.ref([]);
@@ -27967,7 +27967,6 @@
27967
27967
  }
27968
27968
  function handleSelectUser(row) {
27969
27969
  if (!row || row.id == "") return;
27970
- if (row.pid == 0) state.pdata = null;
27971
27970
  emits("change", { id: row.id, name: row.supplierName, supplierType: row.supplierType, pdata: state.pdata, data: row });
27972
27971
  }
27973
27972
  const handledbclick = (row) => {
@@ -27992,6 +27991,9 @@
27992
27991
  checkedUsersList.value = [];
27993
27992
  emits("update:visible", false);
27994
27993
  };
27994
+ __expose({
27995
+ handleQuery
27996
+ });
27995
27997
  return (_ctx, _cache) => {
27996
27998
  const _component_ele_Edit = vue.resolveComponent("ele-Edit");
27997
27999
  const _component_el_icon = vue.resolveComponent("el-icon");
@@ -29023,6 +29025,10 @@
29023
29025
  accountAction: {
29024
29026
  type: String,
29025
29027
  default: "accountTable"
29028
+ },
29029
+ refresh: {
29030
+ type: Boolean,
29031
+ default: false
29026
29032
  }
29027
29033
  }, {
29028
29034
  "name": {
@@ -29042,6 +29048,7 @@
29042
29048
  const autoId = vue.useModel(__props, "id");
29043
29049
  const props = __props;
29044
29050
  const visibleopenDialog = vue.ref(false);
29051
+ const tableDialogRef = vue.ref();
29045
29052
  const emit = __emit;
29046
29053
  const querySearchAsync = async (queryString, cb) => {
29047
29054
  var _a;
@@ -29075,6 +29082,11 @@
29075
29082
  autoId.value = value.id;
29076
29083
  emit("select", value);
29077
29084
  };
29085
+ const handleRefresh = () => {
29086
+ if (tableDialogRef.value) {
29087
+ tableDialogRef.value.handleQuery();
29088
+ }
29089
+ };
29078
29090
  return (_ctx, _cache) => {
29079
29091
  const _component_el_icon = vue.resolveComponent("el-icon");
29080
29092
  const _component_el_autocomplete = vue.resolveComponent("el-autocomplete");
@@ -29106,7 +29118,12 @@
29106
29118
  vue.createVNode(_component_el_icon, {
29107
29119
  color: "#E6A23C",
29108
29120
  size: __props.searchsize,
29109
- onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => visibleopenDialog.value = true, ["stop"]))
29121
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
29122
+ visibleopenDialog.value = true;
29123
+ if (props.refresh) {
29124
+ handleRefresh();
29125
+ }
29126
+ }, ["stop"]))
29110
29127
  }, {
29111
29128
  default: vue.withCtx(() => [
29112
29129
  vue.createVNode(vue.unref(svg.Search))
@@ -29129,6 +29146,8 @@
29129
29146
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
29130
29147
  __props.openType == 2 ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
29131
29148
  key: 1,
29149
+ ref_key: "tableDialogRef",
29150
+ ref: tableDialogRef,
29132
29151
  visible: visibleopenDialog.value,
29133
29152
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
29134
29153
  title: __props.title,