@fmdeui/fmui 1.0.98 → 1.0.100
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/components/fm-autocomplete/index.d.ts +4 -4
- package/es/components/fm-autocomplete/index.vue.d.ts +4 -4
- package/es/packages/components/fm-autocomplete/component/userSelectDialog.vue2.mjs +4 -0
- package/es/packages/components/fm-inputdropdown/index.vue2.mjs +2 -1
- package/es/packages/components/fmtree/index.vue2.mjs +19 -1
- package/index.js +26 -3
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +26 -3
- package/lib/components/fm-autocomplete/index.d.ts +4 -4
- package/lib/components/fm-autocomplete/index.vue.d.ts +4 -4
- package/lib/packages/components/fm-autocomplete/component/userSelectDialog.vue2.js +4 -0
- package/lib/packages/components/fm-inputdropdown/index.vue2.js +2 -1
- package/lib/packages/components/fmtree/index.vue2.js +19 -1
- 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/es/{component.css → make-installer.css} +0 -0
- /package/lib/{index.css → defaults.css} +0 -0
|
@@ -65,13 +65,13 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
65
65
|
required: true;
|
|
66
66
|
};
|
|
67
67
|
id: {
|
|
68
|
-
type: PropType<
|
|
68
|
+
type: PropType<number>;
|
|
69
69
|
required: true;
|
|
70
70
|
};
|
|
71
71
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
72
|
reset: (...args: any[]) => void;
|
|
73
73
|
select: (...args: any[]) => void;
|
|
74
|
-
"update:id": (value:
|
|
74
|
+
"update:id": (value: number) => void;
|
|
75
75
|
"update:name": (value: string) => void;
|
|
76
76
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
77
77
|
placeholder: {
|
|
@@ -139,13 +139,13 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
139
139
|
required: true;
|
|
140
140
|
};
|
|
141
141
|
id: {
|
|
142
|
-
type: PropType<
|
|
142
|
+
type: PropType<number>;
|
|
143
143
|
required: true;
|
|
144
144
|
};
|
|
145
145
|
}>> & Readonly<{
|
|
146
146
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
148
|
-
"onUpdate:id"?: ((value:
|
|
148
|
+
"onUpdate:id"?: ((value: number) => any) | undefined;
|
|
149
149
|
"onUpdate:name"?: ((value: string) => any) | undefined;
|
|
150
150
|
}>, {
|
|
151
151
|
top: number;
|
|
@@ -84,13 +84,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
84
84
|
required: true;
|
|
85
85
|
};
|
|
86
86
|
id: {
|
|
87
|
-
type: PropType<
|
|
87
|
+
type: PropType<number>;
|
|
88
88
|
required: true;
|
|
89
89
|
};
|
|
90
90
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
91
91
|
reset: (...args: any[]) => void;
|
|
92
92
|
select: (...args: any[]) => void;
|
|
93
|
-
"update:id": (value:
|
|
93
|
+
"update:id": (value: number) => void;
|
|
94
94
|
"update:name": (value: string) => void;
|
|
95
95
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
96
96
|
placeholder: {
|
|
@@ -177,13 +177,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
177
177
|
required: true;
|
|
178
178
|
};
|
|
179
179
|
id: {
|
|
180
|
-
type: PropType<
|
|
180
|
+
type: PropType<number>;
|
|
181
181
|
required: true;
|
|
182
182
|
};
|
|
183
183
|
}>> & Readonly<{
|
|
184
184
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
185
185
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
186
|
-
"onUpdate:id"?: ((value:
|
|
186
|
+
"onUpdate:id"?: ((value: number) => any) | undefined;
|
|
187
187
|
"onUpdate:name"?: ((value: string) => any) | undefined;
|
|
188
188
|
}>, {
|
|
189
189
|
top: number;
|
|
@@ -82,7 +82,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
handleQuery();
|
|
83
83
|
};
|
|
84
84
|
const handleNodeChange = async (node) => {
|
|
85
|
+
var _a, _b, _c;
|
|
85
86
|
state.queryParams.orgId = node.id;
|
|
87
|
+
state.queryParams.cmpId = (_a = node.cmpId) != null ? _a : 0;
|
|
88
|
+
state.queryParams.deptId = (_b = node.deptId) != null ? _b : 0;
|
|
89
|
+
state.queryParams.groupId = (_c = node.groupId) != null ? _c : 0;
|
|
86
90
|
await handleQuery();
|
|
87
91
|
};
|
|
88
92
|
const getUserList = async () => {
|
|
@@ -172,9 +172,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
172
172
|
style: normalizeStyle({ width: __props.inputWidth }),
|
|
173
173
|
onChange: handelChange
|
|
174
174
|
}, {
|
|
175
|
-
|
|
175
|
+
suffix: withCtx(() => [
|
|
176
176
|
createVNode(_component_el_icon, {
|
|
177
177
|
color: "#13c2c2",
|
|
178
|
+
size: 22,
|
|
178
179
|
onClick: handRestdata
|
|
179
180
|
}, {
|
|
180
181
|
default: withCtx(() => [
|
|
@@ -166,7 +166,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
const nodeClick = (node) => {
|
|
167
167
|
const reldata = findNode(node.id);
|
|
168
168
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
169
|
-
|
|
169
|
+
let cmpId = 0;
|
|
170
|
+
let deptId = 0;
|
|
171
|
+
let groupId = 0;
|
|
172
|
+
if (reldata) {
|
|
173
|
+
cmpId = reldata.id;
|
|
174
|
+
if (reldata.level == 2) {
|
|
175
|
+
deptId = reldata.id;
|
|
176
|
+
cmpId = reldata.pid;
|
|
177
|
+
groupId = 0;
|
|
178
|
+
} else if (reldata.level == 3) {
|
|
179
|
+
groupId = reldata.id;
|
|
180
|
+
deptId = reldata.pid;
|
|
181
|
+
const fitem = findNode(reldata.pid);
|
|
182
|
+
if (fitem && fitem.pid > 0) {
|
|
183
|
+
cmpId = fitem.pid;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata, cmpId, deptId, groupId });
|
|
170
188
|
};
|
|
171
189
|
const findNode = (id) => {
|
|
172
190
|
const search = (nodes) => {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.100 */
|
|
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) :
|
|
@@ -26818,9 +26818,10 @@
|
|
|
26818
26818
|
style: vue.normalizeStyle({ width: __props.inputWidth }),
|
|
26819
26819
|
onChange: handelChange
|
|
26820
26820
|
}, {
|
|
26821
|
-
|
|
26821
|
+
suffix: vue.withCtx(() => [
|
|
26822
26822
|
vue.createVNode(_component_el_icon, {
|
|
26823
26823
|
color: "#13c2c2",
|
|
26824
|
+
size: 22,
|
|
26824
26825
|
onClick: handRestdata
|
|
26825
26826
|
}, {
|
|
26826
26827
|
default: vue.withCtx(() => [
|
|
@@ -27027,7 +27028,11 @@
|
|
|
27027
27028
|
handleQuery();
|
|
27028
27029
|
};
|
|
27029
27030
|
const handleNodeChange = async (node) => {
|
|
27031
|
+
var _a, _b, _c;
|
|
27030
27032
|
state.queryParams.orgId = node.id;
|
|
27033
|
+
state.queryParams.cmpId = (_a = node.cmpId) != null ? _a : 0;
|
|
27034
|
+
state.queryParams.deptId = (_b = node.deptId) != null ? _b : 0;
|
|
27035
|
+
state.queryParams.groupId = (_c = node.groupId) != null ? _c : 0;
|
|
27031
27036
|
await handleQuery();
|
|
27032
27037
|
};
|
|
27033
27038
|
const getUserList = async () => {
|
|
@@ -27713,7 +27718,25 @@
|
|
|
27713
27718
|
const nodeClick = (node) => {
|
|
27714
27719
|
const reldata = findNode(node.id);
|
|
27715
27720
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
27716
|
-
|
|
27721
|
+
let cmpId = 0;
|
|
27722
|
+
let deptId = 0;
|
|
27723
|
+
let groupId = 0;
|
|
27724
|
+
if (reldata) {
|
|
27725
|
+
cmpId = reldata.id;
|
|
27726
|
+
if (reldata.level == 2) {
|
|
27727
|
+
deptId = reldata.id;
|
|
27728
|
+
cmpId = reldata.pid;
|
|
27729
|
+
groupId = 0;
|
|
27730
|
+
} else if (reldata.level == 3) {
|
|
27731
|
+
groupId = reldata.id;
|
|
27732
|
+
deptId = reldata.pid;
|
|
27733
|
+
const fitem = findNode(reldata.pid);
|
|
27734
|
+
if (fitem && fitem.pid > 0) {
|
|
27735
|
+
cmpId = fitem.pid;
|
|
27736
|
+
}
|
|
27737
|
+
}
|
|
27738
|
+
}
|
|
27739
|
+
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata, cmpId, deptId, groupId });
|
|
27717
27740
|
};
|
|
27718
27741
|
const findNode = (id) => {
|
|
27719
27742
|
const search = (nodes) => {
|