qy-vue-plugins 0.2.2 → 0.2.3
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/dist/manageTable/SortItem.cjs +1 -1
- package/dist/manageTable/SortItem.mjs +42 -39
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +155 -108
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/manageTable/components/SortItem.vue.d.ts +1 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Re, ref as d, useTemplateRef as je, reactive as Se, computed as
|
|
1
|
+
import { defineComponent as Re, ref as d, useTemplateRef as je, reactive as Se, computed as X, provide as F, watchEffect as Te, watch as U, createElementBlock as c, openBlock as o, createElementVNode as u, createVNode as n, createBlock as v, createCommentVNode as Y, unref as r, withCtx as s, createTextVNode as p, normalizeClass as Ee, toDisplayString as D, Fragment as g, renderList as Z, renderSlot as Ge, toRaw as Ve } from "vue";
|
|
2
2
|
import { _ as Ne } from "../chunks/imageReview.vue_vue_type_style_index_0_lang-DmbHpPMb.js";
|
|
3
|
-
import { _ as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
3
|
+
import { _ as Le } from "../chunks/CreateData.vue_vue_type_script_setup_true_lang-CtZGkue9.js";
|
|
4
|
+
import $e from "./SortItem.mjs";
|
|
5
|
+
import { _ as Ie } from "../chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BsMK0hpE.js";
|
|
6
6
|
import Be from "./FilterItem.mjs";
|
|
7
7
|
import { _ as Ue } from "../chunks/RenderFormItem.vue_vue_type_style_index_0_lang-CfG9qPEQ.js";
|
|
8
8
|
import { _ as ze } from "../chunks/RenderFilterItem.vue_vue_type_script_setup_true_lang-BzV4WQOb.js";
|
|
9
9
|
import { m as He, b as Me } from "../chunks/utils-CYV5FAZZ.js";
|
|
10
|
-
import { ElButton as
|
|
10
|
+
import { ElButton as k, ElPopover as qe, ElCheckbox as z, ElCheckboxGroup as Ke, ElIcon as R, ElSwitch as Ae, ElSelect as Qe, ElOption as Je, ElTable as Pe, ElTableColumn as _, ElImage as We, ElMessage as h, ElMessageBox as ee, ElNotification as Xe, dayjs as Ye } from "element-plus";
|
|
11
11
|
import { CaretBottom as Ze, Search as _e, Picture as et, CirclePlus as te, Calendar as tt } from "@element-plus/icons-vue";
|
|
12
12
|
import { u as at, a as lt, b as rt, q as nt, p as ot, r as it, c as st } from "../chunks/ProvideKeys-jhgDnhL_.js";
|
|
13
13
|
import { f as ut } from "../chunks/EventKeys-Cy8iJb0N.js";
|
|
@@ -21,7 +21,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
21
21
|
type: "primary",
|
|
22
22
|
role: "button",
|
|
23
23
|
style: { "border-radius": "var(--el-border-radius-base)", width: "95px" }
|
|
24
|
-
},
|
|
24
|
+
}, kt = { class: "right" }, bt = { class: "select_input_wrapper" }, Ct = { style: { width: "150px" } }, xt = { class: "table-body" }, wt = {
|
|
25
25
|
key: 4,
|
|
26
26
|
class: "latin-name"
|
|
27
27
|
}, Ft = /* @__PURE__ */ Re({
|
|
@@ -50,23 +50,26 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
50
50
|
showMap: { type: Function }
|
|
51
51
|
},
|
|
52
52
|
setup(l, { expose: ae }) {
|
|
53
|
-
const
|
|
53
|
+
const H = d(!1);
|
|
54
54
|
var E = d({});
|
|
55
|
-
const O = d(""),
|
|
55
|
+
const O = d(""), j = d({}), M = d(), q = d(), x = d([]), m = d([]), K = je("dataTableRef"), S = d(!1), T = Se({
|
|
56
56
|
rowID: null,
|
|
57
57
|
index: null
|
|
58
58
|
}), le = () => {
|
|
59
59
|
l.showMap ? l.showMap(Ve(f.value)) : h.warning("暂不支持地图查看");
|
|
60
60
|
}, re = (a, t, e, C) => {
|
|
61
|
-
|
|
61
|
+
S.value && (T.rowID = a.id, T.index = t.getColumnIndex());
|
|
62
62
|
}, f = d([]), ne = (a) => {
|
|
63
63
|
f.value = a;
|
|
64
|
-
},
|
|
65
|
-
|
|
64
|
+
}, A = X(() => [
|
|
65
|
+
...x.value.map((a) => a.property),
|
|
66
|
+
...m.value
|
|
67
|
+
]), oe = (a) => {
|
|
68
|
+
if (A.value.indexOf(a.property) > -1)
|
|
66
69
|
return !0;
|
|
67
70
|
if (!a.property && a.propertyGroup)
|
|
68
|
-
return
|
|
69
|
-
}, ie =
|
|
71
|
+
return A.value.indexOf(a.propertyGroup.join("_")) > -1;
|
|
72
|
+
}, ie = X(() => {
|
|
70
73
|
const a = [];
|
|
71
74
|
return y.value.forEach((t) => {
|
|
72
75
|
t.property ? m.value.indexOf(t.property) > -1 && a.push(t) : t.propertyGroup && m.value.indexOf(t.propertyGroup.join("_")) > -1 && a.push(t);
|
|
@@ -83,45 +86,56 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
83
86
|
l.exportHandel ? l.exportHandel(JSON.parse(JSON.stringify(f.value))) : h.warning("暂不支持导出");
|
|
84
87
|
}, pe = (a) => {
|
|
85
88
|
try {
|
|
86
|
-
|
|
89
|
+
M.value?.open(JSON.parse(a));
|
|
87
90
|
} catch {
|
|
88
91
|
}
|
|
89
92
|
}, fe = (a) => a.id;
|
|
90
93
|
l.uploadFile && F(at, l.uploadFile), l.rowDataOptions && F(lt, l.rowDataOptions), l.researchDataOptions && F(rt, l.researchDataOptions), l.queryResearchDataOptions && F(nt, l.queryResearchDataOptions), F(ot, l.projectId), F(it, l.researchStandard), l.researchDataQuery && F(st, l.researchDataQuery);
|
|
91
94
|
const ye = () => {
|
|
92
|
-
l.dataType == "row-data" ?
|
|
95
|
+
l.dataType == "row-data" ? q.value?.showDialog(l.category, l.layerName) : h.warning("暂不支持新增");
|
|
93
96
|
}, ce = () => {
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
console.log("filterForm.value",
|
|
97
|
+
Q();
|
|
98
|
+
}, Q = () => {
|
|
99
|
+
console.log("filterForm.value", j.value), ut.emit(j.value);
|
|
97
100
|
}, ve = () => {
|
|
98
101
|
if (f.value.length == 0) {
|
|
99
102
|
h.warning("请先选择数据");
|
|
100
103
|
return;
|
|
101
104
|
}
|
|
102
105
|
var a = l.dataType == "row-data" ? l.deleteRowDataOptions : l.deleteResearchDataOptions;
|
|
103
|
-
a ? ee.confirm(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
106
|
+
a ? ee.confirm(
|
|
107
|
+
`是否要删除这${f.value.length}条调查数据?`,
|
|
108
|
+
"提示",
|
|
109
|
+
{
|
|
110
|
+
confirmButtonText: "确定",
|
|
111
|
+
cancelButtonText: "取消",
|
|
112
|
+
type: "warning"
|
|
113
|
+
}
|
|
114
|
+
).then(() => {
|
|
115
|
+
a && a({ ids: f.value.map((t) => t.id) }).then(
|
|
116
|
+
(t) => {
|
|
117
|
+
let e = 0, C = /* @__PURE__ */ new Set(), i = 0;
|
|
118
|
+
Object.entries(t.data).forEach(([Dt, B]) => {
|
|
119
|
+
(B.ykk_code || B.code) != 1e4 ? (e++, C.add(B.msg)) : i++;
|
|
120
|
+
});
|
|
121
|
+
let b = [];
|
|
122
|
+
i > 0 && b.push(`成功删除${i}条`), e > 0 && (b.push(`失败${e}条`), b.push("失败原因:" + Array.from(C).join(",") + "。")), Xe({
|
|
123
|
+
title: "提示",
|
|
124
|
+
message: "共选择" + f.value.length + "条数据," + b.join(","),
|
|
125
|
+
type: "warning"
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
);
|
|
120
129
|
}).catch(() => {
|
|
121
130
|
}) : h.warning("暂不支持删除");
|
|
122
131
|
}, he = () => {
|
|
123
132
|
if (l.dataType == "row-data") {
|
|
124
|
-
if ([
|
|
133
|
+
if ([
|
|
134
|
+
"soilResearchCollect",
|
|
135
|
+
"waterResearchCollect",
|
|
136
|
+
"plantResearchCollect",
|
|
137
|
+
"fungusResearchCollect"
|
|
138
|
+
].indexOf(l.category) > -1) {
|
|
125
139
|
h.warning("暂不支持复制");
|
|
126
140
|
return;
|
|
127
141
|
}
|
|
@@ -130,23 +144,29 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
130
144
|
return;
|
|
131
145
|
}
|
|
132
146
|
var a = l.dataType == "row-data" ? l.rowDataOptions : l.researchDataOptions;
|
|
133
|
-
a ? ee.confirm(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
147
|
+
a ? ee.confirm(
|
|
148
|
+
`是否要复制这${f.value.length}条调查数据?`,
|
|
149
|
+
"提示",
|
|
150
|
+
{
|
|
151
|
+
confirmButtonText: "确定",
|
|
152
|
+
cancelButtonText: "取消",
|
|
153
|
+
type: "warning"
|
|
154
|
+
}
|
|
155
|
+
).then(async () => {
|
|
156
|
+
H.value = !0;
|
|
139
157
|
for (let t = 0; t < f.value.length; t++) {
|
|
140
158
|
const e = Object.assign({}, f.value[t]);
|
|
141
159
|
delete e.id, e.createDate = Ye().unix(), a && await a([e]);
|
|
142
160
|
}
|
|
143
|
-
|
|
161
|
+
H.value = !1, h.success("复制成功");
|
|
144
162
|
}).catch(() => {
|
|
145
163
|
}) : h.warning("暂不支持复制");
|
|
146
164
|
} else
|
|
147
165
|
h.warning("暂不支持复制");
|
|
148
|
-
},
|
|
149
|
-
if (["vegetationResearchCollect", "humanActivity", "naturalDisaster"].indexOf(
|
|
166
|
+
}, J = d(), me = () => {
|
|
167
|
+
if (["vegetationResearchCollect", "humanActivity", "naturalDisaster"].indexOf(
|
|
168
|
+
l.category
|
|
169
|
+
) > -1) {
|
|
150
170
|
h.warning("暂不支持替换");
|
|
151
171
|
return;
|
|
152
172
|
}
|
|
@@ -155,44 +175,54 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
155
175
|
return;
|
|
156
176
|
}
|
|
157
177
|
if (l.dataType == "row-data") {
|
|
158
|
-
|
|
178
|
+
J.value?.showDialog(l.category, f.value);
|
|
159
179
|
return;
|
|
160
180
|
} else {
|
|
161
181
|
h.warning("暂不支持替换");
|
|
162
182
|
return;
|
|
163
183
|
}
|
|
164
|
-
},
|
|
165
|
-
|
|
184
|
+
}, G = d(), ge = () => {
|
|
185
|
+
G.value?.showDialog(
|
|
166
186
|
l.fieldList.filter((a) => a.sortAble),
|
|
167
187
|
"createDate"
|
|
168
188
|
);
|
|
169
|
-
},
|
|
189
|
+
}, V = d([]), ke = (a) => {
|
|
170
190
|
if (a.length == 0) {
|
|
171
|
-
|
|
191
|
+
V.value = [];
|
|
172
192
|
return;
|
|
173
193
|
} else
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
|
|
194
|
+
V.value = a;
|
|
195
|
+
}, N = d(), be = () => {
|
|
196
|
+
N.value?.showDialog(l.fieldList.filter((a) => a.filterAble));
|
|
177
197
|
}, Ce = (a) => {
|
|
178
198
|
E.value = a;
|
|
179
|
-
},
|
|
199
|
+
}, L = d(!0), P = d(!1), $ = d(!1), y = d([]), xe = (a) => {
|
|
180
200
|
if (a) {
|
|
181
|
-
const t = y.value.map(
|
|
201
|
+
const t = y.value.map(
|
|
202
|
+
(e) => e.property ? e.property : e.propertyGroup ? e.propertyGroup.join("_") : "xxx"
|
|
203
|
+
);
|
|
182
204
|
t && t.length > 0 && (m.value = t);
|
|
183
205
|
} else {
|
|
184
|
-
const t = y.value.filter((e) => e.fixed).map(
|
|
185
|
-
|
|
206
|
+
const t = y.value.filter((e) => e.fixed).map(
|
|
207
|
+
(e) => e.property ? e.property : e.propertyGroup ? e.propertyGroup.join("_") : "xxx"
|
|
208
|
+
);
|
|
209
|
+
m.value = t, W(m.value);
|
|
186
210
|
}
|
|
187
211
|
$.value = !1;
|
|
188
|
-
},
|
|
212
|
+
}, W = (a) => {
|
|
189
213
|
let t = [];
|
|
190
214
|
y.value.forEach((e) => {
|
|
191
|
-
e.property ? t.push({
|
|
215
|
+
e.property ? t.push({
|
|
216
|
+
filedName: e.property,
|
|
217
|
+
check: a.indexOf(e.property) != -1
|
|
218
|
+
}) : t.push({
|
|
219
|
+
filedName: (e.propertyGroup ?? []).join("_"),
|
|
220
|
+
check: a.indexOf((e.propertyGroup ?? []).join("_")) != -1
|
|
221
|
+
});
|
|
192
222
|
});
|
|
193
223
|
}, we = (a) => {
|
|
194
224
|
const t = a.length;
|
|
195
|
-
|
|
225
|
+
L.value = t === y.value.length, $.value = t > 0 && t < y.value.length, W(a);
|
|
196
226
|
}, w = d([]), Fe = (a) => {
|
|
197
227
|
x.value.length = 0, y.value.length = 0, w.value.length = 0, a.forEach((t) => {
|
|
198
228
|
t?.fixed ? x.value.push(t) : y.value.push(t), t?.isQuickFilter && w.value.push(t);
|
|
@@ -207,15 +237,15 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
207
237
|
});
|
|
208
238
|
};
|
|
209
239
|
Te(() => {
|
|
210
|
-
console.log("customFields", l.customFields), Fe(He(l.fieldList, l.customFields, l.dataType));
|
|
240
|
+
console.log("customFields", l.customFields), N.value?.resetForm(), G.value?.resetForm(), j.value = {}, V.value = [], Fe(He(l.fieldList, l.customFields, l.dataType));
|
|
211
241
|
});
|
|
212
242
|
const Oe = () => {
|
|
213
|
-
f.value.length = 0,
|
|
243
|
+
f.value.length = 0, K.value?.clearSelection();
|
|
214
244
|
};
|
|
215
|
-
return
|
|
245
|
+
return U(
|
|
216
246
|
() => l.fieldList,
|
|
217
247
|
(a) => {
|
|
218
|
-
|
|
248
|
+
console.log("fieldList", a), Oe(), y.value = a.filter((e) => e.isShow && !e.fixed).map((e) => ({
|
|
219
249
|
...e,
|
|
220
250
|
property: e.property || (e.propertyGroup ? e.propertyGroup.join("_") : "")
|
|
221
251
|
}));
|
|
@@ -226,7 +256,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
226
256
|
})), console.log("fixedFieldList.value", x.value);
|
|
227
257
|
},
|
|
228
258
|
{ immediate: !0 }
|
|
229
|
-
),
|
|
259
|
+
), U(
|
|
230
260
|
() => l.customFields,
|
|
231
261
|
() => {
|
|
232
262
|
l.customFields.forEach((a) => {
|
|
@@ -236,13 +266,21 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
236
266
|
}), console.log("allCustomField.value", I.value);
|
|
237
267
|
},
|
|
238
268
|
{ immediate: !0 }
|
|
269
|
+
), U(
|
|
270
|
+
() => l.dataType,
|
|
271
|
+
(a) => {
|
|
272
|
+
console.log("newVal", a);
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
deep: !0
|
|
276
|
+
}
|
|
239
277
|
), ae({
|
|
240
278
|
showFields: m,
|
|
241
279
|
fixedFieldList: x
|
|
242
280
|
}), (a, t) => (o(), c("div", ft, [
|
|
243
281
|
u("div", yt, [
|
|
244
282
|
u("div", ct, [
|
|
245
|
-
n(r(
|
|
283
|
+
n(r(k), {
|
|
246
284
|
type: "primary",
|
|
247
285
|
plain: "",
|
|
248
286
|
onClick: de
|
|
@@ -253,7 +291,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
253
291
|
])]),
|
|
254
292
|
_: 1
|
|
255
293
|
}),
|
|
256
|
-
l.category != "photoResearch" ? (o(), v(r(
|
|
294
|
+
l.category != "photoResearch" ? (o(), v(r(k), {
|
|
257
295
|
key: 0,
|
|
258
296
|
type: "primary",
|
|
259
297
|
plain: "",
|
|
@@ -265,7 +303,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
265
303
|
])]),
|
|
266
304
|
_: 1
|
|
267
305
|
})) : Y("", !0),
|
|
268
|
-
n(r(
|
|
306
|
+
n(r(k), {
|
|
269
307
|
type: "primary",
|
|
270
308
|
plain: "",
|
|
271
309
|
onClick: ve
|
|
@@ -276,7 +314,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
276
314
|
])]),
|
|
277
315
|
_: 1
|
|
278
316
|
}),
|
|
279
|
-
n(r(
|
|
317
|
+
n(r(k), {
|
|
280
318
|
type: "primary",
|
|
281
319
|
plain: "",
|
|
282
320
|
onClick: he
|
|
@@ -287,7 +325,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
287
325
|
])]),
|
|
288
326
|
_: 1
|
|
289
327
|
}),
|
|
290
|
-
n(r(
|
|
328
|
+
n(r(k), {
|
|
291
329
|
type: "primary",
|
|
292
330
|
plain: "",
|
|
293
331
|
onClick: me
|
|
@@ -298,7 +336,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
298
336
|
])]),
|
|
299
337
|
_: 1
|
|
300
338
|
}),
|
|
301
|
-
n(r(
|
|
339
|
+
n(r(k), {
|
|
302
340
|
type: "primary",
|
|
303
341
|
plain: "",
|
|
304
342
|
onClick: ge
|
|
@@ -309,14 +347,17 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
309
347
|
])]),
|
|
310
348
|
_: 1
|
|
311
349
|
}),
|
|
312
|
-
n(r(
|
|
350
|
+
n(r(k), {
|
|
313
351
|
type: "primary",
|
|
314
352
|
plain: "",
|
|
315
|
-
onClick:
|
|
353
|
+
onClick: be
|
|
316
354
|
}, {
|
|
317
355
|
default: s(() => [
|
|
318
356
|
u("i", {
|
|
319
|
-
class: Ee(["icon", {
|
|
357
|
+
class: Ee(["icon", {
|
|
358
|
+
"bjh-shaixuan2": Object.keys(r(E)).length == 0,
|
|
359
|
+
"bjh-shaixuan1 active": Object.keys(r(E)).length > 0
|
|
360
|
+
}])
|
|
320
361
|
}, null, 2),
|
|
321
362
|
t[14] || (t[14] = p("筛选 ", -1))
|
|
322
363
|
]),
|
|
@@ -328,7 +369,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
328
369
|
trigger: "click"
|
|
329
370
|
}, {
|
|
330
371
|
reference: s(() => [
|
|
331
|
-
n(r(
|
|
372
|
+
n(r(k), {
|
|
332
373
|
size: "default",
|
|
333
374
|
type: "primary",
|
|
334
375
|
plain: "",
|
|
@@ -350,9 +391,9 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
350
391
|
default: s(() => [
|
|
351
392
|
u("div", vt, [
|
|
352
393
|
u("div", ht, [
|
|
353
|
-
n(r(
|
|
354
|
-
modelValue:
|
|
355
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
394
|
+
n(r(z), {
|
|
395
|
+
modelValue: L.value,
|
|
396
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => L.value = e),
|
|
356
397
|
indeterminate: $.value,
|
|
357
398
|
onChange: xe
|
|
358
399
|
}, {
|
|
@@ -371,8 +412,8 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
371
412
|
n(r(dt), {
|
|
372
413
|
modelValue: y.value,
|
|
373
414
|
"onUpdate:modelValue": t[1] || (t[1] = (e) => y.value = e),
|
|
374
|
-
onStart: t[2] || (t[2] = (e) =>
|
|
375
|
-
onEnd: t[3] || (t[3] = (e) =>
|
|
415
|
+
onStart: t[2] || (t[2] = (e) => P.value = !0),
|
|
416
|
+
onEnd: t[3] || (t[3] = (e) => P.value = !1),
|
|
376
417
|
"item-key": "title",
|
|
377
418
|
onChange: De,
|
|
378
419
|
animation: 400,
|
|
@@ -382,7 +423,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
382
423
|
item: s(({ element: e }) => [
|
|
383
424
|
u("div", mt, [
|
|
384
425
|
t[18] || (t[18] = u("span", { class: "icon bjh-ketuodong" }, null, -1)),
|
|
385
|
-
e.property ? (o(), v(r(
|
|
426
|
+
e.property ? (o(), v(r(z), {
|
|
386
427
|
key: 0,
|
|
387
428
|
value: e.property
|
|
388
429
|
}, {
|
|
@@ -390,7 +431,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
390
431
|
p(D(e.title), 1)
|
|
391
432
|
]),
|
|
392
433
|
_: 2
|
|
393
|
-
}, 1032, ["value"])) : (o(), v(r(
|
|
434
|
+
}, 1032, ["value"])) : (o(), v(r(z), {
|
|
394
435
|
key: 1,
|
|
395
436
|
value: e.propertyGroup.join("_")
|
|
396
437
|
}, {
|
|
@@ -414,13 +455,13 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
414
455
|
t[19] || (t[19] = p(" 编辑 ", -1)),
|
|
415
456
|
n(r(Ae), {
|
|
416
457
|
size: "small",
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) =>
|
|
458
|
+
modelValue: S.value,
|
|
459
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => S.value = e)
|
|
419
460
|
}, null, 8, ["modelValue"])
|
|
420
461
|
])
|
|
421
462
|
]),
|
|
422
|
-
u("div",
|
|
423
|
-
n(r(
|
|
463
|
+
u("div", kt, [
|
|
464
|
+
n(r(k), {
|
|
424
465
|
onClick: le,
|
|
425
466
|
type: "primary",
|
|
426
467
|
plain: ""
|
|
@@ -431,7 +472,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
431
472
|
])]),
|
|
432
473
|
_: 1
|
|
433
474
|
}),
|
|
434
|
-
u("div",
|
|
475
|
+
u("div", bt, [
|
|
435
476
|
n(r(Qe), {
|
|
436
477
|
modelValue: O.value,
|
|
437
478
|
"onUpdate:modelValue": t[6] || (t[6] = (e) => O.value = e),
|
|
@@ -449,16 +490,16 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
449
490
|
u("div", Ct, [
|
|
450
491
|
(o(), v(ze, {
|
|
451
492
|
ref: "renderFilterRef",
|
|
452
|
-
modelValue:
|
|
453
|
-
"onUpdate:modelValue": t[7] || (t[7] = (e) =>
|
|
493
|
+
modelValue: j.value,
|
|
494
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => j.value = e),
|
|
454
495
|
field: w.value.find((e) => e.property == O.value),
|
|
455
496
|
key: O.value,
|
|
456
497
|
onChange: ce
|
|
457
498
|
}, null, 8, ["modelValue", "field"]))
|
|
458
499
|
]),
|
|
459
|
-
n(r(
|
|
500
|
+
n(r(k), {
|
|
460
501
|
icon: r(_e),
|
|
461
|
-
onClick:
|
|
502
|
+
onClick: Q,
|
|
462
503
|
type: "primary",
|
|
463
504
|
plain: ""
|
|
464
505
|
}, null, 8, ["icon"])
|
|
@@ -468,7 +509,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
468
509
|
u("div", xt, [
|
|
469
510
|
n(r(Pe), {
|
|
470
511
|
ref_key: "dataTableRef",
|
|
471
|
-
ref:
|
|
512
|
+
ref: K,
|
|
472
513
|
onSortChange: l.onSortChange,
|
|
473
514
|
"header-row-class-name": "table-header",
|
|
474
515
|
data: l.records,
|
|
@@ -497,11 +538,11 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
497
538
|
width: e.width || 150
|
|
498
539
|
}, {
|
|
499
540
|
default: s(({ row: i }) => [
|
|
500
|
-
|
|
541
|
+
S.value && T.rowID === i.id && T.index === C + 1 && !e.disable ? (o(), v(Ue, {
|
|
501
542
|
key: e.title + "-" + i.id,
|
|
502
543
|
field: e,
|
|
503
544
|
data: i,
|
|
504
|
-
onChange: (
|
|
545
|
+
onChange: (b) => l.saveData(b, i, e)
|
|
505
546
|
}, null, 8, ["field", "data", "onChange"])) : (o(), c(g, { key: 1 }, [
|
|
506
547
|
I.value.indexOf(e.property) !== -1 ? (o(), c(g, { key: 0 }, [
|
|
507
548
|
p(D(ue(i, e.property)), 1)
|
|
@@ -509,7 +550,7 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
509
550
|
i[e.property] && i[e.property].length > 10 ? (o(), v(r(R), {
|
|
510
551
|
key: 0,
|
|
511
552
|
size: "20",
|
|
512
|
-
onClick: (
|
|
553
|
+
onClick: (b) => S.value ? null : pe(i[e.property]),
|
|
513
554
|
color: "green"
|
|
514
555
|
}, {
|
|
515
556
|
default: s(() => [
|
|
@@ -554,14 +595,20 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
554
595
|
_: 1
|
|
555
596
|
})) : e.property === "latinName" ? (o(), c("p", wt, D(i[e.property]), 1)) : e.property === "previewImage" ? (o(), v(r(We), {
|
|
556
597
|
key: 5,
|
|
557
|
-
src: l.buildThumbUrl ? l.buildThumbUrl(
|
|
598
|
+
src: l.buildThumbUrl ? l.buildThumbUrl(
|
|
599
|
+
e.render ? e.render(i[e.property], i, C) : i[e.property]
|
|
600
|
+
) : "",
|
|
558
601
|
fit: "cover",
|
|
559
|
-
"preview-src-list": [
|
|
602
|
+
"preview-src-list": [
|
|
603
|
+
r(Me)(
|
|
604
|
+
e.render ? e.render(i[e.property], i, C) : i[e.property]
|
|
605
|
+
)
|
|
606
|
+
],
|
|
560
607
|
"preview-teleported": !0,
|
|
561
608
|
lazy: !0,
|
|
562
609
|
style: { width: "100px", height: "100px" }
|
|
563
610
|
}, null, 8, ["src", "preview-src-list"])) : e.propertyGroup ? (o(), c(g, { key: 6 }, [
|
|
564
|
-
p(D(e.propertyGroup.map((
|
|
611
|
+
p(D(e.propertyGroup.map((b) => i[b]).join("/")), 1)
|
|
565
612
|
], 64)) : (o(), c(g, { key: 7 }, [
|
|
566
613
|
e.render ? (o(), c(g, { key: 0 }, [
|
|
567
614
|
p(D(e.render(i[e.property], i, C)), 1)
|
|
@@ -581,29 +628,29 @@ const ft = { class: "manage-table" }, yt = { class: "table-header" }, ct = { cla
|
|
|
581
628
|
]),
|
|
582
629
|
n(Ne, {
|
|
583
630
|
ref_key: "imageTagRef",
|
|
584
|
-
ref:
|
|
631
|
+
ref: M
|
|
585
632
|
}, null, 512),
|
|
586
|
-
n(
|
|
633
|
+
n(Le, {
|
|
587
634
|
ref_key: "createDataRef",
|
|
588
|
-
ref:
|
|
635
|
+
ref: q
|
|
589
636
|
}, null, 512),
|
|
590
|
-
n(
|
|
637
|
+
n(Ie, {
|
|
591
638
|
ref_key: "replaceSpeciesNameDialogRef",
|
|
592
|
-
ref:
|
|
639
|
+
ref: J
|
|
593
640
|
}, null, 512),
|
|
594
|
-
n(
|
|
641
|
+
n($e, {
|
|
595
642
|
ref_key: "sortRef",
|
|
596
|
-
ref:
|
|
597
|
-
onCallback:
|
|
643
|
+
ref: G,
|
|
644
|
+
onCallback: ke
|
|
598
645
|
}, null, 512),
|
|
599
646
|
n(Be, {
|
|
600
647
|
ref_key: "filterRef",
|
|
601
|
-
ref:
|
|
648
|
+
ref: N,
|
|
602
649
|
onCallback: Ce
|
|
603
650
|
}, null, 512)
|
|
604
651
|
]));
|
|
605
652
|
}
|
|
606
|
-
}), Mt = /* @__PURE__ */ pt(Ft, [["__scopeId", "data-v-
|
|
653
|
+
}), Mt = /* @__PURE__ */ pt(Ft, [["__scopeId", "data-v-dd925e93"]]);
|
|
607
654
|
export {
|
|
608
655
|
Mt as default
|
|
609
656
|
};
|