yahee-components 0.0.10 → 0.0.13

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 (53) hide show
  1. package/es/api/server.js +26 -10
  2. package/es/api/tool.js +10 -11
  3. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  4. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  5. package/es/country-platform-shop-condition/index.js +7 -0
  6. package/es/country-platform-shop-condition/style/index.css +48 -0
  7. package/es/drop-down-condition/drop-down-condition.vue.js +216 -0
  8. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  9. package/es/drop-down-condition/index.js +7 -0
  10. package/es/drop-down-condition/style/index.css +45 -0
  11. package/es/index.js +23 -15
  12. package/es/installs.js +18 -10
  13. package/es/left-condition/index.js +7 -0
  14. package/es/left-condition/left-condition-sub.vue.js +95 -0
  15. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  16. package/es/left-condition/left-condition.vue.js +216 -0
  17. package/es/left-condition/left-condition.vue2.js +4 -0
  18. package/es/left-condition/style/index.css +10 -0
  19. package/es/left-condition-enum/index.js +7 -0
  20. package/es/left-condition-enum/left-condition-enum.vue.js +80 -0
  21. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  22. package/es/left-condition-enum/style/index.css +10 -0
  23. package/es/operation-log/operation-log-form.vue.js +179 -5
  24. package/es/operation-log/operation-log-form.vue2.js +2 -179
  25. package/es/operation-log/operation-log.vue.js +30 -30
  26. package/es/packages/components/api/server.js +26 -13
  27. package/es/packages/components/api/tool.js +9 -10
  28. package/es/static/CommonObject.js +4 -0
  29. package/es/style.css +89 -194
  30. package/es/utils/style.js +28 -0
  31. package/es/utils/translate.js +39 -22
  32. package/lib/country-platform-shop-condition/style/index.css +48 -0
  33. package/lib/drop-down-condition/style/index.css +45 -0
  34. package/lib/left-condition/style/index.css +10 -0
  35. package/lib/left-condition-enum/style/index.css +10 -0
  36. package/lib/style.css +89 -194
  37. package/package.json +1 -1
  38. package/types/src/components.d.ts +4 -0
  39. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  40. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  41. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  42. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  43. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +40 -0
  44. package/types/src/drop-down-condition/index.d.ts +42 -0
  45. package/types/src/installs.d.ts +270 -2
  46. package/types/src/left-condition/index.d.ts +69 -0
  47. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  48. package/types/src/left-condition/left-condition.d.ts +5 -0
  49. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  50. package/types/src/left-condition-enum/index.d.ts +162 -0
  51. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  52. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +160 -0
  53. package/es/_virtual/_plugin-vue_export-helper.js +0 -9
@@ -1,7 +1,181 @@
1
- import o from "./operation-log-form.vue2.js";
2
- import "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log-form.vue?vue&type=style&index=0&scoped=a1609bbd&lang.scss";
3
- import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a1609bbd"]]);
1
+ import { defineComponent as k, reactive as v, ref as B, onMounted as x, openBlock as u, createBlock as c, unref as t, withCtx as n, createVNode as r, createElementBlock as T, Fragment as E, renderList as M, createTextVNode as f, toDisplayString as g } from "vue";
2
+ import { ElForm as Y, ElFormItem as i, ElDatePicker as b, ElSelect as N, ElOption as _, ElInput as S, ElButton as d } from "element-plus";
3
+ import "element-plus/theme-chalk/src/base.scss";
4
+ import "element-plus/theme-chalk/src/form.scss";
5
+ import "element-plus/theme-chalk/src/date-picker.scss";
6
+ import "element-plus/theme-chalk/src/input.scss";
7
+ import "element-plus/theme-chalk/src/scrollbar.scss";
8
+ import "element-plus/theme-chalk/src/popper.scss";
9
+ import "element-plus/theme-chalk/src/button.scss";
10
+ import "element-plus/theme-chalk/src/form-item.scss";
11
+ import "element-plus/theme-chalk/src/tag.scss";
12
+ import "element-plus/theme-chalk/src/option.scss";
13
+ import "element-plus/theme-chalk/src/option-group.scss";
14
+ import "element-plus/theme-chalk/src/select.scss";
15
+ import { Search as U } from "@element-plus/icons-vue";
16
+ import { getGlobalNotesUsers as F } from "../packages/components/api/log/index.js";
17
+ import { M2 as o } from "../utils/translate.js";
18
+ const Z = /* @__PURE__ */ k({
19
+ __name: "operation-log-form",
20
+ props: {
21
+ projectId: {
22
+ type: String,
23
+ default: ""
24
+ }
25
+ },
26
+ emits: ["filterChange"],
27
+ setup(C, { emit: D }) {
28
+ const y = C, m = v({
29
+ timeValue: [],
30
+ CreatedBy: "",
31
+ Notes: "",
32
+ search: "",
33
+ Mark: null
34
+ }), p = B(), h = [
35
+ {
36
+ text: o("最近三天"),
37
+ value: () => {
38
+ const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
39
+ return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), [e, l];
40
+ }
41
+ },
42
+ {
43
+ text: o("最近一周"),
44
+ value: () => {
45
+ const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
46
+ return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), [e, l];
47
+ }
48
+ },
49
+ {
50
+ text: o("最近十五天"),
51
+ value: () => {
52
+ const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
53
+ return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 15), [e, l];
54
+ }
55
+ },
56
+ {
57
+ text: o("最近一个月"),
58
+ value: () => {
59
+ const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
60
+ return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 30), [e, l];
61
+ }
62
+ }
63
+ ], V = () => {
64
+ const l = new FormData();
65
+ l.append(
66
+ "filter",
67
+ JSON.stringify({ BusinessKey: y.projectId, BusinessName: "PRODUCT_DEV" })
68
+ ), F(l).then((e) => {
69
+ p.value = e;
70
+ });
71
+ }, w = D, s = (l) => {
72
+ m.Mark = l, w("filterChange", m);
73
+ };
74
+ return x(() => {
75
+ V();
76
+ }), (l, e) => (u(), c(t(Y), {
77
+ model: m,
78
+ inline: !0,
79
+ "label-width": "auto",
80
+ size: "small"
81
+ }, {
82
+ default: n(() => [
83
+ r(t(i), null, {
84
+ default: n(() => [
85
+ r(t(b), {
86
+ modelValue: m.timeValue,
87
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => m.timeValue = a),
88
+ type: "daterange",
89
+ format: "YYYY-MM-DD",
90
+ "value-format": "YYYY-MM-DD",
91
+ "unlink-panels": "",
92
+ "range-separator": t(o)("至"),
93
+ "start-placeholder": t(o)("开始日期"),
94
+ "end-placeholder": t(o)("结束日期"),
95
+ shortcuts: h,
96
+ size: "small",
97
+ clearable: "",
98
+ onChange: s
99
+ }, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
100
+ ]),
101
+ _: 1
102
+ }),
103
+ r(t(i), null, {
104
+ default: n(() => [
105
+ r(t(N), {
106
+ modelValue: m.CreatedBy,
107
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => m.CreatedBy = a),
108
+ placeholder: t(o)("请选择创建人"),
109
+ style: { width: "120px" },
110
+ size: "small",
111
+ clearable: "",
112
+ onChange: s
113
+ }, {
114
+ default: n(() => [
115
+ (u(!0), T(E, null, M(p.value, (a) => (u(), c(t(_), {
116
+ key: a.CreatedBy,
117
+ label: a.CreatedName,
118
+ value: a.CreatedBy
119
+ }, null, 8, ["label", "value"]))), 128))
120
+ ]),
121
+ _: 1
122
+ }, 8, ["modelValue", "placeholder"])
123
+ ]),
124
+ _: 1
125
+ }),
126
+ r(t(i), null, {
127
+ default: n(() => [
128
+ r(t(S), {
129
+ modelValue: m.search,
130
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => m.search = a),
131
+ placeholder: t(o)("综合搜索"),
132
+ clearable: "",
133
+ style: { width: "160px" }
134
+ }, {
135
+ append: n(() => [
136
+ r(t(d), {
137
+ icon: t(U),
138
+ onClick: s
139
+ }, null, 8, ["icon"])
140
+ ]),
141
+ _: 1
142
+ }, 8, ["modelValue", "placeholder"])
143
+ ]),
144
+ _: 1
145
+ }),
146
+ r(t(i), null, {
147
+ default: n(() => [
148
+ r(t(d), {
149
+ type: "primary",
150
+ onClick: e[3] || (e[3] = (a) => s(null))
151
+ }, {
152
+ default: n(() => [
153
+ f(g(t(o)("搜索全部")), 1)
154
+ ]),
155
+ _: 1
156
+ })
157
+ ]),
158
+ _: 1
159
+ }),
160
+ r(t(i), null, {
161
+ default: n(() => [
162
+ r(t(d), {
163
+ type: "primary",
164
+ onClick: e[4] || (e[4] = (a) => s("Check"))
165
+ }, {
166
+ default: n(() => [
167
+ f(g(t(o)("审核节点备注")), 1)
168
+ ]),
169
+ _: 1
170
+ })
171
+ ]),
172
+ _: 1
173
+ })
174
+ ]),
175
+ _: 1
176
+ }, 8, ["model"]));
177
+ }
178
+ });
5
179
  export {
6
- p as default
180
+ Z as default
7
181
  };
@@ -1,181 +1,4 @@
1
- import { defineComponent as k, reactive as v, ref as B, onMounted as x, openBlock as u, createBlock as c, unref as t, withCtx as n, createVNode as r, createElementBlock as T, Fragment as E, renderList as M, createTextVNode as f, toDisplayString as g } from "vue";
2
- import { ElForm as Y, ElFormItem as i, ElDatePicker as b, ElSelect as N, ElOption as _, ElInput as S, ElButton as d } from "element-plus";
3
- import "element-plus/theme-chalk/src/base.scss";
4
- import "element-plus/theme-chalk/src/form.scss";
5
- import "element-plus/theme-chalk/src/date-picker.scss";
6
- import "element-plus/theme-chalk/src/input.scss";
7
- import "element-plus/theme-chalk/src/scrollbar.scss";
8
- import "element-plus/theme-chalk/src/popper.scss";
9
- import "element-plus/theme-chalk/src/button.scss";
10
- import "element-plus/theme-chalk/src/form-item.scss";
11
- import "element-plus/theme-chalk/src/tag.scss";
12
- import "element-plus/theme-chalk/src/option.scss";
13
- import "element-plus/theme-chalk/src/option-group.scss";
14
- import "element-plus/theme-chalk/src/select.scss";
15
- import { Search as U } from "@element-plus/icons-vue";
16
- import { getGlobalNotesUsers as F } from "../packages/components/api/log/index.js";
17
- import { M2 as o } from "../utils/translate.js";
18
- const Z = /* @__PURE__ */ k({
19
- __name: "operation-log-form",
20
- props: {
21
- projectId: {
22
- type: String,
23
- default: ""
24
- }
25
- },
26
- emits: ["filterChange"],
27
- setup(C, { emit: D }) {
28
- const y = C, m = v({
29
- timeValue: [],
30
- CreatedBy: "",
31
- Notes: "",
32
- search: "",
33
- Mark: null
34
- }), p = B(), h = [
35
- {
36
- text: o("最近三天"),
37
- value: () => {
38
- const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
39
- return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), [e, l];
40
- }
41
- },
42
- {
43
- text: o("最近一周"),
44
- value: () => {
45
- const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
46
- return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), [e, l];
47
- }
48
- },
49
- {
50
- text: o("最近十五天"),
51
- value: () => {
52
- const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
53
- return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 15), [e, l];
54
- }
55
- },
56
- {
57
- text: o("最近一个月"),
58
- value: () => {
59
- const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
60
- return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 30), [e, l];
61
- }
62
- }
63
- ], V = () => {
64
- const l = new FormData();
65
- l.append(
66
- "filter",
67
- JSON.stringify({ BusinessKey: y.projectId, BusinessName: "PRODUCT_DEV" })
68
- ), F(l).then((e) => {
69
- p.value = e;
70
- });
71
- }, w = D, s = (l) => {
72
- m.Mark = l, w("filterChange", m);
73
- };
74
- return x(() => {
75
- V();
76
- }), (l, e) => (u(), c(t(Y), {
77
- model: m,
78
- inline: !0,
79
- "label-width": "auto",
80
- size: "small"
81
- }, {
82
- default: n(() => [
83
- r(t(i), null, {
84
- default: n(() => [
85
- r(t(b), {
86
- modelValue: m.timeValue,
87
- "onUpdate:modelValue": e[0] || (e[0] = (a) => m.timeValue = a),
88
- type: "daterange",
89
- format: "YYYY-MM-DD",
90
- "value-format": "YYYY-MM-DD",
91
- "unlink-panels": "",
92
- "range-separator": t(o)("至"),
93
- "start-placeholder": t(o)("开始日期"),
94
- "end-placeholder": t(o)("结束日期"),
95
- shortcuts: h,
96
- size: "small",
97
- clearable: "",
98
- onChange: s
99
- }, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
100
- ]),
101
- _: 1
102
- }),
103
- r(t(i), null, {
104
- default: n(() => [
105
- r(t(N), {
106
- modelValue: m.CreatedBy,
107
- "onUpdate:modelValue": e[1] || (e[1] = (a) => m.CreatedBy = a),
108
- placeholder: t(o)("请选择创建人"),
109
- style: { width: "120px" },
110
- size: "small",
111
- clearable: "",
112
- onChange: s
113
- }, {
114
- default: n(() => [
115
- (u(!0), T(E, null, M(p.value, (a) => (u(), c(t(_), {
116
- key: a.CreatedBy,
117
- label: a.CreatedName,
118
- value: a.CreatedBy
119
- }, null, 8, ["label", "value"]))), 128))
120
- ]),
121
- _: 1
122
- }, 8, ["modelValue", "placeholder"])
123
- ]),
124
- _: 1
125
- }),
126
- r(t(i), null, {
127
- default: n(() => [
128
- r(t(S), {
129
- modelValue: m.search,
130
- "onUpdate:modelValue": e[2] || (e[2] = (a) => m.search = a),
131
- placeholder: t(o)("综合搜索"),
132
- clearable: "",
133
- style: { width: "160px" }
134
- }, {
135
- append: n(() => [
136
- r(t(d), {
137
- icon: t(U),
138
- onClick: s
139
- }, null, 8, ["icon"])
140
- ]),
141
- _: 1
142
- }, 8, ["modelValue", "placeholder"])
143
- ]),
144
- _: 1
145
- }),
146
- r(t(i), null, {
147
- default: n(() => [
148
- r(t(d), {
149
- type: "primary",
150
- onClick: e[3] || (e[3] = (a) => s(null))
151
- }, {
152
- default: n(() => [
153
- f(g(t(o)("搜索全部")), 1)
154
- ]),
155
- _: 1
156
- })
157
- ]),
158
- _: 1
159
- }),
160
- r(t(i), null, {
161
- default: n(() => [
162
- r(t(d), {
163
- type: "primary",
164
- onClick: e[4] || (e[4] = (a) => s("Check"))
165
- }, {
166
- default: n(() => [
167
- f(g(t(o)("审核节点备注")), 1)
168
- ]),
169
- _: 1
170
- })
171
- ]),
172
- _: 1
173
- })
174
- ]),
175
- _: 1
176
- }, 8, ["model"]));
177
- }
178
- });
1
+ import f from "./operation-log-form.vue.js";
179
2
  export {
180
- Z as default
3
+ f as default
181
4
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as R, ref as d, reactive as $, onMounted as K, openBlock as c, createElementBlock as u, createVNode as s, unref as n, normalizeStyle as G, withCtx as x, Fragment as y, renderList as A, normalizeClass as J, createElementVNode as l, toDisplayString as p, createCommentVNode as k, withDirectives as Q, vModelText as q, createTextVNode as W } from "vue";
1
+ import { defineComponent as $, ref as d, reactive as R, onMounted as K, openBlock as c, createElementBlock as u, createVNode as s, unref as n, normalizeStyle as G, withCtx as x, Fragment as y, renderList as A, normalizeClass as J, createElementVNode as l, toDisplayString as f, createCommentVNode as w, withDirectives as Q, vModelText as q, createTextVNode as W } from "vue";
2
2
  import { CaretRight as X, CaretLeft as Z } from "@element-plus/icons-vue";
3
- import { ElScrollbar as ee, ElIcon as w, ElButton as te, ElMessage as f } from "element-plus";
3
+ import { ElScrollbar as ee, ElIcon as B, ElButton as te, ElMessage as p } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/badge.scss";
6
6
  import "element-plus/theme-chalk/src/message.scss";
@@ -9,7 +9,7 @@ import "element-plus/theme-chalk/src/button.scss";
9
9
  import { useUpload as oe } from "../packages/components/hooks/useUpload.js";
10
10
  import { useFile as ae } from "../packages/components/hooks/useImg.js";
11
11
  import ne from "./operation-log-form.vue.js";
12
- import B from "./operation-log-content.vue.js";
12
+ import O from "./operation-log-content.vue.js";
13
13
  import se from "./operation-log-dialog.vue.js";
14
14
  import U from "../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js";
15
15
  import { M2 as r } from "../utils/translate.js";
@@ -17,20 +17,20 @@ import le from "../annex-upload/annex-upload.vue.js";
17
17
  import ie from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
18
  /* empty css */
19
19
  import { insertGlobalnotes as P, findGlobalNotes as re } from "../packages/components/api/log/index.js";
20
- const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue = { class: "content text-color-secondary" }, pe = { class: "date fontSize-12 pull-right text-color-a4" }, fe = { class: "name" }, me = { class: "name" }, ge = { class: "d-flex" }, ve = { class: "content text-color-secondary" }, he = { class: "date fontSize-12 text-color-a4" }, _e = {
20
+ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue = { class: "content text-color-secondary" }, fe = { class: "date fontSize-12 pull-right text-color-a4" }, pe = { class: "name" }, me = { class: "name" }, ge = { class: "d-flex" }, ve = { class: "content text-color-secondary" }, he = { class: "date fontSize-12 text-color-a4" }, _e = {
21
21
  key: 0,
22
22
  class: "loading text-color-a4"
23
23
  }, xe = {
24
24
  key: 1,
25
25
  class: "no-more text-color-a4"
26
- }, Ie = ["placeholder"], ye = { class: "d-flex text-right marginT10" }, He = /* @__PURE__ */ R({
26
+ }, Ie = ["placeholder"], ye = { class: "d-flex text-right marginT10" }, He = /* @__PURE__ */ $({
27
27
  name: "YaheeOperationLog",
28
28
  __name: "operation-log",
29
29
  props: {
30
30
  projectId: { default: "" }
31
31
  },
32
32
  setup(b) {
33
- const I = b, m = d(!1), L = d(!1), _ = d(!1), C = d({}), i = $({
33
+ const I = b, m = d(!1), L = d(!1), _ = d(!1), C = d({}), i = R({
34
34
  List: [],
35
35
  LoginId: 0
36
36
  }), g = d(""), v = d([]), a = {
@@ -67,34 +67,34 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
67
67
  i.List = [], a.PageIndex = 0, a.StartOn = e.timeValue ? e.timeValue[0] : "", a.EndOn = e.timeValue ? e.timeValue[1] : "", a.UserIds = e.CreatedBy ? [e.CreatedBy] : [], a.Notes = e.search, a.Mark = e.Mark, h();
68
68
  }, S = () => {
69
69
  v.value.length > 0 && V(v.value[0]).then(async () => {
70
- f.success(r("上传文件成功!")), a.PageIndex = 0, v.value = [], await h(), N();
70
+ p.success(r("上传文件成功!")), a.PageIndex = 0, v.value = [], await h(), N();
71
71
  });
72
- }, F = (e) => {
72
+ }, j = (e) => {
73
73
  V(e).then(() => {
74
- f.success(r("上传文件成功!")), _.value = !1, a.PageIndex = 0, h();
74
+ p.success(r("上传文件成功!")), _.value = !1, a.PageIndex = 0, h();
75
75
  });
76
76
  }, V = (e) => {
77
77
  const t = new FormData();
78
78
  return t.append("BusinessKey", I.projectId), t.append("BusinessName", "PRODUCT_DEV"), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), P(t);
79
- }, j = () => {
79
+ }, F = () => {
80
80
  if (!g.value) {
81
- f.info(r("备注不能为空!"));
81
+ p.info(r("备注不能为空!"));
82
82
  return;
83
83
  }
84
84
  const e = new FormData();
85
85
  e.append("BusinessKey", I.projectId), e.append("BusinessName", "PRODUCT_DEV"), e.append("notes", g.value), e.append("ViewTitle", "备注"), P(e).then(async () => {
86
- f.success(r("添加备注成功!")), a.PageIndex = 0, g.value = "", await h(), N();
86
+ p.success(r("添加备注成功!")), a.PageIndex = 0, g.value = "", await h(), N();
87
87
  });
88
88
  }, Y = (e) => {
89
89
  if (e.clipboardData || e.originalEvent) {
90
90
  if (e.clipboardData.items.length === 0) {
91
- f.error(r("复制文件到剪切板失败,请点击按钮上传!"));
91
+ p.error(r("复制文件到剪切板失败,请点击按钮上传!"));
92
92
  return;
93
93
  }
94
94
  if (e.clipboardData.files.length > 0) {
95
95
  _.value = !0;
96
96
  for (let t = 0; t < e.clipboardData.files.length; t++) {
97
- e.clipboardData.files[t].size / 1024 / 1024 < 100 || f.error(r("上传文件大小不能超过 100MB!"));
97
+ e.clipboardData.files[t].size / 1024 / 1024 < 100 || p.error(r("上传文件大小不能超过 100MB!"));
98
98
  const { name: H } = e.clipboardData.files[t];
99
99
  oe("115", e.clipboardData.files[t]).then((z) => {
100
100
  C.value = {
@@ -108,11 +108,11 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
108
108
  }
109
109
  }, M = d(null), N = () => {
110
110
  M.value.scrollTo({ top: 0, behavior: "smooth" });
111
- }, E = d(0), O = d(null);
111
+ }, E = d(0), k = d(null);
112
112
  return K(() => {
113
113
  var t;
114
114
  const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
115
- E.value = window.innerHeight - e - O.value.offsetHeight - 90, D();
115
+ E.value = window.innerHeight - e - k.value.offsetHeight - 90, D();
116
116
  }), (e, t) => (c(), u("div", de, [
117
117
  s(ne, {
118
118
  ref: "logForm",
@@ -135,12 +135,12 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
135
135
  l("div", null, [
136
136
  l("div", ce, [
137
137
  l("div", ue, [
138
- s(B, {
138
+ s(O, {
139
139
  id: i.LoginId,
140
140
  info: o
141
141
  }, null, 8, ["id", "info"])
142
142
  ]),
143
- s(n(w), {
143
+ s(n(B), {
144
144
  color: "#f1f1f1",
145
145
  size: "20"
146
146
  }, {
@@ -150,14 +150,14 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
150
150
  _: 1
151
151
  })
152
152
  ]),
153
- l("div", pe, p(n(U)(o.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
153
+ l("div", fe, f(n(U)(o.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
154
154
  ]),
155
- l("div", fe, p(o.CreatedName), 1)
155
+ l("div", pe, f(o.CreatedName), 1)
156
156
  ], 64)) : (c(), u(y, { key: 1 }, [
157
- l("div", me, p(o.CreatedName), 1),
157
+ l("div", me, f(o.CreatedName), 1),
158
158
  l("div", null, [
159
159
  l("div", ge, [
160
- s(n(w), {
160
+ s(n(B), {
161
161
  color: "#ccc",
162
162
  size: "20"
163
163
  }, {
@@ -167,13 +167,13 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
167
167
  _: 1
168
168
  }),
169
169
  l("div", ve, [
170
- s(B, {
170
+ s(O, {
171
171
  id: i.LoginId,
172
172
  info: o
173
173
  }, null, 8, ["id", "info"])
174
174
  ])
175
175
  ]),
176
- l("div", he, p(n(U)(o.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
176
+ l("div", he, f(n(U)(o.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
177
177
  ])
178
178
  ], 64))
179
179
  ], 2))), 128)),
@@ -181,14 +181,14 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
181
181
  distance: 10,
182
182
  onInfinite: D
183
183
  }),
184
- m.value ? (c(), u("div", _e, p(n(r)("加载中...")), 1)) : k("", !0),
185
- L.value ? (c(), u("div", xe, p(n(r)("没有更多了!")), 1)) : k("", !0)
184
+ m.value ? (c(), u("div", _e, f(n(r)("加载中...")), 1)) : w("", !0),
185
+ L.value ? (c(), u("div", xe, f(n(r)("没有更多了!")), 1)) : w("", !0)
186
186
  ]),
187
187
  _: 1
188
188
  }, 8, ["style"]),
189
189
  Q(l("textarea", {
190
190
  ref_key: "logText",
191
- ref: O,
191
+ ref: k,
192
192
  "onUpdate:modelValue": t[0] || (t[0] = (o) => g.value = o),
193
193
  class: "content-div",
194
194
  placeholder: n(r)("可通过 Ctrl+V 直接上传图片/文件"),
@@ -210,10 +210,10 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
210
210
  type: "success",
211
211
  size: "small",
212
212
  class: "marginL6",
213
- onClick: t[2] || (t[2] = (o) => j())
213
+ onClick: t[2] || (t[2] = (o) => F())
214
214
  }, {
215
215
  default: x(() => [
216
- W(p(n(r)("添加备注")), 1)
216
+ W(f(n(r)("添加备注")), 1)
217
217
  ]),
218
218
  _: 1
219
219
  })
@@ -222,7 +222,7 @@ const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue
222
222
  modelValue: _.value,
223
223
  "onUpdate:modelValue": t[3] || (t[3] = (o) => _.value = o),
224
224
  "doc-info": C.value,
225
- onConfirmUpload: F
225
+ onConfirmUpload: j
226
226
  }, null, 8, ["modelValue", "doc-info"])
227
227
  ]));
228
228
  }
@@ -1,19 +1,32 @@
1
- import t from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
- import { handleChangeRequestHeader as a, handleConfigureAuth as s, handleAuthError as n, handleGeneralError as o, handleNetworkError as u } from "./tool.js";
3
- t.interceptors.request.use((e) => {
4
- let r = a(e);
5
- return r = s(r), r;
1
+ import r from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
+ import { handleChangeRequestHeader as o, handleConfigureAuth as d, handleAuthError as u, handleGeneralError as i, handleNetworkError as l } from "./tool.js";
3
+ r.interceptors.request.use((t) => {
4
+ let e = o(t);
5
+ return e = d(e), e;
6
6
  });
7
- t.defaults.withCredentials = !0;
8
- t.interceptors.response.use(
9
- (e) => e.status !== 200 ? Promise.reject(e.data) : (n(e.data.errno), o(e.data.status, e.data.msg), e),
10
- (e) => {
11
- u(e.response.status), Promise.reject(e.response);
7
+ r.defaults.withCredentials = !0;
8
+ r.interceptors.response.use(
9
+ (t) => t.status !== 200 ? Promise.reject(t.data) : (u(t.data.errno), i(t.data.status, t.data.msg), t),
10
+ (t) => {
11
+ l(t.response.status), Promise.reject(t.response);
12
12
  }
13
13
  );
14
- const l = (e) => {
15
- t.defaults.baseURL = e;
14
+ const f = (t, e = {}, c) => new Promise((n) => {
15
+ r.get(t, { params: e }).then((a) => {
16
+ let s;
17
+ s = a.data, n(s);
18
+ }).catch((a) => {
19
+ const s = {
20
+ msg: a.msg,
21
+ data: a.data
22
+ // 其他错误属性...
23
+ };
24
+ n(s);
25
+ });
26
+ }), g = (t) => {
27
+ r.defaults.baseURL = t;
16
28
  };
17
29
  export {
18
- l as setBaseUrl
30
+ f as Get,
31
+ g as setBaseUrl
19
32
  };
@@ -1,13 +1,12 @@
1
- import { ElMessage as t } from "element-plus";
1
+ import { ElMessage as n } from "element-plus";
2
2
  import "element-plus/theme-chalk/src/base.scss";
3
3
  import "element-plus/theme-chalk/src/badge.scss";
4
4
  import "element-plus/theme-chalk/src/message.scss";
5
5
  import { AxiosHeaders as a } from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js";
6
- const s = "https://plmerp.yaheecloud.com/api/plm/product-dev/", m = (e) => ({
6
+ const p = (e) => ({
7
7
  ...e,
8
- baseURL: s,
9
8
  timeout: 2e4
10
- }), c = (e) => {
9
+ }), m = (e) => {
11
10
  const o = new a(e.headers);
12
11
  return {
13
12
  ...e,
@@ -30,12 +29,12 @@ const s = "https://plmerp.yaheecloud.com/api/plm/product-dev/", m = (e) => ({
30
29
  505: "http版本不支持该请求"
31
30
  };
32
31
  if (e) {
33
- t.error(o[e] ?? `其他连接错误 --${e}`);
32
+ n.error(o[e] ?? `其他连接错误 --${e}`);
34
33
  return;
35
34
  }
36
- t.error("无法连接到服务器!");
35
+ n.error("无法连接到服务器!");
37
36
  };
38
- var n = /* @__PURE__ */ ((e) => (e[e.AuthInvalid = 10031] = "AuthInvalid", e[e.AuthTooLong = 10032] = "AuthTooLong", e[e.UserHasNoRole = 10033] = "UserHasNoRole", e[e.UserNotRegistered = 10034] = "UserNotRegistered", e[e.ThirdPlatformUser = 10035] = "ThirdPlatformUser", e[e.NoRelatedEmployee = 10036] = "NoRelatedEmployee", e[e.CountInvalid = 10037] = "CountInvalid", e[e.CountNotFound = 10038] = "CountNotFound", e))(n || {});
37
+ var t = /* @__PURE__ */ ((e) => (e[e.AuthInvalid = 10031] = "AuthInvalid", e[e.AuthTooLong = 10032] = "AuthTooLong", e[e.UserHasNoRole = 10033] = "UserHasNoRole", e[e.UserNotRegistered = 10034] = "UserNotRegistered", e[e.ThirdPlatformUser = 10035] = "ThirdPlatformUser", e[e.NoRelatedEmployee = 10036] = "NoRelatedEmployee", e[e.CountInvalid = 10037] = "CountInvalid", e[e.CountNotFound = 10038] = "CountNotFound", e))(t || {});
39
38
  const f = (e) => e in {
40
39
  10031: "登录失效,需要重新登录",
41
40
  // token 失效
@@ -47,11 +46,11 @@ const f = (e) => e in {
47
46
  10036: "该账户未关联员工,请联系管理员做关联",
48
47
  10037: "账号已无效",
49
48
  10038: "账号未找到"
50
- } ? (t.error(n[e]), !1) : !0, N = (e, o) => e !== 0 && o !== "OK" ? (t.error(o), !1) : !0;
49
+ } ? (n.error(t[e]), !1) : !0, N = (e, o) => e !== 0 && o !== "OK" ? (n.error(o), !1) : !0;
51
50
  export {
52
51
  f as handleAuthError,
53
- m as handleChangeRequestHeader,
54
- c as handleConfigureAuth,
52
+ p as handleChangeRequestHeader,
53
+ m as handleConfigureAuth,
55
54
  N as handleGeneralError,
56
55
  u as handleNetworkError
57
56
  };
@@ -0,0 +1,4 @@
1
+ var N = /* @__PURE__ */ ((r) => (r.EN = "en", r.CN = "zh-CN", r))(N || {});
2
+ export {
3
+ N as i18nType
4
+ };