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,120 @@
|
|
|
1
|
+
import { defineComponent as C, ref as v, toRefs as $, watch as H, onMounted as N, onUnmounted as M, openBlock as h, createElementBlock as x, withDirectives as O, createElementVNode as r, renderSlot as u, createVNode as R, vShow as T, toDisplayString as g, createCommentVNode as y, nextTick as E, pushScopeId as V, popScopeId as q } from "vue";
|
|
2
|
+
function D(t, o = null) {
|
|
3
|
+
if (!t)
|
|
4
|
+
return !1;
|
|
5
|
+
const e = t.getBoundingClientRect(), n = o ? o.getBoundingClientRect() : { top: 0, left: 0, bottom: window.innerHeight, right: window.innerWidth };
|
|
6
|
+
return e.bottom >= n.top && e.top <= n.bottom && e.right >= n.left && e.left <= n.right;
|
|
7
|
+
}
|
|
8
|
+
async function U(t) {
|
|
9
|
+
return t ? (await E(), t.value instanceof HTMLElement ? t.value : t.value ? document.querySelector(t.value) : null) : null;
|
|
10
|
+
}
|
|
11
|
+
function W(t) {
|
|
12
|
+
let o = `0px 0px ${t.distance}px 0px`;
|
|
13
|
+
t.top && (o = `${t.distance}px 0px 0px 0px`);
|
|
14
|
+
const e = new IntersectionObserver(
|
|
15
|
+
(n) => {
|
|
16
|
+
n[0].isIntersecting && (t.firstload && t.emit(), t.firstload = !0);
|
|
17
|
+
},
|
|
18
|
+
{ root: t.parentEl, rootMargin: o }
|
|
19
|
+
);
|
|
20
|
+
return t.infiniteLoading.value && e.observe(t.infiniteLoading.value), e;
|
|
21
|
+
}
|
|
22
|
+
async function w(t, o) {
|
|
23
|
+
if (await E(), !t.top)
|
|
24
|
+
return;
|
|
25
|
+
const e = t.parentEl || document.documentElement;
|
|
26
|
+
e.scrollTop = e.scrollHeight - o;
|
|
27
|
+
}
|
|
28
|
+
const b = (t, o) => {
|
|
29
|
+
const e = t.__vccOpts || t;
|
|
30
|
+
for (const [n, a] of o)
|
|
31
|
+
e[n] = a;
|
|
32
|
+
return e;
|
|
33
|
+
}, j = {}, z = (t) => (V("data-v-d3e37633"), t = t(), q(), t), A = { class: "container" }, F = /* @__PURE__ */ z(() => /* @__PURE__ */ r("div", { class: "spinner" }, null, -1)), G = [
|
|
34
|
+
F
|
|
35
|
+
];
|
|
36
|
+
function J(t, o) {
|
|
37
|
+
return h(), x("div", A, G);
|
|
38
|
+
}
|
|
39
|
+
const K = /* @__PURE__ */ b(j, [["render", J], ["__scopeId", "data-v-d3e37633"]]), P = { class: "state-error" }, Q = /* @__PURE__ */ C({
|
|
40
|
+
__name: "InfiniteLoading",
|
|
41
|
+
props: {
|
|
42
|
+
top: { type: Boolean, default: !1 },
|
|
43
|
+
target: {},
|
|
44
|
+
distance: { default: 0 },
|
|
45
|
+
identifier: {},
|
|
46
|
+
firstload: { type: Boolean, default: !0 },
|
|
47
|
+
slots: {}
|
|
48
|
+
},
|
|
49
|
+
emits: ["infinite"],
|
|
50
|
+
setup(t, { emit: o }) {
|
|
51
|
+
const e = t;
|
|
52
|
+
let n = null, a = 0;
|
|
53
|
+
const d = v(null), l = v(""), { top: k, firstload: I, distance: _ } = e, { identifier: L, target: S } = $(e), i = {
|
|
54
|
+
infiniteLoading: d,
|
|
55
|
+
top: k,
|
|
56
|
+
firstload: I,
|
|
57
|
+
distance: _,
|
|
58
|
+
parentEl: null,
|
|
59
|
+
emit() {
|
|
60
|
+
a = (i.parentEl || document.documentElement).scrollHeight, p.loading(), o("infinite", p);
|
|
61
|
+
}
|
|
62
|
+
}, p = {
|
|
63
|
+
loading() {
|
|
64
|
+
l.value = "loading";
|
|
65
|
+
},
|
|
66
|
+
async loaded() {
|
|
67
|
+
l.value = "loaded", await w(i, a), D(d.value, i.parentEl) && i.emit();
|
|
68
|
+
},
|
|
69
|
+
async complete() {
|
|
70
|
+
l.value = "complete", await w(i, a), n == null || n.disconnect();
|
|
71
|
+
},
|
|
72
|
+
error() {
|
|
73
|
+
l.value = "error";
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
function f() {
|
|
77
|
+
n == null || n.disconnect(), n = W(i);
|
|
78
|
+
}
|
|
79
|
+
return H(L, f), N(async () => {
|
|
80
|
+
i.parentEl = await U(S), f();
|
|
81
|
+
}), M(() => n == null ? void 0 : n.disconnect()), (s, m) => (h(), x("div", {
|
|
82
|
+
ref_key: "infiniteLoading",
|
|
83
|
+
ref: d,
|
|
84
|
+
class: "v3-infinite-loading"
|
|
85
|
+
}, [
|
|
86
|
+
O(r("div", null, [
|
|
87
|
+
u(s.$slots, "spinner", {}, () => [
|
|
88
|
+
R(K)
|
|
89
|
+
], !0)
|
|
90
|
+
], 512), [
|
|
91
|
+
[T, l.value == "loading"]
|
|
92
|
+
]),
|
|
93
|
+
l.value == "complete" ? u(s.$slots, "complete", { key: 0 }, () => {
|
|
94
|
+
var c;
|
|
95
|
+
return [
|
|
96
|
+
r("span", null, g(((c = s.slots) == null ? void 0 : c.complete) || "No more results!"), 1)
|
|
97
|
+
];
|
|
98
|
+
}, !0) : y("", !0),
|
|
99
|
+
l.value == "error" ? u(s.$slots, "error", {
|
|
100
|
+
key: 1,
|
|
101
|
+
retry: i.emit
|
|
102
|
+
}, () => {
|
|
103
|
+
var c;
|
|
104
|
+
return [
|
|
105
|
+
r("span", P, [
|
|
106
|
+
r("span", null, g(((c = s.slots) == null ? void 0 : c.error) || "Oops something went wrong!"), 1),
|
|
107
|
+
r("button", {
|
|
108
|
+
class: "retry",
|
|
109
|
+
onClick: m[0] || (m[0] = //@ts-ignore
|
|
110
|
+
(...B) => i.emit && i.emit(...B))
|
|
111
|
+
}, "retry")
|
|
112
|
+
])
|
|
113
|
+
];
|
|
114
|
+
}, !0) : y("", !0)
|
|
115
|
+
], 512));
|
|
116
|
+
}
|
|
117
|
+
}), X = /* @__PURE__ */ b(Q, [["__scopeId", "data-v-4bdee133"]]);
|
|
118
|
+
export {
|
|
119
|
+
X as default
|
|
120
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as h, computed as d, openBlock as i, createElementBlock as n, createElementVNode as e, normalizeClass as u, toDisplayString as s, createVNode as f, unref as o, withCtx as m } from "vue";
|
|
2
|
+
import c from "../packages/components/hooks/useImgPath.js";
|
|
3
|
+
import { ElImage as g, ElIcon as N } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/image.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/image-viewer.scss";
|
|
7
|
+
import { Document as k } from "@element-plus/icons-vue";
|
|
8
|
+
const v = { key: 0 }, x = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "d-flex ai-end"
|
|
11
|
+
}, y = ["src"], T = ["href"], b = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "d-flex ai-end"
|
|
14
|
+
}, w = ["src"], W = ["href"], B = {
|
|
15
|
+
key: 3,
|
|
16
|
+
class: "d-flex ai-end"
|
|
17
|
+
}, C = ["src"], E = ["href"], z = {
|
|
18
|
+
key: 4,
|
|
19
|
+
class: "d-flex ai-end"
|
|
20
|
+
}, I = ["src"], j = ["href"], D = {
|
|
21
|
+
key: 5,
|
|
22
|
+
class: "d-flex ai-end"
|
|
23
|
+
}, H = ["href"], L = ["innerHTML"], J = /* @__PURE__ */ h({
|
|
24
|
+
__name: "operation-log-content",
|
|
25
|
+
props: {
|
|
26
|
+
info: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
id: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(t) {
|
|
37
|
+
const l = t, a = d(() => l.info.Notes.replace(/\n/g, "<br/>")), r = d(() => l.info.Notes.includes("http") ? l.info.Title.split(".")[0] : l.info.Title);
|
|
38
|
+
return (M, S) => (i(), n("div", null, [
|
|
39
|
+
e("div", {
|
|
40
|
+
class: u(["fontsize-15 paddingB10 text-color-primary", t.id == t.info.CreatedBy ? "d-flex" : ""])
|
|
41
|
+
}, s(r.value), 3),
|
|
42
|
+
t.info.Notes.includes(".jpg") && t.info.Notes.startsWith("http") ? (i(), n("div", v, [
|
|
43
|
+
f(o(g), {
|
|
44
|
+
class: "img",
|
|
45
|
+
src: t.info.Notes,
|
|
46
|
+
"preview-src-list": [t.info.Notes]
|
|
47
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
48
|
+
])) : t.info.Notes.includes(".word") && t.info.Notes.startsWith("http") ? (i(), n("div", x, [
|
|
49
|
+
e("img", {
|
|
50
|
+
src: o(c)("file-word.png")
|
|
51
|
+
}, null, 8, y),
|
|
52
|
+
e("a", {
|
|
53
|
+
href: t.info.Notes,
|
|
54
|
+
target: "_blank"
|
|
55
|
+
}, s(t.info.Title), 9, T)
|
|
56
|
+
])) : t.info.Notes.includes(".pdf") && t.info.Notes.startsWith("http") ? (i(), n("div", b, [
|
|
57
|
+
e("img", {
|
|
58
|
+
src: o(c)("pdf.png")
|
|
59
|
+
}, null, 8, w),
|
|
60
|
+
e("a", {
|
|
61
|
+
href: t.info.Notes,
|
|
62
|
+
target: "_blank"
|
|
63
|
+
}, s(t.info.Title), 9, W)
|
|
64
|
+
])) : t.info.Notes.includes(".ppt") && t.info.Notes.startsWith("http") ? (i(), n("div", B, [
|
|
65
|
+
e("img", {
|
|
66
|
+
src: o(c)("ppt.png")
|
|
67
|
+
}, null, 8, C),
|
|
68
|
+
e("a", {
|
|
69
|
+
href: t.info.Notes,
|
|
70
|
+
target: "_blank"
|
|
71
|
+
}, s(t.info.Title), 9, E)
|
|
72
|
+
])) : t.info.Notes.includes(".xls") && t.info.Notes.startsWith("http") ? (i(), n("div", z, [
|
|
73
|
+
e("img", {
|
|
74
|
+
src: o(c)("excel.png")
|
|
75
|
+
}, null, 8, I),
|
|
76
|
+
e("a", {
|
|
77
|
+
href: t.info.Notes,
|
|
78
|
+
target: "_blank"
|
|
79
|
+
}, s(t.info.Title), 9, j)
|
|
80
|
+
])) : t.info.Notes.includes("http") ? (i(), n("div", D, [
|
|
81
|
+
f(o(N), { size: "40" }, {
|
|
82
|
+
default: m(() => [
|
|
83
|
+
f(o(k))
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
e("a", {
|
|
88
|
+
href: t.info.Notes,
|
|
89
|
+
target: "_blank"
|
|
90
|
+
}, s(t.info.Title), 9, H)
|
|
91
|
+
])) : (i(), n("div", {
|
|
92
|
+
key: 6,
|
|
93
|
+
innerHTML: a.value
|
|
94
|
+
}, null, 8, L))
|
|
95
|
+
]));
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export {
|
|
99
|
+
J as default
|
|
100
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as u, openBlock as g, createBlock as h, unref as e, withCtx as t, createElementVNode as n, createVNode as c, createTextVNode as r, toDisplayString as l } from "vue";
|
|
2
|
+
import { M2 as a } from "../utils/translate.js";
|
|
3
|
+
import { ElDialog as V, ElButton as f } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/dialog.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/overlay.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
8
|
+
const _ = ["href"], y = { class: "dialog-footer" }, E = /* @__PURE__ */ u({
|
|
9
|
+
__name: "operation-log-dialog",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
docInfo: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "confirmUpload"],
|
|
22
|
+
setup(o, { emit: m }) {
|
|
23
|
+
const p = o, i = m, d = () => {
|
|
24
|
+
i("update:modelValue", !1);
|
|
25
|
+
}, s = () => {
|
|
26
|
+
i("confirmUpload", p.docInfo);
|
|
27
|
+
};
|
|
28
|
+
return (k, x) => (g(), h(e(V), {
|
|
29
|
+
"model-value": o.modelValue,
|
|
30
|
+
width: "600px",
|
|
31
|
+
title: e(a)("上传文件"),
|
|
32
|
+
draggable: "",
|
|
33
|
+
"close-on-click-modal": !1,
|
|
34
|
+
onClose: d
|
|
35
|
+
}, {
|
|
36
|
+
footer: t(() => [
|
|
37
|
+
n("div", y, [
|
|
38
|
+
c(e(f), {
|
|
39
|
+
type: "primary",
|
|
40
|
+
plain: "",
|
|
41
|
+
onClick: s
|
|
42
|
+
}, {
|
|
43
|
+
default: t(() => [
|
|
44
|
+
r(l(e(a)("确认")), 1)
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}),
|
|
48
|
+
c(e(f), {
|
|
49
|
+
type: "default",
|
|
50
|
+
onClick: d
|
|
51
|
+
}, {
|
|
52
|
+
default: t(() => [
|
|
53
|
+
r(l(e(a)("取消")), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})
|
|
57
|
+
])
|
|
58
|
+
]),
|
|
59
|
+
default: t(() => [
|
|
60
|
+
n("a", {
|
|
61
|
+
href: o.docInfo.fileUrl
|
|
62
|
+
}, l(o.docInfo.fileName), 9, _)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["model-value", "title"]));
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
E as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import o from "./operation-log-form.vue2.js";
|
|
2
|
+
import "E:/工作/项目代码/yaheecomponents/packages/components/src/operation-log/operation-log-form.vue?vue&type=style&index=0&scoped=a74073a7&lang.scss";
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a74073a7"]]);
|
|
5
|
+
export {
|
|
6
|
+
p as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { defineComponent as w, reactive as v, ref as B, onMounted as x, openBlock as u, createBlock as c, unref as t, withCtx as n, createVNode as r, createElementBlock as T, Fragment as E, renderList as M, createTextVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { ElForm as Y, ElFormItem as s, ElDatePicker as b, ElSelect as N, ElOption as _, ElInput as S, ElButton as d } from "element-plus";
|
|
3
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
+
import "element-plus/theme-chalk/src/form.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/date-picker.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/scrollbar.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
9
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
10
|
+
import "element-plus/theme-chalk/src/form-item.scss";
|
|
11
|
+
import "element-plus/theme-chalk/src/tag.scss";
|
|
12
|
+
import "element-plus/theme-chalk/src/option.scss";
|
|
13
|
+
import "element-plus/theme-chalk/src/option-group.scss";
|
|
14
|
+
import "element-plus/theme-chalk/src/select.scss";
|
|
15
|
+
import { Search as U } from "@element-plus/icons-vue";
|
|
16
|
+
import { RemarkApi as F } from "../packages/components/api/remarkApi.js";
|
|
17
|
+
import { M2 as o } from "../utils/translate.js";
|
|
18
|
+
const Z = /* @__PURE__ */ w({
|
|
19
|
+
__name: "operation-log-form",
|
|
20
|
+
props: {
|
|
21
|
+
projectId: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["filterChange"],
|
|
27
|
+
setup(C, { emit: D }) {
|
|
28
|
+
const y = C, m = v({
|
|
29
|
+
timeValue: [],
|
|
30
|
+
CreatedBy: "",
|
|
31
|
+
Notes: "",
|
|
32
|
+
search: "",
|
|
33
|
+
Mark: null
|
|
34
|
+
}), p = B(), h = [
|
|
35
|
+
{
|
|
36
|
+
text: o("最近三天"),
|
|
37
|
+
value: () => {
|
|
38
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
39
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), [e, l];
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
text: o("最近一周"),
|
|
44
|
+
value: () => {
|
|
45
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
46
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), [e, l];
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
text: o("最近十五天"),
|
|
51
|
+
value: () => {
|
|
52
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
53
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 15), [e, l];
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
text: o("最近一个月"),
|
|
58
|
+
value: () => {
|
|
59
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
60
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 30), [e, l];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
], V = () => {
|
|
64
|
+
const l = new FormData();
|
|
65
|
+
l.append(
|
|
66
|
+
"filter",
|
|
67
|
+
JSON.stringify({ BusinessKey: y.projectId, BusinessName: "PRODUCT_DEV" })
|
|
68
|
+
), F.getGlobalNotesUsers(l).then((e) => {
|
|
69
|
+
p.value = e;
|
|
70
|
+
});
|
|
71
|
+
}, k = D, i = (l) => {
|
|
72
|
+
m.Mark = l, k("filterChange", m);
|
|
73
|
+
};
|
|
74
|
+
return x(() => {
|
|
75
|
+
V();
|
|
76
|
+
}), (l, e) => (u(), c(t(Y), {
|
|
77
|
+
model: m,
|
|
78
|
+
inline: !0,
|
|
79
|
+
"label-width": "auto",
|
|
80
|
+
size: "small"
|
|
81
|
+
}, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
r(t(s), null, {
|
|
84
|
+
default: n(() => [
|
|
85
|
+
r(t(b), {
|
|
86
|
+
modelValue: m.timeValue,
|
|
87
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => m.timeValue = a),
|
|
88
|
+
type: "daterange",
|
|
89
|
+
format: "YYYY-MM-DD",
|
|
90
|
+
"value-format": "YYYY-MM-DD",
|
|
91
|
+
"unlink-panels": "",
|
|
92
|
+
"range-separator": t(o)("至"),
|
|
93
|
+
"start-placeholder": t(o)("开始日期"),
|
|
94
|
+
"end-placeholder": t(o)("结束日期"),
|
|
95
|
+
shortcuts: h,
|
|
96
|
+
size: "small",
|
|
97
|
+
clearable: "",
|
|
98
|
+
onChange: i
|
|
99
|
+
}, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}),
|
|
103
|
+
r(t(s), null, {
|
|
104
|
+
default: n(() => [
|
|
105
|
+
r(t(N), {
|
|
106
|
+
modelValue: m.CreatedBy,
|
|
107
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => m.CreatedBy = a),
|
|
108
|
+
placeholder: t(o)("请选择创建人"),
|
|
109
|
+
style: { width: "120px" },
|
|
110
|
+
size: "small",
|
|
111
|
+
clearable: "",
|
|
112
|
+
onChange: i
|
|
113
|
+
}, {
|
|
114
|
+
default: n(() => [
|
|
115
|
+
(u(!0), T(E, null, M(p.value, (a) => (u(), c(t(_), {
|
|
116
|
+
key: a.CreatedBy,
|
|
117
|
+
label: a.CreatedName,
|
|
118
|
+
value: a.CreatedBy
|
|
119
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["modelValue", "placeholder"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}),
|
|
126
|
+
r(t(s), null, {
|
|
127
|
+
default: n(() => [
|
|
128
|
+
r(t(S), {
|
|
129
|
+
modelValue: m.search,
|
|
130
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => m.search = a),
|
|
131
|
+
placeholder: t(o)("综合搜索"),
|
|
132
|
+
clearable: "",
|
|
133
|
+
style: { width: "160px" }
|
|
134
|
+
}, {
|
|
135
|
+
append: n(() => [
|
|
136
|
+
r(t(d), {
|
|
137
|
+
icon: t(U),
|
|
138
|
+
onClick: i
|
|
139
|
+
}, null, 8, ["icon"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["modelValue", "placeholder"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}),
|
|
146
|
+
r(t(s), null, {
|
|
147
|
+
default: n(() => [
|
|
148
|
+
r(t(d), {
|
|
149
|
+
type: "primary",
|
|
150
|
+
onClick: e[3] || (e[3] = (a) => i(null))
|
|
151
|
+
}, {
|
|
152
|
+
default: n(() => [
|
|
153
|
+
f(g(t(o)("搜索全部")), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
r(t(s), null, {
|
|
161
|
+
default: n(() => [
|
|
162
|
+
r(t(d), {
|
|
163
|
+
type: "primary",
|
|
164
|
+
onClick: e[4] || (e[4] = (a) => i("Check"))
|
|
165
|
+
}, {
|
|
166
|
+
default: n(() => [
|
|
167
|
+
f(g(t(o)("审核节点备注")), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["model"]));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
export {
|
|
180
|
+
Z as default
|
|
181
|
+
};
|