@fmdeui/fmui 1.0.136 → 1.0.137
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/fm-autocomplete/component/supplierSelectDialog2.vue.mjs +39 -29
- package/index.js +40 -30
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +40 -30
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.js +39 -29
- 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 → lib}/index.css +0 -0
|
@@ -80,6 +80,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
const handledbclick = (row) => {
|
|
81
81
|
handleSelectUser(row);
|
|
82
82
|
};
|
|
83
|
+
const loadSub = async (row, treeNode, resolve) => {
|
|
84
|
+
var _a, _b, _c;
|
|
85
|
+
let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams, pid: row.id }, props.userAction);
|
|
86
|
+
row.children = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
87
|
+
resolve((_c = row.children) != null ? _c : []);
|
|
88
|
+
};
|
|
83
89
|
const handleSizeChange = (val) => {
|
|
84
90
|
state.queryParams.pageSize = val;
|
|
85
91
|
handleQuery();
|
|
@@ -100,8 +106,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
106
|
const _component_el_button = resolveComponent("el-button");
|
|
101
107
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
102
108
|
const _component_el_form = resolveComponent("el-form");
|
|
103
|
-
const _component_ele_Plus = resolveComponent("ele-Plus");
|
|
104
109
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
110
|
+
const _component_ele_Plus = resolveComponent("ele-Plus");
|
|
105
111
|
const _component_el_table = resolveComponent("el-table");
|
|
106
112
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
107
113
|
const _component_el_card = resolveComponent("el-card");
|
|
@@ -238,36 +244,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
238
244
|
ref: "refTable",
|
|
239
245
|
data: userList.value,
|
|
240
246
|
style: { "height": "calc(70vh - 96px)" },
|
|
247
|
+
"row-key": "id",
|
|
248
|
+
lazy: "",
|
|
249
|
+
load: loadSub,
|
|
250
|
+
"tree-props": { children: "children", hasChildren: "hasChildren" },
|
|
241
251
|
onRowDblclick: handledbclick
|
|
242
252
|
}, {
|
|
243
253
|
default: withCtx(() => [
|
|
244
|
-
createVNode(_component_el_table_column, {
|
|
245
|
-
label: "\u64CD\u4F5C",
|
|
246
|
-
width: "60",
|
|
247
|
-
align: "center"
|
|
248
|
-
}, {
|
|
249
|
-
default: withCtx((scope) => [
|
|
250
|
-
createVNode(_component_el_button, {
|
|
251
|
-
link: "",
|
|
252
|
-
type: "primary",
|
|
253
|
-
onClick: ($event) => handleSelectUser(scope.row)
|
|
254
|
-
}, {
|
|
255
|
-
default: withCtx(() => [
|
|
256
|
-
createVNode(_component_el_icon, null, {
|
|
257
|
-
default: withCtx(() => [
|
|
258
|
-
createVNode(_component_ele_Plus)
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
/* STABLE */
|
|
262
|
-
})
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
/* STABLE */
|
|
266
|
-
}, 8, ["onClick"])
|
|
267
|
-
]),
|
|
268
|
-
_: 1
|
|
269
|
-
/* STABLE */
|
|
270
|
-
}),
|
|
271
254
|
createVNode(_component_el_table_column, {
|
|
272
255
|
label: _ctx.$t("\u540D\u79F0"),
|
|
273
256
|
prop: "supplierName",
|
|
@@ -330,7 +313,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
330
313
|
}),
|
|
331
314
|
_: 1
|
|
332
315
|
/* STABLE */
|
|
333
|
-
}, 8, ["label"])
|
|
316
|
+
}, 8, ["label"]),
|
|
317
|
+
createVNode(_component_el_table_column, {
|
|
318
|
+
label: "\u64CD\u4F5C",
|
|
319
|
+
width: "60",
|
|
320
|
+
align: "center"
|
|
321
|
+
}, {
|
|
322
|
+
default: withCtx((scope) => [
|
|
323
|
+
createVNode(_component_el_button, {
|
|
324
|
+
link: "",
|
|
325
|
+
type: "primary",
|
|
326
|
+
onClick: ($event) => handleSelectUser(scope.row)
|
|
327
|
+
}, {
|
|
328
|
+
default: withCtx(() => [
|
|
329
|
+
createVNode(_component_el_icon, null, {
|
|
330
|
+
default: withCtx(() => [
|
|
331
|
+
createVNode(_component_ele_Plus)
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
/* STABLE */
|
|
335
|
+
})
|
|
336
|
+
]),
|
|
337
|
+
_: 1
|
|
338
|
+
/* STABLE */
|
|
339
|
+
}, 8, ["onClick"])
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
/* STABLE */
|
|
343
|
+
})
|
|
334
344
|
]),
|
|
335
345
|
_: 1
|
|
336
346
|
/* STABLE */
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.137 */
|
|
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) :
|
|
@@ -27971,6 +27971,12 @@
|
|
|
27971
27971
|
const handledbclick = (row) => {
|
|
27972
27972
|
handleSelectUser(row);
|
|
27973
27973
|
};
|
|
27974
|
+
const loadSub = async (row, treeNode, resolve) => {
|
|
27975
|
+
var _a, _b, _c;
|
|
27976
|
+
let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams, pid: row.id }, props.userAction);
|
|
27977
|
+
row.children = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
27978
|
+
resolve((_c = row.children) != null ? _c : []);
|
|
27979
|
+
};
|
|
27974
27980
|
const handleSizeChange = (val) => {
|
|
27975
27981
|
state.queryParams.pageSize = val;
|
|
27976
27982
|
handleQuery();
|
|
@@ -27991,8 +27997,8 @@
|
|
|
27991
27997
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
27992
27998
|
const _component_el_button_group = vue.resolveComponent("el-button-group");
|
|
27993
27999
|
const _component_el_form = vue.resolveComponent("el-form");
|
|
27994
|
-
const _component_ele_Plus = vue.resolveComponent("ele-Plus");
|
|
27995
28000
|
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
28001
|
+
const _component_ele_Plus = vue.resolveComponent("ele-Plus");
|
|
27996
28002
|
const _component_el_table = vue.resolveComponent("el-table");
|
|
27997
28003
|
const _component_el_pagination = vue.resolveComponent("el-pagination");
|
|
27998
28004
|
const _component_el_card = vue.resolveComponent("el-card");
|
|
@@ -28129,36 +28135,13 @@
|
|
|
28129
28135
|
ref: "refTable",
|
|
28130
28136
|
data: userList.value,
|
|
28131
28137
|
style: { "height": "calc(70vh - 96px)" },
|
|
28138
|
+
"row-key": "id",
|
|
28139
|
+
lazy: "",
|
|
28140
|
+
load: loadSub,
|
|
28141
|
+
"tree-props": { children: "children", hasChildren: "hasChildren" },
|
|
28132
28142
|
onRowDblclick: handledbclick
|
|
28133
28143
|
}, {
|
|
28134
28144
|
default: vue.withCtx(() => [
|
|
28135
|
-
vue.createVNode(_component_el_table_column, {
|
|
28136
|
-
label: "\u64CD\u4F5C",
|
|
28137
|
-
width: "60",
|
|
28138
|
-
align: "center"
|
|
28139
|
-
}, {
|
|
28140
|
-
default: vue.withCtx((scope) => [
|
|
28141
|
-
vue.createVNode(_component_el_button, {
|
|
28142
|
-
link: "",
|
|
28143
|
-
type: "primary",
|
|
28144
|
-
onClick: ($event) => handleSelectUser(scope.row)
|
|
28145
|
-
}, {
|
|
28146
|
-
default: vue.withCtx(() => [
|
|
28147
|
-
vue.createVNode(_component_el_icon, null, {
|
|
28148
|
-
default: vue.withCtx(() => [
|
|
28149
|
-
vue.createVNode(_component_ele_Plus)
|
|
28150
|
-
]),
|
|
28151
|
-
_: 1
|
|
28152
|
-
/* STABLE */
|
|
28153
|
-
})
|
|
28154
|
-
]),
|
|
28155
|
-
_: 1
|
|
28156
|
-
/* STABLE */
|
|
28157
|
-
}, 8, ["onClick"])
|
|
28158
|
-
]),
|
|
28159
|
-
_: 1
|
|
28160
|
-
/* STABLE */
|
|
28161
|
-
}),
|
|
28162
28145
|
vue.createVNode(_component_el_table_column, {
|
|
28163
28146
|
label: _ctx.$t("\u540D\u79F0"),
|
|
28164
28147
|
prop: "supplierName",
|
|
@@ -28221,7 +28204,34 @@
|
|
|
28221
28204
|
}),
|
|
28222
28205
|
_: 1
|
|
28223
28206
|
/* STABLE */
|
|
28224
|
-
}, 8, ["label"])
|
|
28207
|
+
}, 8, ["label"]),
|
|
28208
|
+
vue.createVNode(_component_el_table_column, {
|
|
28209
|
+
label: "\u64CD\u4F5C",
|
|
28210
|
+
width: "60",
|
|
28211
|
+
align: "center"
|
|
28212
|
+
}, {
|
|
28213
|
+
default: vue.withCtx((scope) => [
|
|
28214
|
+
vue.createVNode(_component_el_button, {
|
|
28215
|
+
link: "",
|
|
28216
|
+
type: "primary",
|
|
28217
|
+
onClick: ($event) => handleSelectUser(scope.row)
|
|
28218
|
+
}, {
|
|
28219
|
+
default: vue.withCtx(() => [
|
|
28220
|
+
vue.createVNode(_component_el_icon, null, {
|
|
28221
|
+
default: vue.withCtx(() => [
|
|
28222
|
+
vue.createVNode(_component_ele_Plus)
|
|
28223
|
+
]),
|
|
28224
|
+
_: 1
|
|
28225
|
+
/* STABLE */
|
|
28226
|
+
})
|
|
28227
|
+
]),
|
|
28228
|
+
_: 1
|
|
28229
|
+
/* STABLE */
|
|
28230
|
+
}, 8, ["onClick"])
|
|
28231
|
+
]),
|
|
28232
|
+
_: 1
|
|
28233
|
+
/* STABLE */
|
|
28234
|
+
})
|
|
28225
28235
|
]),
|
|
28226
28236
|
_: 1
|
|
28227
28237
|
/* STABLE */
|