@fmdeui/fmui 1.0.76 → 1.0.78
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/fmcascader/index.d.ts +3 -1
- package/es/components/fmcascader/index.vue.d.ts +3 -1
- package/es/hooks/useInfo.d.ts +20 -0
- package/es/index.mjs +1 -1
- package/es/packages/components/fmcascader/index.vue2.mjs +4 -2
- package/es/packages/hooks/index.mjs +1 -1
- package/es/packages/hooks/useInfo.mjs +24 -1
- package/index.js +32 -3
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +29 -4
- package/lib/components/fmcascader/index.d.ts +3 -1
- package/lib/components/fmcascader/index.vue.d.ts +3 -1
- package/lib/hooks/useInfo.d.ts +20 -0
- package/lib/index.js +24 -20
- package/lib/packages/components/fmcascader/index.vue2.js +4 -2
- package/lib/packages/hooks/index.js +4 -0
- package/lib/packages/hooks/useInfo.js +27 -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/{lib → es}/index.css +0 -0
- /package/{es → lib}/component.css +0 -0
|
@@ -50,7 +50,8 @@ export declare const FmCascader: DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
type: PropType<any>;
|
|
51
51
|
};
|
|
52
52
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
-
|
|
53
|
+
change: (...args: any[]) => void;
|
|
54
|
+
"update:modelValue": (value: any) => void;
|
|
54
55
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
55
56
|
orgData: {
|
|
56
57
|
type: {
|
|
@@ -102,6 +103,7 @@ export declare const FmCascader: DefineComponent<ExtractPropTypes<{
|
|
|
102
103
|
type: PropType<any>;
|
|
103
104
|
};
|
|
104
105
|
}>> & Readonly<{
|
|
106
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
107
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
106
108
|
}>, {
|
|
107
109
|
placeholder: string;
|
|
@@ -50,7 +50,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
type: PropType<any>;
|
|
51
51
|
};
|
|
52
52
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
-
|
|
53
|
+
change: (...args: any[]) => void;
|
|
54
|
+
"update:modelValue": (value: any) => void;
|
|
54
55
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
55
56
|
orgData: {
|
|
56
57
|
type: {
|
|
@@ -102,6 +103,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
102
103
|
type: PropType<any>;
|
|
103
104
|
};
|
|
104
105
|
}>> & Readonly<{
|
|
106
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
105
107
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
106
108
|
}>, {
|
|
107
109
|
placeholder: string;
|
package/es/hooks/useInfo.d.ts
CHANGED
|
@@ -67,6 +67,26 @@ export declare const orgId: () => number;
|
|
|
67
67
|
* @returns 获取组织名称
|
|
68
68
|
*/
|
|
69
69
|
export declare const orgName: () => string;
|
|
70
|
+
/**
|
|
71
|
+
* 公司id
|
|
72
|
+
* @returns 公司id
|
|
73
|
+
*/
|
|
74
|
+
export declare const cmpId: () => number;
|
|
75
|
+
/**
|
|
76
|
+
* 部门id
|
|
77
|
+
* @returns 部门id
|
|
78
|
+
*/
|
|
79
|
+
export declare const depId: () => number;
|
|
80
|
+
/**
|
|
81
|
+
* 组id
|
|
82
|
+
* @returns 组id
|
|
83
|
+
*/
|
|
84
|
+
export declare const groupId: () => number;
|
|
85
|
+
/**
|
|
86
|
+
* 获取组织对象
|
|
87
|
+
* @returns 获取组织对象
|
|
88
|
+
*/
|
|
89
|
+
export declare const getOpOrg: () => any;
|
|
70
90
|
/**
|
|
71
91
|
* 获取职位id
|
|
72
92
|
* @returns 获取职位id.
|
package/es/index.mjs
CHANGED
|
@@ -20,6 +20,7 @@ export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './packages/hooks/
|
|
|
20
20
|
export { base64ToFile, blobToFile, dataURLtoBlob, fileToBase64, urlToBase64 } from './packages/utils/base64Conver.mjs';
|
|
21
21
|
export { buildLocaleContext, buildTranslator, translate, useLocale } from './packages/hooks/useLocale.mjs';
|
|
22
22
|
export { clone, isObjectValueEqual, judgementSameArr, removeDuplicate } from './packages/utils/arrayOperation.mjs';
|
|
23
|
+
export { cmpId, depId, getOpOrg, groupId, hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './packages/hooks/useInfo.mjs';
|
|
23
24
|
export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout } from './packages/hooks/idleTimeout.mjs';
|
|
24
25
|
export { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, getFileName, openWindow } from './packages/utils/download.mjs';
|
|
25
26
|
export { default as en } from './packages/locale/lang/en.mjs';
|
|
@@ -31,7 +32,6 @@ export { gcj02ToBd09, wgs84ToBd09, wgs84ToGcj02 } from './packages/utils/gpsConv
|
|
|
31
32
|
export { getFileUrl, showFileUrl } from './packages/utils/uploadfileurl.mjs';
|
|
32
33
|
export { getlimit } from './packages/hooks/limitsFunction.mjs';
|
|
33
34
|
export { getpower, powerAuthDel } from './packages/hooks/powerFunction.mjs';
|
|
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';
|
|
35
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';
|
|
36
36
|
export { loadSysInfo, updateFavicon } from './packages/hooks/sysInfo.mjs';
|
|
37
37
|
export { default as pinia } from './packages/stores/inpinia.mjs';
|
|
@@ -39,9 +39,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
"modelValue": {},
|
|
40
40
|
"modelModifiers": {}
|
|
41
41
|
}),
|
|
42
|
-
emits: ["update:modelValue"],
|
|
43
|
-
setup(__props) {
|
|
42
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
43
|
+
setup(__props, { emit: __emit }) {
|
|
44
44
|
const modeValue = useModel(__props, "modelValue");
|
|
45
|
+
const emit = __emit;
|
|
45
46
|
const props = __props;
|
|
46
47
|
const handelchangeOrg = (val) => {
|
|
47
48
|
modeValue.value[props.vId] = val;
|
|
@@ -73,6 +74,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
}
|
|
77
|
+
emit("change", node);
|
|
76
78
|
};
|
|
77
79
|
const findNode = (id) => {
|
|
78
80
|
const search = (nodes) => {
|
|
@@ -3,7 +3,7 @@ export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './authFunction.mj
|
|
|
3
3
|
export { getpower, powerAuthDel } from './powerFunction.mjs';
|
|
4
4
|
export { useVxeTable } from './useVxeTableOptionsHook.mjs';
|
|
5
5
|
export { loadSysInfo, updateFavicon } from './sysInfo.mjs';
|
|
6
|
-
export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './useInfo.mjs';
|
|
6
|
+
export { cmpId, depId, getOpOrg, groupId, hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone } from './useInfo.mjs';
|
|
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';
|
|
@@ -59,6 +59,29 @@ const orgName = () => {
|
|
|
59
59
|
var _a;
|
|
60
60
|
return (_a = _getUserInfo()) == null ? void 0 : _a.orgName;
|
|
61
61
|
};
|
|
62
|
+
const cmpId = () => {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.cmpId;
|
|
65
|
+
};
|
|
66
|
+
const depId = () => {
|
|
67
|
+
var _a;
|
|
68
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.depId;
|
|
69
|
+
};
|
|
70
|
+
const groupId = () => {
|
|
71
|
+
var _a;
|
|
72
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.groupId;
|
|
73
|
+
};
|
|
74
|
+
const getOpOrg = () => {
|
|
75
|
+
let orgId2 = 0;
|
|
76
|
+
if (groupId() > 0) {
|
|
77
|
+
orgId2 = groupId();
|
|
78
|
+
} else if (depId() > 0) {
|
|
79
|
+
orgId2 = depId();
|
|
80
|
+
} else if (cmpId() > 0) {
|
|
81
|
+
orgId2 = cmpId();
|
|
82
|
+
}
|
|
83
|
+
return { opOrgId: orgId2, opCmpId: cmpId(), opDetId: depId(), opGroupId: groupId() };
|
|
84
|
+
};
|
|
62
85
|
const posId = () => {
|
|
63
86
|
var _a;
|
|
64
87
|
return (_a = _getUserInfo()) == null ? void 0 : _a.posId;
|
|
@@ -80,4 +103,4 @@ const hasPrivilege = (privilege) => {
|
|
|
80
103
|
return (_a = _getUserInfo()) == null ? void 0 : _a.authApiList.includes(privilege);
|
|
81
104
|
};
|
|
82
105
|
|
|
83
|
-
export { hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone };
|
|
106
|
+
export { cmpId, depId, getOpOrg, groupId, hasPrivilege, hasRoleCode, isAdmin, isMember, isNormalUser, isSupperAdmin, isTenantAdmin, orgId, orgName, posId, posName, roles, tenantId, userAccount, userEmail, userFriendName, userId, userName, userPhone };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.78 */
|
|
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) :
|
|
@@ -20304,6 +20304,29 @@
|
|
|
20304
20304
|
var _a;
|
|
20305
20305
|
return (_a = _getUserInfo()) == null ? void 0 : _a.orgName;
|
|
20306
20306
|
};
|
|
20307
|
+
const cmpId = () => {
|
|
20308
|
+
var _a;
|
|
20309
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.cmpId;
|
|
20310
|
+
};
|
|
20311
|
+
const depId = () => {
|
|
20312
|
+
var _a;
|
|
20313
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.depId;
|
|
20314
|
+
};
|
|
20315
|
+
const groupId = () => {
|
|
20316
|
+
var _a;
|
|
20317
|
+
return (_a = _getUserInfo()) == null ? void 0 : _a.groupId;
|
|
20318
|
+
};
|
|
20319
|
+
const getOpOrg = () => {
|
|
20320
|
+
let orgId2 = 0;
|
|
20321
|
+
if (groupId() > 0) {
|
|
20322
|
+
orgId2 = groupId();
|
|
20323
|
+
} else if (depId() > 0) {
|
|
20324
|
+
orgId2 = depId();
|
|
20325
|
+
} else if (cmpId() > 0) {
|
|
20326
|
+
orgId2 = cmpId();
|
|
20327
|
+
}
|
|
20328
|
+
return { opOrgId: orgId2, opCmpId: cmpId(), opDetId: depId(), opGroupId: groupId() };
|
|
20329
|
+
};
|
|
20307
20330
|
const posId = () => {
|
|
20308
20331
|
var _a;
|
|
20309
20332
|
return (_a = _getUserInfo()) == null ? void 0 : _a.posId;
|
|
@@ -26586,9 +26609,10 @@
|
|
|
26586
26609
|
"modelValue": {},
|
|
26587
26610
|
"modelModifiers": {}
|
|
26588
26611
|
}),
|
|
26589
|
-
emits: ["update:modelValue"],
|
|
26590
|
-
setup(__props) {
|
|
26612
|
+
emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
|
|
26613
|
+
setup(__props, { emit: __emit }) {
|
|
26591
26614
|
const modeValue = vue.useModel(__props, "modelValue");
|
|
26615
|
+
const emit = __emit;
|
|
26592
26616
|
const props = __props;
|
|
26593
26617
|
const handelchangeOrg = (val) => {
|
|
26594
26618
|
modeValue.value[props.vId] = val;
|
|
@@ -26620,6 +26644,7 @@
|
|
|
26620
26644
|
}
|
|
26621
26645
|
}
|
|
26622
26646
|
}
|
|
26647
|
+
emit("change", node);
|
|
26623
26648
|
};
|
|
26624
26649
|
const findNode = (id) => {
|
|
26625
26650
|
const search = (nodes) => {
|
|
@@ -30581,11 +30606,13 @@
|
|
|
30581
30606
|
exports.clearAccessTokens = clearAccessTokens;
|
|
30582
30607
|
exports.clearTokens = clearTokens;
|
|
30583
30608
|
exports.clone = clone;
|
|
30609
|
+
exports.cmpId = cmpId;
|
|
30584
30610
|
exports.commonFun = commonFun;
|
|
30585
30611
|
exports.commonFunction = commonFunction;
|
|
30586
30612
|
exports.dataURLtoBlob = dataURLtoBlob;
|
|
30587
30613
|
exports.decryptJWT = decryptJWT;
|
|
30588
30614
|
exports.default = installer;
|
|
30615
|
+
exports.depId = depId;
|
|
30589
30616
|
exports.destroyIdleTimeout = destroyIdleTimeout;
|
|
30590
30617
|
exports.downloadByBase64 = downloadByBase64;
|
|
30591
30618
|
exports.downloadByData = downloadByData;
|
|
@@ -30606,10 +30633,12 @@
|
|
|
30606
30633
|
exports.getFileUrl = getFileUrl;
|
|
30607
30634
|
exports.getHeader = getHeader;
|
|
30608
30635
|
exports.getJWTDate = getJWTDate;
|
|
30636
|
+
exports.getOpOrg = getOpOrg;
|
|
30609
30637
|
exports.getToken = getToken;
|
|
30610
30638
|
exports.getWeek = getWeek;
|
|
30611
30639
|
exports.getlimit = getlimit;
|
|
30612
30640
|
exports.getpower = getpower;
|
|
30641
|
+
exports.groupId = groupId;
|
|
30613
30642
|
exports.hAuth = hAuth;
|
|
30614
30643
|
exports.hAuthAll = hAuthAll;
|
|
30615
30644
|
exports.hAuths = hAuths;
|