@lemon30_npm/csit-vue3 1.0.44 → 1.0.46
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/README.dev.md +146 -87
- package/dist/csit-vue3.js +769 -890
- package/dist/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-layout/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-layout/index.vue.js +1 -1
- package/dist/lib/ci-common-list/ci-common-list-layout/index.vue2.js +20 -19
- package/dist/lib/ci-dictionary-select/index.vue.js +2 -2
- package/dist/lib/ci-dictionary-select/index.vue2.js +78 -42
- package/dist/lib/ci-upload/hooks/useUpload.js +24 -23
- package/dist/lib/ci-upload/hooks/useUploadRetry.js +26 -16
- package/dist/lib/ci-upload/index.css +1 -1
- package/dist/lib/ci-upload/index.vue.js +2 -2
- package/dist/lib/ci-upload/index.vue2.js +78 -69
- package/dist/lib/ci-upload/props/index.js +6 -0
- package/dist/lib/ci-upload/utils/appendFormData.js +9 -0
- package/dist/types/src/components/components-project/ci-dictionary-select/index.vue.d.ts +11 -1
- package/dist/types/src/components/components-project/ci-dictionary-select/type.d.ts +16 -1
- package/dist/types/src/components/components-project/ci-upload/index.vue.d.ts +6 -1
- package/dist/types/src/components/components-project/ci-upload/props/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-upload/type.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-upload/utils/appendFormData.d.ts +6 -0
- package/package.json +1 -1
- package/dist/lib/axios/index.js +0 -67
- package/dist/lib/axios/middlewares/middleware-executor.js +0 -15
- package/dist/lib/axios/middlewares/request-middlewares/addXRequestedWith.js +0 -12
- package/dist/lib/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.js +0 -17
- package/dist/lib/axios/middlewares/request-middlewares/logRequest.js +0 -7
- package/dist/lib/axios/middlewares/response-middlewares/formatResponseData.js +0 -7
- package/dist/lib/axios/middlewares/response-middlewares/handle-error/errorMessages.js +0 -14
- package/dist/lib/axios/middlewares/response-middlewares/handle-error/handleError.js +0 -35
- package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleFileStream.js +0 -11
- package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleSuccess.js +0 -20
- package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js +0 -18
- package/dist/lib/axios/middlewares/response-middlewares/logResponse.js +0 -13
- package/dist/lib/ci-dictionary-select/config.js +0 -18
- package/dist/lib/config/env-config/index.js +0 -4
- package/dist/lib/config/system-config/projectSettings.js +0 -7
- package/dist/lib/utils/system/useSystem.js +0 -9
- /package/dist/lib/{ci-common-list/ci-common-list-pagination → ci-dictionary-select}/index.css +0 -0
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ElNotification as s } from "element-plus";
|
|
2
|
-
import "axios";
|
|
3
|
-
import { errorMessages as l, defaultErrorMessage as n } from "./errorMessages.js";
|
|
4
|
-
const p = async (a, i) => {
|
|
5
|
-
console.log("axios-响应中间件(失败响应): 响应失败错误处理中间件已执行");
|
|
6
|
-
const e = a.error, { response: r } = e;
|
|
7
|
-
if (r) {
|
|
8
|
-
const { status: o } = r, t = l[o] || n;
|
|
9
|
-
console.log(`axios-响应中间件(失败响应)原因: HTTP 错误状态码: ${o}`), console.log(`axios-响应中间件(失败响应)原因: 错误信息: ${t}`), s({
|
|
10
|
-
type: "error",
|
|
11
|
-
title: `失败响应错误码:${o}`,
|
|
12
|
-
message: t,
|
|
13
|
-
duration: 6e3
|
|
14
|
-
// 6s自动关闭
|
|
15
|
-
}), o === 401 && console.log("axios-响应中间件(失败响应)原因: 我是401特定状态码执行自定义逻辑");
|
|
16
|
-
} else e.request ? (console.log(
|
|
17
|
-
`axios-响应中间件(失败响应)原因: 网络错误或服务器无响应,请检查网络连接。 ${e.message}`
|
|
18
|
-
), s({
|
|
19
|
-
type: "error",
|
|
20
|
-
title: "失败响应",
|
|
21
|
-
message: `失败响应原因:网络错误或服务器无响应,请检查网络连接。 ${e.message}`,
|
|
22
|
-
duration: 6e3
|
|
23
|
-
// 6s自动关闭
|
|
24
|
-
})) : (console.log(`axios-响应中间件(失败响应)原因: 请求配置错误: ${e.message}`), s({
|
|
25
|
-
type: "error",
|
|
26
|
-
title: "失败响应",
|
|
27
|
-
message: `失败响应原因:请求配置错误: ${e.message}`,
|
|
28
|
-
duration: 6e3
|
|
29
|
-
// 6s自动关闭
|
|
30
|
-
}));
|
|
31
|
-
await i();
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
p as handleError
|
|
35
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "axios";
|
|
2
|
-
const r = async (e, o) => {
|
|
3
|
-
if (console.log("axios-响应中间件(成功响应): 文件流处理中间件已执行"), e.response.config.responseType === "blob" || e.response.config.responseType === "arraybuffer") {
|
|
4
|
-
console.log("axios-响应中间件(成功响应): 文件流处理中间件已执行: 目前是文件流数据"), e.isFileStream = !0;
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
console.log("axios-响应中间件(成功响应): 文件流处理中间件已执行: 目前不是文件流数据"), await o();
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
r as handleFileStream
|
|
11
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "axios";
|
|
2
|
-
import { projectSettings as t } from "../../../../config/system-config/projectSettings.js";
|
|
3
|
-
import { ElNotification as a } from "element-plus";
|
|
4
|
-
const g = async (s, o) => {
|
|
5
|
-
if (console.log("axios-响应中间件(成功响应): 响应成功处理中间件已执行"), s.response.data.code === t.resSuccessCode)
|
|
6
|
-
console.log("axios-响应中间件(成功响应): 后台响应结果是成功编码: 0000"), await o();
|
|
7
|
-
else {
|
|
8
|
-
const e = s.response.data.code, r = s.response.data.message;
|
|
9
|
-
throw a({
|
|
10
|
-
type: "error",
|
|
11
|
-
title: `错误码:${e}`,
|
|
12
|
-
message: r,
|
|
13
|
-
duration: 6e3
|
|
14
|
-
// 6s自动关闭
|
|
15
|
-
}), e === "1001" && console.log("axios-响应中间件(成功响应): 我是1001特定状态码执行自定义逻辑"), new Error(`后台响应结果是异常编码: ${e}`);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
g as handleSuccess
|
|
20
|
-
};
|
package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "axios";
|
|
2
|
-
import t from "../../../../utils/system/useSystem.js";
|
|
3
|
-
const l = async (o, s) => {
|
|
4
|
-
if (o.response) {
|
|
5
|
-
console.log("axios-响应中间件(成功响应): 处理token失效中间件已执行");
|
|
6
|
-
const e = ["1001", "1002", "1003", "1009", "1011", "1012"];
|
|
7
|
-
if (o.response.status === 200 && e.includes(o.response.data.code)) {
|
|
8
|
-
const { TuiChuSystem: n } = t();
|
|
9
|
-
n();
|
|
10
|
-
} else
|
|
11
|
-
console.log(
|
|
12
|
-
"axios-响应中间件(成功响应): 处理token失效中间件已执行: token未失效,继续进行调用中间件链条"
|
|
13
|
-
), await s();
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
l as handleTokenInvalidToLogin
|
|
18
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "axios";
|
|
2
|
-
const r = async (o, s) => {
|
|
3
|
-
console.log("axios-响应中间件(成功响应 | 失败响应): 日志记录中间件执行"), o.response ? console.log(
|
|
4
|
-
"axios-响应中间件(成功响应 | 失败响应): 日志记录中间件: 成功响应-Response为:",
|
|
5
|
-
o.response
|
|
6
|
-
) : o.error && console.log(
|
|
7
|
-
"axios-响应中间件(成功响应 | 失败响应): 日志记录中间件: 失败响应-Error为:",
|
|
8
|
-
o.error
|
|
9
|
-
), await s();
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
r as logResponse
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import i from "../axios/index.js";
|
|
2
|
-
const e = {
|
|
3
|
-
// 字典项接口地址
|
|
4
|
-
dictionary_url: "/iadw/api/dict/v1/getDictListByCde",
|
|
5
|
-
// 字典项接口请求方式 post get 参数入参key
|
|
6
|
-
dictionary_request_method_param_key: "cde",
|
|
7
|
-
// 字典项接口返回的数据对象 Select组件 label 字段
|
|
8
|
-
dictionary_label: "dictValue",
|
|
9
|
-
// 字典项接口返回的数据对象 Select组件 value 字段
|
|
10
|
-
dictionary_value: "dictKey",
|
|
11
|
-
// select框默认宽度值
|
|
12
|
-
dictionary_selectWidth: "190px",
|
|
13
|
-
// 封装的 Axios 实例(请求接口需要用到)
|
|
14
|
-
dictionary_axios: i
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
e as dictionarySettings
|
|
18
|
-
};
|
/package/dist/lib/{ci-common-list/ci-common-list-pagination → ci-dictionary-select}/index.css
RENAMED
|
File without changes
|