yahee-components 0.0.33 → 0.0.36
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/operation-log/operation-log-form.vue2.js +21 -17
- package/es/operation-log/style/index.css +19 -6
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +12 -12
- package/lib/operation-log/style/index.css +19 -6
- package/package.json +1 -1
- package/types/src/operation-log/operation-log-form.vue.d.ts +9 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as f, reactive as
|
|
2
|
-
import { ElForm as _, ElDatePicker as h, ElButton as w, ElFormItem as
|
|
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";
|
|
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:
|
|
82
|
+
const m = { props: n, form: o, dataOptions: s, shortcuts: c, getData: a, emit: i, searchChange: g, get ElForm() {
|
|
79
83
|
return _;
|
|
80
84
|
}, get ElDatePicker() {
|
|
81
85
|
return h;
|
|
82
86
|
}, get ElButton() {
|
|
83
87
|
return w;
|
|
84
88
|
}, get ElFormItem() {
|
|
85
|
-
return T;
|
|
86
|
-
}, get ElInput() {
|
|
87
89
|
return S;
|
|
90
|
+
}, get ElInput() {
|
|
91
|
+
return y;
|
|
88
92
|
}, get ElSelect() {
|
|
89
|
-
return
|
|
93
|
+
return T;
|
|
90
94
|
}, get ElOption() {
|
|
91
|
-
return
|
|
95
|
+
return b;
|
|
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,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
|
}
|
|
@@ -6,8 +6,8 @@ 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
|
|
10
|
-
baseURL:
|
|
9
|
+
const n = "http://qas-newerp.yahee.com.cn:8088/PMS/Latest/", r = i.create({
|
|
10
|
+
baseURL: n,
|
|
11
11
|
timeout: 3e4,
|
|
12
12
|
withCredentials: !0
|
|
13
13
|
});
|
|
@@ -18,7 +18,7 @@ r.interceptors.request.use(
|
|
|
18
18
|
},
|
|
19
19
|
(e) => Promise.reject(e)
|
|
20
20
|
);
|
|
21
|
-
const
|
|
21
|
+
const a = localStorage.getItem("isTimeOutAlert");
|
|
22
22
|
r.interceptors.response.use(
|
|
23
23
|
(e) => e.status === 200 && e.data ? Promise.resolve(e.data) : e,
|
|
24
24
|
(e) => {
|
|
@@ -37,14 +37,14 @@ r.interceptors.response.use(
|
|
|
37
37
|
console.error(e.response.status, e.message);
|
|
38
38
|
break;
|
|
39
39
|
}
|
|
40
|
-
return e.code === "ECONNABORTED" &&
|
|
40
|
+
return e.code === "ECONNABORTED" && a && a === "0" && (s.alert("请求超时,请检查您的网络连接或稍后重试。"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
|
-
const b = async (e, t,
|
|
43
|
+
const b = async (e, t, o) => r.post(e, t, o), h = (e) => {
|
|
44
44
|
r.defaults.baseURL = e;
|
|
45
45
|
};
|
|
46
46
|
export {
|
|
47
47
|
r as default,
|
|
48
48
|
b as post,
|
|
49
|
-
|
|
49
|
+
h as setLogBaseUrl
|
|
50
50
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import i from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
|
|
2
|
-
import { storage as
|
|
2
|
+
import { storage as m } 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
|
|
10
|
-
baseURL:
|
|
9
|
+
const l = "http://api-tools-test.yahee.com.cn:81/", s = i.create({
|
|
10
|
+
baseURL: l,
|
|
11
11
|
timeout: 3e4,
|
|
12
12
|
withCredentials: !0
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
s.interceptors.request.use(
|
|
15
15
|
(t) => {
|
|
16
|
-
const e =
|
|
16
|
+
const e = m.get("token");
|
|
17
17
|
return e && (t.headers.token = e), t;
|
|
18
18
|
},
|
|
19
19
|
(t) => Promise.reject(t)
|
|
20
20
|
);
|
|
21
21
|
const o = localStorage.getItem("isTimeOutAlert");
|
|
22
|
-
|
|
22
|
+
s.interceptors.response.use(
|
|
23
23
|
(t) => {
|
|
24
24
|
if (t.status === 200 && t.data) {
|
|
25
25
|
const e = t.data.code || 0;
|
|
@@ -51,15 +51,15 @@ r.interceptors.response.use(
|
|
|
51
51
|
return t.code === "ECONNABORTED" && o && o == "0" && (a.alert("请求超时,请检查您的网络连接或稍后重试。"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(t);
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
const
|
|
54
|
+
const h = async (t, e, r) => (r = Object.assign(r, {
|
|
55
55
|
headers: {
|
|
56
56
|
"Content-Type": "multipart/form-data"
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
59
|
-
|
|
58
|
+
}), s.post(t, e, r)), k = (t) => {
|
|
59
|
+
s.defaults.baseURL = t;
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
s as default,
|
|
63
|
+
k as setUploadBaseUrl,
|
|
64
|
+
h as upload
|
|
65
65
|
};
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -4,6 +4,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
+
businessName: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
7
11
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
12
|
filterChange: (...args: any[]) => void;
|
|
9
13
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -11,9 +15,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
11
15
|
type: StringConstructor;
|
|
12
16
|
default: string;
|
|
13
17
|
};
|
|
18
|
+
businessName: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
14
22
|
}>> & Readonly<{
|
|
15
23
|
onFilterChange?: (...args: any[]) => any;
|
|
16
24
|
}>, {
|
|
17
25
|
businessKey: string;
|
|
26
|
+
businessName: string;
|
|
18
27
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
19
28
|
export default _default;
|