doway-coms 1.4.34 → 1.4.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/.browserslistrc +2 -2
- package/README.md +28 -28
- package/{lib → dist}/doway-coms.common.js +119301 -104053
- package/dist/doway-coms.css +3 -0
- package/{lib → dist}/doway-coms.umd.js +120190 -104942
- package/dist/doway-coms.umd.min.js +317 -0
- package/dist/package.json +12 -0
- package/package.json +1 -1
- package/packages/BaseSearch/src/index.vue +1 -2
- package/packages/utils/request.js +21 -9
- package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
- package/dist/css/index.7946d50b.css +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.28fda91d.js +0 -340
- package/dist/js/index.49bc6add.js +0 -2
- package/lib/doway-coms.css +0 -1
- package/lib/doway-coms.umd.min.js +0 -328
package/package.json
CHANGED
|
@@ -337,7 +337,6 @@ import {
|
|
|
337
337
|
Icon,
|
|
338
338
|
Select,
|
|
339
339
|
SelectOption,
|
|
340
|
-
RangePicker,
|
|
341
340
|
Tag,
|
|
342
341
|
DatePicker,
|
|
343
342
|
InputGroup,
|
|
@@ -355,9 +354,9 @@ export default {
|
|
|
355
354
|
Icon,
|
|
356
355
|
Select,
|
|
357
356
|
SelectOption: Select.Option,
|
|
358
|
-
RangePicker,
|
|
359
357
|
Tag,
|
|
360
358
|
DatePicker,
|
|
359
|
+
RangePicker: DatePicker.RangePicker,
|
|
361
360
|
Input,
|
|
362
361
|
InputGroup: Input.Group,
|
|
363
362
|
InputNumber,
|
|
@@ -28,12 +28,28 @@ service.interceptors.request.use(
|
|
|
28
28
|
// respone interceptor
|
|
29
29
|
service.interceptors.response.use(
|
|
30
30
|
response => {
|
|
31
|
-
// store.dispatch(
|
|
32
|
-
// "setLastRequireTime",
|
|
33
|
-
// moment().format("YYYY-MM-DD HH:mm:ss")
|
|
34
|
-
// );
|
|
35
|
-
|
|
36
31
|
const res = response.data
|
|
32
|
+
// 导出文件进入判断
|
|
33
|
+
if (res instanceof Blob) {
|
|
34
|
+
if (res.type === 'application/json') {
|
|
35
|
+
const enc = new TextDecoder('utf-8');
|
|
36
|
+
res.arrayBuffer().then((buffer) => {
|
|
37
|
+
const tempData = JSON.parse(enc.decode(new Uint8Array(buffer))) || {};
|
|
38
|
+
if (tempData['code'] && tempData['code'] === 500) {
|
|
39
|
+
notification.error({
|
|
40
|
+
message: '错误信息',
|
|
41
|
+
top:"100px",
|
|
42
|
+
description: h => {
|
|
43
|
+
return h('div', null, [
|
|
44
|
+
h('p', { domProps: { innerHTML: tempData['msg'] } }, null)
|
|
45
|
+
])
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return response;
|
|
52
|
+
}
|
|
37
53
|
if (res.status === 200 || res.code === 200) {
|
|
38
54
|
return response.data
|
|
39
55
|
}
|
|
@@ -41,7 +57,6 @@ service.interceptors.response.use(
|
|
|
41
57
|
return response.data
|
|
42
58
|
}
|
|
43
59
|
if (res.code === 401) {
|
|
44
|
-
// alert('会话过期2');
|
|
45
60
|
store.dispatch('logOut')
|
|
46
61
|
return Promise.reject(res.msg)
|
|
47
62
|
}
|
|
@@ -53,10 +68,7 @@ service.interceptors.response.use(
|
|
|
53
68
|
h('p', { domProps: { innerHTML: res.msg } }, null)
|
|
54
69
|
])
|
|
55
70
|
}
|
|
56
|
-
// description:parseContent.content
|
|
57
71
|
})
|
|
58
|
-
|
|
59
|
-
// notification['error']({ message: '错误信息', description: res.msg })
|
|
60
72
|
return Promise.reject(res.msg)
|
|
61
73
|
},
|
|
62
74
|
error => {
|