@fmdeui/fmui 1.0.98 → 1.0.99
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/userSelectDialog.vue2.mjs +4 -0
- package/es/packages/components/fmtree/index.vue2.mjs +19 -1
- package/index.js +24 -2
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +24 -2
- package/lib/packages/components/fm-autocomplete/component/userSelectDialog.vue2.js +4 -0
- 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 → version.css} +0 -0
|
@@ -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 () => {
|
|
@@ -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.99 */
|
|
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) :
|
|
@@ -27027,7 +27027,11 @@
|
|
|
27027
27027
|
handleQuery();
|
|
27028
27028
|
};
|
|
27029
27029
|
const handleNodeChange = async (node) => {
|
|
27030
|
+
var _a, _b, _c;
|
|
27030
27031
|
state.queryParams.orgId = node.id;
|
|
27032
|
+
state.queryParams.cmpId = (_a = node.cmpId) != null ? _a : 0;
|
|
27033
|
+
state.queryParams.deptId = (_b = node.deptId) != null ? _b : 0;
|
|
27034
|
+
state.queryParams.groupId = (_c = node.groupId) != null ? _c : 0;
|
|
27031
27035
|
await handleQuery();
|
|
27032
27036
|
};
|
|
27033
27037
|
const getUserList = async () => {
|
|
@@ -27713,7 +27717,25 @@
|
|
|
27713
27717
|
const nodeClick = (node) => {
|
|
27714
27718
|
const reldata = findNode(node.id);
|
|
27715
27719
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
27716
|
-
|
|
27720
|
+
let cmpId = 0;
|
|
27721
|
+
let deptId = 0;
|
|
27722
|
+
let groupId = 0;
|
|
27723
|
+
if (reldata) {
|
|
27724
|
+
cmpId = reldata.id;
|
|
27725
|
+
if (reldata.level == 2) {
|
|
27726
|
+
deptId = reldata.id;
|
|
27727
|
+
cmpId = reldata.pid;
|
|
27728
|
+
groupId = 0;
|
|
27729
|
+
} else if (reldata.level == 3) {
|
|
27730
|
+
groupId = reldata.id;
|
|
27731
|
+
deptId = reldata.pid;
|
|
27732
|
+
const fitem = findNode(reldata.pid);
|
|
27733
|
+
if (fitem && fitem.pid > 0) {
|
|
27734
|
+
cmpId = fitem.pid;
|
|
27735
|
+
}
|
|
27736
|
+
}
|
|
27737
|
+
}
|
|
27738
|
+
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata, cmpId, deptId, groupId });
|
|
27717
27739
|
};
|
|
27718
27740
|
const findNode = (id) => {
|
|
27719
27741
|
const search = (nodes) => {
|