yahee-components 0.0.5
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/_commonjsHelpers.js +8 -0
- package/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/_virtual/dayjs.min.js +4 -0
- package/es/_virtual/lodash.js +4 -0
- package/es/annex-upload/annex-upload.vue.js +158 -0
- package/es/annex-upload/annex-upload.vue2.js +4 -0
- package/es/annex-upload/index.js +7 -0
- package/es/annex-upload/mimeType.js +822 -0
- package/es/annex-upload/style/index.css +7 -0
- package/es/comprehensive-search/comprehensive-search.vue.js +234 -0
- package/es/comprehensive-search/comprehensive-search.vue2.js +4 -0
- package/es/comprehensive-search/index.js +7 -0
- package/es/comprehensive-search/style/index.css +24 -0
- package/es/copy/copy.vue.js +57 -0
- package/es/copy/copy.vue2.js +4 -0
- package/es/copy/index.js +7 -0
- package/es/copy/style/index.css +10 -0
- package/es/image-upload/image-upload.vue.js +176 -0
- package/es/image-upload/image-upload.vue2.js +4 -0
- package/es/image-upload/index.js +7 -0
- package/es/image-upload/style/index.css +33 -0
- package/es/index.js +18 -0
- package/es/input/index.js +7 -0
- package/es/input/input.vue.js +40 -0
- package/es/input/input.vue2.js +4 -0
- package/es/input/style/index.css +3 -0
- package/es/installs.js +17 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +53 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +141 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +71 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +46 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +77 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +133 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +173 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +70 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +14 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +13 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +89 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +19 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +30 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +15 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +83 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +63 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +51 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +9 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +9 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +233 -0
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
- package/es/node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js +181 -0
- package/es/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +3677 -0
- package/es/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +120 -0
- package/es/operation-log/index.js +7 -0
- package/es/operation-log/operation-log-content.vue.js +100 -0
- package/es/operation-log/operation-log-content.vue2.js +4 -0
- package/es/operation-log/operation-log-dialog.vue.js +70 -0
- package/es/operation-log/operation-log-dialog.vue2.js +4 -0
- package/es/operation-log/operation-log-form.vue.js +7 -0
- package/es/operation-log/operation-log-form.vue2.js +181 -0
- package/es/operation-log/operation-log.vue.js +231 -0
- package/es/operation-log/operation-log.vue2.js +4 -0
- package/es/operation-log/style/index.css +220 -0
- package/es/packages/components/api/log-server.js +54 -0
- package/es/packages/components/api/remarkApi.js +15 -0
- package/es/packages/components/api/requestRemark.js +47 -0
- package/es/packages/components/api/requestTools.js +62 -0
- package/es/packages/components/assets/images/errorimg.png.js +4 -0
- package/es/packages/components/assets/images/excel.png.js +4 -0
- package/es/packages/components/assets/images/file-word.png.js +4 -0
- package/es/packages/components/assets/images/pdf.png.js +4 -0
- package/es/packages/components/assets/images/ppt.png.js +4 -0
- package/es/packages/components/assets/images/vue.svg.js +4 -0
- package/es/packages/components/hooks/useClipboard.js +28 -0
- package/es/packages/components/hooks/useImg.js +15 -0
- package/es/packages/components/hooks/useImgPath.js +14 -0
- package/es/packages/components/hooks/useImport.js +31 -0
- package/es/packages/components/hooks/useUpload.js +24 -0
- package/es/style.css +1090 -0
- package/es/styles/custom.css +83 -0
- package/es/styles/globals.css +697 -0
- package/es/styles/index.css +787 -0
- package/es/styles/variables.css +32 -0
- package/es/utils/install.js +13 -0
- package/es/utils/storage.js +52 -0
- package/es/utils/translate.js +38 -0
- package/global.d.ts +10 -0
- package/lib/_virtual/_commonjsHelpers.js +1 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/_virtual/dayjs.min.js +1 -0
- package/lib/_virtual/lodash.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/annex-upload/style/index.css +7 -0
- package/lib/comprehensive-search/comprehensive-search.vue.js +1 -0
- package/lib/comprehensive-search/comprehensive-search.vue2.js +1 -0
- package/lib/comprehensive-search/index.js +1 -0
- package/lib/comprehensive-search/style/index.css +24 -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/copy/style/index.css +10 -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/image-upload/style/index.css +33 -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/input/style/index.css +3 -0
- package/lib/installs.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/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js +1 -0
- package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +27 -0
- package/lib/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.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/operation-log/style/index.css +220 -0
- package/lib/packages/components/api/log-server.js +1 -0
- package/lib/packages/components/api/remarkApi.js +1 -0
- package/lib/packages/components/api/requestRemark.js +1 -0
- package/lib/packages/components/api/requestTools.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/style.css +1090 -0
- package/lib/styles/custom.css +83 -0
- package/lib/styles/globals.css +697 -0
- package/lib/styles/index.css +787 -0
- package/lib/styles/variables.css +32 -0
- package/lib/utils/install.js +1 -0
- package/lib/utils/storage.js +1 -0
- package/lib/utils/translate.js +1 -0
- package/package.json +44 -0
- package/types/index.d.ts +1204 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { defineComponent as R, ref as d, reactive as $, onMounted as K, openBlock as c, createElementBlock as u, createVNode as s, unref as n, normalizeStyle as A, withCtx as x, Fragment as I, renderList as G, normalizeClass as J, createElementVNode as l, toDisplayString as p, createCommentVNode as B, withDirectives as Q, vModelText as q, createTextVNode as W } from "vue";
|
|
2
|
+
import { CaretRight as X, CaretLeft as Z } from "@element-plus/icons-vue";
|
|
3
|
+
import { RemarkApi as L } from "../packages/components/api/remarkApi.js";
|
|
4
|
+
import { ElScrollbar as ee, ElIcon as O, ElButton as te, ElMessage as f } from "element-plus";
|
|
5
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/badge.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/message.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/scrollbar.scss";
|
|
9
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
10
|
+
import { useUpload as oe } from "../packages/components/hooks/useUpload.js";
|
|
11
|
+
import { useFile as ae } from "../packages/components/hooks/useImg.js";
|
|
12
|
+
import ne from "./operation-log-form.vue.js";
|
|
13
|
+
import U from "./operation-log-content.vue.js";
|
|
14
|
+
import se from "./operation-log-dialog.vue.js";
|
|
15
|
+
import b from "../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js";
|
|
16
|
+
import { M2 as r } from "../utils/translate.js";
|
|
17
|
+
import le from "../annex-upload/annex-upload.vue.js";
|
|
18
|
+
import ie from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
|
|
19
|
+
/* empty css */
|
|
20
|
+
const re = { class: "yahee-operation-log" }, de = { class: "d-flex jc-end" }, ce = { class: "content text-color-secondary" }, ue = { class: "date fontSize-12 pull-right text-color-a4" }, pe = { class: "name" }, fe = { class: "name" }, me = { class: "d-flex" }, ge = { class: "content text-color-secondary" }, ve = { class: "date fontSize-12 text-color-a4" }, he = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "loading text-color-a4"
|
|
23
|
+
}, _e = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "no-more text-color-a4"
|
|
26
|
+
}, xe = ["placeholder"], ye = { class: "d-flex text-right marginT10" }, Ye = /* @__PURE__ */ R({
|
|
27
|
+
name: "YaheeCopy",
|
|
28
|
+
__name: "operation-log",
|
|
29
|
+
props: {
|
|
30
|
+
projectId: { default: "" }
|
|
31
|
+
},
|
|
32
|
+
setup(P) {
|
|
33
|
+
const y = P, m = d(!1), C = d(!1), _ = d(!1), D = d({}), i = $({
|
|
34
|
+
List: [],
|
|
35
|
+
LoginId: ""
|
|
36
|
+
}), g = d(""), v = d([]), a = {
|
|
37
|
+
PageIndex: -1,
|
|
38
|
+
StartOn: "",
|
|
39
|
+
EndOn: "",
|
|
40
|
+
Notes: "",
|
|
41
|
+
Mark: null,
|
|
42
|
+
UserIds: []
|
|
43
|
+
}, h = () => {
|
|
44
|
+
m.value = !0;
|
|
45
|
+
const e = new FormData();
|
|
46
|
+
e.append(
|
|
47
|
+
"filter",
|
|
48
|
+
JSON.stringify({
|
|
49
|
+
BusinessKey: y.projectId,
|
|
50
|
+
BusinessName: "PRODUCT_DEV",
|
|
51
|
+
PageIndex: a.PageIndex,
|
|
52
|
+
StartOn: a.StartOn,
|
|
53
|
+
EndOn: a.EndOn,
|
|
54
|
+
UserIds: a.UserIds,
|
|
55
|
+
Notes: a.Notes,
|
|
56
|
+
Mark: a.Mark
|
|
57
|
+
})
|
|
58
|
+
), L.findGlobalNotes(e).then((t) => {
|
|
59
|
+
var o;
|
|
60
|
+
i.LoginId = t.LoginId, a.PageIndex === 0 ? i.List = t.List : i.List = [...i.List, ...t.List], ((o = t == null ? void 0 : t.List) == null ? void 0 : o.length) === 0 && (C.value = !0);
|
|
61
|
+
}).finally(() => {
|
|
62
|
+
m.value = !1;
|
|
63
|
+
});
|
|
64
|
+
}, V = () => {
|
|
65
|
+
m.value || (m.value = !0, a.PageIndex += 1, h());
|
|
66
|
+
}, T = (e) => {
|
|
67
|
+
i.List = [], a.PageIndex = 0, a.StartOn = e.timeValue ? e.timeValue[0] : "", a.EndOn = e.timeValue ? e.timeValue[1] : "", a.UserIds = e.CreatedBy ? [e.CreatedBy] : [], a.Notes = e.search, a.Mark = e.Mark, h();
|
|
68
|
+
}, S = () => {
|
|
69
|
+
v.value.length > 0 && M(v.value[0]).then(async () => {
|
|
70
|
+
f.success(r("上传文件成功!")), a.PageIndex = 0, v.value = [], await h(), k();
|
|
71
|
+
});
|
|
72
|
+
}, F = (e) => {
|
|
73
|
+
M(e).then(() => {
|
|
74
|
+
f.success(r("上传文件成功!")), _.value = !1, a.PageIndex = 0, h();
|
|
75
|
+
});
|
|
76
|
+
}, M = (e) => {
|
|
77
|
+
const t = new FormData();
|
|
78
|
+
return t.append("BusinessKey", y.projectId), t.append("BusinessName", "PRODUCT_DEV"), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), L.insertglobalnotes(t);
|
|
79
|
+
}, j = () => {
|
|
80
|
+
if (!g.value) {
|
|
81
|
+
f.info(r("备注不能为空!"));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const e = new FormData();
|
|
85
|
+
e.append("BusinessKey", y.projectId), e.append("BusinessName", "PRODUCT_DEV"), e.append("notes", g.value), e.append("ViewTitle", "备注"), L.insertglobalnotes(e).then(async () => {
|
|
86
|
+
f.success(r("添加备注成功!")), a.PageIndex = 0, g.value = "", await h(), k();
|
|
87
|
+
});
|
|
88
|
+
}, Y = (e) => {
|
|
89
|
+
if (e.clipboardData || e.originalEvent) {
|
|
90
|
+
if (e.clipboardData.items.length === 0) {
|
|
91
|
+
f.error(r("复制文件到剪切板失败,请点击按钮上传!"));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (e.clipboardData.files.length > 0) {
|
|
95
|
+
_.value = !0;
|
|
96
|
+
for (let t = 0; t < e.clipboardData.files.length; t++) {
|
|
97
|
+
e.clipboardData.files[t].size / 1024 / 1024 < 100 || f.error(r("上传文件大小不能超过 100MB!"));
|
|
98
|
+
const { name: H } = e.clipboardData.files[t];
|
|
99
|
+
oe("115", e.clipboardData.files[t]).then((z) => {
|
|
100
|
+
D.value = {
|
|
101
|
+
fileName: H || "",
|
|
102
|
+
fileUrl: ae({ fileId: z[0] })
|
|
103
|
+
};
|
|
104
|
+
}).catch(() => {
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}, N = d(null), k = () => {
|
|
110
|
+
N.value.scrollTo({ top: 0, behavior: "smooth" });
|
|
111
|
+
}, E = d(0), w = d(null);
|
|
112
|
+
return K(() => {
|
|
113
|
+
const e = document.getElementsByClassName("log-form")[0].clientHeight;
|
|
114
|
+
E.value = window.innerHeight - e - w.value.offsetHeight - 90, V();
|
|
115
|
+
}), (e, t) => (c(), u("div", re, [
|
|
116
|
+
s(ne, {
|
|
117
|
+
ref: "logForm",
|
|
118
|
+
class: "text-right log-form",
|
|
119
|
+
"project-id": e.projectId,
|
|
120
|
+
onFilterChange: T
|
|
121
|
+
}, null, 8, ["project-id"]),
|
|
122
|
+
s(n(ee), {
|
|
123
|
+
ref_key: "infiniteList",
|
|
124
|
+
ref: N,
|
|
125
|
+
class: "infinite-list-wrapper",
|
|
126
|
+
style: A({ height: E.value + "px" })
|
|
127
|
+
}, {
|
|
128
|
+
default: x(() => [
|
|
129
|
+
(c(!0), u(I, null, G(i.List, (o) => (c(), u("div", {
|
|
130
|
+
key: o.Id,
|
|
131
|
+
class: J(i.LoginId == o.CreatedBy ? "list-item-right" : "list-item-left")
|
|
132
|
+
}, [
|
|
133
|
+
i.LoginId == o.CreatedBy ? (c(), u(I, { key: 0 }, [
|
|
134
|
+
l("div", null, [
|
|
135
|
+
l("div", de, [
|
|
136
|
+
l("div", ce, [
|
|
137
|
+
s(U, {
|
|
138
|
+
id: i.LoginId,
|
|
139
|
+
info: o
|
|
140
|
+
}, null, 8, ["id", "info"])
|
|
141
|
+
]),
|
|
142
|
+
s(n(O), {
|
|
143
|
+
color: "#f1f1f1",
|
|
144
|
+
size: "20"
|
|
145
|
+
}, {
|
|
146
|
+
default: x(() => [
|
|
147
|
+
s(n(X))
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
l("div", ue, p(n(b)(o.CreatedOnStr).format("YYYY-MM-DD HH: mm: ss")), 1)
|
|
153
|
+
]),
|
|
154
|
+
l("div", pe, p(o.CreatedName), 1)
|
|
155
|
+
], 64)) : (c(), u(I, { key: 1 }, [
|
|
156
|
+
l("div", fe, p(o.CreatedName), 1),
|
|
157
|
+
l("div", null, [
|
|
158
|
+
l("div", me, [
|
|
159
|
+
s(n(O), {
|
|
160
|
+
color: "#ccc",
|
|
161
|
+
size: "20"
|
|
162
|
+
}, {
|
|
163
|
+
default: x(() => [
|
|
164
|
+
s(n(Z))
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
l("div", ge, [
|
|
169
|
+
s(U, {
|
|
170
|
+
id: i.LoginId,
|
|
171
|
+
info: o
|
|
172
|
+
}, null, 8, ["id", "info"])
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
l("div", ve, p(n(b)(o.CreatedOnStr).format("YYYY-MM-DD HH:mm:ss")), 1)
|
|
176
|
+
])
|
|
177
|
+
], 64))
|
|
178
|
+
], 2))), 128)),
|
|
179
|
+
s(n(ie), {
|
|
180
|
+
distance: 10,
|
|
181
|
+
onInfinite: V
|
|
182
|
+
}),
|
|
183
|
+
m.value ? (c(), u("div", he, p(n(r)("加载中...")), 1)) : B("", !0),
|
|
184
|
+
C.value ? (c(), u("div", _e, p(n(r)("没有更多了!")), 1)) : B("", !0)
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["style"]),
|
|
188
|
+
Q(l("textarea", {
|
|
189
|
+
ref_key: "logText",
|
|
190
|
+
ref: w,
|
|
191
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => g.value = o),
|
|
192
|
+
class: "content-div",
|
|
193
|
+
placeholder: n(r)("可通过 Ctrl+V 直接上传图片/文件"),
|
|
194
|
+
contenteditable: "true",
|
|
195
|
+
onPaste: Y
|
|
196
|
+
}, null, 40, xe), [
|
|
197
|
+
[q, g.value]
|
|
198
|
+
]),
|
|
199
|
+
l("div", ye, [
|
|
200
|
+
s(le, {
|
|
201
|
+
modelValue: v.value,
|
|
202
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => v.value = o),
|
|
203
|
+
"show-tips": !1,
|
|
204
|
+
"show-list": !1,
|
|
205
|
+
accept: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx,.ppt,.txt",
|
|
206
|
+
onChange: S
|
|
207
|
+
}, null, 8, ["modelValue"]),
|
|
208
|
+
s(n(te), {
|
|
209
|
+
type: "success",
|
|
210
|
+
size: "small",
|
|
211
|
+
class: "marginL6",
|
|
212
|
+
onClick: t[2] || (t[2] = (o) => j())
|
|
213
|
+
}, {
|
|
214
|
+
default: x(() => [
|
|
215
|
+
W(p(n(r)("添加备注")), 1)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})
|
|
219
|
+
]),
|
|
220
|
+
s(se, {
|
|
221
|
+
modelValue: _.value,
|
|
222
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => _.value = o),
|
|
223
|
+
"doc-info": D.value,
|
|
224
|
+
onConfirmUpload: F
|
|
225
|
+
}, null, 8, ["modelValue", "doc-info"])
|
|
226
|
+
]));
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
export {
|
|
230
|
+
Ye as default
|
|
231
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
.yahee-operation-log {
|
|
2
|
+
min-width: 350px;
|
|
3
|
+
}
|
|
4
|
+
.yahee-operation-log .infinite-list-wrapper {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
padding: 10px 4px;
|
|
7
|
+
}
|
|
8
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
gap: 10px;
|
|
12
|
+
margin-bottom: 18px;
|
|
13
|
+
}
|
|
14
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left .date {
|
|
15
|
+
margin-top: 6px;
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left .name {
|
|
19
|
+
flex: none;
|
|
20
|
+
height: -moz-fit-content;
|
|
21
|
+
height: fit-content;
|
|
22
|
+
padding: 5px 8px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
border-radius: 2px;
|
|
25
|
+
background: #E8FFE8;
|
|
26
|
+
}
|
|
27
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-left .content {
|
|
28
|
+
border: 1px solid #ccc;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
padding: 10px;
|
|
31
|
+
margin-left: -8px;
|
|
32
|
+
background: #F7FFF7;
|
|
33
|
+
}
|
|
34
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
margin-bottom: 18px;
|
|
39
|
+
}
|
|
40
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right .date {
|
|
41
|
+
margin-top: 6px;
|
|
42
|
+
margin-right: 8px;
|
|
43
|
+
}
|
|
44
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right .name {
|
|
45
|
+
flex: none;
|
|
46
|
+
height: -moz-fit-content;
|
|
47
|
+
height: fit-content;
|
|
48
|
+
padding: 5px 8px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
border-radius: 2px;
|
|
51
|
+
background: #f1f1f1;
|
|
52
|
+
}
|
|
53
|
+
.yahee-operation-log .infinite-list-wrapper .list-item-right .content {
|
|
54
|
+
text-align: right;
|
|
55
|
+
padding: 10px;
|
|
56
|
+
margin-right: -8px;
|
|
57
|
+
border: 1px solid #f1f1f1;
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
background: #FAFAFA;
|
|
60
|
+
}
|
|
61
|
+
.yahee-operation-log .bg-link {
|
|
62
|
+
color: #3366cc;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
.yahee-operation-log .imgBox {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
}
|
|
69
|
+
.yahee-operation-log .timeBox {
|
|
70
|
+
margin: 0 5px;
|
|
71
|
+
}
|
|
72
|
+
.yahee-operation-log .input-with-select {
|
|
73
|
+
width: 150px;
|
|
74
|
+
}
|
|
75
|
+
.yahee-operation-log .lt-created-time {
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
.yahee-operation-log .rt-created-time {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
}
|
|
81
|
+
.yahee-operation-log .content-div {
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 121px;
|
|
84
|
+
border: 1px solid #ccc;
|
|
85
|
+
padding: 10px;
|
|
86
|
+
}
|
|
87
|
+
.yahee-operation-log .titleRemarks {
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
padding-left: 5px;
|
|
91
|
+
border-bottom: 1px solid #eee;
|
|
92
|
+
height: 30px;
|
|
93
|
+
line-height: 30px;
|
|
94
|
+
}
|
|
95
|
+
.yahee-operation-log .remarkContent {
|
|
96
|
+
position: relative;
|
|
97
|
+
margin-bottom: 20px;
|
|
98
|
+
border: 1px solid #eee;
|
|
99
|
+
}
|
|
100
|
+
.yahee-operation-log .remarkContent .buttonQuill {
|
|
101
|
+
position: absolute;
|
|
102
|
+
bottom: -35px;
|
|
103
|
+
right: 10px;
|
|
104
|
+
display: flex;
|
|
105
|
+
}
|
|
106
|
+
.yahee-operation-log .remarkContent .buttonQuill button {
|
|
107
|
+
margin-right: 10px;
|
|
108
|
+
}
|
|
109
|
+
.yahee-operation-log .content-main {
|
|
110
|
+
width: 100%;
|
|
111
|
+
}
|
|
112
|
+
.yahee-operation-log .span-backG {
|
|
113
|
+
position: relative;
|
|
114
|
+
display: flex;
|
|
115
|
+
min-height: 70px;
|
|
116
|
+
width: 100%;
|
|
117
|
+
margin-top: 10px;
|
|
118
|
+
}
|
|
119
|
+
.yahee-operation-log .bubble-tail {
|
|
120
|
+
position: absolute;
|
|
121
|
+
right: 85px;
|
|
122
|
+
top: 5px;
|
|
123
|
+
width: 0;
|
|
124
|
+
height: 0;
|
|
125
|
+
border-width: 6px;
|
|
126
|
+
border-style: solid;
|
|
127
|
+
border-color: transparent;
|
|
128
|
+
border-left-width: 9px;
|
|
129
|
+
border-left-color: currentColor;
|
|
130
|
+
color: #eee;
|
|
131
|
+
}
|
|
132
|
+
.yahee-operation-log .leftbubble-tail {
|
|
133
|
+
position: absolute;
|
|
134
|
+
left: 84px;
|
|
135
|
+
top: 5px;
|
|
136
|
+
width: 0;
|
|
137
|
+
height: 0;
|
|
138
|
+
border-width: 7px;
|
|
139
|
+
border-style: solid;
|
|
140
|
+
border-color: transparent;
|
|
141
|
+
margin-bottom: -39px;
|
|
142
|
+
border-right-width: 10px;
|
|
143
|
+
border-right-color: currentColor;
|
|
144
|
+
color: #eee;
|
|
145
|
+
}
|
|
146
|
+
.yahee-operation-log .r-text {
|
|
147
|
+
float: right;
|
|
148
|
+
margin-right: 100px;
|
|
149
|
+
max-width: 420px;
|
|
150
|
+
min-height: 52px;
|
|
151
|
+
}
|
|
152
|
+
.yahee-operation-log .r-text-main {
|
|
153
|
+
background: #FAFAFA;
|
|
154
|
+
border: 1px solid #ccc;
|
|
155
|
+
border-radius: 2px;
|
|
156
|
+
padding: 4px;
|
|
157
|
+
word-break: break-all;
|
|
158
|
+
text-align: right;
|
|
159
|
+
}
|
|
160
|
+
.yahee-operation-log .l-text {
|
|
161
|
+
margin-left: 100px;
|
|
162
|
+
max-width: 420px;
|
|
163
|
+
min-height: 52px;
|
|
164
|
+
}
|
|
165
|
+
.yahee-operation-log .l-text-main {
|
|
166
|
+
background: #F7FFF7;
|
|
167
|
+
border: 1px solid #ccc;
|
|
168
|
+
border-radius: 2px;
|
|
169
|
+
padding: 4px;
|
|
170
|
+
display: inline-block;
|
|
171
|
+
min-width: 123px;
|
|
172
|
+
word-break: break-all;
|
|
173
|
+
}
|
|
174
|
+
.yahee-operation-log .r-name {
|
|
175
|
+
border: 1px solid #ccc;
|
|
176
|
+
position: absolute;
|
|
177
|
+
right: 10px;
|
|
178
|
+
width: 65px;
|
|
179
|
+
line-height: 17px;
|
|
180
|
+
padding: 3px 0 5px;
|
|
181
|
+
text-align: center;
|
|
182
|
+
border: 1px solid #ccc;
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
background: #f1f1f1;
|
|
185
|
+
word-break: break-all;
|
|
186
|
+
}
|
|
187
|
+
.yahee-operation-log .l-name {
|
|
188
|
+
border: 1px solid #ccc;
|
|
189
|
+
position: absolute;
|
|
190
|
+
left: 10px;
|
|
191
|
+
width: 65px;
|
|
192
|
+
line-height: 17px;
|
|
193
|
+
padding: 3px 0 5px;
|
|
194
|
+
text-align: center;
|
|
195
|
+
border: 1px solid #ccc;
|
|
196
|
+
border-radius: 2px;
|
|
197
|
+
background: #E8FFE8;
|
|
198
|
+
float: right;
|
|
199
|
+
word-break: break-all;
|
|
200
|
+
}
|
|
201
|
+
.yahee-operation-log .text-m {
|
|
202
|
+
word-break: break-all;
|
|
203
|
+
white-space: pre-line;
|
|
204
|
+
}
|
|
205
|
+
.yahee-operation-log .loading {
|
|
206
|
+
display: flex;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
align-items: center;
|
|
209
|
+
margin-bottom: 36px;
|
|
210
|
+
}
|
|
211
|
+
.yahee-operation-log .no-more {
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
align-items: center;
|
|
215
|
+
margin-bottom: 36px;
|
|
216
|
+
}
|
|
217
|
+
.yahee-operation-log .el-form--inline .el-form-item {
|
|
218
|
+
margin-right: 10px !important;
|
|
219
|
+
margin-bottom: 6px !important;
|
|
220
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import n from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
|
|
2
|
+
import { storage as m } from "../../../utils/storage.js";
|
|
3
|
+
import { ElMessageBox as s } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/message-box.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/overlay.scss";
|
|
9
|
+
const c = "https://newerp.yaheecloud.com/PMS/Latest/", r = n.create({
|
|
10
|
+
baseURL: c,
|
|
11
|
+
timeout: 3e4,
|
|
12
|
+
withCredentials: !0
|
|
13
|
+
});
|
|
14
|
+
r.interceptors.request.use(
|
|
15
|
+
(t) => {
|
|
16
|
+
const e = m.get("token");
|
|
17
|
+
return e && (t.headers.token = e), t;
|
|
18
|
+
},
|
|
19
|
+
(t) => Promise.reject(t)
|
|
20
|
+
);
|
|
21
|
+
const a = localStorage.getItem("isTimeOutAlert");
|
|
22
|
+
r.interceptors.response.use(
|
|
23
|
+
(t) => t.status === 200 && t.data ? Promise.resolve(t.data) : t,
|
|
24
|
+
(t) => {
|
|
25
|
+
if (t.response)
|
|
26
|
+
switch (t.response.status) {
|
|
27
|
+
case 404:
|
|
28
|
+
s.alert("网络请求地址不存在!");
|
|
29
|
+
break;
|
|
30
|
+
case 405:
|
|
31
|
+
s.alert("请求方式错误,请确认是GET还是POST");
|
|
32
|
+
break;
|
|
33
|
+
case 500:
|
|
34
|
+
s.alert("服务器错误!");
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
console.error(t.response.status, t.message);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
return t.code === "ECONNABORTED" && a && a === "0" && (s.alert("请求超时,请检查您的网络连接或稍后重试。"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(t);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const O = async (t, e, o) => {
|
|
44
|
+
const i = Object.assign({}, o, {
|
|
45
|
+
headers: {
|
|
46
|
+
"Content-Type": "multipart/form-data"
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
return r.post(t, e, i);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
r as default,
|
|
53
|
+
O as upload
|
|
54
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { post as t } from "./requestRemark.js";
|
|
2
|
+
class n {
|
|
3
|
+
static async getGlobalNotesUsers(o) {
|
|
4
|
+
return t("Common/GetGlobalNotesUsers", o);
|
|
5
|
+
}
|
|
6
|
+
static async findGlobalNotes(o) {
|
|
7
|
+
return t("Common/FindGlobalNotes", o);
|
|
8
|
+
}
|
|
9
|
+
static async insertglobalnotes(o) {
|
|
10
|
+
return t("Common/Insertglobalnotes", o);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
n as RemarkApi
|
|
15
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import i from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
|
|
2
|
+
import { storage as m } from "../../../utils/storage.js";
|
|
3
|
+
import { ElMessageBox as s } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/message-box.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/overlay.scss";
|
|
9
|
+
const c = "https://newerp.yaheecloud.com/PMS/Latest/", r = i.create({
|
|
10
|
+
baseURL: c,
|
|
11
|
+
timeout: 3e4,
|
|
12
|
+
withCredentials: !0
|
|
13
|
+
});
|
|
14
|
+
r.interceptors.request.use(
|
|
15
|
+
(e) => {
|
|
16
|
+
const t = m.get("token");
|
|
17
|
+
return t && (e.headers.token = t), e;
|
|
18
|
+
},
|
|
19
|
+
(e) => Promise.reject(e)
|
|
20
|
+
);
|
|
21
|
+
const o = localStorage.getItem("isTimeOutAlert");
|
|
22
|
+
r.interceptors.response.use(
|
|
23
|
+
(e) => e.status === 200 && e.data ? Promise.resolve(e.data) : e,
|
|
24
|
+
(e) => {
|
|
25
|
+
if (e.response)
|
|
26
|
+
switch (e.response.status) {
|
|
27
|
+
case 404:
|
|
28
|
+
s.alert("网络请求地址不存在!");
|
|
29
|
+
break;
|
|
30
|
+
case 405:
|
|
31
|
+
s.alert("请求方式错误,请确认是GET还是POST");
|
|
32
|
+
break;
|
|
33
|
+
case 500:
|
|
34
|
+
s.alert("服务器错误!");
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
console.error(e.response.status, e.message);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
return e.code === "ECONNABORTED" && o && o == "0" && (s.alert("请求超时,请检查您的网络连接或稍后重试。"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(e);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const h = async (e, t, a) => r.post(e, t, a);
|
|
44
|
+
export {
|
|
45
|
+
r as default,
|
|
46
|
+
h as post
|
|
47
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import i from "../../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
|
|
2
|
+
import { storage as m } from "../../../utils/storage.js";
|
|
3
|
+
import { ElMessageBox as a } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/message-box.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/overlay.scss";
|
|
9
|
+
const l = "https://erptools.yaheecloud.com/", s = i.create({
|
|
10
|
+
baseURL: l,
|
|
11
|
+
timeout: 3e4,
|
|
12
|
+
withCredentials: !0
|
|
13
|
+
});
|
|
14
|
+
s.interceptors.request.use(
|
|
15
|
+
(t) => {
|
|
16
|
+
const e = m.get("token");
|
|
17
|
+
return e && (t.headers.token = e), t;
|
|
18
|
+
},
|
|
19
|
+
(t) => Promise.reject(t)
|
|
20
|
+
);
|
|
21
|
+
const o = localStorage.getItem("isTimeOutAlert");
|
|
22
|
+
s.interceptors.response.use(
|
|
23
|
+
(t) => {
|
|
24
|
+
if (t.status === 200 && t.data) {
|
|
25
|
+
const e = t.data.code || 0;
|
|
26
|
+
if (e == 200)
|
|
27
|
+
return t.data;
|
|
28
|
+
if (e == 1001 || e == 1002)
|
|
29
|
+
return Promise.reject(t);
|
|
30
|
+
if (t.data && t.data.msg && t.data.msg != "")
|
|
31
|
+
return Promise.resolve(t.data);
|
|
32
|
+
} else
|
|
33
|
+
return t;
|
|
34
|
+
},
|
|
35
|
+
(t) => {
|
|
36
|
+
if (t.response)
|
|
37
|
+
switch (t.response.status) {
|
|
38
|
+
case 404:
|
|
39
|
+
a.alert("网络请求地址不存在!");
|
|
40
|
+
break;
|
|
41
|
+
case 405:
|
|
42
|
+
a.alert("请求方式错误,请确认是GET还是POST");
|
|
43
|
+
break;
|
|
44
|
+
case 500:
|
|
45
|
+
a.alert("服务器错误!");
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
console.error(t.response.status, t.message);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
return t.code === "ECONNABORTED" && o && o == "0" && (a.alert("请求超时,请检查您的网络连接或稍后重试。"), localStorage.setItem("isTimeOutAlert", "1")), Promise.reject(t);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
const k = async (t, e, r) => (r = Object.assign(r, {
|
|
55
|
+
headers: {
|
|
56
|
+
"Content-Type": "multipart/form-data"
|
|
57
|
+
}
|
|
58
|
+
}), s.post(t, e, r));
|
|
59
|
+
export {
|
|
60
|
+
s as default,
|
|
61
|
+
k as upload
|
|
62
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAByElEQVRYR+2X0XGDMAyGAxOkG9ANkg3IBsACbUboBLlMkG7QTgBsUDYoG4QNygTQX5ztMy4OYOuOl+YFIhv9n4VliWC38S/YWH/3DzCKQJIk+zAML33fx3g1h6WvJwiC9zzP3+R8+IlgKwwfDWxV13XXsiwbOVcBkDgm3DGwXyqszauKojjRfyH+hdvI4qfFAo8SQgFkWfaBgVc8VON6xoTaBmKI0PyUHNrsAizGAi+4p+snInYmuwJI05RWH8HZCc4qTnHj1ZBOi4g9mQA9GTBgzQyXlZsLwUJHOnoEHgJwiBOMEwCXuBMAp7gTAEL2LfJZ7X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/vnwC87mBen7fuc7wrqsUzOewdgXrBYn/+/KZ4fvRXWD+j6O7wXqIBWQlIZAHQBa/LkL0qzmBDhIs62Z45g+cE4F6AMSGOQYm9iLajgEUGzAgBNSDHDvEOhymjq4eAE1igDyNnEQGzAOgJPSuswyahHjBoQ+KflCygYX266JIcPJg4uFl4LR2Y2BV0USJNZDmAfOAQFYtPCRBjvwJzcSwNA/KAyAxGAClf1AeQU4+A+oB9DyAnHZhMfDEWYlgkh6wGBj1ADRuBiQGQEmEVVkTmMZP4kwi7PrmeOVhGkGV2t+XT0gq+5EtJasYJZiw6ahg1AN0DGysVuGLgfdAHTRfZkBhAHwAegA+dzZgSw3I9wTjBtl99wJh+rEt9rhPvuE01/mB4d//QNkDDw5g9QBIELTc5j8TUz29Fn0Q6eUPDP8ZLjD+/18oc+DBBWQ9AL0R70AZJPsVAAAAAElFTkSuQmCC";
|
|
2
|
+
export {
|
|
3
|
+
A as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|