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