yahee-components 0.0.111 → 0.0.113
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/operation-log/operation-log-form.vue.js +39 -40
- package/es/operation-log/operation-log.vue2.js +6 -6
- package/package.json +1 -1
- package/types/src/installs.d.ts +1 -1
- package/types/src/operation-log/index.d.ts +1 -1
- package/types/src/operation-log/operation-log.d.ts +1 -1
- package/types/src/operation-log/operation-log.vue.d.ts +1 -1
- package/types/src/operation-log/props.d.ts +1 -1
- package/es/annex-upload/annex-upload.vue.js +0 -55
- package/es/annex-upload/annex-upload.vue2.js +0 -121
- package/es/annex-upload/index.js +0 -7
- package/es/annex-upload/mimeType.js +0 -822
- package/es/annex-upload/style/index.css +0 -7
- package/es/border-wrap/border-wrap.vue.js +0 -75
- package/es/border-wrap/border-wrap.vue2.js +0 -48
- package/es/border-wrap/index.js +0 -7
- package/es/border-wrap/props.js +0 -11
- package/es/border-wrap/style/index.css +0 -24
- package/es/common-import/common-import.vue.js +0 -394
- package/es/common-import/common-import.vue2.js +0 -366
- package/es/common-import/index.js +0 -7
- package/es/common-import/props.js +0 -23
- package/es/common-import/style/index.css +0 -32
- package/es/complex-search/batch-search-dialog.vue.js +0 -119
- package/es/complex-search/batch-search-dialog.vue2.js +0 -50
- package/es/complex-search/complex-search.vue.js +0 -122
- package/es/complex-search/complex-search.vue2.js +0 -71
- package/es/complex-search/index.js +0 -7
- package/es/complex-search/props.js +0 -19
- package/es/complex-search/style/index.css +0 -24
- package/es/complex-search/useComplexSearch.js +0 -44
- package/es/copy/copy.vue.js +0 -39
- package/es/copy/copy.vue2.js +0 -36
- package/es/copy/index.js +0 -7
- package/es/copy/props.js +0 -9
- package/es/copy/style/index.css +0 -12
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -120
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -127
- package/es/country-platform-shop-condition/index.js +0 -7
- package/es/country-platform-shop-condition/style/index.css +0 -59
- package/es/drop-down-condition/drop-down-condition.vue.js +0 -125
- package/es/drop-down-condition/drop-down-condition.vue2.js +0 -129
- package/es/drop-down-condition/index.js +0 -7
- package/es/drop-down-condition/style/index.css +0 -64
- package/es/echart-gauge/echart-gauge.vue.js +0 -14
- package/es/echart-gauge/echart-gauge.vue2.js +0 -149
- package/es/echart-gauge/index.js +0 -7
- package/es/echart-gauge/props.js +0 -9
- package/es/echart-gauge/style/index.css +0 -4
- package/es/file-download-wrapper/file-download-wrapper.vue.js +0 -164
- package/es/file-download-wrapper/file-download-wrapper.vue2.js +0 -115
- package/es/file-download-wrapper/index.js +0 -7
- package/es/file-download-wrapper/key.js +0 -17
- package/es/file-download-wrapper/props.js +0 -12
- package/es/file-download-wrapper/style/index.css +0 -66
- package/es/filter-container/filter-container.vue.js +0 -24
- package/es/filter-container/filter-container.vue2.js +0 -61
- package/es/filter-container/index.js +0 -7
- package/es/filter-container/key.js +0 -4
- package/es/filter-container/props.js +0 -11
- package/es/filter-container/style/index.css +0 -16
- package/es/filter-wrapper/filter-wrapper.vue.js +0 -19
- package/es/filter-wrapper/filter-wrapper.vue2.js +0 -56
- package/es/filter-wrapper/index.js +0 -7
- package/es/filter-wrapper/props.js +0 -10
- package/es/filter-wrapper/style/index.css +0 -3
- package/es/height-collapse/height-collapse.vue.js +0 -26
- package/es/height-collapse/height-collapse.vue2.js +0 -44
- package/es/height-collapse/index.js +0 -7
- package/es/height-collapse/props.js +0 -11
- package/es/height-collapse/style/index.css +0 -32
- package/es/help-tag/help-tag.vue.js +0 -46
- package/es/help-tag/help-tag.vue2.js +0 -51
- package/es/help-tag/index.js +0 -7
- package/es/help-tag/props.js +0 -9
- package/es/help-tag/style/index.css +0 -8
- package/es/image-upload/image-upload.vue.js +0 -116
- package/es/image-upload/image-upload.vue2.js +0 -93
- package/es/image-upload/index.js +0 -7
- package/es/image-upload/style/index.css +0 -33
- package/es/index.js +0 -63
- package/es/installs.js +0 -41
- package/es/left-condition/index.js +0 -7
- package/es/left-condition/left-condition-sub.vue.js +0 -36
- package/es/left-condition/left-condition-sub.vue2.js +0 -78
- package/es/left-condition/left-condition.vue.js +0 -77
- package/es/left-condition/left-condition.vue2.js +0 -162
- package/es/left-condition/style/index.css +0 -10
- package/es/left-condition-enum/index.js +0 -7
- package/es/left-condition-enum/left-condition-enum.vue.js +0 -22
- package/es/left-condition-enum/left-condition-enum.vue2.js +0 -42
- package/es/left-condition-enum/style/index.css +0 -10
- package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +0 -99
- package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -22
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +0 -38
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +0 -53
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +0 -141
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +0 -71
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +0 -46
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +0 -77
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +0 -11
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +0 -136
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +0 -54
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -181
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +0 -58
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +0 -31
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +0 -70
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +0 -14
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +0 -13
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +0 -89
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +0 -8
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +0 -4
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -33
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +0 -8
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +0 -23
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +0 -30
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +0 -32
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -31
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +0 -4
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -30
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -35
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -33
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +0 -19
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +0 -8
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +0 -15
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +0 -85
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -13
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +0 -63
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +0 -54
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +0 -15
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +0 -9
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +0 -9
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +0 -222
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -282
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +0 -97
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +0 -96
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +0 -56
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +0 -242
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +0 -106
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +0 -345
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +0 -56
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +0 -487
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +0 -77
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +0 -49
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +0 -325
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +0 -23
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +0 -10
- package/lib/annex-upload/style/index.css +0 -7
- package/lib/border-wrap/style/index.css +0 -24
- package/lib/common-import/style/index.css +0 -32
- package/lib/complex-search/style/index.css +0 -24
- package/lib/copy/style/index.css +0 -12
- package/lib/country-platform-shop-condition/style/index.css +0 -59
- package/lib/drop-down-condition/style/index.css +0 -64
- package/lib/echart-gauge/style/index.css +0 -4
- package/lib/file-download-wrapper/style/index.css +0 -66
- package/lib/filter-container/style/index.css +0 -16
- package/lib/filter-wrapper/style/index.css +0 -3
- package/lib/height-collapse/style/index.css +0 -32
- package/lib/help-tag/style/index.css +0 -8
- package/lib/image-upload/style/index.css +0 -33
- package/lib/left-condition/style/index.css +0 -10
- package/lib/left-condition-enum/style/index.css +0 -10
- package/lib/operation-log/style/index.css +0 -234
- package/lib/scale-screen/style/index.css +0 -0
- package/lib/style.css +0 -1405
- package/lib/styles/custom.css +0 -82
- package/lib/styles/globals.css +0 -699
- package/lib/styles/index.css +0 -753
- package/lib/styles/variables.css +0 -34
|
@@ -1,50 +1,49 @@
|
|
|
1
1
|
import c from "./operation-log-form.vue2.js";
|
|
2
|
-
import { createBlock as t, openBlock as n, withCtx as r, createVNode as a, createElementBlock as f, Fragment as h, renderList as C, createTextVNode as
|
|
2
|
+
import { createBlock as t, openBlock as n, withCtx as r, createVNode as a, createElementBlock as f, Fragment as h, renderList as C, createTextVNode as m, toDisplayString as d } from "vue";
|
|
3
3
|
import g from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
function E(u, o, y,
|
|
5
|
-
return n(), t(
|
|
6
|
-
model:
|
|
4
|
+
function E(u, o, y, e, V, k) {
|
|
5
|
+
return n(), t(e.ElForm, {
|
|
6
|
+
model: e.form,
|
|
7
7
|
inline: !0,
|
|
8
|
-
"label-width": "auto",
|
|
9
8
|
size: "small"
|
|
10
9
|
}, {
|
|
11
10
|
default: r(() => [
|
|
12
|
-
a(
|
|
11
|
+
a(e.ElFormItem, null, {
|
|
13
12
|
default: r(() => [
|
|
14
|
-
a(
|
|
15
|
-
modelValue:
|
|
16
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
13
|
+
a(e.ElDatePicker, {
|
|
14
|
+
modelValue: e.form.timeValue,
|
|
15
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.form.timeValue = l),
|
|
17
16
|
type: "daterange",
|
|
18
17
|
format: "YYYY-MM-DD",
|
|
19
18
|
"value-format": "YYYY-MM-DD",
|
|
20
19
|
"unlink-panels": "",
|
|
21
|
-
"range-separator":
|
|
22
|
-
"start-placeholder":
|
|
23
|
-
"end-placeholder":
|
|
24
|
-
shortcuts:
|
|
20
|
+
"range-separator": e.M2("至"),
|
|
21
|
+
"start-placeholder": e.M2("开始日期"),
|
|
22
|
+
"end-placeholder": e.M2("结束日期"),
|
|
23
|
+
shortcuts: e.shortcuts,
|
|
25
24
|
size: "small",
|
|
26
25
|
clearable: "",
|
|
27
|
-
onChange:
|
|
26
|
+
onChange: e.searchChange
|
|
28
27
|
}, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
|
|
29
28
|
]),
|
|
30
29
|
_: 1
|
|
31
30
|
}),
|
|
32
|
-
a(
|
|
31
|
+
a(e.ElFormItem, null, {
|
|
33
32
|
default: r(() => [
|
|
34
|
-
a(
|
|
35
|
-
modelValue:
|
|
36
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
37
|
-
placeholder:
|
|
33
|
+
a(e.ElSelect, {
|
|
34
|
+
modelValue: e.form.CreatedBy,
|
|
35
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.form.CreatedBy = l),
|
|
36
|
+
placeholder: e.M2("请选择创建人"),
|
|
38
37
|
style: { width: "120px" },
|
|
39
38
|
size: "small",
|
|
40
39
|
clearable: "",
|
|
41
|
-
onChange:
|
|
40
|
+
onChange: e.searchChange
|
|
42
41
|
}, {
|
|
43
42
|
default: r(() => [
|
|
44
|
-
(n(!0), f(h, null, C(
|
|
45
|
-
key:
|
|
46
|
-
label:
|
|
47
|
-
value:
|
|
43
|
+
(n(!0), f(h, null, C(e.dataOptions, (l, i) => (n(), t(e.ElOption, {
|
|
44
|
+
key: l.CreatedBy || l.CreatedName || i,
|
|
45
|
+
label: l.CreatedName || "",
|
|
46
|
+
value: l.CreatedBy || ""
|
|
48
47
|
}, null, 8, ["label", "value"]))), 128))
|
|
49
48
|
]),
|
|
50
49
|
_: 1
|
|
@@ -52,19 +51,19 @@ function E(u, o, y, l, V, k) {
|
|
|
52
51
|
]),
|
|
53
52
|
_: 1
|
|
54
53
|
}),
|
|
55
|
-
a(
|
|
54
|
+
a(e.ElFormItem, null, {
|
|
56
55
|
default: r(() => [
|
|
57
|
-
a(
|
|
58
|
-
modelValue:
|
|
59
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
60
|
-
placeholder:
|
|
56
|
+
a(e.ElInput, {
|
|
57
|
+
modelValue: e.form.search,
|
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.form.search = l),
|
|
59
|
+
placeholder: e.M2("综合搜索"),
|
|
61
60
|
clearable: "",
|
|
62
61
|
style: { width: "160px" }
|
|
63
62
|
}, {
|
|
64
63
|
append: r(() => [
|
|
65
|
-
a(
|
|
66
|
-
icon:
|
|
67
|
-
onClick:
|
|
64
|
+
a(e.ElButton, {
|
|
65
|
+
icon: e.Search,
|
|
66
|
+
onClick: e.searchChange
|
|
68
67
|
}, null, 8, ["icon"])
|
|
69
68
|
]),
|
|
70
69
|
_: 1
|
|
@@ -72,28 +71,28 @@ function E(u, o, y, l, V, k) {
|
|
|
72
71
|
]),
|
|
73
72
|
_: 1
|
|
74
73
|
}),
|
|
75
|
-
a(
|
|
74
|
+
a(e.ElFormItem, null, {
|
|
76
75
|
default: r(() => [
|
|
77
|
-
a(
|
|
76
|
+
a(e.ElButton, {
|
|
78
77
|
type: "primary",
|
|
79
|
-
onClick: o[3] || (o[3] = (
|
|
78
|
+
onClick: o[3] || (o[3] = (l) => e.searchChange(null))
|
|
80
79
|
}, {
|
|
81
80
|
default: r(() => [
|
|
82
|
-
d(
|
|
81
|
+
m(d(e.M2("搜索全部")), 1)
|
|
83
82
|
]),
|
|
84
83
|
_: 1
|
|
85
84
|
})
|
|
86
85
|
]),
|
|
87
86
|
_: 1
|
|
88
87
|
}),
|
|
89
|
-
a(
|
|
88
|
+
a(e.ElFormItem, null, {
|
|
90
89
|
default: r(() => [
|
|
91
|
-
a(
|
|
90
|
+
a(e.ElButton, {
|
|
92
91
|
type: "primary",
|
|
93
|
-
onClick: o[4] || (o[4] = (
|
|
92
|
+
onClick: o[4] || (o[4] = (l) => e.searchChange("Check"))
|
|
94
93
|
}, {
|
|
95
94
|
default: r(() => [
|
|
96
|
-
d(
|
|
95
|
+
m(d(e.M2("审核节点备注")), 1)
|
|
97
96
|
]),
|
|
98
97
|
_: 1
|
|
99
98
|
})
|
|
@@ -16,12 +16,12 @@ import { M2 as s } from "../utils/translate.js";
|
|
|
16
16
|
import Q from "../annex-upload/annex-upload.vue.js";
|
|
17
17
|
import W from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { findGlobalNotes as X, insertGlobalnotes as
|
|
19
|
+
import { findGlobalNotes as X, insertGlobalnotes as x } from "../packages/components/api/log/index.js";
|
|
20
20
|
const be = /* @__PURE__ */ _({
|
|
21
21
|
name: "YaheeOperationLog",
|
|
22
22
|
__name: "operation-log",
|
|
23
23
|
props: {
|
|
24
|
-
businessKey: { type: String, required: !0, default: "" },
|
|
24
|
+
businessKey: { type: [String, Number], required: !0, default: "" },
|
|
25
25
|
businessName: { type: String, required: !0, default: "" },
|
|
26
26
|
topHeight: { type: Number, required: !1, default: 90 },
|
|
27
27
|
ifShowDocument: { type: Boolean, required: !1, default: !0 }
|
|
@@ -73,14 +73,14 @@ const be = /* @__PURE__ */ _({
|
|
|
73
73
|
});
|
|
74
74
|
}, m = (e) => {
|
|
75
75
|
const t = new FormData();
|
|
76
|
-
return t.append("BusinessKey", a.businessKey), t.append("BusinessName", a.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName),
|
|
76
|
+
return t.append("BusinessKey", a.businessKey), t.append("BusinessName", a.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), x(t);
|
|
77
77
|
}, w = () => {
|
|
78
78
|
if (!p.value) {
|
|
79
79
|
l.info(s("备注不能为空!"));
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
const e = new FormData();
|
|
83
|
-
e.append("BusinessKey", a.businessKey), e.append("BusinessName", a.businessName), e.append("notes", p.value), e.append("ViewTitle", "备注"),
|
|
83
|
+
e.append("BusinessKey", a.businessKey), e.append("BusinessName", a.businessName), e.append("notes", p.value), e.append("ViewTitle", "备注"), x(e).then(async () => {
|
|
84
84
|
l.success(s("添加备注成功!")), n.PageIndex = 0, p.value = "", await r(), f();
|
|
85
85
|
});
|
|
86
86
|
}, P = (e) => {
|
|
@@ -112,7 +112,7 @@ const be = /* @__PURE__ */ _({
|
|
|
112
112
|
const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
|
|
113
113
|
v.value = window.innerHeight - e - I.value.offsetHeight - a.topHeight, L();
|
|
114
114
|
});
|
|
115
|
-
const
|
|
115
|
+
const N = { props: a, ifShowDocument: M, loading: u, noMore: h, showDialog: c, docInfo: b, dataList: i, textareaText: p, compAnalysisFile: d, params: n, getLogMessage: r, load: L, filterChange: O, change: B, confirmUpload: S, uploadFile: m, sendEditQuill: w, handlePaste: P, infiniteList: y, scrollTop: f, boxHeight: v, logText: I, get CaretRight() {
|
|
116
116
|
return V;
|
|
117
117
|
}, get CaretLeft() {
|
|
118
118
|
return T;
|
|
@@ -129,7 +129,7 @@ const be = /* @__PURE__ */ _({
|
|
|
129
129
|
}, YaheeAnnexUpload: Q, get InfiniteLoading() {
|
|
130
130
|
return W;
|
|
131
131
|
} };
|
|
132
|
-
return Object.defineProperty(
|
|
132
|
+
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
export {
|
package/package.json
CHANGED
package/types/src/installs.d.ts
CHANGED
|
@@ -262,7 +262,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<ExtractPropTypes<{
|
|
|
262
262
|
}): any;
|
|
263
263
|
};
|
|
264
264
|
})> & Record<string, any>) | ( SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
|
|
265
|
-
businessKey: string;
|
|
265
|
+
businessKey: string | number;
|
|
266
266
|
businessName: string;
|
|
267
267
|
ifShowDocument: boolean;
|
|
268
268
|
topHeight: number;
|
|
@@ -4,7 +4,7 @@ import { OperationLogProps } from './operation-log';
|
|
|
4
4
|
import { ScrollbarDirection } from 'element-plus';
|
|
5
5
|
import { OnCleanup } from '@vue/reactivity';
|
|
6
6
|
export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
|
|
7
|
-
businessKey: string;
|
|
7
|
+
businessKey: string | number;
|
|
8
8
|
businessName: string;
|
|
9
9
|
ifShowDocument: boolean;
|
|
10
10
|
topHeight: number;
|
|
@@ -3,7 +3,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
import { ScrollbarDirection } from 'element-plus';
|
|
4
4
|
import { OnCleanup } from '@vue/reactivity';
|
|
5
5
|
declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OperationLogProps> & Readonly<{}>, {
|
|
6
|
-
businessKey: string;
|
|
6
|
+
businessKey: string | number;
|
|
7
7
|
businessName: string;
|
|
8
8
|
ifShowDocument: boolean;
|
|
9
9
|
topHeight: number;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import r from "./annex-upload.vue2.js";
|
|
2
|
-
import { createElementBlock as a, openBlock as n, createVNode as c, createSlots as m, withCtx as o, renderSlot as d, createTextVNode as f, toDisplayString as l, createElementVNode as s, createCommentVNode as _ } from "vue";
|
|
3
|
-
import h from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = { class: "yahee-annex-upload" }, u = { class: "margin15 el-upload__tip" }, x = { key: 0 };
|
|
5
|
-
function w(i, y, t, e, S, E) {
|
|
6
|
-
return n(), a("div", p, [
|
|
7
|
-
c(e.ElUpload, {
|
|
8
|
-
ref: "uploadRef",
|
|
9
|
-
style: { width: "100%" },
|
|
10
|
-
action: "",
|
|
11
|
-
"http-request": e.uploadFile,
|
|
12
|
-
"before-upload": e.beforeUpload,
|
|
13
|
-
"on-success": e.handleSuccess,
|
|
14
|
-
"on-remove": e.handleRemove,
|
|
15
|
-
"on-exceed": e.handleExceed,
|
|
16
|
-
accept: t.accept,
|
|
17
|
-
multiple: "",
|
|
18
|
-
limit: t.limit,
|
|
19
|
-
"file-list": t.fileList,
|
|
20
|
-
"show-file-list": t.showList
|
|
21
|
-
}, m({
|
|
22
|
-
default: o(() => [
|
|
23
|
-
d(i.$slots, "default", {}, () => [
|
|
24
|
-
c(e.ElButton, {
|
|
25
|
-
plain: "",
|
|
26
|
-
type: "primary"
|
|
27
|
-
}, {
|
|
28
|
-
default: o(() => [
|
|
29
|
-
f(l(e.M2("上传文件")), 1)
|
|
30
|
-
]),
|
|
31
|
-
_: 1
|
|
32
|
-
})
|
|
33
|
-
])
|
|
34
|
-
]),
|
|
35
|
-
_: 2
|
|
36
|
-
}, [
|
|
37
|
-
t.showTips ? {
|
|
38
|
-
name: "tip",
|
|
39
|
-
fn: o(() => [
|
|
40
|
-
d(i.$slots, "tip", {}, () => [
|
|
41
|
-
s("span", u, [
|
|
42
|
-
s("span", null, l(e.M2(`支持扩展名:${t.accept}`)) + ",", 1),
|
|
43
|
-
t.limitFileSize ? (n(), a("span", x, l(e.M2(`文件不能大于${t.fileSize}`)) + l(t.fileSizeUnit.toUpperCase()), 1)) : _("", !0)
|
|
44
|
-
])
|
|
45
|
-
])
|
|
46
|
-
]),
|
|
47
|
-
key: "0"
|
|
48
|
-
} : void 0
|
|
49
|
-
]), 1032, ["accept", "limit", "file-list", "show-file-list"])
|
|
50
|
-
]);
|
|
51
|
-
}
|
|
52
|
-
const N = /* @__PURE__ */ h(r, [["render", w], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/annex-upload/annex-upload.vue"]]);
|
|
53
|
-
export {
|
|
54
|
-
N as default
|
|
55
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, ref as E, watch as F, nextTick as p } from "vue";
|
|
2
|
-
import { useUpload as _ } from "../packages/components/hooks/useUpload.js";
|
|
3
|
-
import { useImport as w } from "../packages/components/hooks/useImport.js";
|
|
4
|
-
import { useFormItem as $, ElMessage as n, ElButton as b, ElUpload as B } 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/upload.scss";
|
|
9
|
-
import "element-plus/theme-chalk/src/progress.scss";
|
|
10
|
-
import "element-plus/theme-chalk/src/button.scss";
|
|
11
|
-
import { MimeType as m } from "./mimeType.js";
|
|
12
|
-
import { M2 as a } from "../utils/translate.js";
|
|
13
|
-
const I = /* @__PURE__ */ U({
|
|
14
|
-
name: "AnnexUpload",
|
|
15
|
-
__name: "annex-upload",
|
|
16
|
-
props: {
|
|
17
|
-
modelValue: { type: Array, required: !0, default: () => [] },
|
|
18
|
-
fileList: { type: Array, required: !1, default: () => [] },
|
|
19
|
-
showList: { type: Boolean, required: !1, default: !0 },
|
|
20
|
-
fileType: { type: String, required: !1, default: "105" },
|
|
21
|
-
accept: { type: String, required: !1, default: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx" },
|
|
22
|
-
checkRealType: { type: Boolean, required: !1, default: !0 },
|
|
23
|
-
limit: { type: Number, required: !1, default: 1 },
|
|
24
|
-
limitFileSize: { type: Boolean, required: !1, default: !0 },
|
|
25
|
-
fileSize: { type: Number, required: !1, default: 20 },
|
|
26
|
-
fileSizeUnit: { type: String, required: !1, default: "mb" },
|
|
27
|
-
uploadType: { type: String, required: !1, default: "upload" },
|
|
28
|
-
validateEvent: { type: Boolean, required: !1, default: !0 },
|
|
29
|
-
showTips: { type: Boolean, required: !1, default: !0 }
|
|
30
|
-
},
|
|
31
|
-
emits: ["update:modelValue", "change", "success", "remove"],
|
|
32
|
-
setup(y, { expose: g, emit: h }) {
|
|
33
|
-
const l = y, r = h;
|
|
34
|
-
function S(t) {
|
|
35
|
-
if (l.accept && l.checkRealType) {
|
|
36
|
-
const e = [];
|
|
37
|
-
for (let i of l.accept.split(","))
|
|
38
|
-
if (i = i.toLowerCase(), m.get(i) !== void 0)
|
|
39
|
-
e.push(m.get(i));
|
|
40
|
-
else
|
|
41
|
-
return n.error(a(`文件类型错误,支持文件类型为: ${l.accept}!`)), !1;
|
|
42
|
-
if (e.join().indexOf(t.type) === -1)
|
|
43
|
-
return n.error(a(`文件类型错误,支持文件类型为: ${l.accept}!`)), !1;
|
|
44
|
-
}
|
|
45
|
-
if (l.limitFileSize) {
|
|
46
|
-
let e = t.size;
|
|
47
|
-
if (l.fileSizeUnit.toLowerCase() === "kb" ? e = t.size / 1024 : e = t.size / 1024 / 1024, !(e < l.fileSize))
|
|
48
|
-
return n.error(a(`文件大小不能超过 ${l.fileSize}${l.fileSizeUnit}!`)), !1;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function q(t) {
|
|
52
|
-
return l.uploadType === "upload" ? _(l.fileType, t.file, (e) => {
|
|
53
|
-
t.onProgress(e);
|
|
54
|
-
}).then((e) => {
|
|
55
|
-
t.onSuccess(e);
|
|
56
|
-
}).catch(() => {
|
|
57
|
-
t.onError();
|
|
58
|
-
}) : l.uploadType === "import" && w(t.file, (e) => {
|
|
59
|
-
t.onProgress(e);
|
|
60
|
-
}).then((e) => {
|
|
61
|
-
t.onSuccess(e);
|
|
62
|
-
}).catch(() => {
|
|
63
|
-
t.onError();
|
|
64
|
-
}), null;
|
|
65
|
-
}
|
|
66
|
-
function z(t, e) {
|
|
67
|
-
n.warning(
|
|
68
|
-
a(
|
|
69
|
-
`当前限制选择 ${l.limit} 个文件,本次选择了 ${t.length} 个文件,共选择了 ${t.length + e.length} 个文件`
|
|
70
|
-
)
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
const u = E(null);
|
|
74
|
-
function s(t) {
|
|
75
|
-
return t.length === 0 ? [] : t.map((e) => e.response ? {
|
|
76
|
-
fileName: e.name,
|
|
77
|
-
fileId: e.response[0],
|
|
78
|
-
fileUrl: `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e.response[0]}`
|
|
79
|
-
} : {
|
|
80
|
-
fileName: e.name,
|
|
81
|
-
fileId: e.url.split("/")[e.url.split("/").length - 1],
|
|
82
|
-
fileUrl: e.url
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
const T = async (t, e, i) => {
|
|
86
|
-
if (l.uploadType === "import")
|
|
87
|
-
r("update:modelValue", t);
|
|
88
|
-
else if (l.uploadType === "upload") {
|
|
89
|
-
const c = s(i);
|
|
90
|
-
r("update:modelValue", c), await p(), r("change", c);
|
|
91
|
-
}
|
|
92
|
-
}, x = async (t, e) => {
|
|
93
|
-
const i = s(e);
|
|
94
|
-
r("update:modelValue", i), await p(), r("change", i);
|
|
95
|
-
};
|
|
96
|
-
async function f() {
|
|
97
|
-
u.value.clearFiles(), r("update:modelValue", []), await p(), r("change", []);
|
|
98
|
-
}
|
|
99
|
-
g({ clearFiles: f });
|
|
100
|
-
const { formItem: o } = $();
|
|
101
|
-
F(
|
|
102
|
-
() => l.modelValue,
|
|
103
|
-
(t) => {
|
|
104
|
-
var e;
|
|
105
|
-
(!t || t.length === 0) && u.value.clearFiles(), l.validateEvent && ((e = o == null ? void 0 : o.validate) == null || e.call(o, "change").catch(() => {
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
const d = { props: l, emits: r, beforeUpload: S, uploadFile: q, handleExceed: z, uploadRef: u, getUploadFiles: s, handleSuccess: T, handleRemove: x, clearFiles: f, formItem: o, get ElUpload() {
|
|
110
|
-
return B;
|
|
111
|
-
}, get ElButton() {
|
|
112
|
-
return b;
|
|
113
|
-
}, get M2() {
|
|
114
|
-
return a;
|
|
115
|
-
} };
|
|
116
|
-
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
export {
|
|
120
|
-
I as default
|
|
121
|
-
};
|