yahee-components 0.0.24 → 0.0.25
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 +5 -2
- package/es/_virtual/dayjs.min2.js +4 -0
- package/es/_virtual/lodash.js +5 -2
- package/es/_virtual/lodash2.js +4 -0
- package/es/complex-search/complex-search.vue.js +2 -2
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +1 -1
- package/es/drop-down-condition/drop-down-condition.vue.js +75 -73
- package/es/left-condition/left-condition-sub.vue.js +1 -1
- package/es/left-condition/left-condition.vue.js +1 -1
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -20
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +12 -12
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +11 -11
- package/es/operation-log/operation-log.vue.js +3 -3
- package/es/packages/components/api/server.js +13 -26
- package/es/packages/components/node_modules/dayjs/dayjs.min.js +282 -0
- package/es/packages/components/node_modules/lodash/lodash.js +3677 -0
- package/es/style.css +0 -4
- package/es/styles/custom.css +0 -4
- package/es/styles/index.css +0 -4
- package/es/utils/translate.js +1 -1
- package/es/yahee-components.css +1 -0
- package/lib/_virtual/_commonjsHelpers.js +1 -0
- package/lib/_virtual/dayjs.min.js +1 -0
- package/lib/_virtual/dayjs.min2.js +1 -0
- package/lib/_virtual/lodash.js +1 -0
- package/lib/_virtual/lodash2.js +1 -0
- package/lib/annex-upload/annex-upload.vue.js +1 -0
- package/lib/annex-upload/annex-upload.vue2.js +1 -0
- package/lib/annex-upload/index.js +1 -0
- package/lib/annex-upload/mimeType.js +1 -0
- package/lib/api/server.js +1 -0
- package/lib/api/tool.js +1 -0
- package/lib/complex-search/complex-search.vue.js +1 -0
- package/lib/complex-search/complex-search.vue2.js +1 -0
- package/lib/complex-search/index.js +1 -0
- package/lib/copy/copy.vue.js +1 -0
- package/lib/copy/copy.vue2.js +1 -0
- package/lib/copy/index.js +1 -0
- package/lib/country-platform-shop-condition/country-platform-shop-condition.vue.js +1 -0
- package/lib/country-platform-shop-condition/country-platform-shop-condition.vue2.js +1 -0
- package/lib/country-platform-shop-condition/index.js +1 -0
- package/lib/drop-down-condition/drop-down-condition.vue.js +1 -0
- package/lib/drop-down-condition/drop-down-condition.vue2.js +1 -0
- package/lib/drop-down-condition/index.js +1 -0
- package/lib/image-upload/image-upload.vue.js +1 -0
- package/lib/image-upload/image-upload.vue2.js +1 -0
- package/lib/image-upload/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/input/index.js +1 -0
- package/lib/input/input.vue.js +1 -0
- package/lib/input/input.vue2.js +1 -0
- package/lib/installs.js +1 -0
- package/lib/left-condition/index.js +1 -0
- package/lib/left-condition/left-condition-sub.vue.js +1 -0
- package/lib/left-condition/left-condition-sub.vue2.js +1 -0
- package/lib/left-condition/left-condition.vue.js +1 -0
- package/lib/left-condition/left-condition.vue2.js +1 -0
- package/lib/left-condition-enum/index.js +1 -0
- package/lib/left-condition-enum/left-condition-enum.vue.js +1 -0
- package/lib/left-condition-enum/left-condition-enum.vue2.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +3 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +2 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +2 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +2 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +1 -0
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +1 -0
- package/lib/operation-log/index.js +1 -0
- package/lib/operation-log/operation-log-content.vue.js +1 -0
- package/lib/operation-log/operation-log-content.vue2.js +1 -0
- package/lib/operation-log/operation-log-dialog.vue.js +1 -0
- package/lib/operation-log/operation-log-dialog.vue2.js +1 -0
- package/lib/operation-log/operation-log-form.vue.js +1 -0
- package/lib/operation-log/operation-log-form.vue2.js +1 -0
- package/lib/operation-log/operation-log.vue.js +1 -0
- package/lib/operation-log/operation-log.vue2.js +1 -0
- package/lib/packages/components/api/log/index.js +1 -0
- package/lib/packages/components/api/log-server.js +1 -0
- package/lib/packages/components/api/server.js +1 -0
- package/lib/packages/components/api/tool.js +1 -0
- package/lib/packages/components/api/upload-server.js +1 -0
- package/lib/packages/components/assets/images/errorimg.png.js +1 -0
- package/lib/packages/components/assets/images/excel.png.js +1 -0
- package/lib/packages/components/assets/images/file-word.png.js +1 -0
- package/lib/packages/components/assets/images/pdf.png.js +1 -0
- package/lib/packages/components/assets/images/ppt.png.js +1 -0
- package/lib/packages/components/assets/images/vue.svg.js +1 -0
- package/lib/packages/components/hooks/useClipboard.js +1 -0
- package/lib/packages/components/hooks/useImg.js +1 -0
- package/lib/packages/components/hooks/useImgPath.js +1 -0
- package/lib/packages/components/hooks/useImport.js +1 -0
- package/lib/packages/components/hooks/useUpload.js +1 -0
- package/lib/packages/components/node_modules/dayjs/dayjs.min.js +1 -0
- package/lib/packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js +1 -0
- package/lib/packages/components/node_modules/lodash/lodash.js +27 -0
- package/lib/packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +1 -0
- package/lib/static/CommonObject.js +1 -0
- package/lib/style.css +0 -4
- package/lib/styles/custom.css +0 -4
- package/lib/styles/index.css +0 -4
- package/lib/utils/config.js +1 -0
- package/lib/utils/const.js +1 -0
- package/lib/utils/install.js +1 -0
- package/lib/utils/storage.js +1 -0
- package/lib/utils/style.js +1 -0
- package/lib/utils/translate.js +1 -0
- package/lib/yahee-components.css +1 -0
- package/package.json +2 -1
- package/types/index.d.ts +1341 -6
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -282
- package/es/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +0 -3677
- package/types/hooks/useClipboard.d.ts +0 -7
- package/types/hooks/useImg.d.ts +0 -10
- package/types/hooks/useImgPath.d.ts +0 -5
- package/types/hooks/useImport.d.ts +0 -11
- package/types/hooks/useUpload.d.ts +0 -12
- package/types/src/annex-upload/annex-upload.d.ts +0 -30
- package/types/src/annex-upload/annex-upload.vue.d.ts +0 -443
- package/types/src/annex-upload/index.d.ts +0 -123
- package/types/src/annex-upload/mimeType.d.ts +0 -2
- package/types/src/api/server.d.ts +0 -6
- package/types/src/api/tool.d.ts +0 -6
- package/types/src/api/types.d.ts +0 -17
- package/types/src/complex-search/complex-search.d.ts +0 -24
- package/types/src/complex-search/complex-search.vue.d.ts +0 -44
- package/types/src/complex-search/index.d.ts +0 -47
- package/types/src/components.d.ts +0 -10
- package/types/src/copy/copy.d.ts +0 -12
- package/types/src/copy/copy.vue.d.ts +0 -21
- package/types/src/copy/index.d.ts +0 -32
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +0 -17
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +0 -14
- package/types/src/country-platform-shop-condition/index.d.ts +0 -16
- package/types/src/drop-down-condition/drop-down-condition.d.ts +0 -6
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +0 -40
- package/types/src/drop-down-condition/index.d.ts +0 -42
- package/types/src/image-upload/image-upload.d.ts +0 -26
- package/types/src/image-upload/image-upload.vue.d.ts +0 -43
- package/types/src/image-upload/index.d.ts +0 -94
- package/types/src/index.d.ts +0 -7
- package/types/src/input/index.d.ts +0 -16
- package/types/src/input/input.d.ts +0 -18
- package/types/src/input/input.vue.d.ts +0 -14
- package/types/src/installs.d.ts +0 -557
- package/types/src/left-condition/index.d.ts +0 -69
- package/types/src/left-condition/left-condition-sub.vue.d.ts +0 -47
- package/types/src/left-condition/left-condition.d.ts +0 -5
- package/types/src/left-condition/left-condition.vue.d.ts +0 -68
- package/types/src/left-condition-enum/index.d.ts +0 -162
- package/types/src/left-condition-enum/left-condition-enum.d.ts +0 -5
- package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +0 -160
- package/types/src/operation-log/index.d.ts +0 -9
- package/types/src/operation-log/operation-log-content.vue.d.ts +0 -24
- package/types/src/operation-log/operation-log-dialog.vue.d.ts +0 -39
- package/types/src/operation-log/operation-log-form.vue.d.ts +0 -19
- package/types/src/operation-log/operation-log.d.ts +0 -11
- package/types/src/operation-log/operation-log.vue.d.ts +0 -6
- package/types/src/static/CommonObject.d.ts +0 -18
- package/types/src/static/CommonVariables.d.ts +0 -4
- package/types/src/utils/config.d.ts +0 -8
- package/types/src/utils/const.d.ts +0 -19
- package/types/src/utils/functions.d.ts +0 -1
- package/types/src/utils/install.d.ts +0 -8
- package/types/src/utils/storage.d.ts +0 -18
- package/types/src/utils/style.d.ts +0 -19
- package/types/src/utils/to-kebab-case.d.ts +0 -1
- package/types/src/utils/translate.d.ts +0 -5
- package/types/src/utils/typescript.d.ts +0 -5
- /package/es/{node_modules/.pnpm/element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_ → packages/components}/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -0
- /package/es/{node_modules/.pnpm/v3-infinite-loading@1.3.2 → packages/components}/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -0
package/es/_virtual/dayjs.min.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../packages/components/node_modules/dayjs/dayjs.min.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
package/es/_virtual/lodash.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../packages/components/node_modules/lodash/lodash.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as oe, toRefs as re, ref as u, openBlock as i, createBlock as h, unref as e, withCtx as t, createElementVNode as C, createVNode as o, withKeys as se, createSlots as ne, createElementBlock as _, Fragment as O, renderList as P, createTextVNode as S, toDisplayString as v, createCommentVNode as I } from "vue";
|
|
2
|
-
import y from "../
|
|
2
|
+
import y from "../_virtual/lodash.js";
|
|
3
3
|
import { ElConfigProvider as ue, ElInput as K, ElIcon as ie, ElSelect as G, ElOption as U, ElCheckbox as ce, ElLink as de, ElDialog as pe, ElButton as L, ElForm as me, ElRow as E, ElFormItem as R } from "element-plus";
|
|
4
4
|
import "element-plus/theme-chalk/src/base.scss";
|
|
5
5
|
import "element-plus/theme-chalk/src/input.scss";
|
|
@@ -19,7 +19,7 @@ import "element-plus/theme-chalk/src/button.scss";
|
|
|
19
19
|
import "element-plus/theme-chalk/src/link.scss";
|
|
20
20
|
import "element-plus/theme-chalk/src/config-provider.scss";
|
|
21
21
|
import { Search as fe } from "@element-plus/icons-vue";
|
|
22
|
-
import he from "../
|
|
22
|
+
import he from "../packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js";
|
|
23
23
|
const ve = { class: "yahee-complex-search" }, ye = { class: "search-type-checkbox" }, Ce = { class: "dialog-footer" }, Ne = /* @__PURE__ */ oe({
|
|
24
24
|
name: "YaheeComplexSearch",
|
|
25
25
|
__name: "complex-search",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as A, toRefs as I, reactive as z, ref as G, watch as ee, openBlock as s, createElementBlock as f, createVNode as E, unref as c, withCtx as V, createElementVNode as i, normalizeStyle as g, createTextVNode as L, toDisplayString as m, Fragment as C, renderList as k, createBlock as D } from "vue";
|
|
2
2
|
import { stylesUtils as le } from "../utils/style.js";
|
|
3
3
|
import { M2 as N } from "../utils/translate.js";
|
|
4
|
-
import R from "../
|
|
4
|
+
import R from "../_virtual/lodash.js";
|
|
5
5
|
import { ElPopover as oe, ElButton as U, ElCheckboxGroup as te, ElCheckbox as ue } from "element-plus";
|
|
6
6
|
import "element-plus/theme-chalk/src/base.scss";
|
|
7
7
|
import "element-plus/theme-chalk/src/button.scss";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { Get as de } from "../api/server.js";
|
|
1
|
+
import { defineComponent as ce, ref as y, reactive as V, toRefs as re, watch as ie, onMounted as de, resolveComponent as w, openBlock as a, createElementBlock as v, createVNode as G, normalizeStyle as K, withCtx as f, createTextVNode as b, toDisplayString as h, unref as i, createCommentVNode as F, createElementVNode as S, Fragment as C, renderList as $, createBlock as x } from "vue";
|
|
2
|
+
import u from "../_virtual/lodash.js";
|
|
4
3
|
import { stylesUtils as M } from "../utils/style.js";
|
|
5
4
|
import { storage as H } from "../utils/storage.js";
|
|
6
5
|
import { M2 as k } from "../utils/translate.js";
|
|
7
|
-
const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 },
|
|
6
|
+
const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, he = { style: { display: "flex", "align-items": "center", outline: "none" } }, pe = { key: 0 }, ge = { style: { display: "flex", width: "auto", padding: "10px" } }, me = ["onClick"], ye = { class: "scrollable-container" }, xe = { key: 0 }, Ee = /* @__PURE__ */ ce({
|
|
8
7
|
name: "YaheeDropDownCondition",
|
|
9
8
|
__name: "drop-down-condition",
|
|
10
9
|
props: {
|
|
@@ -14,57 +13,57 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
14
13
|
level2Count: {},
|
|
15
14
|
filterKey: {},
|
|
16
15
|
enumEntity: {},
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
noNeedRefreshNumFilterName: {},
|
|
17
|
+
initFilters: { type: Function }
|
|
19
18
|
},
|
|
20
19
|
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
21
20
|
setup(J, { emit: Q }) {
|
|
22
|
-
const X =
|
|
21
|
+
const X = y(), o = V({});
|
|
23
22
|
let O = V({});
|
|
24
|
-
const
|
|
25
|
-
q.value && (
|
|
26
|
-
function
|
|
27
|
-
const { text: l, value:
|
|
28
|
-
|
|
23
|
+
const d = V({}), p = V({}), g = y(!0), _ = J, T = Q, { filterKey: L, filterList: q, totalCount: N, level1Count: B, level2Count: A, noNeedRefreshNumFilterName: I } = re(_), W = y(u.get(N, "value", 0)), D = y(u.get(B, "value", [])), R = y(u.get(A, "value", [])), r = y();
|
|
24
|
+
q.value && (r.value = [...q.value]);
|
|
25
|
+
function P(e) {
|
|
26
|
+
const { text: l, value: s } = e, n = o[l];
|
|
27
|
+
u.isNil(n) || u.isEmpty(n) ? o[l] = [s] : o[l] = [], p[l] = !p[l], p[l] ? (ne(l), d[l] = M.getBackgroundColor(!0), g.value = !1) : (se(l), d[e.text] = {}, g.value = !0), g.value = z(), U();
|
|
29
28
|
}
|
|
30
|
-
function
|
|
31
|
-
const e =
|
|
32
|
-
return Object.values(o).map((n) => n.length).reduce((n,
|
|
29
|
+
function z() {
|
|
30
|
+
const e = r.value.filter((n) => !u.isEmpty(n.subs)).flatMap((n) => n.subs).length, l = r.value.filter((n) => u.isEmpty(n.subs)).length;
|
|
31
|
+
return Object.values(o).map((n) => n.length).reduce((n, m) => n + m, 0) === e + l || u.isEmpty(Object.values(o).flat());
|
|
33
32
|
}
|
|
34
33
|
function Z(e) {
|
|
35
|
-
|
|
34
|
+
u.isEmpty(o[e.text]) ? (d[e.text] = {}, p[e.text] = !1) : o[e.text].length === u.get(e, "subs.length", 1) ? (d[e.text] = M.getBackgroundColor(!0), p[e.text] = !0) : d[e.text] = {
|
|
36
35
|
backgroundColor: "#0F7535",
|
|
37
36
|
color: "#fff",
|
|
38
37
|
borderColor: "#0F7535"
|
|
39
|
-
},
|
|
38
|
+
}, g.value = z(), U();
|
|
40
39
|
}
|
|
41
40
|
function ee() {
|
|
42
|
-
|
|
41
|
+
g.value = z(), U();
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function U() {
|
|
45
44
|
T("setNoNeedRefreshNumFilterName", L.value);
|
|
46
45
|
}
|
|
47
46
|
function te() {
|
|
48
|
-
|
|
49
|
-
for (const e in
|
|
50
|
-
|
|
47
|
+
g.value = !0;
|
|
48
|
+
for (const e in d)
|
|
49
|
+
d[e] = {};
|
|
51
50
|
for (const e in o)
|
|
52
51
|
delete o[e];
|
|
53
|
-
for (const e in
|
|
54
|
-
delete
|
|
55
|
-
|
|
52
|
+
for (const e in p)
|
|
53
|
+
delete p[e];
|
|
54
|
+
Y();
|
|
56
55
|
}
|
|
57
56
|
const le = (e) => M.getBackgroundColor(e);
|
|
58
57
|
function oe(e) {
|
|
59
58
|
if (e)
|
|
60
|
-
O =
|
|
59
|
+
O = u.cloneDeep(o);
|
|
61
60
|
else {
|
|
62
|
-
if (
|
|
61
|
+
if (u.isEqual(O, o))
|
|
63
62
|
return;
|
|
64
|
-
|
|
63
|
+
Y();
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function Y() {
|
|
68
67
|
T("filterChange", [
|
|
69
68
|
{
|
|
70
69
|
filterKey: L.value,
|
|
@@ -73,47 +72,50 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
73
72
|
]);
|
|
74
73
|
}
|
|
75
74
|
function ne(e) {
|
|
76
|
-
const l =
|
|
77
|
-
l && l.subs && (o[e] = l.subs.map((
|
|
75
|
+
const l = r.value.find((s) => s.text === e);
|
|
76
|
+
l && l.subs && (o[e] = l.subs.map((s) => s.value));
|
|
78
77
|
}
|
|
79
78
|
function se(e) {
|
|
80
79
|
o[e] = [];
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
console.log(
|
|
81
|
+
function ue() {
|
|
82
|
+
const e = `filter-key-${_.enumEntity}`, l = H.getWithExpireTime(e);
|
|
83
|
+
l ? r.value = l : (console.log(_.enumEntity), _.initFilters(_.enumEntity).then((s) => {
|
|
84
|
+
console.log(s), r.value = s.data, H.setWithExpireTime(e, r.value, 1200 * 1e3), console.log(r.value);
|
|
85
|
+
}).catch((s) => {
|
|
86
|
+
console.log(s);
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
return ie(
|
|
90
|
+
[() => N.value, () => B.value, () => A.value],
|
|
91
|
+
([e, l, s], [n, m, j]) => {
|
|
92
|
+
console.log(e, l, s), console.log(n, m, j), (!I.value || !u.eq(I.value, L.value)) && (W.value = N.value, D.value = B.value, R.value = A.value);
|
|
86
93
|
}
|
|
87
|
-
),
|
|
88
|
-
|
|
89
|
-
l ? d.value = l : de(`${C.baseUrl}/${C.enumEntity}`).then((u) => {
|
|
90
|
-
d.value = u.data, H.setWithExpireTime(e, d.value, 1200 * 1e3);
|
|
91
|
-
}).catch((u) => {
|
|
92
|
-
console.log(u);
|
|
93
|
-
});
|
|
94
|
+
), de(() => {
|
|
95
|
+
ue();
|
|
94
96
|
}), (e, l) => {
|
|
95
|
-
const
|
|
97
|
+
const s = w("el-button"), n = w("el-checkbox"), m = w("el-checkbox-group"), j = w("el-dropdown");
|
|
96
98
|
return a(), v("div", ve, [
|
|
97
|
-
|
|
99
|
+
G(s, {
|
|
98
100
|
size: "small",
|
|
99
101
|
class: "el-button custom-total-button",
|
|
100
|
-
style:
|
|
102
|
+
style: K(le(g.value)),
|
|
101
103
|
onClick: te
|
|
102
104
|
}, {
|
|
103
105
|
default: f(() => [
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
b(h(i(k)("全部")) + " ", 1),
|
|
107
|
+
i(N) ? (a(), v("span", fe, "(" + h(W.value) + ")", 1)) : F("", !0)
|
|
106
108
|
]),
|
|
107
109
|
_: 1
|
|
108
110
|
}, 8, ["style"]),
|
|
109
|
-
|
|
111
|
+
G(j, {
|
|
110
112
|
ref_key: "dropdown1",
|
|
111
113
|
ref: X,
|
|
112
114
|
onVisibleChange: oe
|
|
113
115
|
}, {
|
|
114
116
|
dropdown: f(() => [
|
|
115
|
-
|
|
116
|
-
(a(!0), v(
|
|
117
|
+
S("div", ge, [
|
|
118
|
+
(a(!0), v(C, null, $(r.value, (t) => (a(), x(m, {
|
|
117
119
|
key: t.value,
|
|
118
120
|
modelValue: o[t.text],
|
|
119
121
|
"onUpdate:modelValue": (c) => o[t.text] = c,
|
|
@@ -122,24 +124,24 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
122
124
|
onChange: (c) => Z(t)
|
|
123
125
|
}, {
|
|
124
126
|
default: f(() => [
|
|
125
|
-
|
|
127
|
+
i(u).isNil(t.subs) ? (a(), x(n, {
|
|
126
128
|
key: 1,
|
|
127
129
|
value: t.value,
|
|
128
130
|
class: "checkbox custom-button",
|
|
129
131
|
border: ""
|
|
130
132
|
}, {
|
|
131
133
|
default: f(() => [
|
|
132
|
-
|
|
134
|
+
b(h(i(k)(t.text)), 1)
|
|
133
135
|
]),
|
|
134
136
|
_: 2
|
|
135
|
-
}, 1032, ["value"])) : (a(), v(
|
|
136
|
-
|
|
137
|
+
}, 1032, ["value"])) : (a(), v(C, { key: 0 }, [
|
|
138
|
+
S("span", {
|
|
137
139
|
class: "el-button custom-button el-button--small inner-el-button",
|
|
138
|
-
style:
|
|
139
|
-
onClick: (c) =>
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
(a(!0), v(
|
|
140
|
+
style: K(d[t.text]),
|
|
141
|
+
onClick: (c) => P(t)
|
|
142
|
+
}, h(i(k)(t.text)), 13, me),
|
|
143
|
+
S("div", ye, [
|
|
144
|
+
(a(!0), v(C, null, $(t.subs, (c) => (a(), x(n, {
|
|
143
145
|
key: c.value,
|
|
144
146
|
class: "checkbox custom-button",
|
|
145
147
|
value: c.value,
|
|
@@ -148,8 +150,8 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
148
150
|
default: f(() => {
|
|
149
151
|
var E;
|
|
150
152
|
return [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
b(h(i(k)(c.text)), 1),
|
|
154
|
+
i(u).isEmpty(R.value) ? F("", !0) : (a(), v("span", xe, "(" + h((E = R.value.filter((ae) => ae.value == c.value)[0]) == null ? void 0 : E.count) + ")", 1))
|
|
153
155
|
];
|
|
154
156
|
}),
|
|
155
157
|
_: 2
|
|
@@ -162,9 +164,9 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
162
164
|
])
|
|
163
165
|
]),
|
|
164
166
|
default: f(() => [
|
|
165
|
-
|
|
166
|
-
(a(!0), v(
|
|
167
|
-
t.isCheckbox ? (a(),
|
|
167
|
+
S("div", he, [
|
|
168
|
+
(a(!0), v(C, null, $(r.value, (t) => (a(), v(C, null, [
|
|
169
|
+
t.isCheckbox ? (a(), x(m, {
|
|
168
170
|
key: t.value,
|
|
169
171
|
modelValue: o[t.text],
|
|
170
172
|
"onUpdate:modelValue": (c) => o[t.text] = c,
|
|
@@ -173,31 +175,31 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
173
175
|
onChange: ee
|
|
174
176
|
}, {
|
|
175
177
|
default: f(() => [
|
|
176
|
-
t.isCheckbox ? (a(),
|
|
178
|
+
t.isCheckbox ? (a(), x(n, {
|
|
177
179
|
key: 0,
|
|
178
180
|
class: "custom-button",
|
|
179
181
|
value: t.value,
|
|
180
182
|
border: ""
|
|
181
183
|
}, {
|
|
182
184
|
default: f(() => [
|
|
183
|
-
|
|
185
|
+
b(h(i(k)(t.text)), 1)
|
|
184
186
|
]),
|
|
185
187
|
_: 2
|
|
186
|
-
}, 1032, ["value"])) :
|
|
188
|
+
}, 1032, ["value"])) : F("", !0)
|
|
187
189
|
]),
|
|
188
190
|
_: 2
|
|
189
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])) : (a(),
|
|
191
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : (a(), x(s, {
|
|
190
192
|
key: t.text,
|
|
191
|
-
style:
|
|
193
|
+
style: K(d[t.text]),
|
|
192
194
|
class: "custom-button",
|
|
193
195
|
size: "small",
|
|
194
|
-
onClick: (c) =>
|
|
196
|
+
onClick: (c) => P(t)
|
|
195
197
|
}, {
|
|
196
198
|
default: f(() => {
|
|
197
199
|
var c;
|
|
198
200
|
return [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
b(h(i(k)(t.text)), 1),
|
|
202
|
+
i(u).isEmpty(D.value) ? F("", !0) : (a(), v("span", pe, "(" + h((c = D.value.filter((E) => E.value == t.value)[0]) == null ? void 0 : c.count) + ")", 1))
|
|
201
203
|
];
|
|
202
204
|
}),
|
|
203
205
|
_: 2
|
|
@@ -212,5 +214,5 @@ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style
|
|
|
212
214
|
}
|
|
213
215
|
});
|
|
214
216
|
export {
|
|
215
|
-
|
|
217
|
+
Ee as default
|
|
216
218
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as A, toRefs as E, ref as p, watch as F, openBlock as s, createElementBlock as u, Fragment as w, createElementVNode as h, normalizeStyle as P, unref as t, withModifiers as U, createCommentVNode as r, createTextVNode as T, toDisplayString as k, nextTick as v } from "vue";
|
|
2
|
-
import N from "../
|
|
2
|
+
import N from "../_virtual/lodash.js";
|
|
3
3
|
import { stylesUtils as z } from "../utils/style.js";
|
|
4
4
|
import { translateEmployeeName as D, M2 as j } from "../utils/translate.js";
|
|
5
5
|
const q = ["checked"], G = { key: 1 }, H = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ue, toRefs as se, ref as m, computed as oe, watch as re, onMounted as ie, resolveComponent as I, openBlock as y, createElementBlock as L, createVNode as h, withCtx as T, unref as o, createElementVNode as ce, normalizeStyle as fe, toDisplayString as K, Fragment as de, renderList as me, createBlock as ve, createTextVNode as A, createCommentVNode as pe, nextTick as q } from "vue";
|
|
2
|
-
import l from "../
|
|
2
|
+
import l from "../_virtual/lodash.js";
|
|
3
3
|
import ge from "./left-condition-sub.vue.js";
|
|
4
4
|
import { stylesUtils as ye } from "../utils/style.js";
|
|
5
5
|
import { M2 as z } from "../utils/translate.js";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, ref as f, onMounted as d, openBlock as y, createBlock as N } from "vue";
|
|
2
2
|
import h from "../left-condition/left-condition.vue.js";
|
|
3
|
-
import { storage as
|
|
4
|
-
|
|
5
|
-
const E = /* @__PURE__ */ f({
|
|
3
|
+
import { storage as a } from "../utils/storage.js";
|
|
4
|
+
const C = /* @__PURE__ */ c({
|
|
6
5
|
name: "YaheeLeftConditionEnum",
|
|
7
6
|
__name: "left-condition-enum",
|
|
8
7
|
props: {
|
|
@@ -10,10 +9,6 @@ const E = /* @__PURE__ */ f({
|
|
|
10
9
|
type: Array,
|
|
11
10
|
default: () => []
|
|
12
11
|
},
|
|
13
|
-
baseUrl: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
12
|
countList: {
|
|
18
13
|
type: Array,
|
|
19
14
|
required: !1
|
|
@@ -45,24 +40,28 @@ const E = /* @__PURE__ */ f({
|
|
|
45
40
|
translateUserId: {
|
|
46
41
|
type: Boolean,
|
|
47
42
|
required: !1
|
|
43
|
+
},
|
|
44
|
+
initFilters: {
|
|
45
|
+
type: Function,
|
|
46
|
+
required: !0
|
|
48
47
|
}
|
|
49
48
|
},
|
|
50
49
|
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
51
50
|
setup(e, { emit: s }) {
|
|
52
|
-
const t = e,
|
|
53
|
-
|
|
51
|
+
const t = e, o = s, n = f(t.selectList), u = (l) => {
|
|
52
|
+
o("filterChange", l);
|
|
54
53
|
}, m = () => {
|
|
55
|
-
|
|
54
|
+
o("setNoNeedRefreshNumFilterName", t.filterKey);
|
|
56
55
|
};
|
|
57
56
|
return d(() => {
|
|
58
|
-
const l = `filter-key-${t.enumEntity}`,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}).catch((
|
|
62
|
-
console.log(
|
|
63
|
-
});
|
|
64
|
-
}), (l,
|
|
65
|
-
"select-list":
|
|
57
|
+
const l = `filter-key-${t.enumEntity}`, r = a.getWithExpireTime(l);
|
|
58
|
+
r ? n.value = r : (console.log(t.enumEntity), t.initFilters(t.enumEntity).then((i) => {
|
|
59
|
+
n.value = i.data, a.setWithExpireTime(l, n.value, 1200 * 1e3), console.log(i);
|
|
60
|
+
}).catch((i) => {
|
|
61
|
+
console.log(i);
|
|
62
|
+
}));
|
|
63
|
+
}), (l, r) => (y(), N(h, {
|
|
64
|
+
"select-list": n.value,
|
|
66
65
|
"count-list": e.countList,
|
|
67
66
|
"total-count": e.totalCount,
|
|
68
67
|
"filter-key": e.filterKey,
|
|
@@ -76,5 +75,5 @@ const E = /* @__PURE__ */ f({
|
|
|
76
75
|
}
|
|
77
76
|
});
|
|
78
77
|
export {
|
|
79
|
-
|
|
78
|
+
C as default
|
|
80
79
|
};
|
|
@@ -5,21 +5,21 @@ import S from "../helpers/toFormData.js";
|
|
|
5
5
|
import h from "../helpers/toURLEncodedForm.js";
|
|
6
6
|
import l from "../platform/index.js";
|
|
7
7
|
import O from "../helpers/formDataToJSON.js";
|
|
8
|
-
function y(
|
|
9
|
-
if (t.isString(
|
|
8
|
+
function y(e, r, i) {
|
|
9
|
+
if (t.isString(e))
|
|
10
10
|
try {
|
|
11
|
-
return (r || JSON.parse)(
|
|
11
|
+
return (r || JSON.parse)(e), t.trim(e);
|
|
12
12
|
} catch (n) {
|
|
13
13
|
if (n.name !== "SyntaxError")
|
|
14
14
|
throw n;
|
|
15
15
|
}
|
|
16
|
-
return (
|
|
16
|
+
return (0, JSON.stringify)(e);
|
|
17
17
|
}
|
|
18
18
|
const a = {
|
|
19
19
|
transitional: u,
|
|
20
20
|
adapter: ["xhr", "http", "fetch"],
|
|
21
|
-
transformRequest: [function(r,
|
|
22
|
-
const n =
|
|
21
|
+
transformRequest: [function(r, i) {
|
|
22
|
+
const n = i.getContentType() || "", s = n.indexOf("application/json") > -1, f = t.isObject(r);
|
|
23
23
|
if (f && t.isHTMLForm(r) && (r = new FormData(r)), t.isFormData(r))
|
|
24
24
|
return s ? JSON.stringify(O(r)) : r;
|
|
25
25
|
if (t.isArrayBuffer(r) || t.isBuffer(r) || t.isStream(r) || t.isFile(r) || t.isBlob(r) || t.isReadableStream(r))
|
|
@@ -27,7 +27,7 @@ const a = {
|
|
|
27
27
|
if (t.isArrayBufferView(r))
|
|
28
28
|
return r.buffer;
|
|
29
29
|
if (t.isURLSearchParams(r))
|
|
30
|
-
return
|
|
30
|
+
return i.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
|
|
31
31
|
let o;
|
|
32
32
|
if (f) {
|
|
33
33
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
@@ -41,14 +41,14 @@ const a = {
|
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
return f || s ? (
|
|
44
|
+
return f || s ? (i.setContentType("application/json", !1), y(r)) : r;
|
|
45
45
|
}],
|
|
46
46
|
transformResponse: [function(r) {
|
|
47
|
-
const
|
|
47
|
+
const i = this.transitional || a.transitional, n = i && i.forcedJSONParsing, s = this.responseType === "json";
|
|
48
48
|
if (t.isResponse(r) || t.isReadableStream(r))
|
|
49
49
|
return r;
|
|
50
50
|
if (r && t.isString(r) && (n && !this.responseType || s)) {
|
|
51
|
-
const m = !(
|
|
51
|
+
const m = !(i && i.silentJSONParsing) && s;
|
|
52
52
|
try {
|
|
53
53
|
return JSON.parse(r);
|
|
54
54
|
} catch (o) {
|
|
@@ -81,8 +81,8 @@ const a = {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
t.forEach(["delete", "get", "head", "post", "put", "patch"], (
|
|
85
|
-
a.headers[
|
|
84
|
+
t.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
85
|
+
a.headers[e] = {};
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
88
|
a as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const f = function* (e, t) {
|
|
2
2
|
let n = e.byteLength;
|
|
3
|
-
if (
|
|
3
|
+
if (n < t) {
|
|
4
4
|
yield e;
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
@@ -9,7 +9,7 @@ const u = function* (e, t) {
|
|
|
9
9
|
r = a + t, yield e.slice(a, r), a = r;
|
|
10
10
|
}, w = async function* (e, t) {
|
|
11
11
|
for await (const n of b(e))
|
|
12
|
-
yield*
|
|
12
|
+
yield* f(n, t);
|
|
13
13
|
}, b = async function* (e) {
|
|
14
14
|
if (e[Symbol.asyncIterator]) {
|
|
15
15
|
yield* e;
|
|
@@ -28,29 +28,29 @@ const u = function* (e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
}, h = (e, t, n, a) => {
|
|
30
30
|
const r = w(e, t);
|
|
31
|
-
let d = 0,
|
|
32
|
-
|
|
31
|
+
let d = 0, o, c = (l) => {
|
|
32
|
+
o || (o = !0, a && a(l));
|
|
33
33
|
};
|
|
34
34
|
return new ReadableStream({
|
|
35
35
|
async pull(l) {
|
|
36
36
|
try {
|
|
37
37
|
const { done: i, value: y } = await r.next();
|
|
38
38
|
if (i) {
|
|
39
|
-
|
|
39
|
+
c(), l.close();
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
let s = y.byteLength;
|
|
43
43
|
if (n) {
|
|
44
|
-
let
|
|
45
|
-
n(
|
|
44
|
+
let u = d += s;
|
|
45
|
+
n(u);
|
|
46
46
|
}
|
|
47
47
|
l.enqueue(new Uint8Array(y));
|
|
48
48
|
} catch (i) {
|
|
49
|
-
throw
|
|
49
|
+
throw c(i), i;
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
cancel(l) {
|
|
53
|
-
return
|
|
53
|
+
return c(l), r.return();
|
|
54
54
|
}
|
|
55
55
|
}, {
|
|
56
56
|
highWaterMark: 2
|
|
@@ -58,6 +58,6 @@ const u = function* (e, t) {
|
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
60
|
w as readBytes,
|
|
61
|
-
|
|
61
|
+
f as streamChunk,
|
|
62
62
|
h as trackStream
|
|
63
63
|
};
|
|
@@ -11,11 +11,11 @@ import { useFile as ae } from "../packages/components/hooks/useImg.js";
|
|
|
11
11
|
import ne from "./operation-log-form.vue.js";
|
|
12
12
|
import O from "./operation-log-content.vue.js";
|
|
13
13
|
import se from "./operation-log-dialog.vue.js";
|
|
14
|
-
import U from "../
|
|
14
|
+
import U from "../_virtual/dayjs.min.js";
|
|
15
15
|
import { M2 as r } from "../utils/translate.js";
|
|
16
16
|
import le from "../annex-upload/annex-upload.vue.js";
|
|
17
|
-
import ie from "../
|
|
18
|
-
/* empty css
|
|
17
|
+
import ie from "../packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
|
|
18
|
+
/* empty css */
|
|
19
19
|
import { insertGlobalnotes as P, findGlobalNotes as re } from "../packages/components/api/log/index.js";
|
|
20
20
|
const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue = { class: "content text-color-secondary" }, fe = { class: "date fontSize-12 pull-right text-color-a4" }, pe = { class: "name" }, me = { class: "name" }, ge = { class: "d-flex" }, ve = { class: "content text-color-secondary" }, he = { class: "date fontSize-12 text-color-a4" }, _e = {
|
|
21
21
|
key: 0,
|
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { handleChangeRequestHeader as
|
|
3
|
-
|
|
4
|
-
let
|
|
5
|
-
return
|
|
1
|
+
import t from "../../../node_modules/.pnpm/axios@1.7.7/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
|
+
t.interceptors.request.use((e) => {
|
|
4
|
+
let r = a(e);
|
|
5
|
+
return r = s(r), r;
|
|
6
6
|
});
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
(
|
|
10
|
-
(
|
|
11
|
-
|
|
7
|
+
t.defaults.withCredentials = !0;
|
|
8
|
+
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) => {
|
|
11
|
+
u(e.response.status), Promise.reject(e.response);
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
let s;
|
|
17
|
-
s = a.data, n(s);
|
|
18
|
-
}).catch((a) => {
|
|
19
|
-
const s = {
|
|
20
|
-
msg: a.msg,
|
|
21
|
-
data: a.data
|
|
22
|
-
// 其他错误属性...
|
|
23
|
-
};
|
|
24
|
-
n(s);
|
|
25
|
-
});
|
|
26
|
-
}), g = (t) => {
|
|
27
|
-
r.defaults.baseURL = t;
|
|
14
|
+
const l = (e) => {
|
|
15
|
+
t.defaults.baseURL = e;
|
|
28
16
|
};
|
|
29
17
|
export {
|
|
30
|
-
|
|
31
|
-
g as setBaseUrl
|
|
18
|
+
l as setBaseUrl
|
|
32
19
|
};
|