@fmdeui/fmui 1.0.168 → 1.0.169
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/es/packages/components/select-table/src/index2.vue.mjs +20 -7
- package/index.js +21 -8
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +21 -8
- package/lib/packages/components/select-table/src/index2.vue.js +20 -7
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/{lib → es}/make-installer.css +0 -0
- /package/{es/version.css → lib/index.css} +0 -0
|
@@ -246,6 +246,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
246
246
|
});
|
|
247
247
|
const internalLoading = ref(false);
|
|
248
248
|
const internalQueryParams = reactive({ ...props.queryParams });
|
|
249
|
+
const fromqueryParams = reactive({});
|
|
249
250
|
const fetchTableData = async (isResetPage = false) => {
|
|
250
251
|
if (!props.apiService) return;
|
|
251
252
|
internalLoading.value = true;
|
|
@@ -256,7 +257,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
256
257
|
const requestParams = {
|
|
257
258
|
page: pagination.currentPage,
|
|
258
259
|
pageSize: pagination.pageSize,
|
|
259
|
-
...internalQueryParams
|
|
260
|
+
...internalQueryParams,
|
|
261
|
+
...fromqueryParams
|
|
260
262
|
};
|
|
261
263
|
const res = await useBaseApi(props.apiService).post(requestParams, props.apiAction);
|
|
262
264
|
const formatted = props.responseFormatter(res);
|
|
@@ -347,6 +349,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
347
349
|
const handleEvent = () => {
|
|
348
350
|
selectRef.value.expanded = true;
|
|
349
351
|
};
|
|
352
|
+
const handleSubmit = (from) => {
|
|
353
|
+
selectRef.value.expanded = true;
|
|
354
|
+
fromqueryParams.value = from;
|
|
355
|
+
fetchTableData(true);
|
|
356
|
+
};
|
|
350
357
|
const queryVisibleChange = (val) => {
|
|
351
358
|
isQueryVisible.value = val;
|
|
352
359
|
};
|
|
@@ -394,16 +401,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
394
401
|
};
|
|
395
402
|
const findLabel = () => {
|
|
396
403
|
nextTick(() => {
|
|
397
|
-
var _a;
|
|
404
|
+
var _a, _b;
|
|
398
405
|
if (props.multiple) {
|
|
399
|
-
(_a = selectRef.value.selected) == null ? void 0 :
|
|
400
|
-
|
|
406
|
+
(_b = (_a = selectRef.value) == null ? void 0 : _a.selected) == null ? void 0 : _b.forEach((item) => {
|
|
407
|
+
var _a2;
|
|
408
|
+
const targetId = item.value;
|
|
409
|
+
const foundLabel = state.tabularMap[targetId] || ((_a2 = state.tableData.find((row) => row[props.keywords.value] === targetId)) == null ? void 0 : _a2[props.keywords.label]) || targetId;
|
|
410
|
+
item.currentLabel = foundLabel;
|
|
401
411
|
});
|
|
402
412
|
} else {
|
|
413
|
+
const isObj = state.defaultValue && typeof state.defaultValue === "object";
|
|
414
|
+
const currentLabel = isObj ? state.defaultValue[props.keywords.label] : "";
|
|
403
415
|
if (props.isRadioEchoLabel) {
|
|
404
|
-
selectDefaultLabel.value =
|
|
416
|
+
selectDefaultLabel.value = currentLabel || props.radioSelectValLabel || "";
|
|
405
417
|
} else {
|
|
406
|
-
selectDefaultLabel.value =
|
|
418
|
+
selectDefaultLabel.value = currentLabel;
|
|
407
419
|
}
|
|
408
420
|
}
|
|
409
421
|
});
|
|
@@ -722,7 +734,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
722
734
|
ref_key: "fQueryConditionRef",
|
|
723
735
|
ref: fQueryConditionRef,
|
|
724
736
|
boolEnter: false,
|
|
725
|
-
onHandleEvent: handleEvent
|
|
737
|
+
onHandleEvent: handleEvent,
|
|
738
|
+
onSubmit: handleSubmit
|
|
726
739
|
}, _ctx.$attrs),
|
|
727
740
|
createSlots({
|
|
728
741
|
_: 2
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.169 */
|
|
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) :
|
|
@@ -23289,6 +23289,7 @@
|
|
|
23289
23289
|
});
|
|
23290
23290
|
const internalLoading = vue.ref(false);
|
|
23291
23291
|
const internalQueryParams = vue.reactive({ ...props.queryParams });
|
|
23292
|
+
const fromqueryParams = vue.reactive({});
|
|
23292
23293
|
const fetchTableData = async (isResetPage = false) => {
|
|
23293
23294
|
if (!props.apiService) return;
|
|
23294
23295
|
internalLoading.value = true;
|
|
@@ -23299,7 +23300,8 @@
|
|
|
23299
23300
|
const requestParams = {
|
|
23300
23301
|
page: pagination.currentPage,
|
|
23301
23302
|
pageSize: pagination.pageSize,
|
|
23302
|
-
...internalQueryParams
|
|
23303
|
+
...internalQueryParams,
|
|
23304
|
+
...fromqueryParams
|
|
23303
23305
|
};
|
|
23304
23306
|
const res = await useBaseApi(props.apiService).post(requestParams, props.apiAction);
|
|
23305
23307
|
const formatted = props.responseFormatter(res);
|
|
@@ -23390,6 +23392,11 @@
|
|
|
23390
23392
|
const handleEvent = () => {
|
|
23391
23393
|
selectRef.value.expanded = true;
|
|
23392
23394
|
};
|
|
23395
|
+
const handleSubmit = (from) => {
|
|
23396
|
+
selectRef.value.expanded = true;
|
|
23397
|
+
fromqueryParams.value = from;
|
|
23398
|
+
fetchTableData(true);
|
|
23399
|
+
};
|
|
23393
23400
|
const queryVisibleChange = (val) => {
|
|
23394
23401
|
isQueryVisible.value = val;
|
|
23395
23402
|
};
|
|
@@ -23437,16 +23444,21 @@
|
|
|
23437
23444
|
};
|
|
23438
23445
|
const findLabel = () => {
|
|
23439
23446
|
vue.nextTick(() => {
|
|
23440
|
-
var _a;
|
|
23447
|
+
var _a, _b;
|
|
23441
23448
|
if (props.multiple) {
|
|
23442
|
-
(_a = selectRef.value.selected) == null ? void 0 :
|
|
23443
|
-
|
|
23449
|
+
(_b = (_a = selectRef.value) == null ? void 0 : _a.selected) == null ? void 0 : _b.forEach((item) => {
|
|
23450
|
+
var _a2;
|
|
23451
|
+
const targetId = item.value;
|
|
23452
|
+
const foundLabel = state.tabularMap[targetId] || ((_a2 = state.tableData.find((row) => row[props.keywords.value] === targetId)) == null ? void 0 : _a2[props.keywords.label]) || targetId;
|
|
23453
|
+
item.currentLabel = foundLabel;
|
|
23444
23454
|
});
|
|
23445
23455
|
} else {
|
|
23456
|
+
const isObj = state.defaultValue && typeof state.defaultValue === "object";
|
|
23457
|
+
const currentLabel = isObj ? state.defaultValue[props.keywords.label] : "";
|
|
23446
23458
|
if (props.isRadioEchoLabel) {
|
|
23447
|
-
selectDefaultLabel.value =
|
|
23459
|
+
selectDefaultLabel.value = currentLabel || props.radioSelectValLabel || "";
|
|
23448
23460
|
} else {
|
|
23449
|
-
selectDefaultLabel.value =
|
|
23461
|
+
selectDefaultLabel.value = currentLabel;
|
|
23450
23462
|
}
|
|
23451
23463
|
}
|
|
23452
23464
|
});
|
|
@@ -23765,7 +23777,8 @@
|
|
|
23765
23777
|
ref_key: "fQueryConditionRef",
|
|
23766
23778
|
ref: fQueryConditionRef,
|
|
23767
23779
|
boolEnter: false,
|
|
23768
|
-
onHandleEvent: handleEvent
|
|
23780
|
+
onHandleEvent: handleEvent,
|
|
23781
|
+
onSubmit: handleSubmit
|
|
23769
23782
|
}, _ctx.$attrs),
|
|
23770
23783
|
vue.createSlots({
|
|
23771
23784
|
_: 2
|