yahee-components 0.0.81 → 0.0.84
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/annex-upload/annex-upload.vue.js +154 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +663 -369
- package/es/common-import/common-import.vue2.js +2 -328
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +15 -15
- package/es/copy/copy.vue.js +55 -37
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +213 -113
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +68 -46
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/es/utils/translate.js +16 -16
- package/package.json +46 -46
- package/readme.md +249 -249
- package/types/src/common-import/common-import.vue.d.ts +2 -0
- package/types/src/common-import/index.d.ts +5 -0
- package/types/src/installs.d.ts +5 -0
|
@@ -1,162 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "../_virtual/lodash.js";
|
|
3
|
-
import ae from "./left-condition-sub.vue.js";
|
|
4
|
-
import { stylesUtils as ue } from "../utils/style.js";
|
|
5
|
-
import { M2 as re } from "../utils/translate.js";
|
|
6
|
-
const fe = /* @__PURE__ */ X({
|
|
7
|
-
name: "YaheeLeftCondition",
|
|
8
|
-
__name: "left-condition",
|
|
9
|
-
props: {
|
|
10
|
-
multiSelectList: { type: Array, required: !1, default: () => [] },
|
|
11
|
-
selectList: { type: Array, required: !0, default: () => [] },
|
|
12
|
-
countList: { type: Array, required: !1, default: () => [] },
|
|
13
|
-
totalCount: { type: Number, required: !1, default: 0 },
|
|
14
|
-
hasNum: { type: Boolean, required: !1, default: !1 },
|
|
15
|
-
displayRangeInput: { type: Boolean, required: !1, default: !1 },
|
|
16
|
-
rangeLabel: { type: String, required: !1, default: "区间" },
|
|
17
|
-
rangeStartKey: { type: String, required: !1, default: "rangeStart" },
|
|
18
|
-
rangeEndKey: { type: String, required: !1, default: "rangeEnd" },
|
|
19
|
-
rangeDelimiter: { type: String, required: !1, default: "——" },
|
|
20
|
-
allIsCheckbox: { type: Boolean, required: !1 },
|
|
21
|
-
allIsEmpty: { type: Boolean, required: !1, default: !1 },
|
|
22
|
-
translateUserId: { type: Boolean, required: !1 },
|
|
23
|
-
staticSearch: { type: Boolean, required: !1, default: !1 },
|
|
24
|
-
label: { type: String, required: !1, default: "" },
|
|
25
|
-
noNeedRefreshNumFilterName: { type: String, required: !1, default: "" },
|
|
26
|
-
filterKey: { type: String, required: !0, default: "" },
|
|
27
|
-
defaultValues: { type: Array, required: !1, default: () => [] },
|
|
28
|
-
showTotal: { type: Boolean, required: !1, default: !0 }
|
|
29
|
-
},
|
|
30
|
-
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
31
|
-
setup(U, { expose: O, emit: $ }) {
|
|
32
|
-
const I = U, {
|
|
33
|
-
multiSelectList: K,
|
|
34
|
-
displayRangeInput: q,
|
|
35
|
-
selectList: c,
|
|
36
|
-
hasNum: J,
|
|
37
|
-
allIsEmpty: _,
|
|
38
|
-
translateUserId: j,
|
|
39
|
-
label: D,
|
|
40
|
-
filterKey: f,
|
|
41
|
-
rangeStartKey: r,
|
|
42
|
-
rangeEndKey: s,
|
|
43
|
-
noNeedRefreshNumFilterName: V,
|
|
44
|
-
defaultValues: d,
|
|
45
|
-
totalCount: m,
|
|
46
|
-
countList: h,
|
|
47
|
-
showTotal: Y
|
|
48
|
-
} = Z(I), S = $, B = i(m.value), v = i(), y = i(), M = i(h.value), a = /* @__PURE__ */ new Map(), n = i(!0), p = i([]), N = () => {
|
|
49
|
-
console.log("left condition notifyParent start"), b(() => {
|
|
50
|
-
var o, T;
|
|
51
|
-
const e = g(), l = F();
|
|
52
|
-
if (t.isEmpty(e) && t.isEmpty(l)) {
|
|
53
|
-
k();
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const u = [
|
|
57
|
-
{
|
|
58
|
-
filterKey: f.value,
|
|
59
|
-
checkedValues: t.map(e, (R) => R.value)
|
|
60
|
-
}
|
|
61
|
-
];
|
|
62
|
-
q.value && (u.push({
|
|
63
|
-
filterKey: r.value,
|
|
64
|
-
checkedValues: [(o = a.get(r.value)) == null ? void 0 : o.value]
|
|
65
|
-
}), u.push({
|
|
66
|
-
filterKey: s.value,
|
|
67
|
-
checkedValues: [(T = a.get(s.value)) == null ? void 0 : T.value]
|
|
68
|
-
})), S("filterChange", u), console.log(
|
|
69
|
-
`left condition notifyParent nextTick after emit, filterKey: ${f.value}, checkedValues: ${JSON.stringify(t.map(e, (R) => R.value))}`
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
}, z = () => {
|
|
73
|
-
S("setNoNeedRefreshNumFilterName");
|
|
74
|
-
}, A = () => {
|
|
75
|
-
L(), E({ label: r.value, selected: !0, value: v.value }), E({ label: s.value, selected: !0, value: y.value });
|
|
76
|
-
}, G = () => {
|
|
77
|
-
const e = a.get(r.value);
|
|
78
|
-
t.isEmpty(e) && !v.value || t.get(e, "value") === v.value || (A(), N());
|
|
79
|
-
}, H = () => {
|
|
80
|
-
const e = a.get(s.value);
|
|
81
|
-
t.isEmpty(e) && !y.value || t.get(e, "value") === y.value || (A(), N());
|
|
82
|
-
};
|
|
83
|
-
function E(e) {
|
|
84
|
-
console.log(`left condition setSelectedStatusMap start, item: ${JSON.stringify(e)}`), a.set(e.label, {
|
|
85
|
-
selected: e.selected,
|
|
86
|
-
value: e.value
|
|
87
|
-
}), n.value = t.eq(g().length, c.value.length);
|
|
88
|
-
}
|
|
89
|
-
function C(e) {
|
|
90
|
-
return t.includes(K.value, e.value);
|
|
91
|
-
}
|
|
92
|
-
function L() {
|
|
93
|
-
const e = t.map(g(), (l) => l.value);
|
|
94
|
-
a.clear(), t.forEach(p.value, (l) => {
|
|
95
|
-
t.includes(e, l.getValue().value) && l.resetValue();
|
|
96
|
-
}), n.value = !1;
|
|
97
|
-
}
|
|
98
|
-
function x() {
|
|
99
|
-
const e = t.map(g(), (l) => l.value);
|
|
100
|
-
a.clear(), t.forEach(p.value, (l) => {
|
|
101
|
-
t.includes(e, l.getValue().value) && l.resetValue();
|
|
102
|
-
}), n.value = !0, k();
|
|
103
|
-
}
|
|
104
|
-
const g = () => {
|
|
105
|
-
const e = t.filter(
|
|
106
|
-
Array.from(a.values()),
|
|
107
|
-
(l) => l.selected
|
|
108
|
-
);
|
|
109
|
-
return t.filter(e, (l) => {
|
|
110
|
-
const u = Array.from(a.keys()).find((o) => a.get(o) === l);
|
|
111
|
-
return ![r.value, s.value].includes(u);
|
|
112
|
-
});
|
|
113
|
-
}, F = () => t.filter(Array.from(a.values()), (e) => {
|
|
114
|
-
const l = Array.from(a.keys()).find((u) => a.get(u) === e);
|
|
115
|
-
return [r.value, s.value].includes(l);
|
|
116
|
-
}), Q = () => {
|
|
117
|
-
n.value = !1;
|
|
118
|
-
}, W = ee(() => t.sortBy(c.value, (e) => C(e))), w = () => {
|
|
119
|
-
v.value = void 0, y.value = void 0, a.delete(r.value), a.delete(s.value);
|
|
120
|
-
};
|
|
121
|
-
function k() {
|
|
122
|
-
L(), b(() => {
|
|
123
|
-
console.log("selectList.value:", c.value), n.value = !0;
|
|
124
|
-
const e = c.value.filter((u) => !C(u)), l = t.map(e, (u) => u.value);
|
|
125
|
-
S("filterChange", [
|
|
126
|
-
{
|
|
127
|
-
filterKey: f.value,
|
|
128
|
-
checkedValues: _.value ? [] : l
|
|
129
|
-
}
|
|
130
|
-
]);
|
|
131
|
-
}), q.value && w();
|
|
132
|
-
}
|
|
133
|
-
te(
|
|
134
|
-
[() => m.value, () => h.value],
|
|
135
|
-
([e, l], [u, o]) => {
|
|
136
|
-
console.log(e, l), console.log(u, o), (!V.value || !t.eq(V.value, f.value)) && (B.value = m.value, M.value = h.value);
|
|
137
|
-
}
|
|
138
|
-
), O({
|
|
139
|
-
clickAllSelected: k,
|
|
140
|
-
resetAllCheckedValueAndSelectAll: x
|
|
141
|
-
}), le(() => {
|
|
142
|
-
if (!Array.isArray(d.value) || t.isEmpty(d.value)) {
|
|
143
|
-
n.value = !0;
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
console.log("defaultValues.value", d.value), console.log("itemRefs:", p.value), b(() => {
|
|
147
|
-
t.filter(p.value, (e) => e != null && e.getValue ? t.includes(d.value, e.getValue().value) : !1).forEach((e) => {
|
|
148
|
-
e.setCurrentValue(!0), e.setCheckboxValue(!0);
|
|
149
|
-
}), N();
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
const P = { props: I, multiSelectList: K, displayRangeInput: q, selectList: c, hasNum: J, allIsEmpty: _, translateUserId: j, label: D, filterKey: f, rangeStartKey: r, rangeEndKey: s, noNeedRefreshNumFilterName: V, defaultValues: d, totalCount: m, countList: h, showTotal: Y, emit: S, totalNum: B, rangeStart: v, rangeEnd: y, numList: M, selectStatusMap: a, isSelectAll: n, itemRefs: p, notifyParent: N, setNoNeedRefreshNumFilterName: z, setRangeStatus: A, handleStartBlur: G, handleEndBlur: H, setSelectedStatusMap: E, isMultiSelect: C, resetAllCheckedValue: L, resetAllCheckedValueAndSelectAll: x, getCheckedItem: g, getRangeItem: F, resetIsSelectAll: Q, getSortedSelectedList: W, resetRange: w, clickAllSelected: k, LeftConditionSub: ae, get stylesUtils() {
|
|
153
|
-
return ue;
|
|
154
|
-
}, get M2() {
|
|
155
|
-
return re;
|
|
156
|
-
} };
|
|
157
|
-
return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
|
|
158
|
-
}
|
|
159
|
-
});
|
|
1
|
+
import f from "./left-condition.vue.js";
|
|
160
2
|
export {
|
|
161
|
-
|
|
3
|
+
f as default
|
|
162
4
|
};
|
|
@@ -1,22 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
import { defineComponent as c, toRefs as d, ref as h, onMounted as N, createBlock as p, openBlock as y, unref as k } from "vue";
|
|
2
|
+
import C from "../left-condition/left-condition.vue.js";
|
|
3
|
+
import { storage as s } from "../utils/storage.js";
|
|
4
|
+
const v = /* @__PURE__ */ c({
|
|
5
|
+
name: "YaheeLeftConditionEnum",
|
|
6
|
+
__name: "left-condition-enum",
|
|
7
|
+
props: {
|
|
8
|
+
selectList: { default: () => [] },
|
|
9
|
+
countList: { default: () => [] },
|
|
10
|
+
enumEntity: { default: "" },
|
|
11
|
+
filterKey: { default: "" },
|
|
12
|
+
totalCount: { default: 0 },
|
|
13
|
+
noNeedRefreshNumFilterName: { default: "" },
|
|
14
|
+
allIsCheckbox: { type: Boolean },
|
|
15
|
+
allIsEmpty: { type: Boolean },
|
|
16
|
+
translateUserId: { type: Boolean },
|
|
17
|
+
initFilters: {},
|
|
18
|
+
defaultValues: { default: () => [] }
|
|
19
|
+
},
|
|
20
|
+
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
21
|
+
setup(i, { emit: r }) {
|
|
22
|
+
const t = i, { defaultValues: u } = d(t), a = r, l = h(t.selectList), f = (e) => {
|
|
23
|
+
a("filterChange", e);
|
|
24
|
+
}, m = () => {
|
|
25
|
+
a("setNoNeedRefreshNumFilterName", t.filterKey);
|
|
26
|
+
};
|
|
27
|
+
return N(() => {
|
|
28
|
+
const e = `filter-key-${t.enumEntity}`, o = s.getWithExpireTime(e);
|
|
29
|
+
o ? l.value = o : (console.log(t.enumEntity), t.initFilters(t.enumEntity).then((n) => {
|
|
30
|
+
l.value = n.data, s.setWithExpireTime(e, l.value, 1200 * 1e3), console.log(n);
|
|
31
|
+
}).catch((n) => {
|
|
32
|
+
console.log(n);
|
|
33
|
+
}));
|
|
34
|
+
}), (e, o) => (y(), p(C, {
|
|
35
|
+
"select-list": l.value,
|
|
36
|
+
"count-list": e.countList,
|
|
37
|
+
"total-count": e.totalCount,
|
|
38
|
+
"filter-key": e.filterKey,
|
|
39
|
+
"no-need-refresh-num-filter-name": e.noNeedRefreshNumFilterName,
|
|
40
|
+
"all-is-checkbox": e.allIsCheckbox,
|
|
41
|
+
"translate-user-id": e.translateUserId,
|
|
42
|
+
"all-is-empty": e.allIsEmpty,
|
|
43
|
+
"default-values": k(u),
|
|
44
|
+
onFilterChange: f,
|
|
45
|
+
onSetNoNeedRefreshNumFilterName: m
|
|
46
|
+
}, null, 8, ["select-list", "count-list", "total-count", "filter-key", "no-need-refresh-num-filter-name", "all-is-checkbox", "translate-user-id", "all-is-empty", "default-values"]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
20
49
|
export {
|
|
21
|
-
|
|
50
|
+
v as default
|
|
22
51
|
};
|
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import g from "../left-condition/left-condition.vue.js";
|
|
3
|
-
import { storage as a } from "../utils/storage.js";
|
|
4
|
-
const E = /* @__PURE__ */ c({
|
|
5
|
-
name: "YaheeLeftConditionEnum",
|
|
6
|
-
__name: "left-condition-enum",
|
|
7
|
-
props: {
|
|
8
|
-
selectList: { type: Array, required: !0, default: () => [] },
|
|
9
|
-
countList: { type: Array, required: !1, default: () => [] },
|
|
10
|
-
enumEntity: { type: String, required: !0, default: "" },
|
|
11
|
-
filterKey: { type: String, required: !0, default: "" },
|
|
12
|
-
totalCount: { type: Number, required: !1, default: 0 },
|
|
13
|
-
noNeedRefreshNumFilterName: { type: String, required: !1, default: "" },
|
|
14
|
-
allIsCheckbox: { type: Boolean, required: !1 },
|
|
15
|
-
allIsEmpty: { type: Boolean, required: !1 },
|
|
16
|
-
translateUserId: { type: Boolean, required: !1 },
|
|
17
|
-
initFilters: { type: Function, required: !0 },
|
|
18
|
-
defaultValues: { type: Array, required: !1, default: () => [] }
|
|
19
|
-
},
|
|
20
|
-
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
21
|
-
setup(u, { expose: s, emit: f }) {
|
|
22
|
-
s();
|
|
23
|
-
const e = u, { defaultValues: d } = y(e), n = f, t = N(e.selectList), m = (r) => {
|
|
24
|
-
n("filterChange", r);
|
|
25
|
-
}, p = () => {
|
|
26
|
-
n("setNoNeedRefreshNumFilterName", e.filterKey);
|
|
27
|
-
};
|
|
28
|
-
h(() => {
|
|
29
|
-
const r = `filter-key-${e.enumEntity}`, l = a.getWithExpireTime(r);
|
|
30
|
-
l ? t.value = l : (console.log(e.enumEntity), e.initFilters(e.enumEntity).then((i) => {
|
|
31
|
-
t.value = i.data, a.setWithExpireTime(r, t.value, 1200 * 1e3), console.log(i);
|
|
32
|
-
}).catch((i) => {
|
|
33
|
-
console.log(i);
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
36
|
-
const o = { props: e, defaultValues: d, emit: n, options: t, filterChange: m, setNoNeedRefreshNumFilterName: p, LeftCondition: g };
|
|
37
|
-
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
1
|
+
import f from "./left-condition-enum.vue.js";
|
|
40
2
|
export {
|
|
41
|
-
|
|
3
|
+
f as default
|
|
42
4
|
};
|
|
@@ -1,83 +1,104 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as h, computed as f, createElementBlock as n, openBlock as i, createElementVNode as t, normalizeClass as u, toDisplayString as s, createVNode as a, unref as o, createBlock as m, createCommentVNode as N, withCtx as g } from "vue";
|
|
2
|
+
import c from "../packages/components/hooks/useImgPath.js";
|
|
3
|
+
import { ElImage as k, ElIcon as v } 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 y } from "@element-plus/icons-vue";
|
|
8
|
+
const x = { key: 0 }, T = {
|
|
5
9
|
key: 1,
|
|
6
10
|
class: "d-flex ai-end"
|
|
7
|
-
},
|
|
11
|
+
}, b = ["src"], w = ["href"], B = {
|
|
8
12
|
key: 2,
|
|
9
13
|
class: "d-flex ai-end"
|
|
10
|
-
},
|
|
14
|
+
}, C = ["src"], W = ["href"], D = {
|
|
11
15
|
key: 3,
|
|
12
16
|
class: "d-flex ai-end"
|
|
13
|
-
},
|
|
17
|
+
}, E = ["src"], H = ["href"], L = {
|
|
14
18
|
key: 4,
|
|
15
19
|
class: "d-flex ai-end"
|
|
16
|
-
},
|
|
20
|
+
}, M = ["src"], z = ["href"], I = {
|
|
17
21
|
key: 5,
|
|
18
22
|
class: "d-flex ai-end"
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
n("
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
n("
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
e.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
23
|
+
}, S = ["innerHTML"], V = ["innerHTML"], Q = /* @__PURE__ */ h({
|
|
24
|
+
__name: "operation-log-content",
|
|
25
|
+
props: {
|
|
26
|
+
info: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
id: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0
|
|
34
|
+
},
|
|
35
|
+
ifShowDocument: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(e) {
|
|
41
|
+
const l = e, d = f(() => l.info.Notes.replace(/\n/g, "<br/>")), r = f(() => l.info.Notes.includes("http") ? l.info.Title.split(".")[0] : l.info.Title);
|
|
42
|
+
return (j, O) => (i(), n("div", null, [
|
|
43
|
+
t("div", {
|
|
44
|
+
class: u(["fontsize-15 paddingB10 text-color-primary", e.id == e.info.CreatedBy ? "d-flex" : ""])
|
|
45
|
+
}, s(r.value), 3),
|
|
46
|
+
e.info.Notes.includes(".jpg") && e.info.Notes.startsWith("http") ? (i(), n("div", x, [
|
|
47
|
+
a(o(k), {
|
|
48
|
+
class: "img",
|
|
49
|
+
src: e.info.Notes,
|
|
50
|
+
"preview-src-list": [e.info.Notes]
|
|
51
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
52
|
+
])) : e.info.Notes.includes(".word") && e.info.Notes.startsWith("http") ? (i(), n("div", T, [
|
|
53
|
+
t("img", {
|
|
54
|
+
src: o(c)("file-word.png")
|
|
55
|
+
}, null, 8, b),
|
|
56
|
+
t("a", {
|
|
57
|
+
href: e.info.Notes,
|
|
58
|
+
target: "_blank"
|
|
59
|
+
}, s(e.info.Title), 9, w)
|
|
60
|
+
])) : e.info.Notes.includes(".pdf") && e.info.Notes.startsWith("http") ? (i(), n("div", B, [
|
|
61
|
+
t("img", {
|
|
62
|
+
src: o(c)("pdf.png")
|
|
63
|
+
}, null, 8, C),
|
|
64
|
+
t("a", {
|
|
65
|
+
href: e.info.Notes,
|
|
66
|
+
target: "_blank"
|
|
67
|
+
}, s(e.info.Title), 9, W)
|
|
68
|
+
])) : e.info.Notes.includes(".ppt") && e.info.Notes.startsWith("http") ? (i(), n("div", D, [
|
|
69
|
+
t("img", {
|
|
70
|
+
src: o(c)("ppt.png")
|
|
71
|
+
}, null, 8, E),
|
|
72
|
+
t("a", {
|
|
73
|
+
href: e.info.Notes,
|
|
74
|
+
target: "_blank"
|
|
75
|
+
}, s(e.info.Title), 9, H)
|
|
76
|
+
])) : e.info.Notes.includes(".xls") && e.info.Notes.startsWith("http") ? (i(), n("div", L, [
|
|
77
|
+
t("img", {
|
|
78
|
+
src: o(c)("excel.png")
|
|
79
|
+
}, null, 8, M),
|
|
80
|
+
t("a", {
|
|
81
|
+
href: e.info.Notes,
|
|
82
|
+
target: "_blank"
|
|
83
|
+
}, s(e.info.Title), 9, z)
|
|
84
|
+
])) : e.info.Notes.includes("http") ? (i(), n("div", I, [
|
|
85
|
+
e.ifShowDocument ? (i(), m(o(v), {
|
|
86
|
+
key: 0,
|
|
87
|
+
size: "40"
|
|
88
|
+
}, {
|
|
89
|
+
default: g(() => [
|
|
90
|
+
a(o(y))
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})) : N("", !0),
|
|
94
|
+
t("div", { innerHTML: d.value }, null, 8, S)
|
|
95
|
+
])) : (i(), n("div", {
|
|
96
|
+
key: 6,
|
|
97
|
+
innerHTML: d.value
|
|
98
|
+
}, null, 8, V))
|
|
99
|
+
]));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
81
102
|
export {
|
|
82
|
-
|
|
103
|
+
Q as default
|
|
83
104
|
};
|
|
@@ -1,41 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import m from "../packages/components/hooks/useImgPath.js";
|
|
3
|
-
import { ElImage as s, ElIcon as l } 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 a } from "@element-plus/icons-vue";
|
|
8
|
-
const h = /* @__PURE__ */ p({
|
|
9
|
-
__name: "operation-log-content",
|
|
10
|
-
props: {
|
|
11
|
-
info: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default: () => {
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
id: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 0
|
|
19
|
-
},
|
|
20
|
-
ifShowDocument: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !0
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(r, { expose: n }) {
|
|
26
|
-
n();
|
|
27
|
-
const e = r, u = o(() => e.info.Notes.replace(/\n/g, "<br/>")), i = o(() => e.info.Notes.includes("http") ? e.info.Title.split(".")[0] : e.info.Title), t = { props: e, notes: u, title: i, get useImagePath() {
|
|
28
|
-
return m;
|
|
29
|
-
}, get ElIcon() {
|
|
30
|
-
return l;
|
|
31
|
-
}, get ElImage() {
|
|
32
|
-
return s;
|
|
33
|
-
}, get Document() {
|
|
34
|
-
return a;
|
|
35
|
-
} };
|
|
36
|
-
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
1
|
+
import f from "./operation-log-content.vue.js";
|
|
39
2
|
export {
|
|
40
|
-
|
|
3
|
+
f as default
|
|
41
4
|
};
|
|
@@ -1,48 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import f from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
import { defineComponent as u, createBlock as g, openBlock as h, unref as e, withCtx as t, createElementVNode as n, toDisplayString as l, createVNode as c, createTextVNode as r } 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) => (h(), g(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
|
+
});
|
|
46
68
|
export {
|
|
47
|
-
|
|
69
|
+
E as default
|
|
48
70
|
};
|