yahee-components 0.0.83 → 0.0.85

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.
Files changed (89) hide show
  1. package/es/annex-upload/annex-upload.vue.js +154 -51
  2. package/es/annex-upload/annex-upload.vue2.js +2 -119
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/border-wrap/border-wrap.vue.js +95 -64
  5. package/es/border-wrap/border-wrap.vue2.js +2 -46
  6. package/es/common-import/common-import.vue.js +665 -369
  7. package/es/common-import/common-import.vue2.js +2 -334
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/complex-search.vue.js +15 -15
  10. package/es/copy/copy.vue.js +55 -37
  11. package/es/copy/copy.vue2.js +2 -34
  12. package/es/copy/index.js +3 -3
  13. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
  14. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
  15. package/es/drop-down-condition/drop-down-condition.vue.js +213 -113
  16. package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
  17. package/es/echart-gauge/echart-gauge.vue.js +140 -12
  18. package/es/echart-gauge/echart-gauge.vue2.js +2 -147
  19. package/es/echart-gauge/index.js +3 -3
  20. package/es/filter-container/filter-container.vue.js +67 -0
  21. package/es/filter-container/filter-container.vue2.js +4 -0
  22. package/es/filter-container/index.js +7 -0
  23. package/es/filter-container/style/index.css +17 -0
  24. package/es/filter-wrapper/filter-wrapper.vue.js +7 -0
  25. package/es/filter-wrapper/filter-wrapper.vue2.js +59 -0
  26. package/es/filter-wrapper/index.js +7 -0
  27. package/es/filter-wrapper/style/index.css +3 -0
  28. package/es/image-upload/image-upload.vue.js +170 -109
  29. package/es/image-upload/image-upload.vue2.js +2 -91
  30. package/es/image-upload/index.js +3 -3
  31. package/es/input/index.js +3 -3
  32. package/es/input/input.vue.js +38 -17
  33. package/es/input/input.vue2.js +2 -33
  34. package/es/installs.js +12 -8
  35. package/es/left-condition/index.js +3 -3
  36. package/es/left-condition/left-condition-sub.vue.js +91 -32
  37. package/es/left-condition/left-condition-sub.vue2.js +2 -76
  38. package/es/left-condition/left-condition.vue.js +218 -70
  39. package/es/left-condition/left-condition.vue2.js +2 -160
  40. package/es/left-condition-enum/index.js +3 -3
  41. package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
  42. package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
  43. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
  44. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
  45. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
  46. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
  47. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
  48. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
  49. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
  50. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  51. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
  52. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
  53. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
  54. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
  55. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
  56. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
  57. package/es/operation-log/operation-log-content.vue.js +92 -71
  58. package/es/operation-log/operation-log-content.vue2.js +2 -39
  59. package/es/operation-log/operation-log-dialog.vue.js +68 -46
  60. package/es/operation-log/operation-log-dialog.vue2.js +2 -38
  61. package/es/operation-log/operation-log-form.vue.js +183 -108
  62. package/es/operation-log/operation-log-form.vue2.js +2 -104
  63. package/es/operation-log/operation-log.vue.js +228 -119
  64. package/es/operation-log/operation-log.vue2.js +2 -135
  65. package/es/packages/components/api/log-server.js +6 -6
  66. package/es/packages/components/api/upload-server.js +1 -1
  67. package/es/packages/components/hooks/useEcharts.js +19 -19
  68. package/es/packages/components/hooks/useImg.js +8 -8
  69. package/es/scale-screen/index.js +4 -4
  70. package/es/scale-screen/scale-screen.vue.js +126 -19
  71. package/es/scale-screen/scale-screen.vue2.js +2 -125
  72. package/es/style.css +22 -0
  73. package/es/utils/translate.js +27 -47
  74. package/es/yahee-components.css +1 -1
  75. package/lib/filter-container/style/index.css +17 -0
  76. package/lib/filter-wrapper/style/index.css +3 -0
  77. package/lib/style.css +22 -0
  78. package/package.json +46 -46
  79. package/readme.md +249 -249
  80. package/types/src/filter-container/filter-container.d.ts +5 -0
  81. package/types/src/filter-container/filter-container.vue.d.ts +49 -0
  82. package/types/src/filter-container/props.d.ts +45 -0
  83. package/types/src/filter-wrapper/filter-wrapper.d.ts +5 -0
  84. package/types/src/filter-wrapper/filter-wrapper.vue.d.ts +49 -0
  85. package/types/src/filter-wrapper/props.d.ts +45 -0
  86. package/types/src/utils/translate.d.ts +0 -3
  87. package/es/api/server.js +0 -35
  88. package/es/api/tool.js +0 -71
  89. package/types/src/installs.d.ts +0 -2649
@@ -0,0 +1,45 @@
1
+ export interface FilterWrapperProps {
2
+ /**
3
+ * 处理输入框粘贴事件并格式化粘贴的内容
4
+ * @default undefined
5
+ */
6
+ pasteFormat?: () => void;
7
+ /**
8
+ * 默认查询类型
9
+ * default 'integrated':综合搜索
10
+ */
11
+ defaultSearch?: string;
12
+ /**
13
+ * 输入框的占位符文本
14
+ * default: ''
15
+ */
16
+ placeholderText?: string;
17
+ /**
18
+ * 是否展示批量查询按钮
19
+ * default: false
20
+ */
21
+ showPatchSearch?: boolean;
22
+ /**
23
+ * 是否展示在筛选体条件内查询checkbox
24
+ * default: false
25
+ */
26
+ showWithinFilterCheckbox?: boolean;
27
+ /**
28
+ * 是否展示下拉选
29
+ * default: false
30
+ */
31
+ showSelect?: boolean;
32
+ /**
33
+ *批量搜索下拉选项是否和输入框下拉选项相同
34
+ */
35
+ isBatchSelectOptionsSameWithInput?: boolean;
36
+ }
37
+ export declare function defaultFilterContainerProps(): {
38
+ pasteFormat: () => void;
39
+ defaultSearch: string;
40
+ placeholderText: string;
41
+ showPatchSearch: false;
42
+ showWithinFilterCheckbox: false;
43
+ showSelect: false;
44
+ isBatchSelectOptionsSameWithInput: true;
45
+ };
@@ -1,5 +1,2 @@
1
1
  export declare const M2: (str: string) => string;
2
- export declare const getAllTranslate: () => Promise<void>;
3
2
  export declare function translateEmployeeName(employeeId: string, name?: string): string;
4
- export declare const initTranslate: () => Promise<void>;
5
- export declare const isNeedTranslate: () => boolean;
package/es/api/server.js DELETED
@@ -1,35 +0,0 @@
1
- import "../node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js";
2
- import { handleChangeRequestHeader as i, handleConfigureAuth as u, handleAuthError as d, handleGeneralError as l, handleNetworkError as c } from "./tool.js";
3
- import o from "../node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js";
4
- o.interceptors.request.use((t) => {
5
- let e = i(t);
6
- return e = u(e), e;
7
- });
8
- o.defaults.withCredentials = !0;
9
- o.interceptors.response.use(
10
- (t) => {
11
- if (t.status !== 200) return Promise.reject(t.data);
12
- const { errno: e, status: r, msg: s } = t.data;
13
- return e != null && e !== 0 && d(e), r != null && r !== 0 && s && l(r, s), t;
14
- },
15
- (t) => {
16
- var e;
17
- return (e = t.response) != null && e.status && c(t.response.status), Promise.reject(t.response);
18
- }
19
- );
20
- const g = (t, e = {}, r) => new Promise((s) => {
21
- o.get(t, { params: e }).then((a) => {
22
- let n;
23
- n = a.data, s(n);
24
- }).catch((a) => {
25
- const n = {
26
- msg: a.msg,
27
- data: a.data
28
- // 其他错误属性...
29
- };
30
- s(n);
31
- });
32
- });
33
- export {
34
- g as Get
35
- };
package/es/api/tool.js DELETED
@@ -1,71 +0,0 @@
1
- import { ElMessage as o, ElMessageBox as n } from "element-plus";
2
- import "element-plus/theme-chalk/src/base.scss";
3
- import "element-plus/theme-chalk/src/badge.scss";
4
- import "element-plus/theme-chalk/src/message.scss";
5
- import "element-plus/theme-chalk/src/message-box.scss";
6
- import "element-plus/theme-chalk/src/button.scss";
7
- import "element-plus/theme-chalk/src/input.scss";
8
- import "element-plus/theme-chalk/src/overlay.scss";
9
- import { AxiosHeaders as a } from "../node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js";
10
- const w = (e) => ({
11
- ...e,
12
- timeout: 2e4
13
- }), E = (e) => {
14
- const r = new a(e.headers);
15
- return {
16
- ...e,
17
- headers: r
18
- };
19
- };
20
- let t = !1;
21
- const g = (e) => {
22
- const r = {
23
- 400: "错误的请求",
24
- // token 失效
25
- 403: "拒绝访问",
26
- 404: "请求错误,未找到该资源",
27
- 405: "请求方法未允许",
28
- 408: "请求超时",
29
- 500: "服务器端出错",
30
- 501: "网络未实现",
31
- 502: "网络错误",
32
- 503: "服务不可用",
33
- 504: "网络超时",
34
- 505: "http版本不支持该请求"
35
- };
36
- switch (e) {
37
- case 401:
38
- window.location.href = `http://qas-portal.yahee.com.cn:8088//Latest/Account/LogOn?returnUrl=${encodeURIComponent(window.location.href)}`;
39
- break;
40
- case 403:
41
- t || (t = !0, n.alert("对不起,您没有权限进行当前操作!").finally(() => {
42
- t = !1;
43
- }));
44
- break;
45
- default:
46
- e && o.error(r[e] ?? `其他连接错误 --${e}`);
47
- }
48
- }, M = (e) => {
49
- if (!e || e === 0)
50
- return !0;
51
- const r = {
52
- 10031: "登录失效,需要重新登录",
53
- // token 失效
54
- 10032: "您太久没登录,请重新登录~",
55
- // token 过期
56
- 10033: "账户未绑定角色,请联系管理员绑定角色",
57
- 10034: "该用户未注册,请联系管理员注册用户",
58
- 10035: "code 无法获取对应第三方平台用户",
59
- 10036: "该账户未关联员工,请联系管理员做关联",
60
- 10037: "账号已无效",
61
- 10038: "账号未找到"
62
- };
63
- return e in r ? (o.error(r[e]), !1) : !0;
64
- }, k = (e, r) => e !== 0 && r && r.trim() && r !== "OK" ? (o.error(r), !1) : !0;
65
- export {
66
- M as handleAuthError,
67
- w as handleChangeRequestHeader,
68
- E as handleConfigureAuth,
69
- k as handleGeneralError,
70
- g as handleNetworkError
71
- };