lt-business-component 1.0.91 → 1.0.93
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/lt-business-component.common.js +139 -86
- package/lib/lt-business-component.common.js.map +1 -1
- package/lib/lt-business-component.css +1 -1
- package/lib/lt-business-component.umd.js +139 -86
- package/lib/lt-business-component.umd.js.map +1 -1
- package/lib/lt-business-component.umd.min.js +9 -9
- package/lib/lt-business-component.umd.min.js.map +1 -1
- package/package.json +4 -3
|
@@ -29036,18 +29036,22 @@ function _asyncToGenerator(n) {
|
|
|
29036
29036
|
};
|
|
29037
29037
|
}
|
|
29038
29038
|
|
|
29039
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
29040
|
-
var es_number_constructor = __webpack_require__(2892);
|
|
29041
|
-
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
29042
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
|
|
29043
29039
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
29044
29040
|
var es_array_filter = __webpack_require__(2008);
|
|
29045
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
29046
|
-
var es_array_push = __webpack_require__(4114);
|
|
29047
29041
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
29048
29042
|
var es_iterator_constructor = __webpack_require__(8111);
|
|
29049
29043
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
|
|
29050
29044
|
var es_iterator_filter = __webpack_require__(2489);
|
|
29045
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
29046
|
+
var es_number_constructor = __webpack_require__(2892);
|
|
29047
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
29048
|
+
var es_promise = __webpack_require__(3362);
|
|
29049
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
29050
|
+
var es_promise_finally = __webpack_require__(9391);
|
|
29051
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
29052
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
|
|
29053
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
29054
|
+
var es_array_push = __webpack_require__(4114);
|
|
29051
29055
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
29052
29056
|
var es_string_fixed = __webpack_require__(4298);
|
|
29053
29057
|
;// ./node_modules/lodash-es/_listCacheClear.js
|
|
@@ -48284,8 +48288,6 @@ var formatJsonString = function formatJsonString(str) {
|
|
|
48284
48288
|
var es_array_slice = __webpack_require__(4782);
|
|
48285
48289
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
48286
48290
|
var es_array_splice = __webpack_require__(4554);
|
|
48287
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
48288
|
-
var es_promise = __webpack_require__(3362);
|
|
48289
48291
|
;// ./node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js
|
|
48290
48292
|
// This icon file is generated automatically.
|
|
48291
48293
|
var PlusOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
|
@@ -52845,7 +52847,8 @@ image_Image.install = function (app) {
|
|
|
52845
52847
|
|
|
52846
52848
|
|
|
52847
52849
|
var main_useI18n = useI18n(),
|
|
52848
|
-
main_t = main_useI18n.t
|
|
52850
|
+
main_t = main_useI18n.t,
|
|
52851
|
+
main_locale = main_useI18n.locale;
|
|
52849
52852
|
var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
52850
52853
|
var props = _ref.props,
|
|
52851
52854
|
key = _ref.key,
|
|
@@ -52855,10 +52858,11 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52855
52858
|
spinning = _ref.spinning,
|
|
52856
52859
|
isShowOperate = _ref.isShowOperate,
|
|
52857
52860
|
selectChange = _ref.selectChange,
|
|
52858
|
-
emits = _ref.emits
|
|
52861
|
+
emits = _ref.emits,
|
|
52862
|
+
localCols = _ref.localCols;
|
|
52859
52863
|
var innerCols = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
52860
52864
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watchEffect)(function () {
|
|
52861
|
-
var Cols =
|
|
52865
|
+
var Cols = lodash_es_cloneDeep(localCols.value);
|
|
52862
52866
|
if (Cols.length == 0) {
|
|
52863
52867
|
innerCols.value = [];
|
|
52864
52868
|
} else {
|
|
@@ -52869,7 +52873,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52869
52873
|
if (typeof cols[i].Style == "undefined") {
|
|
52870
52874
|
var tempItem = {
|
|
52871
52875
|
title: cols[i].title,
|
|
52872
|
-
dataIndex: cols[i].Field,
|
|
52876
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
52873
52877
|
width: cols[i].width,
|
|
52874
52878
|
resizable: true,
|
|
52875
52879
|
ellipsis: true,
|
|
@@ -52898,6 +52902,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52898
52902
|
if (cols[i].isDefaultEditInTable) {
|
|
52899
52903
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-input"), {
|
|
52900
52904
|
"value": record[key],
|
|
52905
|
+
"size": "small",
|
|
52901
52906
|
"onChange": function onChange(data) {
|
|
52902
52907
|
record[key] = data.target.value;
|
|
52903
52908
|
}
|
|
@@ -52913,7 +52918,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52913
52918
|
if (cols[i].Style.toLowerCase() == "textbox") {
|
|
52914
52919
|
var _tempItem = {
|
|
52915
52920
|
title: cols[i].title,
|
|
52916
|
-
dataIndex: cols[i].Field,
|
|
52921
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
52917
52922
|
width: cols[i].width,
|
|
52918
52923
|
resizable: true,
|
|
52919
52924
|
ellipsis: true,
|
|
@@ -52939,10 +52944,11 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52939
52944
|
},
|
|
52940
52945
|
customRender: function customRender(_ref6) {
|
|
52941
52946
|
var record = _ref6.record;
|
|
52942
|
-
var key = cols[i].Field;
|
|
52947
|
+
var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
|
|
52943
52948
|
if (cols[i].isDefaultEditInTable) {
|
|
52944
52949
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-input"), {
|
|
52945
52950
|
"value": record[key],
|
|
52951
|
+
"size": "small",
|
|
52946
52952
|
"onChange": function onChange(data) {
|
|
52947
52953
|
record[key] = data.target.value;
|
|
52948
52954
|
}
|
|
@@ -52957,7 +52963,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52957
52963
|
} else if (cols[i].Style.toLowerCase() == "textarea") {
|
|
52958
52964
|
var item = {
|
|
52959
52965
|
title: cols[i].title,
|
|
52960
|
-
dataIndex: cols[i].Field,
|
|
52966
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
52961
52967
|
width: cols[i].width,
|
|
52962
52968
|
resizable: true,
|
|
52963
52969
|
ellipsis: true,
|
|
@@ -52983,7 +52989,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
52983
52989
|
},
|
|
52984
52990
|
customRender: function customRender(_ref7) {
|
|
52985
52991
|
var record = _ref7.record;
|
|
52986
|
-
var key = cols[i].Field;
|
|
52992
|
+
var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
|
|
52987
52993
|
if (cols[i].isDefaultEditInTable) {
|
|
52988
52994
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-textarea"), {
|
|
52989
52995
|
"value": record[key],
|
|
@@ -53001,7 +53007,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53001
53007
|
} else if (cols[i].Style.toLowerCase() == "combox") {
|
|
53002
53008
|
var _tempItem2 = {
|
|
53003
53009
|
title: cols[i].title,
|
|
53004
|
-
dataIndex: cols[i].Field,
|
|
53010
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53005
53011
|
width: cols[i].width,
|
|
53006
53012
|
resizable: true,
|
|
53007
53013
|
ellipsis: true,
|
|
@@ -53025,7 +53031,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53025
53031
|
filterOption: filterOption,
|
|
53026
53032
|
onChange: function onChange(value) {
|
|
53027
53033
|
var formModel = Option.formModel;
|
|
53028
|
-
formModel[cols[i].Field] = value;
|
|
53034
|
+
formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value;
|
|
53029
53035
|
selectChange(Option, cols[i]);
|
|
53030
53036
|
},
|
|
53031
53037
|
disabled: !cols[i].isEdit,
|
|
@@ -53038,7 +53044,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53038
53044
|
defaultEditable: false,
|
|
53039
53045
|
customRender: function customRender(_ref8) {
|
|
53040
53046
|
var record = _ref8.record;
|
|
53041
|
-
var key = cols[i].Field;
|
|
53047
|
+
var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
|
|
53042
53048
|
if (cols[i].isDefaultEditInTable) {
|
|
53043
53049
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-select"), {
|
|
53044
53050
|
"value": record[key],
|
|
@@ -53054,8 +53060,8 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53054
53060
|
}
|
|
53055
53061
|
}, null);
|
|
53056
53062
|
} else {
|
|
53057
|
-
var tempCol =
|
|
53058
|
-
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
|
|
53063
|
+
var tempCol = localCols.value.filter(function (item) {
|
|
53064
|
+
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
|
|
53059
53065
|
});
|
|
53060
53066
|
if (tempCol.length == 1) {
|
|
53061
53067
|
return _getComBoxlabel(record, tempCol[0]);
|
|
@@ -53068,7 +53074,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53068
53074
|
} else if (cols[i].Style.toLowerCase() == "tree" || cols[i].Style.toLowerCase() == "selecttree") {
|
|
53069
53075
|
var _tempItem3 = {
|
|
53070
53076
|
title: cols[i].title,
|
|
53071
|
-
dataIndex: cols[i].Field,
|
|
53077
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53072
53078
|
width: cols[i].width,
|
|
53073
53079
|
resizable: true,
|
|
53074
53080
|
ellipsis: true,
|
|
@@ -53087,7 +53093,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53087
53093
|
allowClear: true,
|
|
53088
53094
|
onChange: function onChange(value) {
|
|
53089
53095
|
var formModel = Option.formModel;
|
|
53090
|
-
formModel[cols[i].Field] = value;
|
|
53096
|
+
formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value;
|
|
53091
53097
|
selectChange(Option, cols[i]);
|
|
53092
53098
|
},
|
|
53093
53099
|
disabled: !cols[i].isEdit,
|
|
@@ -53099,7 +53105,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53099
53105
|
defaultEditable: false,
|
|
53100
53106
|
customRender: function customRender(_ref9) {
|
|
53101
53107
|
var record = _ref9.record;
|
|
53102
|
-
var key = cols[i].Field;
|
|
53108
|
+
var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
|
|
53103
53109
|
if (cols[i].isDefaultEditInTable) {
|
|
53104
53110
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-tree-select"), {
|
|
53105
53111
|
"value": record[key],
|
|
@@ -53112,8 +53118,8 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53112
53118
|
}
|
|
53113
53119
|
}, null);
|
|
53114
53120
|
} else {
|
|
53115
|
-
var tempCol =
|
|
53116
|
-
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
|
|
53121
|
+
var tempCol = localCols.value.filter(function (item) {
|
|
53122
|
+
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
|
|
53117
53123
|
});
|
|
53118
53124
|
if (tempCol.length == 1) {
|
|
53119
53125
|
return _getTreeLabel(record, tempCol[0]);
|
|
@@ -53127,7 +53133,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53127
53133
|
} else if (cols[i].Style.toLowerCase() == "checkbox") {
|
|
53128
53134
|
var _tempItem4 = {
|
|
53129
53135
|
title: cols[i].title,
|
|
53130
|
-
dataIndex: cols[i].Field,
|
|
53136
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53131
53137
|
width: cols[i].width,
|
|
53132
53138
|
resizable: true,
|
|
53133
53139
|
ellipsis: true,
|
|
@@ -53141,7 +53147,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53141
53147
|
disabled: !cols[i].isEdit,
|
|
53142
53148
|
onChange: function onChange(value) {
|
|
53143
53149
|
var formModel = Option.formModel;
|
|
53144
|
-
formModel[cols[i].Field] = value.target.checked;
|
|
53150
|
+
formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value.target.checked;
|
|
53145
53151
|
selectChange(Option, cols[i]);
|
|
53146
53152
|
}
|
|
53147
53153
|
};
|
|
@@ -53151,8 +53157,8 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53151
53157
|
defaultEditable: false,
|
|
53152
53158
|
customRender: function customRender(_ref0) {
|
|
53153
53159
|
var record = _ref0.record;
|
|
53154
|
-
var tempCol =
|
|
53155
|
-
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
|
|
53160
|
+
var tempCol = localCols.value.filter(function (item) {
|
|
53161
|
+
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
|
|
53156
53162
|
});
|
|
53157
53163
|
if (tempCol.length == 1) {
|
|
53158
53164
|
return _getCheckBox(record, tempCol[0]);
|
|
@@ -53165,7 +53171,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53165
53171
|
} else if (cols[i].Style.toLowerCase() == "color") {
|
|
53166
53172
|
var _tempItem5 = {
|
|
53167
53173
|
title: cols[i].title,
|
|
53168
|
-
dataIndex: cols[i].Field,
|
|
53174
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53169
53175
|
width: cols[i].width,
|
|
53170
53176
|
align: 'center',
|
|
53171
53177
|
resizable: true,
|
|
@@ -53180,9 +53186,9 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53180
53186
|
formModel = _ref1.formModel,
|
|
53181
53187
|
tableRowKey = _ref1.tableRowKey;
|
|
53182
53188
|
return {
|
|
53183
|
-
color: formModel[cols[i].Field],
|
|
53189
|
+
color: formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field],
|
|
53184
53190
|
onColorChange: function onColorChange(hex, rgba) {
|
|
53185
|
-
formModel[cols[i].Field] = hex;
|
|
53191
|
+
formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = hex;
|
|
53186
53192
|
}
|
|
53187
53193
|
};
|
|
53188
53194
|
}
|
|
@@ -53191,8 +53197,8 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53191
53197
|
defaultEditable: false,
|
|
53192
53198
|
customRender: function customRender(_ref10) {
|
|
53193
53199
|
var record = _ref10.record;
|
|
53194
|
-
var tempCol =
|
|
53195
|
-
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
|
|
53200
|
+
var tempCol = localCols.value.filter(function (item) {
|
|
53201
|
+
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
|
|
53196
53202
|
});
|
|
53197
53203
|
if (tempCol.length == 1) {
|
|
53198
53204
|
return showColorComponent(record, tempCol[0]);
|
|
@@ -53205,7 +53211,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53205
53211
|
} else if (cols[i].Style.toLowerCase() == "datetime") {
|
|
53206
53212
|
var _tempItem6 = {
|
|
53207
53213
|
title: cols[i].title,
|
|
53208
|
-
dataIndex: cols[i].Field,
|
|
53214
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53209
53215
|
width: cols[i].width,
|
|
53210
53216
|
align: 'center',
|
|
53211
53217
|
resizable: true,
|
|
@@ -53226,7 +53232,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53226
53232
|
message: main_t("baseBusiness.commonList.SelectWarn")
|
|
53227
53233
|
}] : [],
|
|
53228
53234
|
onChange: function onChange(value) {
|
|
53229
|
-
formModel[cols[i].Field] = value;
|
|
53235
|
+
formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value;
|
|
53230
53236
|
console.log('tableInstance', tableInstance === null || tableInstance === void 0 ? void 0 : tableInstance.reload());
|
|
53231
53237
|
}
|
|
53232
53238
|
};
|
|
@@ -53237,7 +53243,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53237
53243
|
customRender: function customRender(_ref12) {
|
|
53238
53244
|
var record = _ref12.record;
|
|
53239
53245
|
if (cols[i].isDefaultEditInTable) {
|
|
53240
|
-
var _key = cols[i].Field;
|
|
53246
|
+
var _key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
|
|
53241
53247
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-date-picker"), {
|
|
53242
53248
|
"value": record[_key],
|
|
53243
53249
|
"valueFormat": cols[i].valueFormat ? cols[i].valueFormat : cols[i].showTime ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD',
|
|
@@ -53246,11 +53252,11 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53246
53252
|
}
|
|
53247
53253
|
}, null);
|
|
53248
53254
|
} else {
|
|
53249
|
-
if (isNULL(record[cols[i].Field])) {
|
|
53255
|
+
if (isNULL(record[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field])) {
|
|
53250
53256
|
return "";
|
|
53251
53257
|
} else {
|
|
53252
|
-
var tempCol =
|
|
53253
|
-
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
|
|
53258
|
+
var tempCol = localCols.value.filter(function (item) {
|
|
53259
|
+
return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
|
|
53254
53260
|
});
|
|
53255
53261
|
if (tempCol.length == 1) {
|
|
53256
53262
|
return showTimeLabel(record, tempCol[0]);
|
|
@@ -53265,7 +53271,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53265
53271
|
} else if (cols[i].Style.toLowerCase() == "image") {
|
|
53266
53272
|
var _tempItem7 = {
|
|
53267
53273
|
title: cols[i].title,
|
|
53268
|
-
dataIndex: cols[i].Field,
|
|
53274
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53269
53275
|
width: cols[i].width,
|
|
53270
53276
|
align: 'center',
|
|
53271
53277
|
resizable: true,
|
|
@@ -53278,7 +53284,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53278
53284
|
disabled: !cols[i].isEdit,
|
|
53279
53285
|
onFileChange: function onFileChange(files) {
|
|
53280
53286
|
var formModel = schema.formModel;
|
|
53281
|
-
formModel[cols[i].Field] = files;
|
|
53287
|
+
formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = files;
|
|
53282
53288
|
}
|
|
53283
53289
|
});
|
|
53284
53290
|
}
|
|
@@ -53295,7 +53301,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53295
53301
|
}
|
|
53296
53302
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(es_image, {
|
|
53297
53303
|
"width": 22,
|
|
53298
|
-
"src": stringHeader + record[cols[i].Field]
|
|
53304
|
+
"src": stringHeader + record[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field]
|
|
53299
53305
|
}, null);
|
|
53300
53306
|
},
|
|
53301
53307
|
hideInSearch: cols[i].ifshowInQueryForm ? false : true
|
|
@@ -53305,7 +53311,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53305
53311
|
} else if (cols[i].Style.toLowerCase() == "number") {
|
|
53306
53312
|
var _tempItem8 = {
|
|
53307
53313
|
title: cols[i].title,
|
|
53308
|
-
dataIndex: cols[i].Field,
|
|
53314
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53309
53315
|
width: cols[i].width,
|
|
53310
53316
|
resizable: true,
|
|
53311
53317
|
ellipsis: true,
|
|
@@ -53334,6 +53340,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53334
53340
|
if (cols[i].isDefaultEditInTable) {
|
|
53335
53341
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-input-number"), {
|
|
53336
53342
|
"value": record[key],
|
|
53343
|
+
"size": "small",
|
|
53337
53344
|
"onChange": function onChange(data) {
|
|
53338
53345
|
record[key] = data.target.value;
|
|
53339
53346
|
}
|
|
@@ -53348,7 +53355,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53348
53355
|
} else {
|
|
53349
53356
|
var _tempItem9 = {
|
|
53350
53357
|
title: cols[i].title,
|
|
53351
|
-
dataIndex: cols[i].Field,
|
|
53358
|
+
dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
|
|
53352
53359
|
width: cols[i].width,
|
|
53353
53360
|
resizable: true,
|
|
53354
53361
|
ellipsis: true,
|
|
@@ -53377,6 +53384,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53377
53384
|
if (cols[i].isDefaultEditInTable) {
|
|
53378
53385
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-input"), {
|
|
53379
53386
|
"value": record[key],
|
|
53387
|
+
"size": "small",
|
|
53380
53388
|
"onChange": function onChange(data) {
|
|
53381
53389
|
record[key] = data.target.value;
|
|
53382
53390
|
}
|
|
@@ -53490,7 +53498,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53490
53498
|
var getComBoxOption = function getComBoxOption(Options, col, props) {
|
|
53491
53499
|
var Option = [];
|
|
53492
53500
|
var field = col.Field ? col.Field : col.dataIndex;
|
|
53493
|
-
var target =
|
|
53501
|
+
var target = localCols.value.filter(function (item) {
|
|
53494
53502
|
return item.Field == field;
|
|
53495
53503
|
});
|
|
53496
53504
|
if (target.length == 1) {
|
|
@@ -53501,7 +53509,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
|
|
|
53501
53509
|
var getTreeOption = function getTreeOption(Options, col, props) {
|
|
53502
53510
|
var Option = [];
|
|
53503
53511
|
var field = col.Field ? col.Field : col.dataIndex;
|
|
53504
|
-
var target =
|
|
53512
|
+
var target = localCols.value.filter(function (item) {
|
|
53505
53513
|
return item.Field == field;
|
|
53506
53514
|
});
|
|
53507
53515
|
if (target.length == 1) {
|
|
@@ -56190,6 +56198,13 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56190
56198
|
|
|
56191
56199
|
|
|
56192
56200
|
|
|
56201
|
+
|
|
56202
|
+
|
|
56203
|
+
|
|
56204
|
+
|
|
56205
|
+
|
|
56206
|
+
|
|
56207
|
+
|
|
56193
56208
|
|
|
56194
56209
|
/* harmony default export */ var mainvue_type_script_setup_true_lang_tsx = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
56195
56210
|
__name: 'main',
|
|
@@ -56331,6 +56346,13 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56331
56346
|
editableType: {
|
|
56332
56347
|
type: String,
|
|
56333
56348
|
default: "single"
|
|
56349
|
+
},
|
|
56350
|
+
fileName: {
|
|
56351
|
+
type: String
|
|
56352
|
+
},
|
|
56353
|
+
colFileld: {
|
|
56354
|
+
type: String,
|
|
56355
|
+
default: "Columns"
|
|
56334
56356
|
}
|
|
56335
56357
|
},
|
|
56336
56358
|
emits: ["refresh", "new", "edit", "delete", "save", "combox-select-change", "edit-in-dlg", "update:selectRow", "update:selectedRows", "key-change", "row-dblclick", "row-click", "loadSuccess", "check-data", "on-btn-click", "update:queryData"],
|
|
@@ -56338,14 +56360,18 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56338
56360
|
var __expose = _ref.expose,
|
|
56339
56361
|
__emit = _ref.emit;
|
|
56340
56362
|
var _useI18n = (0,vue_i18n/* useI18n */.s9)(),
|
|
56341
|
-
t = _useI18n.t
|
|
56363
|
+
t = _useI18n.t,
|
|
56364
|
+
locale = _useI18n.locale;
|
|
56342
56365
|
var props = __props;
|
|
56343
|
-
var
|
|
56366
|
+
var emits = __emit;
|
|
56344
56367
|
var selectedRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
56345
56368
|
var spinning = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
56346
56369
|
var commonTableRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
56347
56370
|
var selectedRowData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
56348
|
-
var
|
|
56371
|
+
var key = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.rowKey);
|
|
56372
|
+
var saveURL = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.saveUrl);
|
|
56373
|
+
var formatShowSaveFun = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.formatShowSaveFun);
|
|
56374
|
+
var isShowOperate = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.isShowOperate);
|
|
56349
56375
|
var selectData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
56350
56376
|
var selectionData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
56351
56377
|
var disAbleEdit = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
@@ -56367,6 +56393,9 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56367
56393
|
return props.rowSelection;
|
|
56368
56394
|
}
|
|
56369
56395
|
});
|
|
56396
|
+
var isShowTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
56397
|
+
return innerCols.value.length > 0;
|
|
56398
|
+
});
|
|
56370
56399
|
var reload = function reload(reset) {
|
|
56371
56400
|
if (commonTableRef.value) {
|
|
56372
56401
|
commonTableRef.value.reload(reset);
|
|
@@ -56376,21 +56405,10 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56376
56405
|
}
|
|
56377
56406
|
}
|
|
56378
56407
|
};
|
|
56379
|
-
var setCurrentRowNO = function setCurrentRowNO(rowNo) {
|
|
56380
|
-
if (commonTableRef.value) {
|
|
56381
|
-
commonTableRef.value.setCurrentRowNO(rowNo);
|
|
56382
|
-
}
|
|
56383
|
-
};
|
|
56384
56408
|
var selectChange = function selectChange(record, col) {
|
|
56385
56409
|
emits("combox-select-change", record.formModel, col);
|
|
56386
56410
|
};
|
|
56387
|
-
var
|
|
56388
|
-
emits("edit-in-dlg", record);
|
|
56389
|
-
};
|
|
56390
|
-
var key = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.rowKey);
|
|
56391
|
-
var saveURL = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.saveUrl);
|
|
56392
|
-
var formatShowSaveFun = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.formatShowSaveFun);
|
|
56393
|
-
var isShowOperate = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(props.isShowOperate);
|
|
56411
|
+
var localCols = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.columns);
|
|
56394
56412
|
var _UseformatShowCols = UseformatShowCols({
|
|
56395
56413
|
props: props,
|
|
56396
56414
|
key: key,
|
|
@@ -56400,9 +56418,18 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56400
56418
|
isShowOperate: isShowOperate,
|
|
56401
56419
|
reload: reload,
|
|
56402
56420
|
selectChange: selectChange,
|
|
56403
|
-
emits: emits
|
|
56421
|
+
emits: emits,
|
|
56422
|
+
localCols: localCols
|
|
56404
56423
|
}),
|
|
56405
56424
|
innerCols = _UseformatShowCols.innerCols;
|
|
56425
|
+
var setCurrentRowNO = function setCurrentRowNO(rowNo) {
|
|
56426
|
+
if (commonTableRef.value) {
|
|
56427
|
+
commonTableRef.value.setCurrentRowNO(rowNo);
|
|
56428
|
+
}
|
|
56429
|
+
};
|
|
56430
|
+
var handleEditInDlg = function handleEditInDlg(record) {
|
|
56431
|
+
emits("edit-in-dlg", record);
|
|
56432
|
+
};
|
|
56406
56433
|
var showCols = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
|
|
56407
56434
|
if (props.isUseOutCols == true) {
|
|
56408
56435
|
return props.columns;
|
|
@@ -56570,16 +56597,47 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56570
56597
|
commonTableRef.value.setRowEdit(rowNO);
|
|
56571
56598
|
}
|
|
56572
56599
|
};
|
|
56573
|
-
|
|
56574
|
-
|
|
56575
|
-
|
|
56576
|
-
|
|
56577
|
-
|
|
56578
|
-
|
|
56579
|
-
|
|
56600
|
+
var formatShowData = function formatShowData(cols) {
|
|
56601
|
+
var tempArray = lodash_es_cloneDeep(cols);
|
|
56602
|
+
for (var i = 0; i < tempArray.length; i++) {
|
|
56603
|
+
tempArray[i].title = locale.value == "zh_CN" ? tempArray[i].NameZH : tempArray[i].NameEN;
|
|
56604
|
+
tempArray[i].dataIndex = tempArray[i].dataIndex ? tempArray[i].dataIndex : tempArray[i].Field;
|
|
56605
|
+
if (tempArray[i].Style.toLowerCase() == "combox") {
|
|
56606
|
+
for (var j = 0; j < tempArray[i].Option.length; j++) {
|
|
56607
|
+
tempArray[i].Option[j].label = locale.value == "zh_CN" ? tempArray[i].Option[j].labelZH : tempArray[i].Option[j].labelEN;
|
|
56608
|
+
}
|
|
56580
56609
|
}
|
|
56581
|
-
}
|
|
56582
|
-
|
|
56610
|
+
}
|
|
56611
|
+
tempArray = tempArray.filter(function (item) {
|
|
56612
|
+
return item.Visible == true;
|
|
56613
|
+
});
|
|
56614
|
+
return tempArray;
|
|
56615
|
+
};
|
|
56616
|
+
var getAndCols = /*#__PURE__*/function () {
|
|
56617
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(fileName) {
|
|
56618
|
+
return _regenerator().w(function (_context3) {
|
|
56619
|
+
while (1) switch (_context3.n) {
|
|
56620
|
+
case 0:
|
|
56621
|
+
_context3.n = 1;
|
|
56622
|
+
return loadProfile(fileName).then(function (res) {
|
|
56623
|
+
localCols.value = lodash_es_cloneDeep(formatShowData(res[props.colFileld]));
|
|
56624
|
+
}).finally(function () {});
|
|
56625
|
+
case 1:
|
|
56626
|
+
return _context3.a(2);
|
|
56627
|
+
}
|
|
56628
|
+
}, _callee3);
|
|
56629
|
+
}));
|
|
56630
|
+
return function getAndCols(_x2) {
|
|
56631
|
+
return _ref3.apply(this, arguments);
|
|
56632
|
+
};
|
|
56633
|
+
}();
|
|
56634
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeMount)(function () {
|
|
56635
|
+
if (typeof props.fileName != "undefined") {
|
|
56636
|
+
getAndCols(props.fileName);
|
|
56637
|
+
} else {
|
|
56638
|
+
localCols.value = lodash_es_cloneDeep(props.columns);
|
|
56639
|
+
}
|
|
56640
|
+
});
|
|
56583
56641
|
__expose({
|
|
56584
56642
|
reload: reload,
|
|
56585
56643
|
setCurrentRowNO: setCurrentRowNO,
|
|
@@ -56594,8 +56652,10 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56594
56652
|
var _directive_loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDirective)("loading");
|
|
56595
56653
|
return (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_a_layout, {
|
|
56596
56654
|
style: {
|
|
56597
|
-
"height": "100%"
|
|
56598
|
-
|
|
56655
|
+
"height": "100%",
|
|
56656
|
+
"padding": "10px"
|
|
56657
|
+
},
|
|
56658
|
+
class: "common-table-layout"
|
|
56599
56659
|
}, {
|
|
56600
56660
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
56601
56661
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "query-operate-btn", {
|
|
@@ -56646,9 +56706,6 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56646
56706
|
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.isShowEdit ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_a_button, {
|
|
56647
56707
|
key: 2,
|
|
56648
56708
|
type: "primary",
|
|
56649
|
-
style: {
|
|
56650
|
-
"margin-left": "5px"
|
|
56651
|
-
},
|
|
56652
56709
|
onClick: handleEdit,
|
|
56653
56710
|
disabled: !disAbleEdit.value
|
|
56654
56711
|
}, {
|
|
@@ -56665,9 +56722,6 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56665
56722
|
key: 3,
|
|
56666
56723
|
type: "primary",
|
|
56667
56724
|
danger: "",
|
|
56668
|
-
style: {
|
|
56669
|
-
"margin-left": "5px"
|
|
56670
|
-
},
|
|
56671
56725
|
onClick: handleDel,
|
|
56672
56726
|
disabled: !disAbleDel.value
|
|
56673
56727
|
}, {
|
|
@@ -56686,7 +56740,8 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56686
56740
|
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_a_layout_content, {
|
|
56687
56741
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
56688
56742
|
height: __props.isShowHeaderBtn || _ctx.$slots ? 'calc(100% - 47px)' : '100%'
|
|
56689
|
-
})
|
|
56743
|
+
}),
|
|
56744
|
+
class: "common-table-content"
|
|
56690
56745
|
}, {
|
|
56691
56746
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(function () {
|
|
56692
56747
|
return [isShowTable.value ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_lt_a_table, {
|
|
@@ -56736,10 +56791,10 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
|
|
|
56736
56791
|
}));
|
|
56737
56792
|
;// ./packages/components/lt-common-list/src/main.vue?vue&type=script&setup=true&lang=tsx
|
|
56738
56793
|
|
|
56739
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=
|
|
56794
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=487ca7be&lang=css
|
|
56740
56795
|
// extracted by mini-css-extract-plugin
|
|
56741
56796
|
|
|
56742
|
-
;// ./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=
|
|
56797
|
+
;// ./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=487ca7be&lang=css
|
|
56743
56798
|
|
|
56744
56799
|
;// ./packages/components/lt-common-list/src/main.vue
|
|
56745
56800
|
|
|
@@ -73463,8 +73518,6 @@ var ltTopMenu = withInstall(top_menu_src_main);
|
|
|
73463
73518
|
var es_symbol = __webpack_require__(2675);
|
|
73464
73519
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
73465
73520
|
var es_symbol_description = __webpack_require__(9463);
|
|
73466
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
73467
|
-
var es_promise_finally = __webpack_require__(9391);
|
|
73468
73521
|
;// ./node_modules/vue-router/dist/vue-router.mjs
|
|
73469
73522
|
/*!
|
|
73470
73523
|
* vue-router v4.5.1
|