yahee-components 0.0.34 → 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.
- package/es/_virtual/dayjs.min.js +1 -1
- package/es/_virtual/lodash.js +1 -1
- package/es/annex-upload/annex-upload.vue.js +3 -3
- package/es/annex-upload/annex-upload.vue2.js +3 -3
- package/es/api/server.js +7 -6
- package/es/complex-search/complex-search.vue.js +1 -1
- package/es/complex-search/complex-search.vue2.js +14 -14
- package/es/copy/copy.vue.js +2 -2
- package/es/copy/copy.vue2.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +16 -16
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +5 -5
- package/es/drop-down-condition/drop-down-condition.vue.js +1 -1
- package/es/drop-down-condition/drop-down-condition.vue2.js +5 -5
- package/es/image-upload/image-upload.vue.js +4 -4
- package/es/image-upload/image-upload.vue2.js +8 -8
- package/es/input/input.vue.js +2 -2
- package/es/left-condition/left-condition-sub.vue.js +7 -7
- package/es/left-condition/left-condition-sub.vue2.js +3 -3
- package/es/left-condition/left-condition.vue.js +5 -5
- package/es/left-condition-enum/left-condition-enum.vue.js +2 -2
- package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js +12 -12
- package/es/operation-log/operation-log-content.vue.js +9 -9
- package/es/operation-log/operation-log-content.vue2.js +3 -3
- package/es/operation-log/operation-log-dialog.vue.js +2 -2
- package/es/operation-log/operation-log-dialog.vue2.js +3 -3
- package/es/operation-log/operation-log-form.vue.js +1 -1
- package/es/operation-log/operation-log-form.vue2.js +24 -20
- package/es/operation-log/operation-log.vue.js +11 -11
- package/es/operation-log/operation-log.vue2.js +8 -8
- package/es/operation-log/style/index.css +19 -6
- package/es/packages/components/api/log-server.js +10 -9
- package/es/packages/components/api/server.js +5 -4
- package/es/packages/components/api/upload-server.js +6 -5
- package/es/packages/components/hooks/useImg.js +1 -1
- package/es/{node_modules/.pnpm/dayjs@1.11.13 → packages/components}/node_modules/dayjs/dayjs.min.js +1 -1
- package/es/{node_modules/.pnpm/lodash@4.17.21 → packages/components}/node_modules/lodash/lodash.js +625 -625
- 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
- package/es/style.css +234 -0
- package/es/utils/translate.js +9 -8
- package/lib/operation-log/style/index.css +19 -6
- package/lib/style.css +234 -0
- package/package.json +1 -1
- package/types/src/operation-log/operation-log-form.vue.d.ts +9 -0
- /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 {
|
|
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
|
|
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") ? (
|
|
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") ? (
|
|
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") ? (
|
|
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") ? (
|
|
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") ? (
|
|
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") ? (
|
|
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
|
-
])) : (
|
|
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 {
|
|
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 {
|
|
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
|
|
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 {
|
|
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 {
|
|
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
|
-
import { defineComponent as f, reactive as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as f, reactive as d, ref as E, onMounted as D } from "vue";
|
|
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";
|
|
@@ -12,27 +12,31 @@ import "element-plus/theme-chalk/src/tag.scss";
|
|
|
12
12
|
import "element-plus/theme-chalk/src/option.scss";
|
|
13
13
|
import "element-plus/theme-chalk/src/option-group.scss";
|
|
14
14
|
import "element-plus/theme-chalk/src/select.scss";
|
|
15
|
-
import { Search as
|
|
16
|
-
import { getGlobalNotesUsers as
|
|
15
|
+
import { Search as v } from "@element-plus/icons-vue";
|
|
16
|
+
import { getGlobalNotesUsers as x } from "../packages/components/api/log/index.js";
|
|
17
17
|
import { M2 as r } from "../utils/translate.js";
|
|
18
|
-
const
|
|
18
|
+
const A = /* @__PURE__ */ f({
|
|
19
19
|
__name: "operation-log-form",
|
|
20
20
|
props: {
|
|
21
21
|
businessKey: {
|
|
22
22
|
type: String,
|
|
23
23
|
default: ""
|
|
24
|
+
},
|
|
25
|
+
businessName: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
emits: ["filterChange"],
|
|
27
31
|
setup(u, { expose: p, emit: l }) {
|
|
28
32
|
p();
|
|
29
|
-
const
|
|
33
|
+
const n = u, o = d({
|
|
30
34
|
timeValue: [],
|
|
31
35
|
CreatedBy: "",
|
|
32
36
|
Notes: "",
|
|
33
37
|
search: "",
|
|
34
38
|
Mark: null
|
|
35
|
-
}), s =
|
|
39
|
+
}), s = E(), c = [
|
|
36
40
|
{
|
|
37
41
|
text: r("最近三天"),
|
|
38
42
|
value: () => {
|
|
@@ -65,32 +69,32 @@ const z = /* @__PURE__ */ f({
|
|
|
65
69
|
const t = new FormData();
|
|
66
70
|
t.append(
|
|
67
71
|
"filter",
|
|
68
|
-
JSON.stringify({ BusinessKey:
|
|
69
|
-
),
|
|
72
|
+
JSON.stringify({ BusinessKey: n.businessKey, BusinessName: n.businessName })
|
|
73
|
+
), x(t).then((e) => {
|
|
70
74
|
s.value = e;
|
|
71
75
|
});
|
|
72
76
|
}, i = l, g = (t) => {
|
|
73
|
-
|
|
77
|
+
o.Mark = t, i("filterChange", o);
|
|
74
78
|
};
|
|
75
79
|
D(() => {
|
|
76
80
|
a();
|
|
77
81
|
});
|
|
78
|
-
const m = { props:
|
|
79
|
-
return
|
|
82
|
+
const m = { props: n, form: o, dataOptions: s, shortcuts: c, getData: a, emit: i, searchChange: g, get ElForm() {
|
|
83
|
+
return b;
|
|
80
84
|
}, get ElDatePicker() {
|
|
81
|
-
return
|
|
85
|
+
return T;
|
|
82
86
|
}, get ElButton() {
|
|
83
|
-
return
|
|
87
|
+
return y;
|
|
84
88
|
}, get ElFormItem() {
|
|
85
|
-
return T;
|
|
86
|
-
}, get ElInput() {
|
|
87
89
|
return S;
|
|
90
|
+
}, get ElInput() {
|
|
91
|
+
return w;
|
|
88
92
|
}, get ElSelect() {
|
|
89
|
-
return
|
|
93
|
+
return h;
|
|
90
94
|
}, get ElOption() {
|
|
91
|
-
return
|
|
95
|
+
return _;
|
|
92
96
|
}, get Search() {
|
|
93
|
-
return
|
|
97
|
+
return v;
|
|
94
98
|
}, get M2() {
|
|
95
99
|
return r;
|
|
96
100
|
} };
|
|
@@ -98,5 +102,5 @@ const z = /* @__PURE__ */ f({
|
|
|
98
102
|
}
|
|
99
103
|
});
|
|
100
104
|
export {
|
|
101
|
-
|
|
105
|
+
A as default
|
|
102
106
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import g from "./operation-log.vue2.js";
|
|
2
|
-
import {
|
|
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
|
|
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:
|
|
22
|
+
style: _({ height: o.boxHeight + "px" })
|
|
23
23
|
}, {
|
|
24
24
|
default: r(() => [
|
|
25
|
-
(
|
|
25
|
+
(i(!0), a(
|
|
26
26
|
s,
|
|
27
27
|
null,
|
|
28
|
-
|
|
28
|
+
x(o.dataList.List, (e) => (i(), a(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
key: e.Id,
|
|
32
|
-
class:
|
|
32
|
+
class: h(o.dataList.LoginId == e.CreatedBy ? "list-item-right" : "list-item-left")
|
|
33
33
|
},
|
|
34
34
|
[
|
|
35
|
-
o.dataList.LoginId == e.CreatedBy ? (
|
|
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
|
-
)) : (
|
|
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 ? (
|
|
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 ? (
|
|
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
|
-
|
|
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 {
|
|
3
|
-
import {
|
|
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 "../
|
|
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
|
|
118
|
+
return H;
|
|
119
119
|
}, get ElIcon() {
|
|
120
120
|
return k;
|
|
121
121
|
}, get ElButton() {
|
|
122
|
-
return
|
|
122
|
+
return V;
|
|
123
123
|
}, OperationLogForm: Y, OperationLogContent: q, OperationLogDialog: G, get dayjs() {
|
|
124
124
|
return R;
|
|
125
125
|
}, get M2() {
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
.yahee-operation-log {
|
|
2
2
|
min-width: 350px;
|
|
3
3
|
}
|
|
4
|
+
.yahee-operation-log .yahee-annex-upload {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
.yahee-operation-log .d-flex {
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
.yahee-operation-log .text-right {
|
|
11
|
+
text-align: right;
|
|
12
|
+
}
|
|
13
|
+
.yahee-operation-log .marginL6 {
|
|
14
|
+
margin-left: 6px;
|
|
15
|
+
}
|
|
4
16
|
.yahee-operation-log .infinite-list-wrapper {
|
|
5
17
|
overflow: hidden;
|
|
6
18
|
padding: 10px 4px;
|
|
@@ -22,14 +34,14 @@
|
|
|
22
34
|
padding: 5px 8px;
|
|
23
35
|
text-align: center;
|
|
24
36
|
border-radius: 2px;
|
|
25
|
-
background: #
|
|
37
|
+
background: #e8ffe8;
|
|
26
38
|
}
|
|
27
39
|
.yahee-operation-log .infinite-list-wrapper .list-item-left .content {
|
|
28
40
|
border: 1px solid #ccc;
|
|
29
41
|
border-radius: 4px;
|
|
30
42
|
padding: 10px;
|
|
31
43
|
margin-left: -8px;
|
|
32
|
-
background: #
|
|
44
|
+
background: #f7fff7;
|
|
33
45
|
}
|
|
34
46
|
.yahee-operation-log .infinite-list-wrapper .list-item-right {
|
|
35
47
|
display: flex;
|
|
@@ -56,7 +68,7 @@
|
|
|
56
68
|
margin-right: -8px;
|
|
57
69
|
border: 1px solid #f1f1f1;
|
|
58
70
|
border-radius: 4px;
|
|
59
|
-
background: #
|
|
71
|
+
background: #fafafa;
|
|
60
72
|
}
|
|
61
73
|
.yahee-operation-log .bg-link {
|
|
62
74
|
color: #3366cc;
|
|
@@ -83,6 +95,7 @@
|
|
|
83
95
|
height: 121px;
|
|
84
96
|
border: 1px solid #ccc;
|
|
85
97
|
padding: 10px;
|
|
98
|
+
box-sizing: border-box;
|
|
86
99
|
}
|
|
87
100
|
.yahee-operation-log .titleRemarks {
|
|
88
101
|
font-size: 14px;
|
|
@@ -150,7 +163,7 @@
|
|
|
150
163
|
min-height: 52px;
|
|
151
164
|
}
|
|
152
165
|
.yahee-operation-log .r-text-main {
|
|
153
|
-
background: #
|
|
166
|
+
background: #fafafa;
|
|
154
167
|
border: 1px solid #ccc;
|
|
155
168
|
border-radius: 2px;
|
|
156
169
|
padding: 4px;
|
|
@@ -163,7 +176,7 @@
|
|
|
163
176
|
min-height: 52px;
|
|
164
177
|
}
|
|
165
178
|
.yahee-operation-log .l-text-main {
|
|
166
|
-
background: #
|
|
179
|
+
background: #f7fff7;
|
|
167
180
|
border: 1px solid #ccc;
|
|
168
181
|
border-radius: 2px;
|
|
169
182
|
padding: 4px;
|
|
@@ -194,7 +207,7 @@
|
|
|
194
207
|
text-align: center;
|
|
195
208
|
border: 1px solid #ccc;
|
|
196
209
|
border-radius: 2px;
|
|
197
|
-
background: #
|
|
210
|
+
background: #e8ffe8;
|
|
198
211
|
float: right;
|
|
199
212
|
word-break: break-all;
|
|
200
213
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { storage as
|
|
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
|
-
|
|
10
|
-
|
|
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({
|
|
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 =
|
|
17
|
+
const t = i.get("token");
|
|
17
18
|
return t && (e.headers.token = t), e;
|
|
18
19
|
},
|
|
19
20
|
(e) => Promise.reject(e)
|
|
20
21
|
);
|
|
21
|
-
const
|
|
22
|
+
const a = localStorage.getItem("isTimeOutAlert");
|
|
22
23
|
r.interceptors.response.use(
|
|
23
24
|
(e) => e.status === 200 && e.data ? Promise.resolve(e.data) : e,
|
|
24
25
|
(e) => {
|
|
@@ -37,14 +38,14 @@ r.interceptors.response.use(
|
|
|
37
38
|
console.error(e.response.status, e.message);
|
|
38
39
|
break;
|
|
39
40
|
}
|
|
40
|
-
return e.code === "ECONNABORTED" &&
|
|
41
|
+
return e.code === "ECONNABORTED" && a && a === "0" && (s.alert("请求超时,请检查您的网络连接或稍后重试。"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
|
|
41
42
|
}
|
|
42
43
|
);
|
|
43
|
-
const
|
|
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
|
-
|
|
49
|
+
h as post,
|
|
49
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) : (
|
|
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
|
|
15
|
+
const h = (e) => {
|
|
15
16
|
t.defaults.baseURL = e;
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
h as setBaseUrl
|
|
19
20
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { storage as
|
|
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
|
-
|
|
10
|
-
|
|
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({
|
|
11
|
+
baseURL: l,
|
|
11
12
|
timeout: 3e4,
|
|
12
13
|
withCredentials: !0
|
|
13
14
|
});
|
|
14
15
|
r.interceptors.request.use(
|
|
15
16
|
(t) => {
|
|
16
|
-
const e =
|
|
17
|
+
const e = i.get("token");
|
|
17
18
|
return e && (t.headers.token = e), t;
|
|
18
19
|
},
|
|
19
20
|
(t) => Promise.reject(t)
|
|
@@ -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,
|