mali-ui-plus 1.1.78 → 1.1.79
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/lib/mali-ui-plus.common.js +467 -167
- package/lib/mali-ui-plus.css +1 -1
- package/lib/mali-ui-plus.umd.js +467 -167
- package/lib/mali-ui-plus.umd.min.js +1 -1
- package/package.json +1 -1
- package/style/modules/grid.scss +48 -1
|
@@ -62618,6 +62618,140 @@ const MlTablevue_type_script_lang_ts_setup_true_hoisted_4 = {
|
|
|
62618
62618
|
const MlTable_exports_ = MlTablevue_type_script_lang_ts_setup_true;
|
|
62619
62619
|
|
|
62620
62620
|
/* harmony default export */ var MlTable = (MlTable_exports_);
|
|
62621
|
+
;// CONCATENATED MODULE: ./modal/toast.ts
|
|
62622
|
+
|
|
62623
|
+
|
|
62624
|
+
const toast_modal = es_index_esm.modal;
|
|
62625
|
+
const MaliToast = {
|
|
62626
|
+
success(option) {
|
|
62627
|
+
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
62628
|
+
content: option
|
|
62629
|
+
} : {
|
|
62630
|
+
...option
|
|
62631
|
+
};
|
|
62632
|
+
return toast_modal.message({
|
|
62633
|
+
status: 'success',
|
|
62634
|
+
content: opts.content || '操作成功'
|
|
62635
|
+
});
|
|
62636
|
+
},
|
|
62637
|
+
error(option) {
|
|
62638
|
+
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
62639
|
+
content: option
|
|
62640
|
+
} : {
|
|
62641
|
+
...option
|
|
62642
|
+
};
|
|
62643
|
+
return toast_modal.message({
|
|
62644
|
+
status: 'error',
|
|
62645
|
+
content: opts.content || '操作失败'
|
|
62646
|
+
});
|
|
62647
|
+
},
|
|
62648
|
+
warning(option) {
|
|
62649
|
+
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
62650
|
+
content: option
|
|
62651
|
+
} : {
|
|
62652
|
+
...option
|
|
62653
|
+
};
|
|
62654
|
+
return toast_modal.message({
|
|
62655
|
+
status: 'warning',
|
|
62656
|
+
content: opts.content || '操作失败'
|
|
62657
|
+
});
|
|
62658
|
+
},
|
|
62659
|
+
hide() {
|
|
62660
|
+
return toast_modal.close();
|
|
62661
|
+
}
|
|
62662
|
+
};
|
|
62663
|
+
/* harmony default export */ var toast = (MaliToast);
|
|
62664
|
+
;// CONCATENATED MODULE: ./modal/modal.ts
|
|
62665
|
+
|
|
62666
|
+
|
|
62667
|
+
const modal_modal_modal = es_index_esm.modal;
|
|
62668
|
+
const MaliModal = {
|
|
62669
|
+
open(option) {
|
|
62670
|
+
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
62671
|
+
content: option
|
|
62672
|
+
} : {
|
|
62673
|
+
...option
|
|
62674
|
+
};
|
|
62675
|
+
return modal_modal_modal.open({
|
|
62676
|
+
id: opts.id,
|
|
62677
|
+
title: opts.title || '提示',
|
|
62678
|
+
content: opts.content || '',
|
|
62679
|
+
status: opts.status,
|
|
62680
|
+
showClose: opts.showClose || false,
|
|
62681
|
+
confirmButtonText: opts.confirmButtonText || '确认',
|
|
62682
|
+
cancelButtonText: opts.cancelButtonText || '取消',
|
|
62683
|
+
slots: opts.slots
|
|
62684
|
+
});
|
|
62685
|
+
},
|
|
62686
|
+
alert(option) {
|
|
62687
|
+
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
62688
|
+
content: option
|
|
62689
|
+
} : {
|
|
62690
|
+
...option
|
|
62691
|
+
};
|
|
62692
|
+
return modal_modal_modal.alert({
|
|
62693
|
+
id: opts.id,
|
|
62694
|
+
title: opts.title || '系统提示',
|
|
62695
|
+
content: opts.content || '',
|
|
62696
|
+
status: opts.status,
|
|
62697
|
+
showClose: opts.showClose || false,
|
|
62698
|
+
confirmButtonText: opts.confirmButtonText || '确认'
|
|
62699
|
+
});
|
|
62700
|
+
},
|
|
62701
|
+
confirm(option) {
|
|
62702
|
+
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
62703
|
+
content: option
|
|
62704
|
+
} : {
|
|
62705
|
+
...option
|
|
62706
|
+
};
|
|
62707
|
+
return modal_modal_modal.confirm({
|
|
62708
|
+
id: opts.id,
|
|
62709
|
+
title: opts.title || '系统提示',
|
|
62710
|
+
content: opts.content || '',
|
|
62711
|
+
status: opts.status,
|
|
62712
|
+
showClose: opts.showClose || false,
|
|
62713
|
+
confirmButtonText: opts.confirmButtonText || '确认',
|
|
62714
|
+
cancelButtonText: opts.cancelButtonText || '取消'
|
|
62715
|
+
});
|
|
62716
|
+
},
|
|
62717
|
+
close(id) {
|
|
62718
|
+
return modal_modal_modal.close(id);
|
|
62719
|
+
}
|
|
62720
|
+
};
|
|
62721
|
+
/* harmony default export */ var modal_modal_0 = (MaliModal);
|
|
62722
|
+
;// CONCATENATED MODULE: ./storage/index.ts
|
|
62723
|
+
|
|
62724
|
+
function setStorage(key, value, options = {}) {
|
|
62725
|
+
const opts = {
|
|
62726
|
+
...options
|
|
62727
|
+
};
|
|
62728
|
+
const data = {
|
|
62729
|
+
data: value,
|
|
62730
|
+
expires: node_modules_xe_utils_default().eqNull(opts.expires) ? null : node_modules_xe_utils_default().toNumber(opts.expires)
|
|
62731
|
+
};
|
|
62732
|
+
localStorage.setItem(key, JSON.stringify(data));
|
|
62733
|
+
}
|
|
62734
|
+
function removeStorage(key) {
|
|
62735
|
+
localStorage.removeItem(key);
|
|
62736
|
+
}
|
|
62737
|
+
function getStorage(key) {
|
|
62738
|
+
try {
|
|
62739
|
+
const data = localStorage.getItem(key);
|
|
62740
|
+
if (data) {
|
|
62741
|
+
const rest = JSON.parse(data);
|
|
62742
|
+
if (rest.data && (node_modules_xe_utils_default().eqNull(rest.expires) || rest.expires >= Date.now())) {
|
|
62743
|
+
return rest.data;
|
|
62744
|
+
}
|
|
62745
|
+
}
|
|
62746
|
+
} catch (e) {}
|
|
62747
|
+
return null;
|
|
62748
|
+
}
|
|
62749
|
+
const MaliStorage = {
|
|
62750
|
+
setItem: setStorage,
|
|
62751
|
+
getItem: getStorage,
|
|
62752
|
+
removeItem: removeStorage
|
|
62753
|
+
};
|
|
62754
|
+
/* harmony default export */ var storage = (MaliStorage);
|
|
62621
62755
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-grid/MlGrid.vue?vue&type=script&lang=ts&setup=true
|
|
62622
62756
|
|
|
62623
62757
|
|
|
@@ -62649,36 +62783,60 @@ const _hoisted_7 = {
|
|
|
62649
62783
|
};
|
|
62650
62784
|
const _hoisted_8 = {
|
|
62651
62785
|
key: 0,
|
|
62652
|
-
class: "table-
|
|
62786
|
+
class: "table-toolbar-toolsys"
|
|
62653
62787
|
};
|
|
62654
62788
|
const _hoisted_9 = {
|
|
62789
|
+
class: "table-filterform"
|
|
62790
|
+
};
|
|
62791
|
+
const _hoisted_10 = {
|
|
62792
|
+
class: "ml-grid-filter-form-overlay"
|
|
62793
|
+
};
|
|
62794
|
+
const _hoisted_11 = {
|
|
62795
|
+
class: "ml-grid-filter-form-warpper"
|
|
62796
|
+
};
|
|
62797
|
+
const _hoisted_12 = {
|
|
62798
|
+
key: 0
|
|
62799
|
+
};
|
|
62800
|
+
const _hoisted_13 = ["title"];
|
|
62801
|
+
const _hoisted_14 = {
|
|
62802
|
+
key: 1,
|
|
62803
|
+
class: "ml-grid-filter-form-edpty-data"
|
|
62804
|
+
};
|
|
62805
|
+
const _hoisted_15 = {
|
|
62806
|
+
key: 0,
|
|
62807
|
+
class: "table-footer"
|
|
62808
|
+
};
|
|
62809
|
+
const _hoisted_16 = {
|
|
62655
62810
|
key: 1,
|
|
62656
62811
|
class: "table-pager"
|
|
62657
62812
|
};
|
|
62658
|
-
const
|
|
62813
|
+
const _hoisted_17 = {
|
|
62659
62814
|
class: "pager-left"
|
|
62660
62815
|
};
|
|
62661
|
-
const
|
|
62816
|
+
const _hoisted_18 = {
|
|
62662
62817
|
key: 1,
|
|
62663
62818
|
class: "select-row-total"
|
|
62664
62819
|
};
|
|
62665
|
-
const
|
|
62820
|
+
const _hoisted_19 = {
|
|
62666
62821
|
class: "pager-right"
|
|
62667
62822
|
};
|
|
62668
|
-
const
|
|
62823
|
+
const _hoisted_20 = {
|
|
62669
62824
|
key: 2,
|
|
62670
62825
|
class: "table-bottom"
|
|
62671
62826
|
};
|
|
62672
|
-
const
|
|
62827
|
+
const _hoisted_21 = {
|
|
62673
62828
|
class: "ml-grid-empty"
|
|
62674
62829
|
};
|
|
62675
|
-
const
|
|
62830
|
+
const _hoisted_22 = {
|
|
62676
62831
|
class: "ml-grid-empty-content"
|
|
62677
62832
|
};
|
|
62678
62833
|
|
|
62679
62834
|
|
|
62680
62835
|
|
|
62681
62836
|
|
|
62837
|
+
|
|
62838
|
+
|
|
62839
|
+
|
|
62682
62840
|
/* harmony default export */ var MlGridvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
62683
62841
|
__name: 'MlGrid',
|
|
62684
62842
|
props: {
|
|
@@ -62746,6 +62904,15 @@ const _hoisted_15 = {
|
|
|
62746
62904
|
type: Boolean,
|
|
62747
62905
|
default: () => config_0.grid ? config_0.grid.autoUpformCollapse : false
|
|
62748
62906
|
},
|
|
62907
|
+
filterformConfig: Object,
|
|
62908
|
+
filterformItems: {
|
|
62909
|
+
type: Array,
|
|
62910
|
+
default: () => []
|
|
62911
|
+
},
|
|
62912
|
+
filterformData: {
|
|
62913
|
+
type: Object,
|
|
62914
|
+
default: () => ({})
|
|
62915
|
+
},
|
|
62749
62916
|
upformConfig: Object,
|
|
62750
62917
|
upformItems: {
|
|
62751
62918
|
type: Array,
|
|
@@ -62804,6 +62971,8 @@ const _hoisted_15 = {
|
|
|
62804
62971
|
type: Boolean,
|
|
62805
62972
|
default: true
|
|
62806
62973
|
},
|
|
62974
|
+
showNewFilter: Boolean,
|
|
62975
|
+
localFilterEvent: Function,
|
|
62807
62976
|
showFooter: Boolean,
|
|
62808
62977
|
footerMethod: Function,
|
|
62809
62978
|
expandConfig: Object,
|
|
@@ -62838,7 +63007,7 @@ const _hoisted_15 = {
|
|
|
62838
63007
|
default: () => config_0.size
|
|
62839
63008
|
}
|
|
62840
63009
|
},
|
|
62841
|
-
emits: ["load-card", "load-list", "update:data", "page-change", "update:currPage", "update:pageSize", "rightform-submit", "rightform-reset", "rightform-collapse", "upform-submit", "upform-reset", "upform-collapse", "radio-change", "checkbox-change", "checkbox-all", "cell-click", "cell-dblclick", "sort-change", "menu-click", "edit-actived", "edit-closed", "scroll", "custom"],
|
|
63010
|
+
emits: ["load-card", "load-list", "update:data", "page-change", "update:currPage", "update:pageSize", "rightform-submit", "rightform-reset", "rightform-collapse", "upform-submit", "upform-reset", "upform-collapse", "radio-change", "checkbox-change", "checkbox-all", "cell-click", "cell-dblclick", "sort-change", "menu-click", "edit-actived", "edit-closed", "scroll", "custom", "filterform-submit", "filterform-reset"],
|
|
62842
63011
|
setup(__props, {
|
|
62843
63012
|
expose,
|
|
62844
63013
|
emit
|
|
@@ -62864,6 +63033,10 @@ const _hoisted_15 = {
|
|
|
62864
63033
|
const selectCheckboxReserveRecords = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
62865
63034
|
const itemSpan = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(4);
|
|
62866
63035
|
const itemCount = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(6);
|
|
63036
|
+
const showFilterform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(true);
|
|
63037
|
+
const filterformTitle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
63038
|
+
const selectFilterformFields = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
63039
|
+
const filterformItemList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
62867
63040
|
const upformItemList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
62868
63041
|
const {
|
|
62869
63042
|
upformItems
|
|
@@ -63010,14 +63183,14 @@ const _hoisted_15 = {
|
|
|
63010
63183
|
}, props.seqConfig);
|
|
63011
63184
|
});
|
|
63012
63185
|
const toolbarOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
63013
|
-
if (props.toolbarConfig || props.showTool || rightformItemList.value.length || slots.tool_left || slots.tool_right) {
|
|
63186
|
+
if (props.toolbarConfig || props.showTool || props.showNewFilter || rightformItemList.value.length || slots.tool_left || slots.tool_right) {
|
|
63014
63187
|
const opts = {
|
|
63015
63188
|
slots: {
|
|
63016
63189
|
buttons: 'toolbar_buttons',
|
|
63017
63190
|
tools: 'toolbar_tools'
|
|
63018
63191
|
}
|
|
63019
63192
|
};
|
|
63020
|
-
if (props.showTool) {
|
|
63193
|
+
if (props.showTool || props.showNewFilter) {
|
|
63021
63194
|
opts.zoom = true;
|
|
63022
63195
|
opts.custom = true;
|
|
63023
63196
|
}
|
|
@@ -63053,6 +63226,13 @@ const _hoisted_15 = {
|
|
|
63053
63226
|
const emptyOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
63054
63227
|
return Object.assign({}, props.emptyConfig);
|
|
63055
63228
|
});
|
|
63229
|
+
const filterformOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
63230
|
+
// const { filterformTitle } = this
|
|
63231
|
+
if (filterformTitle.value) {
|
|
63232
|
+
return props.filterformItems.filter(item => getFilterformTitle(item).toLowerCase().indexOf(filterformTitle.value.toLowerCase()) > -1);
|
|
63233
|
+
}
|
|
63234
|
+
return props.filterformItems;
|
|
63235
|
+
});
|
|
63056
63236
|
const loadData = data => {
|
|
63057
63237
|
tableData.value = data || [];
|
|
63058
63238
|
updateMergeRowspan();
|
|
@@ -63097,6 +63277,30 @@ const _hoisted_15 = {
|
|
|
63097
63277
|
updateEmptyStatus();
|
|
63098
63278
|
});
|
|
63099
63279
|
});
|
|
63280
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.filterformItems, () => {
|
|
63281
|
+
restoreFilterformStatus();
|
|
63282
|
+
handleFilterformItem();
|
|
63283
|
+
});
|
|
63284
|
+
const clearFormItemValue = (formData, item) => {
|
|
63285
|
+
if (item.field) {
|
|
63286
|
+
const value = node_modules_xe_utils_default().get(formData, item.field);
|
|
63287
|
+
let defVal = null;
|
|
63288
|
+
if (item.resetValue || node_modules_xe_utils_default().isNumber(item.resetValue)) {
|
|
63289
|
+
defVal = node_modules_xe_utils_default().clone(item.resetValue, true);
|
|
63290
|
+
} else if (Array.isArray(value)) {
|
|
63291
|
+
defVal = [];
|
|
63292
|
+
}
|
|
63293
|
+
if (typeof value === 'object' && defVal === null && value?.fieldType) {
|
|
63294
|
+
defVal = {
|
|
63295
|
+
...value,
|
|
63296
|
+
fieldValue: [],
|
|
63297
|
+
fieldType: value.fieldType,
|
|
63298
|
+
fieldOperator: undefined
|
|
63299
|
+
};
|
|
63300
|
+
}
|
|
63301
|
+
node_modules_xe_utils_default().set(formData, item.field, defVal);
|
|
63302
|
+
}
|
|
63303
|
+
};
|
|
63100
63304
|
const getParams = () => {
|
|
63101
63305
|
const $grid = xGrid.value;
|
|
63102
63306
|
const sortList = $grid ? $grid.getSortColumns() : [];
|
|
@@ -63296,12 +63500,149 @@ const _hoisted_15 = {
|
|
|
63296
63500
|
}
|
|
63297
63501
|
reload();
|
|
63298
63502
|
};
|
|
63503
|
+
const localSearchEvent = () => {
|
|
63504
|
+
const $grid = xGrid.value;
|
|
63505
|
+
if ($grid) {
|
|
63506
|
+
$grid.clearScroll();
|
|
63507
|
+
}
|
|
63508
|
+
if (typeof props.localFilterEvent === 'function') {
|
|
63509
|
+
props.localFilterEvent();
|
|
63510
|
+
}
|
|
63511
|
+
};
|
|
63299
63512
|
const pageChangeEvent = params => {
|
|
63300
63513
|
emit('update:currPage', pageVO.currPage);
|
|
63301
63514
|
emit('update:pageSize', pageVO.pageSize);
|
|
63302
63515
|
emit('page-change', params);
|
|
63303
63516
|
query();
|
|
63304
63517
|
};
|
|
63518
|
+
/**
|
|
63519
|
+
* 保存筛选状态
|
|
63520
|
+
*/
|
|
63521
|
+
const saveFilterformStatus = () => {
|
|
63522
|
+
if (props.showNewFilter) {
|
|
63523
|
+
if (props.id) {
|
|
63524
|
+
const visibleObj = storage.getItem('ML_FILTER_FORM_VISIBLE') || {};
|
|
63525
|
+
visibleObj[tableId.value] = selectFilterformFields.value;
|
|
63526
|
+
storage.setItem('ML_FILTER_FORM_VISIBLE', visibleObj);
|
|
63527
|
+
toast.success('保存成功');
|
|
63528
|
+
} else {
|
|
63529
|
+
console.error('[MlGrid] 代码检查:需要给表格设置全局唯一 id 后该功能才生效');
|
|
63530
|
+
}
|
|
63531
|
+
}
|
|
63532
|
+
};
|
|
63533
|
+
/**
|
|
63534
|
+
* 还原筛选状态
|
|
63535
|
+
*/
|
|
63536
|
+
const restoreFilterformStatus = () => {
|
|
63537
|
+
if (props.showNewFilter) {
|
|
63538
|
+
const visibleObj = storage.getItem('ML_FILTER_FORM_VISIBLE') || {};
|
|
63539
|
+
selectFilterformFields.value = visibleObj[tableId.value] || [];
|
|
63540
|
+
}
|
|
63541
|
+
};
|
|
63542
|
+
const handleFilterformItem = () => {
|
|
63543
|
+
// const { filterformItems } = this
|
|
63544
|
+
// 如果为空,则默认选择一个,最少存在一个
|
|
63545
|
+
if (!selectFilterformFields.value.length) {
|
|
63546
|
+
const defItem = props.filterformItems.find(item => item.field);
|
|
63547
|
+
selectFilterformFields.value = defItem ? [defItem.field] : [];
|
|
63548
|
+
}
|
|
63549
|
+
if (props.filterformItems) {
|
|
63550
|
+
const items = props.filterformItems.filter(item => selectFilterformFields.value.includes(item.field));
|
|
63551
|
+
filterformItemList.value = [...items, {
|
|
63552
|
+
slots: {
|
|
63553
|
+
default: 'submit'
|
|
63554
|
+
}
|
|
63555
|
+
}, {
|
|
63556
|
+
slots: {
|
|
63557
|
+
default: 'oper'
|
|
63558
|
+
}
|
|
63559
|
+
}, {
|
|
63560
|
+
slots: {
|
|
63561
|
+
default: 'btn1'
|
|
63562
|
+
}
|
|
63563
|
+
}, {
|
|
63564
|
+
slots: {
|
|
63565
|
+
default: 'btn2'
|
|
63566
|
+
}
|
|
63567
|
+
}];
|
|
63568
|
+
} else {
|
|
63569
|
+
filterformItemList.value = [];
|
|
63570
|
+
}
|
|
63571
|
+
};
|
|
63572
|
+
const filterformVisibleChange = () => {
|
|
63573
|
+
filterformTitle.value = '';
|
|
63574
|
+
handleFilterformItem();
|
|
63575
|
+
};
|
|
63576
|
+
const getFilterformTitle = item => {
|
|
63577
|
+
const column = props.columns.find(column => column.field === item.field);
|
|
63578
|
+
if (column) {
|
|
63579
|
+
return node_modules_xe_utils_default().toString(column.title);
|
|
63580
|
+
}
|
|
63581
|
+
return item.title || item.field || '';
|
|
63582
|
+
};
|
|
63583
|
+
const removeFilterformItem = field => {
|
|
63584
|
+
// const { filterformData, filterformItemList } = this
|
|
63585
|
+
const item = filterformItemList.value.find(item => item.field === field);
|
|
63586
|
+
if (item) {
|
|
63587
|
+
clearFormItemValue(props.filterformData, item);
|
|
63588
|
+
selectFilterformFields.value = selectFilterformFields.value.filter(field => field !== item.field);
|
|
63589
|
+
handleFilterformItem();
|
|
63590
|
+
}
|
|
63591
|
+
submitFilterform();
|
|
63592
|
+
};
|
|
63593
|
+
const changeFilterformItem = item => {
|
|
63594
|
+
if (selectFilterformFields.value.includes(item.field)) {
|
|
63595
|
+
selectFilterformFields.value = selectFilterformFields.value.filter(field => item.field !== field);
|
|
63596
|
+
clearFormItemValue(props.filterformData, item);
|
|
63597
|
+
} else {
|
|
63598
|
+
selectFilterformFields.value.push(item.field);
|
|
63599
|
+
}
|
|
63600
|
+
};
|
|
63601
|
+
const toggleFilterformVisible = () => {
|
|
63602
|
+
showFilterform.value = !showFilterform.value;
|
|
63603
|
+
};
|
|
63604
|
+
const submitFilterform = () => {
|
|
63605
|
+
const {
|
|
63606
|
+
filterformData
|
|
63607
|
+
} = props;
|
|
63608
|
+
if (props.localFilterEvent) {
|
|
63609
|
+
localSearchEvent();
|
|
63610
|
+
} else {
|
|
63611
|
+
pageVO.currPage = 1;
|
|
63612
|
+
emit('update:currPage', pageVO.currPage);
|
|
63613
|
+
emit('filterform-submit', {
|
|
63614
|
+
data: filterformData,
|
|
63615
|
+
items: filterformItemList.value
|
|
63616
|
+
});
|
|
63617
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
63618
|
+
searchEvent();
|
|
63619
|
+
});
|
|
63620
|
+
}
|
|
63621
|
+
};
|
|
63622
|
+
const resetFilterform = () => {
|
|
63623
|
+
modal_modal_0.confirm({
|
|
63624
|
+
title: '清除条件',
|
|
63625
|
+
content: '清除添加的所有条件值?'
|
|
63626
|
+
}).then(type => {
|
|
63627
|
+
if (type === 'confirm') {
|
|
63628
|
+
const {
|
|
63629
|
+
filterformData
|
|
63630
|
+
} = props;
|
|
63631
|
+
filterformItemList.value.forEach(item => {
|
|
63632
|
+
clearFormItemValue(filterformData, item);
|
|
63633
|
+
});
|
|
63634
|
+
pageVO.currPage = 1;
|
|
63635
|
+
emit('update:currPage', pageVO.currPage);
|
|
63636
|
+
emit('filterform-reset', {
|
|
63637
|
+
data: filterformData,
|
|
63638
|
+
items: filterformItemList.value
|
|
63639
|
+
});
|
|
63640
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
63641
|
+
reload();
|
|
63642
|
+
});
|
|
63643
|
+
}
|
|
63644
|
+
});
|
|
63645
|
+
};
|
|
63305
63646
|
const submitRightform = () => {
|
|
63306
63647
|
const {
|
|
63307
63648
|
rightformData
|
|
@@ -63329,6 +63670,7 @@ const _hoisted_15 = {
|
|
|
63329
63670
|
}
|
|
63330
63671
|
node_modules_xe_utils_default().set(rightformData, item.field, defVal);
|
|
63331
63672
|
}
|
|
63673
|
+
clearFormItemValue(rightformData, item);
|
|
63332
63674
|
});
|
|
63333
63675
|
pageVO.currPage = 1;
|
|
63334
63676
|
emit('update:currPage', pageVO.currPage);
|
|
@@ -63372,6 +63714,7 @@ const _hoisted_15 = {
|
|
|
63372
63714
|
}
|
|
63373
63715
|
node_modules_xe_utils_default().set(upformData, item.field, defVal);
|
|
63374
63716
|
}
|
|
63717
|
+
clearFormItemValue(upformData, item);
|
|
63375
63718
|
});
|
|
63376
63719
|
pageVO.currPage = 1;
|
|
63377
63720
|
emit('update:currPage', pageVO.currPage);
|
|
@@ -63582,6 +63925,12 @@ const _hoisted_15 = {
|
|
|
63582
63925
|
return (_ctx, _cache) => {
|
|
63583
63926
|
const _component_MlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlForm");
|
|
63584
63927
|
const _component_MlChunkStatistics = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlChunkStatistics");
|
|
63928
|
+
const _component_vxe_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-button");
|
|
63929
|
+
const _component_MlInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlInput");
|
|
63930
|
+
const _component_MlCheckbox = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlCheckbox");
|
|
63931
|
+
const _component_MlIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlIcon");
|
|
63932
|
+
const _component_a_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-button");
|
|
63933
|
+
const _component_a_dropdown = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-dropdown");
|
|
63585
63934
|
const _component_MlButton = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlButton");
|
|
63586
63935
|
const _component_MlPager = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("MlPager");
|
|
63587
63936
|
const _component_ml_not_data = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-not-data");
|
|
@@ -63677,8 +64026,93 @@ const _hoisted_15 = {
|
|
|
63677
64026
|
name: name,
|
|
63678
64027
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(params => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, name, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)(params)))])
|
|
63679
64028
|
};
|
|
63680
|
-
})]), 1040, ["items", "data"])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "tool_right", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)(params)))])
|
|
63681
|
-
|
|
64029
|
+
})]), 1040, ["items", "data"])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "tool_right", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)(params)))]), __props.showNewFilter ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_button, {
|
|
64030
|
+
icon: showFilterform.value ? 'mlicon-filter-filling' : 'mlicon-filter',
|
|
64031
|
+
status: "primary",
|
|
64032
|
+
circle: "",
|
|
64033
|
+
onClick: toggleFilterformVisible
|
|
64034
|
+
}, null, 8, ["icon"])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])]),
|
|
64035
|
+
top: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_9, [__props.showNewFilter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MlForm, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
64036
|
+
key: 0,
|
|
64037
|
+
items: filterformItemList.value,
|
|
64038
|
+
data: __props.filterformData
|
|
64039
|
+
}, __props.filterformConfig, {
|
|
64040
|
+
onSubmit: _cache[10] || (_cache[10] = $event => submitFilterform())
|
|
64041
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
64042
|
+
oper: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_a_dropdown, {
|
|
64043
|
+
trigger: ['click'],
|
|
64044
|
+
onVisibleChange: filterformVisibleChange
|
|
64045
|
+
}, {
|
|
64046
|
+
overlay: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_10, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_11, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
64047
|
+
class: "ml-grid-filter-form-header",
|
|
64048
|
+
onClick: _cache[5] || (_cache[5] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(() => {}, ["stop"]))
|
|
64049
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlInput, {
|
|
64050
|
+
modelValue: filterformTitle.value,
|
|
64051
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => filterformTitle.value = $event),
|
|
64052
|
+
suffixIcon: "mlicon-search",
|
|
64053
|
+
placeholder: "搜索过滤条件",
|
|
64054
|
+
clearable: ""
|
|
64055
|
+
}, null, 8, ["modelValue"])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
64056
|
+
class: "ml-grid-filter-form-body",
|
|
64057
|
+
onClick: _cache[6] || (_cache[6] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(() => {}, ["stop"]))
|
|
64058
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(filterformOptions).length ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_12, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(filterformOptions), (item, index) => {
|
|
64059
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
64060
|
+
key: index,
|
|
64061
|
+
class: "ml-grid-filter-form-item",
|
|
64062
|
+
title: getFilterformTitle(item)
|
|
64063
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlCheckbox, {
|
|
64064
|
+
class: "ml-grid-filter-form-checkbox",
|
|
64065
|
+
value: selectFilterformFields.value.includes(item.field),
|
|
64066
|
+
disabled: selectFilterformFields.value.length <= 1 && selectFilterformFields.value.includes(item.field),
|
|
64067
|
+
onChange: $event => changeFilterformItem(item)
|
|
64068
|
+
}, {
|
|
64069
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(getFilterformTitle(item)), 1)]),
|
|
64070
|
+
_: 2
|
|
64071
|
+
}, 1032, ["value", "disabled", "onChange"])], 8, _hoisted_13);
|
|
64072
|
+
}), 128))])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_14, "找不到数据!"))])])])]),
|
|
64073
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_a_button, {
|
|
64074
|
+
style: {
|
|
64075
|
+
"margin-left": "8px"
|
|
64076
|
+
}
|
|
64077
|
+
}, {
|
|
64078
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
64079
|
+
name: "add"
|
|
64080
|
+
})]),
|
|
64081
|
+
_: 1
|
|
64082
|
+
})]),
|
|
64083
|
+
_: 1
|
|
64084
|
+
})]),
|
|
64085
|
+
submit: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
64086
|
+
status: "primary",
|
|
64087
|
+
onClick: _cache[7] || (_cache[7] = $event => submitFilterform())
|
|
64088
|
+
}, {
|
|
64089
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("搜索")]),
|
|
64090
|
+
_: 1
|
|
64091
|
+
})]),
|
|
64092
|
+
btn1: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
64093
|
+
type: "text",
|
|
64094
|
+
icon: "mlicon-ashbin",
|
|
64095
|
+
onClick: _cache[8] || (_cache[8] = $event => resetFilterform())
|
|
64096
|
+
}, {
|
|
64097
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("清空搜索条件")]),
|
|
64098
|
+
_: 1
|
|
64099
|
+
})]),
|
|
64100
|
+
btn2: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
64101
|
+
type: "text",
|
|
64102
|
+
icon: "mlicon-save",
|
|
64103
|
+
onClick: _cache[9] || (_cache[9] = $event => saveFilterformStatus())
|
|
64104
|
+
}, {
|
|
64105
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("保存视图")]),
|
|
64106
|
+
_: 1
|
|
64107
|
+
})]),
|
|
64108
|
+
_: 2
|
|
64109
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(_ctx.$slots, (handle, name) => {
|
|
64110
|
+
return {
|
|
64111
|
+
name: name,
|
|
64112
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(params => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, name, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)(params)))])
|
|
64113
|
+
};
|
|
64114
|
+
})]), 1040, ["items", "data"])), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, showFilterform.value]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])]),
|
|
64115
|
+
pager: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [_ctx.$slots.table_footer ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_15, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "table_footer", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({})))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.showPage ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_16, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_17, [__props.showCheckboxBtn && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(showCheckboxColumn) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
63682
64116
|
key: 0
|
|
63683
64117
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
63684
64118
|
type: "text",
|
|
@@ -63698,19 +64132,19 @@ const _hoisted_15 = {
|
|
|
63698
64132
|
}, {
|
|
63699
64133
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("清空")]),
|
|
63700
64134
|
_: 1
|
|
63701
|
-
})], 64)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.showCheckboxTotal && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(showCheckboxColumn) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span",
|
|
64135
|
+
})], 64)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.showCheckboxTotal && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(showCheckboxColumn) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", _hoisted_18, "已选 " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(selectCheckboxRows.value.length + selectCheckboxReserveRecords.value.length) + " 条", 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "pager_left", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({})))]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_19, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "table_pager", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlPager, {
|
|
63702
64136
|
total: pageVO.total,
|
|
63703
64137
|
currentPage: pageVO.currPage,
|
|
63704
|
-
"onUpdate:currentPage": _cache[
|
|
64138
|
+
"onUpdate:currentPage": _cache[11] || (_cache[11] = $event => pageVO.currPage = $event),
|
|
63705
64139
|
pageSize: pageVO.pageSize,
|
|
63706
|
-
"onUpdate:pageSize": _cache[
|
|
64140
|
+
"onUpdate:pageSize": _cache[12] || (_cache[12] = $event => pageVO.pageSize = $event),
|
|
63707
64141
|
onPageChange: pageChangeEvent
|
|
63708
|
-
}, null, 8, ["total", "currentPage", "pageSize"])])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), _ctx.$slots.table_bottom ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
63709
|
-
empty: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
64142
|
+
}, null, 8, ["total", "currentPage", "pageSize"])])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), _ctx.$slots.table_bottom ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_20, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "table_bottom", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({})))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
64143
|
+
empty: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_21, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "empty", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_ml_not_data, {
|
|
63710
64144
|
emptyUrl: notDataUrl.value,
|
|
63711
64145
|
emptyText: notDataText.value,
|
|
63712
64146
|
emptyHint: notDataHint.value
|
|
63713
|
-
}, null, 8, ["emptyUrl", "emptyText", "emptyHint"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
64147
|
+
}, null, 8, ["emptyUrl", "emptyText", "emptyHint"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_22, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "emptycontent")])])])]),
|
|
63714
64148
|
_: 2
|
|
63715
64149
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(_ctx.$slots, (handle, name) => {
|
|
63716
64150
|
return {
|
|
@@ -64211,49 +64645,6 @@ const MlTooltip_exports_ = MlTooltipvue_type_script_lang_ts_setup_true;
|
|
|
64211
64645
|
const MlSwitch_exports_ = MlSwitchvue_type_script_lang_ts_setup_true;
|
|
64212
64646
|
|
|
64213
64647
|
/* harmony default export */ var MlSwitch = (MlSwitch_exports_);
|
|
64214
|
-
;// CONCATENATED MODULE: ./modal/toast.ts
|
|
64215
|
-
|
|
64216
|
-
|
|
64217
|
-
const toast_modal = es_index_esm.modal;
|
|
64218
|
-
const MaliToast = {
|
|
64219
|
-
success(option) {
|
|
64220
|
-
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
64221
|
-
content: option
|
|
64222
|
-
} : {
|
|
64223
|
-
...option
|
|
64224
|
-
};
|
|
64225
|
-
return toast_modal.message({
|
|
64226
|
-
status: 'success',
|
|
64227
|
-
content: opts.content || '操作成功'
|
|
64228
|
-
});
|
|
64229
|
-
},
|
|
64230
|
-
error(option) {
|
|
64231
|
-
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
64232
|
-
content: option
|
|
64233
|
-
} : {
|
|
64234
|
-
...option
|
|
64235
|
-
};
|
|
64236
|
-
return toast_modal.message({
|
|
64237
|
-
status: 'error',
|
|
64238
|
-
content: opts.content || '操作失败'
|
|
64239
|
-
});
|
|
64240
|
-
},
|
|
64241
|
-
warning(option) {
|
|
64242
|
-
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
64243
|
-
content: option
|
|
64244
|
-
} : {
|
|
64245
|
-
...option
|
|
64246
|
-
};
|
|
64247
|
-
return toast_modal.message({
|
|
64248
|
-
status: 'warning',
|
|
64249
|
-
content: opts.content || '操作失败'
|
|
64250
|
-
});
|
|
64251
|
-
},
|
|
64252
|
-
hide() {
|
|
64253
|
-
return toast_modal.close();
|
|
64254
|
-
}
|
|
64255
|
-
};
|
|
64256
|
-
/* harmony default export */ var toast = (MaliToast);
|
|
64257
64648
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-upload/MlUpload.vue?vue&type=script&lang=ts&setup=true
|
|
64258
64649
|
|
|
64259
64650
|
|
|
@@ -64291,18 +64682,18 @@ const MlUploadvue_type_script_lang_ts_setup_true_hoisted_14 = {
|
|
|
64291
64682
|
class: "oper-btns"
|
|
64292
64683
|
};
|
|
64293
64684
|
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_15 = ["onClick"];
|
|
64294
|
-
const
|
|
64295
|
-
const
|
|
64296
|
-
const
|
|
64685
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_16 = ["onClick"];
|
|
64686
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_17 = ["onClick"];
|
|
64687
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_18 = {
|
|
64297
64688
|
key: 0,
|
|
64298
64689
|
class: "img-warpper"
|
|
64299
64690
|
};
|
|
64300
|
-
const
|
|
64301
|
-
const
|
|
64302
|
-
const
|
|
64691
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_19 = ["onClick"];
|
|
64692
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_20 = ["src"];
|
|
64693
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_21 = {
|
|
64303
64694
|
class: "ml-upload-preview-actions"
|
|
64304
64695
|
};
|
|
64305
|
-
const
|
|
64696
|
+
const MlUploadvue_type_script_lang_ts_setup_true_hoisted_22 = ["onClick"];
|
|
64306
64697
|
const _hoisted_23 = {
|
|
64307
64698
|
controls: ""
|
|
64308
64699
|
};
|
|
@@ -64923,13 +65314,13 @@ const _hoisted_25 = ["src"];
|
|
|
64923
65314
|
onClick: $event => downloadEvent(item)
|
|
64924
65315
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
64925
65316
|
name: "download"
|
|
64926
|
-
})], 8,
|
|
65317
|
+
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_16), !(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isReadonly) && !__props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("a", {
|
|
64927
65318
|
key: 1,
|
|
64928
65319
|
class: "del-btn",
|
|
64929
65320
|
onClick: $event => removeEvent(item, index)
|
|
64930
65321
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
64931
65322
|
name: "ashbin"
|
|
64932
|
-
})], 8,
|
|
65323
|
+
})], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_17)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])]);
|
|
64933
65324
|
}), 128))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_modal, {
|
|
64934
65325
|
className: "ml-upload-preview-modal",
|
|
64935
65326
|
title: "预览",
|
|
@@ -64948,7 +65339,7 @@ const _hoisted_25 = ["src"];
|
|
|
64948
65339
|
key: 0,
|
|
64949
65340
|
class: "ml-upload-preview-content",
|
|
64950
65341
|
onMousedown: handleImageMouseDown
|
|
64951
|
-
}, [hasImageType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
65342
|
+
}, [hasImageType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlUploadvue_type_script_lang_ts_setup_true_hoisted_18, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
64952
65343
|
class: "img-list",
|
|
64953
65344
|
onMousewheel: mousewheelEvent,
|
|
64954
65345
|
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(clickMaskEvent, ["self"])
|
|
@@ -64960,8 +65351,8 @@ const _hoisted_25 = ["src"];
|
|
|
64960
65351
|
key: index,
|
|
64961
65352
|
src: getUrl(item),
|
|
64962
65353
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(previewImgStyles))
|
|
64963
|
-
}, null, 14,
|
|
64964
|
-
}), 128))], 40,
|
|
65354
|
+
}, null, 14, MlUploadvue_type_script_lang_ts_setup_true_hoisted_20);
|
|
65355
|
+
}), 128))], 40, MlUploadvue_type_script_lang_ts_setup_true_hoisted_19), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
64965
65356
|
class: "prev-arrow",
|
|
64966
65357
|
onClick: prevImgEvent
|
|
64967
65358
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
@@ -64971,7 +65362,7 @@ const _hoisted_25 = ["src"];
|
|
|
64971
65362
|
onClick: nextImgEvent
|
|
64972
65363
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlIcon, {
|
|
64973
65364
|
name: "cc-arrow-right-circle"
|
|
64974
|
-
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
65365
|
+
})]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlUploadvue_type_script_lang_ts_setup_true_hoisted_21, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_MlButton, {
|
|
64975
65366
|
class: "ml-upload-preview-btn",
|
|
64976
65367
|
type: "text",
|
|
64977
65368
|
icon: "mlicon-zoom-in",
|
|
@@ -65003,7 +65394,7 @@ const _hoisted_25 = ["src"];
|
|
|
65003
65394
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("video", _hoisted_23, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("source", {
|
|
65004
65395
|
src: previewFileUrl.value,
|
|
65005
65396
|
type: "video/mp4"
|
|
65006
|
-
}, null, 8, _hoisted_24)])], 8,
|
|
65397
|
+
}, null, 8, _hoisted_24)])], 8, MlUploadvue_type_script_lang_ts_setup_true_hoisted_22)) : hasFrameType(previewItem.value) || hasOfficeType(previewItem.value) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("iframe", {
|
|
65007
65398
|
key: 2,
|
|
65008
65399
|
class: "frame-warpper",
|
|
65009
65400
|
src: previewFileUrl.value
|
|
@@ -66943,97 +67334,6 @@ const MlImageSwipervue_type_script_lang_ts_setup_true_hoisted_1 = ["src"];
|
|
|
66943
67334
|
const MlImageSwiper_exports_ = MlImageSwipervue_type_script_lang_ts_setup_true;
|
|
66944
67335
|
|
|
66945
67336
|
/* harmony default export */ var MlImageSwiper = (MlImageSwiper_exports_);
|
|
66946
|
-
;// CONCATENATED MODULE: ./storage/index.ts
|
|
66947
|
-
|
|
66948
|
-
function setStorage(key, value, options = {}) {
|
|
66949
|
-
const opts = {
|
|
66950
|
-
...options
|
|
66951
|
-
};
|
|
66952
|
-
const data = {
|
|
66953
|
-
data: value,
|
|
66954
|
-
expires: node_modules_xe_utils_default().eqNull(opts.expires) ? null : node_modules_xe_utils_default().toNumber(opts.expires)
|
|
66955
|
-
};
|
|
66956
|
-
localStorage.setItem(key, JSON.stringify(data));
|
|
66957
|
-
}
|
|
66958
|
-
function removeStorage(key) {
|
|
66959
|
-
localStorage.removeItem(key);
|
|
66960
|
-
}
|
|
66961
|
-
function getStorage(key) {
|
|
66962
|
-
try {
|
|
66963
|
-
const data = localStorage.getItem(key);
|
|
66964
|
-
if (data) {
|
|
66965
|
-
const rest = JSON.parse(data);
|
|
66966
|
-
if (rest.data && (node_modules_xe_utils_default().eqNull(rest.expires) || rest.expires >= Date.now())) {
|
|
66967
|
-
return rest.data;
|
|
66968
|
-
}
|
|
66969
|
-
}
|
|
66970
|
-
} catch (e) {}
|
|
66971
|
-
return null;
|
|
66972
|
-
}
|
|
66973
|
-
const MaliStorage = {
|
|
66974
|
-
setItem: setStorage,
|
|
66975
|
-
getItem: getStorage,
|
|
66976
|
-
removeItem: removeStorage
|
|
66977
|
-
};
|
|
66978
|
-
/* harmony default export */ var storage = (MaliStorage);
|
|
66979
|
-
;// CONCATENATED MODULE: ./modal/modal.ts
|
|
66980
|
-
|
|
66981
|
-
|
|
66982
|
-
const modal_modal_modal = es_index_esm.modal;
|
|
66983
|
-
const MaliModal = {
|
|
66984
|
-
open(option) {
|
|
66985
|
-
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
66986
|
-
content: option
|
|
66987
|
-
} : {
|
|
66988
|
-
...option
|
|
66989
|
-
};
|
|
66990
|
-
return modal_modal_modal.open({
|
|
66991
|
-
id: opts.id,
|
|
66992
|
-
title: opts.title || '提示',
|
|
66993
|
-
content: opts.content || '',
|
|
66994
|
-
status: opts.status,
|
|
66995
|
-
showClose: opts.showClose || false,
|
|
66996
|
-
confirmButtonText: opts.confirmButtonText || '确认',
|
|
66997
|
-
cancelButtonText: opts.cancelButtonText || '取消',
|
|
66998
|
-
slots: opts.slots
|
|
66999
|
-
});
|
|
67000
|
-
},
|
|
67001
|
-
alert(option) {
|
|
67002
|
-
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
67003
|
-
content: option
|
|
67004
|
-
} : {
|
|
67005
|
-
...option
|
|
67006
|
-
};
|
|
67007
|
-
return modal_modal_modal.alert({
|
|
67008
|
-
id: opts.id,
|
|
67009
|
-
title: opts.title || '系统提示',
|
|
67010
|
-
content: opts.content || '',
|
|
67011
|
-
status: opts.status,
|
|
67012
|
-
showClose: opts.showClose || false,
|
|
67013
|
-
confirmButtonText: opts.confirmButtonText || '确认'
|
|
67014
|
-
});
|
|
67015
|
-
},
|
|
67016
|
-
confirm(option) {
|
|
67017
|
-
const opts = node_modules_xe_utils_default().isString(option) ? {
|
|
67018
|
-
content: option
|
|
67019
|
-
} : {
|
|
67020
|
-
...option
|
|
67021
|
-
};
|
|
67022
|
-
return modal_modal_modal.confirm({
|
|
67023
|
-
id: opts.id,
|
|
67024
|
-
title: opts.title || '系统提示',
|
|
67025
|
-
content: opts.content || '',
|
|
67026
|
-
status: opts.status,
|
|
67027
|
-
showClose: opts.showClose || false,
|
|
67028
|
-
confirmButtonText: opts.confirmButtonText || '确认',
|
|
67029
|
-
cancelButtonText: opts.cancelButtonText || '取消'
|
|
67030
|
-
});
|
|
67031
|
-
},
|
|
67032
|
-
close(id) {
|
|
67033
|
-
return modal_modal_modal.close(id);
|
|
67034
|
-
}
|
|
67035
|
-
};
|
|
67036
|
-
/* harmony default export */ var modal_modal_0 = (MaliModal);
|
|
67037
67337
|
;// CONCATENATED MODULE: ./modal/loading.ts
|
|
67038
67338
|
|
|
67039
67339
|
|
|
@@ -69681,7 +69981,7 @@ function index_config(options) {
|
|
|
69681
69981
|
return config_0;
|
|
69682
69982
|
}
|
|
69683
69983
|
const MaliUI = {
|
|
69684
|
-
version: "1.1.
|
|
69984
|
+
version: "1.1.78",
|
|
69685
69985
|
install: index_install,
|
|
69686
69986
|
config: index_config,
|
|
69687
69987
|
renderer: {
|