yahee-components 0.0.36 → 0.0.37

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 (41) hide show
  1. package/es/_virtual/dayjs.min.js +1 -1
  2. package/es/_virtual/lodash.js +1 -1
  3. package/es/annex-upload/annex-upload.vue.js +3 -3
  4. package/es/annex-upload/annex-upload.vue2.js +3 -3
  5. package/es/api/server.js +7 -6
  6. package/es/complex-search/complex-search.vue.js +1 -1
  7. package/es/complex-search/complex-search.vue2.js +14 -14
  8. package/es/copy/copy.vue.js +2 -2
  9. package/es/copy/copy.vue2.js +3 -3
  10. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +16 -16
  11. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +5 -5
  12. package/es/drop-down-condition/drop-down-condition.vue.js +1 -1
  13. package/es/drop-down-condition/drop-down-condition.vue2.js +5 -5
  14. package/es/image-upload/image-upload.vue.js +4 -4
  15. package/es/image-upload/image-upload.vue2.js +8 -8
  16. package/es/input/input.vue.js +2 -2
  17. package/es/left-condition/left-condition-sub.vue.js +7 -7
  18. package/es/left-condition/left-condition-sub.vue2.js +3 -3
  19. package/es/left-condition/left-condition.vue.js +5 -5
  20. package/es/left-condition-enum/left-condition-enum.vue.js +2 -2
  21. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js +12 -12
  22. package/es/operation-log/operation-log-content.vue.js +9 -9
  23. package/es/operation-log/operation-log-content.vue2.js +3 -3
  24. package/es/operation-log/operation-log-dialog.vue.js +2 -2
  25. package/es/operation-log/operation-log-dialog.vue2.js +3 -3
  26. package/es/operation-log/operation-log-form.vue.js +1 -1
  27. package/es/operation-log/operation-log-form.vue2.js +7 -7
  28. package/es/operation-log/operation-log.vue.js +11 -11
  29. package/es/operation-log/operation-log.vue2.js +8 -8
  30. package/es/packages/components/api/log-server.js +8 -7
  31. package/es/packages/components/api/server.js +5 -4
  32. package/es/packages/components/api/upload-server.js +13 -12
  33. package/es/packages/components/hooks/useImg.js +1 -1
  34. package/es/{node_modules/.pnpm/dayjs@1.11.13 → packages/components}/node_modules/dayjs/dayjs.min.js +1 -1
  35. package/es/{node_modules/.pnpm/lodash@4.17.21 → packages/components}/node_modules/lodash/lodash.js +625 -625
  36. package/es/{node_modules/.pnpm/v3-infinite-loading@1.3.2 → packages/components}/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +15 -15
  37. package/es/style.css +234 -0
  38. package/es/utils/translate.js +9 -8
  39. package/lib/style.css +234 -0
  40. package/package.json +1 -1
  41. /package/es/{node_modules/.pnpm/element-plus@2.9.1_vue@3.5.13_typescript@5.7.2_ → packages/components}/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import l from "./operation-log-content.vue2.js";
2
- import { openBlock as n, createElementBlock as o, createElementVNode as t, normalizeClass as a, toDisplayString as s, createVNode as c, withCtx as d } from "vue";
2
+ import { createElementBlock as n, openBlock as o, createElementVNode as t, normalizeClass as a, toDisplayString as s, createVNode as c, withCtx as d } from "vue";
3
3
  import f from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const _ = { key: 0 }, h = {
5
5
  key: 1,
@@ -18,7 +18,7 @@ const _ = { key: 0 }, h = {
18
18
  class: "d-flex ai-end"
19
19
  }, w = ["href"], I = ["innerHTML"];
20
20
  function C(W, B, e, i, P, z) {
21
- return n(), o("div", null, [
21
+ return o(), n("div", null, [
22
22
  t(
23
23
  "div",
24
24
  {
@@ -28,13 +28,13 @@ function C(W, B, e, i, P, z) {
28
28
  3
29
29
  /* TEXT, CLASS */
30
30
  ),
31
- e.info.Notes.includes(".jpg") && e.info.Notes.startsWith("http") ? (n(), o("div", _, [
31
+ e.info.Notes.includes(".jpg") && e.info.Notes.startsWith("http") ? (o(), n("div", _, [
32
32
  c(i.ElImage, {
33
33
  class: "img",
34
34
  src: e.info.Notes,
35
35
  "preview-src-list": [e.info.Notes]
36
36
  }, null, 8, ["src", "preview-src-list"])
37
- ])) : e.info.Notes.includes(".word") && e.info.Notes.startsWith("http") ? (n(), o("div", h, [
37
+ ])) : e.info.Notes.includes(".word") && e.info.Notes.startsWith("http") ? (o(), n("div", h, [
38
38
  t("img", {
39
39
  src: i.useImagePath("file-word.png")
40
40
  }, null, 8, r),
@@ -42,7 +42,7 @@ function C(W, B, e, i, P, z) {
42
42
  href: e.info.Notes,
43
43
  target: "_blank"
44
44
  }, s(e.info.Title), 9, g)
45
- ])) : e.info.Notes.includes(".pdf") && e.info.Notes.startsWith("http") ? (n(), o("div", m, [
45
+ ])) : e.info.Notes.includes(".pdf") && e.info.Notes.startsWith("http") ? (o(), n("div", m, [
46
46
  t("img", {
47
47
  src: i.useImagePath("pdf.png")
48
48
  }, null, 8, u),
@@ -50,7 +50,7 @@ function C(W, B, e, i, P, z) {
50
50
  href: e.info.Notes,
51
51
  target: "_blank"
52
52
  }, s(e.info.Title), 9, N)
53
- ])) : e.info.Notes.includes(".ppt") && e.info.Notes.startsWith("http") ? (n(), o("div", k, [
53
+ ])) : e.info.Notes.includes(".ppt") && e.info.Notes.startsWith("http") ? (o(), n("div", k, [
54
54
  t("img", {
55
55
  src: i.useImagePath("ppt.png")
56
56
  }, null, 8, x),
@@ -58,7 +58,7 @@ function C(W, B, e, i, P, z) {
58
58
  href: e.info.Notes,
59
59
  target: "_blank"
60
60
  }, s(e.info.Title), 9, v)
61
- ])) : e.info.Notes.includes(".xls") && e.info.Notes.startsWith("http") ? (n(), o("div", y, [
61
+ ])) : e.info.Notes.includes(".xls") && e.info.Notes.startsWith("http") ? (o(), n("div", y, [
62
62
  t("img", {
63
63
  src: i.useImagePath("excel.png")
64
64
  }, null, 8, E),
@@ -66,7 +66,7 @@ function C(W, B, e, i, P, z) {
66
66
  href: e.info.Notes,
67
67
  target: "_blank"
68
68
  }, s(e.info.Title), 9, T)
69
- ])) : e.info.Notes.includes("http") ? (n(), o("div", b, [
69
+ ])) : e.info.Notes.includes("http") ? (o(), n("div", b, [
70
70
  c(i.ElIcon, { size: "40" }, {
71
71
  default: d(() => [
72
72
  c(i.Document)
@@ -78,7 +78,7 @@ function C(W, B, e, i, P, z) {
78
78
  href: e.info.Notes,
79
79
  target: "_blank"
80
80
  }, s(e.info.Title), 9, w)
81
- ])) : (n(), o("div", {
81
+ ])) : (o(), n("div", {
82
82
  key: 6,
83
83
  innerHTML: i.notes
84
84
  }, null, 8, I))
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as u, computed as r } from "vue";
2
2
  import m from "../packages/components/hooks/useImgPath.js";
3
- import { ElIcon as s, ElImage as l } from "element-plus";
3
+ import { ElImage as s, ElIcon as l } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/image.scss";
6
6
  import "element-plus/theme-chalk/src/image-viewer.scss";
@@ -23,9 +23,9 @@ const E = /* @__PURE__ */ u({
23
23
  const e = o, i = r(() => e.info.Notes.replace(/\n/g, "<br/>")), p = r(() => e.info.Notes.includes("http") ? e.info.Title.split(".")[0] : e.info.Title), t = { props: e, notes: i, title: p, get useImagePath() {
24
24
  return m;
25
25
  }, get ElIcon() {
26
- return s;
27
- }, get ElImage() {
28
26
  return l;
27
+ }, get ElImage() {
28
+ return s;
29
29
  }, get Document() {
30
30
  return a;
31
31
  } };
@@ -1,9 +1,9 @@
1
1
  import n from "./operation-log-dialog.vue2.js";
2
- import { openBlock as r, createBlock as d, withCtx as e, createElementVNode as a, createVNode as i, createTextVNode as c, toDisplayString as t } from "vue";
2
+ import { createBlock as r, openBlock as d, withCtx as e, createElementVNode as a, toDisplayString as t, createVNode as i, createTextVNode as c } from "vue";
3
3
  import f from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = ["href"], u = { class: "dialog-footer" };
5
5
  function _(g, E, l, o, s, p) {
6
- return r(), d(o.ElDialog, {
6
+ return d(), r(o.ElDialog, {
7
7
  "model-value": l.modelValue,
8
8
  width: "600px",
9
9
  title: o.M2("上传文件"),
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a } from "vue";
2
2
  import { M2 as p } from "../utils/translate.js";
3
- import { ElDialog as i, ElButton as m } from "element-plus";
3
+ import { ElButton as i, ElDialog as m } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/dialog.scss";
6
6
  import "element-plus/theme-chalk/src/overlay.scss";
@@ -28,9 +28,9 @@ const U = /* @__PURE__ */ a({
28
28
  }, get M2() {
29
29
  return p;
30
30
  }, get ElDialog() {
31
- return i;
32
- }, get ElButton() {
33
31
  return m;
32
+ }, get ElButton() {
33
+ return i;
34
34
  } };
35
35
  return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
36
36
  }
@@ -1,5 +1,5 @@
1
1
  import u from "./operation-log-form.vue2.js";
2
- import { openBlock as n, createBlock as t, withCtx as r, createVNode as a, createElementBlock as i, Fragment as c, renderList as E, createTextVNode as m, toDisplayString as d } from "vue";
2
+ import { createBlock as t, openBlock as n, withCtx as r, createVNode as a, createElementBlock as i, Fragment as c, renderList as E, createTextVNode as m, toDisplayString as d } from "vue";
3
3
  import f from "../_virtual/_plugin-vue_export-helper.js";
4
4
  function C(h, o, F, l, g, B) {
5
5
  return n(), t(l.ElForm, {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, reactive as d, ref as E, onMounted as D } from "vue";
2
- import { ElForm as _, ElDatePicker as h, ElButton as w, ElFormItem as S, ElInput as y, ElSelect as T, ElOption as b } from "element-plus";
2
+ import { ElOption as _, ElSelect as h, ElInput as w, ElFormItem as S, ElButton as y, ElDatePicker as T, ElForm as b } from "element-plus";
3
3
  import "element-plus/theme-chalk/src/base.scss";
4
4
  import "element-plus/theme-chalk/src/form.scss";
5
5
  import "element-plus/theme-chalk/src/date-picker.scss";
@@ -80,19 +80,19 @@ const A = /* @__PURE__ */ f({
80
80
  a();
81
81
  });
82
82
  const m = { props: n, form: o, dataOptions: s, shortcuts: c, getData: a, emit: i, searchChange: g, get ElForm() {
83
- return _;
83
+ return b;
84
84
  }, get ElDatePicker() {
85
- return h;
85
+ return T;
86
86
  }, get ElButton() {
87
- return w;
87
+ return y;
88
88
  }, get ElFormItem() {
89
89
  return S;
90
90
  }, get ElInput() {
91
- return y;
91
+ return w;
92
92
  }, get ElSelect() {
93
- return T;
93
+ return h;
94
94
  }, get ElOption() {
95
- return b;
95
+ return _;
96
96
  }, get Search() {
97
97
  return v;
98
98
  }, get M2() {
@@ -1,5 +1,5 @@
1
1
  import g from "./operation-log.vue2.js";
2
- import { openBlock as a, createElementBlock as i, createVNode as t, normalizeStyle as m, withCtx as r, Fragment as s, renderList as _, normalizeClass as x, createElementVNode as n, toDisplayString as d, createCommentVNode as c, withDirectives as h, vModelText as u, createTextVNode as C } from "vue";
2
+ import { createElementBlock as a, openBlock as i, createVNode as t, withDirectives as m, createElementVNode as n, normalizeStyle as _, withCtx as r, createCommentVNode as c, Fragment as s, renderList as x, normalizeClass as h, toDisplayString as d, vModelText as u, createTextVNode as C } from "vue";
3
3
  import v from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const y = { class: "yahee-operation-log" }, E = { class: "d-flex jc-end" }, L = { class: "content text-color-secondary" }, F = { class: "date fontSize-12 pull-right text-color-a4" }, D = { class: "name" }, V = { class: "name" }, k = { class: "d-flex" }, A = { class: "content text-color-secondary" }, I = { class: "date fontSize-12 text-color-a4" }, M = {
5
5
  key: 0,
@@ -9,7 +9,7 @@ const y = { class: "yahee-operation-log" }, E = { class: "d-flex jc-end" }, L =
9
9
  class: "no-more text-color-a4"
10
10
  }, w = ["placeholder"], b = { class: "d-flex text-right marginT10" };
11
11
  function z(O, l, f, o, S, B) {
12
- return a(), i("div", y, [
12
+ return i(), a("div", y, [
13
13
  t(o.OperationLogForm, {
14
14
  ref: "logForm",
15
15
  class: "text-right log-form",
@@ -19,20 +19,20 @@ function z(O, l, f, o, S, B) {
19
19
  t(o.ElScrollbar, {
20
20
  ref: "infiniteList",
21
21
  class: "infinite-list-wrapper",
22
- style: m({ height: o.boxHeight + "px" })
22
+ style: _({ height: o.boxHeight + "px" })
23
23
  }, {
24
24
  default: r(() => [
25
- (a(!0), i(
25
+ (i(!0), a(
26
26
  s,
27
27
  null,
28
- _(o.dataList.List, (e) => (a(), i(
28
+ x(o.dataList.List, (e) => (i(), a(
29
29
  "div",
30
30
  {
31
31
  key: e.Id,
32
- class: x(o.dataList.LoginId == e.CreatedBy ? "list-item-right" : "list-item-left")
32
+ class: h(o.dataList.LoginId == e.CreatedBy ? "list-item-right" : "list-item-left")
33
33
  },
34
34
  [
35
- o.dataList.LoginId == e.CreatedBy ? (a(), i(
35
+ o.dataList.LoginId == e.CreatedBy ? (i(), a(
36
36
  s,
37
37
  { key: 0 },
38
38
  [
@@ -73,7 +73,7 @@ function z(O, l, f, o, S, B) {
73
73
  ],
74
74
  64
75
75
  /* STABLE_FRAGMENT */
76
- )) : (a(), i(
76
+ )) : (i(), a(
77
77
  s,
78
78
  { key: 1 },
79
79
  [
@@ -126,14 +126,14 @@ function z(O, l, f, o, S, B) {
126
126
  distance: 10,
127
127
  onInfinite: o.load
128
128
  }),
129
- o.loading ? (a(), i(
129
+ o.loading ? (i(), a(
130
130
  "div",
131
131
  M,
132
132
  d(o.M2("加载中...")),
133
133
  1
134
134
  /* TEXT */
135
135
  )) : c("v-if", !0),
136
- o.noMore ? (a(), i(
136
+ o.noMore ? (i(), a(
137
137
  "div",
138
138
  Y,
139
139
  d(o.M2("没有更多了!")),
@@ -144,7 +144,7 @@ function z(O, l, f, o, S, B) {
144
144
  _: 1
145
145
  /* STABLE */
146
146
  }, 8, ["style"]),
147
- h(n("textarea", {
147
+ m(n("textarea", {
148
148
  ref: "logText",
149
149
  "onUpdate:modelValue": l[0] || (l[0] = (e) => o.textareaText = e),
150
150
  class: "content-div",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as U, ref as a, reactive as _, onMounted as F } from "vue";
2
- import { CaretRight as K, CaretLeft as T } from "@element-plus/icons-vue";
3
- import { ElScrollbar as V, ElIcon as k, ElButton as H, ElMessage as l } from "element-plus";
2
+ import { CaretLeft as K, CaretRight as T } from "@element-plus/icons-vue";
3
+ import { ElMessage as l, ElButton as V, ElIcon as k, ElScrollbar as H } 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";
@@ -14,8 +14,8 @@ import G from "./operation-log-dialog.vue.js";
14
14
  import R from "../_virtual/dayjs.min.js";
15
15
  import { M2 as o } from "../utils/translate.js";
16
16
  import z from "../annex-upload/annex-upload.vue.js";
17
- import J from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
- /* empty css */
17
+ import J from "../packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
+ /* empty css */
19
19
  import { findGlobalNotes as Q, insertGlobalnotes as N } from "../packages/components/api/log/index.js";
20
20
  const fe = /* @__PURE__ */ U({
21
21
  name: "YaheeOperationLog",
@@ -111,15 +111,15 @@ const fe = /* @__PURE__ */ U({
111
111
  I.value = window.innerHeight - e - y.value.offsetHeight - 90, L();
112
112
  });
113
113
  const x = { props: s, loading: u, noMore: h, showDialog: c, docInfo: b, dataList: i, textareaText: p, compAnalysisFile: d, params: n, getLogMessage: r, load: L, filterChange: O, change: B, confirmUpload: D, uploadFile: m, sendEditQuill: P, handlePaste: S, infiniteList: v, scrollTop: g, boxHeight: I, logText: y, get CaretRight() {
114
- return K;
115
- }, get CaretLeft() {
116
114
  return T;
115
+ }, get CaretLeft() {
116
+ return K;
117
117
  }, get ElScrollbar() {
118
- return V;
118
+ return H;
119
119
  }, get ElIcon() {
120
120
  return k;
121
121
  }, get ElButton() {
122
- return H;
122
+ return V;
123
123
  }, OperationLogForm: Y, OperationLogContent: q, OperationLogDialog: G, get dayjs() {
124
124
  return R;
125
125
  }, get M2() {
@@ -1,19 +1,20 @@
1
- import i from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
2
- import { storage as m } from "../../../utils/storage.js";
1
+ import "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/index.js";
2
+ import { storage as i } from "../../../utils/storage.js";
3
3
  import { ElMessageBox as s } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/message-box.scss";
6
6
  import "element-plus/theme-chalk/src/button.scss";
7
7
  import "element-plus/theme-chalk/src/input.scss";
8
8
  import "element-plus/theme-chalk/src/overlay.scss";
9
- const n = "http://qas-newerp.yahee.com.cn:8088/PMS/Latest/", r = i.create({
9
+ import m from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
10
+ const n = "http://qas-newerp.yahee.com.cn:8088/PMS/Latest/", r = m.create({
10
11
  baseURL: n,
11
12
  timeout: 3e4,
12
13
  withCredentials: !0
13
14
  });
14
15
  r.interceptors.request.use(
15
16
  (e) => {
16
- const t = m.get("token");
17
+ const t = i.get("token");
17
18
  return t && (e.headers.token = t), e;
18
19
  },
19
20
  (e) => Promise.reject(e)
@@ -40,11 +41,11 @@ r.interceptors.response.use(
40
41
  return e.code === "ECONNABORTED" && a && a === "0" && (s.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
41
42
  }
42
43
  );
43
- const b = async (e, t, o) => r.post(e, t, o), h = (e) => {
44
+ const h = async (e, t, o) => r.post(e, t, o), O = (e) => {
44
45
  r.defaults.baseURL = e;
45
46
  };
46
47
  export {
47
48
  r as default,
48
- b as post,
49
- h as setLogBaseUrl
49
+ h as post,
50
+ O as setLogBaseUrl
50
51
  };
@@ -1,19 +1,20 @@
1
+ import "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/index.js";
2
+ import { handleChangeRequestHeader as a, handleConfigureAuth as s, handleAuthError as o, handleGeneralError as n, handleNetworkError as u } from "./tool.js";
1
3
  import t from "../../../node_modules/.pnpm/axios@1.7.9/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
4
  t.interceptors.request.use((e) => {
4
5
  let r = a(e);
5
6
  return r = s(r), r;
6
7
  });
7
8
  t.defaults.withCredentials = !0;
8
9
  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) => e.status !== 200 ? Promise.reject(e.data) : (o(e.data.errno), n(e.data.status, e.data.msg), e),
10
11
  (e) => {
11
12
  u(e.response.status), Promise.reject(e.response);
12
13
  }
13
14
  );
14
- const l = (e) => {
15
+ const h = (e) => {
15
16
  t.defaults.baseURL = e;
16
17
  };
17
18
  export {
18
- l as setBaseUrl
19
+ h as setBaseUrl
19
20
  };
@@ -1,25 +1,26 @@
1
- import i from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
2
- import { storage as m } from "../../../utils/storage.js";
1
+ import "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/index.js";
2
+ import { storage as i } from "../../../utils/storage.js";
3
3
  import { ElMessageBox as a } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
5
5
  import "element-plus/theme-chalk/src/message-box.scss";
6
6
  import "element-plus/theme-chalk/src/button.scss";
7
7
  import "element-plus/theme-chalk/src/input.scss";
8
8
  import "element-plus/theme-chalk/src/overlay.scss";
9
- const l = "http://api-tools-test.yahee.com.cn:81/", s = i.create({
9
+ import m from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
10
+ const l = "http://api-tools-test.yahee.com.cn:81/", r = m.create({
10
11
  baseURL: l,
11
12
  timeout: 3e4,
12
13
  withCredentials: !0
13
14
  });
14
- s.interceptors.request.use(
15
+ r.interceptors.request.use(
15
16
  (t) => {
16
- const e = m.get("token");
17
+ const e = i.get("token");
17
18
  return e && (t.headers.token = e), t;
18
19
  },
19
20
  (t) => Promise.reject(t)
20
21
  );
21
22
  const o = localStorage.getItem("isTimeOutAlert");
22
- s.interceptors.response.use(
23
+ r.interceptors.response.use(
23
24
  (t) => {
24
25
  if (t.status === 200 && t.data) {
25
26
  const e = t.data.code || 0;
@@ -51,15 +52,15 @@ s.interceptors.response.use(
51
52
  return t.code === "ECONNABORTED" && o && o == "0" && (a.alert("请求超时,‌请检查您的网络连接或稍后重试。‌"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(t);
52
53
  }
53
54
  );
54
- const h = async (t, e, r) => (r = Object.assign(r, {
55
+ const k = async (t, e, s) => (s = Object.assign(s, {
55
56
  headers: {
56
57
  "Content-Type": "multipart/form-data"
57
58
  }
58
- }), s.post(t, e, r)), k = (t) => {
59
- s.defaults.baseURL = t;
59
+ }), r.post(t, e, s)), O = (t) => {
60
+ r.defaults.baseURL = t;
60
61
  };
61
62
  export {
62
- s as default,
63
- k as setUploadBaseUrl,
64
- h as upload
63
+ r as default,
64
+ O as setUploadBaseUrl,
65
+ k as upload
65
66
  };
@@ -7,7 +7,7 @@ function s(e, c = !1) {
7
7
  } else return c ? `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e}` : `http://qas-service.yahee.com.cn:8088/FMSService/Latest/Small/${e}`;
8
8
  }
9
9
  function a(e) {
10
- return e.fileId ? `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e.fileId}` : "";
10
+ return e && e.fileId ? `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e.fileId}` : "";
11
11
  }
12
12
  export {
13
13
  s as default,
@@ -1,4 +1,4 @@
1
- import { __module as C } from "../../../../../_virtual/dayjs.min2.js";
1
+ import { __module as C } from "../../../../_virtual/dayjs.min2.js";
2
2
  var G = C.exports, V;
3
3
  function tt() {
4
4
  return V ? C.exports : (V = 1, function(B, K) {