@fmdeui/fmui 1.0.65 → 1.0.66
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/fmtree/index.d.ts +2 -0
- package/es/components/fmtree/index.vue.d.ts +2 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/limitsFunction.d.ts +1 -0
- package/es/index.mjs +1 -0
- package/es/packages/components/fmtree/index.vue2.mjs +6 -3
- package/es/packages/hooks/index.mjs +1 -0
- package/es/packages/hooks/limitsFunction.mjs +11 -0
- package/es/packages/stores/userInfo.mjs +1 -0
- package/index.js +16 -4
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +16 -5
- package/lib/components/fmtree/index.d.ts +2 -0
- package/lib/components/fmtree/index.vue.d.ts +2 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/limitsFunction.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/packages/components/fmtree/index.vue2.js +6 -3
- package/lib/packages/hooks/index.js +2 -0
- package/lib/packages/hooks/limitsFunction.js +13 -0
- package/lib/packages/stores/userInfo.js +1 -0
- 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 → defaults.css} +0 -0
- /package/lib/{index.css → make-installer.css} +0 -0
|
@@ -57,6 +57,7 @@ export declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
|
57
57
|
getCheckedKeys: () => TreeKey[];
|
|
58
58
|
setCurrentKey: (key?: TreeKey | undefined, shouldAutoExpandParent?: boolean | undefined) => void;
|
|
59
59
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
|
+
refresh: (...args: any[]) => void;
|
|
60
61
|
"node-click": (...args: any[]) => void;
|
|
61
62
|
"update:modelValue": (value: any) => void;
|
|
62
63
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -112,6 +113,7 @@ export declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
|
112
113
|
type: PropType<any>;
|
|
113
114
|
};
|
|
114
115
|
}>> & Readonly<{
|
|
116
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
115
117
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
116
118
|
"onNode-click"?: ((...args: any[]) => any) | undefined;
|
|
117
119
|
}>, {
|
|
@@ -63,6 +63,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
getCheckedKeys: () => TreeKey[];
|
|
64
64
|
setCurrentKey: (key?: TreeKey | undefined, shouldAutoExpandParent?: boolean | undefined) => void;
|
|
65
65
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
66
|
+
refresh: (...args: any[]) => void;
|
|
66
67
|
"node-click": (...args: any[]) => void;
|
|
67
68
|
"update:modelValue": (value: any) => void;
|
|
68
69
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -124,6 +125,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
124
125
|
type: PropType<any>;
|
|
125
126
|
};
|
|
126
127
|
}>> & Readonly<{
|
|
128
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
127
129
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
128
130
|
"onNode-click"?: ((...args: any[]) => any) | undefined;
|
|
129
131
|
}>, {
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getlimit(value: string): any;
|
package/es/index.mjs
CHANGED
|
@@ -29,6 +29,7 @@ export { flowLoading } from './packages/utils/flowLoading.mjs';
|
|
|
29
29
|
export { formatAxis, formatDate, formatPast, getWeek } from './packages/utils/formatTime.mjs';
|
|
30
30
|
export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConvertor.mjs';
|
|
31
31
|
export { getFileUrl, showFileUrl } from './packages/utils/uploadfileurl.mjs';
|
|
32
|
+
export { getlimit } from './packages/hooks/limitsFunction.mjs';
|
|
32
33
|
export { getpower, powerAuthDel } from './packages/hooks/powerFunction.mjs';
|
|
33
34
|
export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './packages/hooks/useInfo.mjs';
|
|
34
35
|
export { judgementIdCard, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl } from './packages/utils/toolsValidate.mjs';
|
|
@@ -53,7 +53,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
"modelValue": {},
|
|
54
54
|
"modelModifiers": {}
|
|
55
55
|
}),
|
|
56
|
-
emits: /* @__PURE__ */ mergeModels(["node-click"], ["update:modelValue"]),
|
|
56
|
+
emits: /* @__PURE__ */ mergeModels(["node-click", "refresh"], ["update:modelValue"]),
|
|
57
57
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
58
58
|
const props = __props;
|
|
59
59
|
const modeValue = useModel(__props, "modelValue");
|
|
@@ -106,7 +106,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
treeRef.value.store._getAllNodes()[i].expanded = false;
|
|
107
107
|
}
|
|
108
108
|
} else if ("refresh" == command) {
|
|
109
|
-
|
|
109
|
+
if (props.apiService != "" && props.apiAction != "")
|
|
110
|
+
fetchTreeData();
|
|
111
|
+
else
|
|
112
|
+
emit("refresh");
|
|
110
113
|
} else if ("rootNode" == command) {
|
|
111
114
|
(_a = treeRef.value) == null ? void 0 : _a.setCurrentKey();
|
|
112
115
|
modeValue.value = { id: 0, name: "", code: "" };
|
|
@@ -117,7 +120,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
120
|
const nodeClick = (node) => {
|
|
118
121
|
const reldata = state.folderData.find((item) => item.id == node.id);
|
|
119
122
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
120
|
-
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "" });
|
|
123
|
+
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata });
|
|
121
124
|
};
|
|
122
125
|
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
123
126
|
var _a;
|
|
@@ -7,3 +7,4 @@ export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdm
|
|
|
7
7
|
export { useDateTimeShortCust } from './dateTimeShortCust.mjs';
|
|
8
8
|
export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout } from './idleTimeout.mjs';
|
|
9
9
|
export { provideFormEvents, useFormEvents } from './composables/useDialogEvents.mjs';
|
|
10
|
+
export { getlimit } from './limitsFunction.mjs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '../stores/index.mjs';
|
|
2
|
+
import { useUserInfo } from '../stores/userInfo.mjs';
|
|
3
|
+
|
|
4
|
+
function getlimit(value) {
|
|
5
|
+
const stores = useUserInfo();
|
|
6
|
+
const matched = stores.userInfos.limits.find((v) => v.permission === value);
|
|
7
|
+
if (matched) return matched.limit;
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getlimit };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.66 */
|
|
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('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('vue-router'), 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', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'vue-router', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -3774,6 +3774,7 @@
|
|
|
3774
3774
|
posId: d.posId,
|
|
3775
3775
|
roles: d.roles,
|
|
3776
3776
|
powers: d.powers,
|
|
3777
|
+
limits: d.limit,
|
|
3777
3778
|
authApiList: d.apis,
|
|
3778
3779
|
lastChangePasswordTime: d.lastChangePasswordTime,
|
|
3779
3780
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
@@ -20371,6 +20372,13 @@
|
|
|
20371
20372
|
// 开发环境严格检查
|
|
20372
20373
|
});
|
|
20373
20374
|
|
|
20375
|
+
function getlimit(value) {
|
|
20376
|
+
const stores = useUserInfo();
|
|
20377
|
+
const matched = stores.userInfos.limits.find((v) => v.permission === value);
|
|
20378
|
+
if (matched) return matched.limit;
|
|
20379
|
+
return null;
|
|
20380
|
+
}
|
|
20381
|
+
|
|
20374
20382
|
const _hoisted_1$r = { key: 0 };
|
|
20375
20383
|
const _hoisted_2$i = { key: 0 };
|
|
20376
20384
|
var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -26204,7 +26212,7 @@
|
|
|
26204
26212
|
"modelValue": {},
|
|
26205
26213
|
"modelModifiers": {}
|
|
26206
26214
|
}),
|
|
26207
|
-
emits: /* @__PURE__ */ vue.mergeModels(["node-click"], ["update:modelValue"]),
|
|
26215
|
+
emits: /* @__PURE__ */ vue.mergeModels(["node-click", "refresh"], ["update:modelValue"]),
|
|
26208
26216
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
26209
26217
|
const props = __props;
|
|
26210
26218
|
const modeValue = vue.useModel(__props, "modelValue");
|
|
@@ -26257,7 +26265,10 @@
|
|
|
26257
26265
|
treeRef.value.store._getAllNodes()[i].expanded = false;
|
|
26258
26266
|
}
|
|
26259
26267
|
} else if ("refresh" == command) {
|
|
26260
|
-
|
|
26268
|
+
if (props.apiService != "" && props.apiAction != "")
|
|
26269
|
+
fetchTreeData();
|
|
26270
|
+
else
|
|
26271
|
+
emit("refresh");
|
|
26261
26272
|
} else if ("rootNode" == command) {
|
|
26262
26273
|
(_a = treeRef.value) == null ? void 0 : _a.setCurrentKey();
|
|
26263
26274
|
modeValue.value = { id: 0, name: "", code: "" };
|
|
@@ -26268,7 +26279,7 @@
|
|
|
26268
26279
|
const nodeClick = (node) => {
|
|
26269
26280
|
const reldata = state.folderData.find((item) => item.id == node.id);
|
|
26270
26281
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
26271
|
-
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "" });
|
|
26282
|
+
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata });
|
|
26272
26283
|
};
|
|
26273
26284
|
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
26274
26285
|
var _a;
|
|
@@ -30369,6 +30380,7 @@
|
|
|
30369
30380
|
exports.getJWTDate = getJWTDate;
|
|
30370
30381
|
exports.getToken = getToken;
|
|
30371
30382
|
exports.getWeek = getWeek;
|
|
30383
|
+
exports.getlimit = getlimit;
|
|
30372
30384
|
exports.getpower = getpower;
|
|
30373
30385
|
exports.hAuth = hAuth;
|
|
30374
30386
|
exports.hAuthAll = hAuthAll;
|