qy-vue-plugins 0.1.21 → 0.1.23
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/chunks/EventKeys-Cy8iJb0N.js +8 -0
- package/dist/chunks/EventKeys-D78tN5KT.js +1 -0
- package/dist/chunks/RenderFormItem.vue_vue_type_style_index_0_lang-CGxnSN-x.js +1 -0
- package/dist/chunks/{RenderFormItem.vue_vue_type_style_index_0_lang-BKjS65Ak.js → RenderFormItem.vue_vue_type_style_index_0_lang-LijDQik_.js} +68 -68
- package/dist/manageTable/FilterItem.cjs +1 -1
- package/dist/manageTable/FilterItem.mjs +71 -70
- package/dist/manageTable/RenderFormItem.cjs +1 -1
- package/dist/manageTable/RenderFormItem.mjs +1 -1
- package/dist/manageTable/SortItem.cjs +1 -1
- package/dist/manageTable/SortItem.mjs +44 -43
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +7 -4
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +187 -174
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/manageTable/EventKeys.d.ts +4 -0
- package/dist/types/manageTable/index.d.ts +2 -1
- package/dist/types/types/manageTable.d.ts +3 -3
- package/package/manageTable/EventKeys.ts +9 -0
- package/package/manageTable/index.ts +2 -1
- package/package.json +1 -1
- package/dist/chunks/RenderFormItem.vue_vue_type_style_index_0_lang-DyQCqwfZ.js +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as me, ref as u, reactive as be, computed as U, provide as x, watch as ke, createElementBlock as f, openBlock as i, createElementVNode as p, createVNode as o, createBlock as v, createCommentVNode as q, unref as r, withCtx as s, createTextVNode as d, normalizeClass as Ce, toDisplayString as w, Fragment as m, renderList as xe } from "vue";
|
|
2
2
|
import { _ as we } from "../chunks/imageReview.vue_vue_type_style_index_0_lang-CJi-hvC0.js";
|
|
3
3
|
import { _ as De } from "../chunks/CreateData.vue_vue_type_script_setup_true_lang-D-eyHIr6.js";
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
8
|
-
import { b as
|
|
9
|
-
import { ElButton as C, ElPopover as
|
|
10
|
-
import { CaretBottom as $e, Picture as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
4
|
+
import Oe from "./SortItem.mjs";
|
|
5
|
+
import { _ as Re } from "../chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CZWZ8Fr_.js";
|
|
6
|
+
import je from "./FilterItem.mjs";
|
|
7
|
+
import { _ as Fe } from "../chunks/RenderFormItem.vue_vue_type_style_index_0_lang-LijDQik_.js";
|
|
8
|
+
import { b as Se } from "../chunks/utils-DIRgjeAd.js";
|
|
9
|
+
import { ElButton as C, ElPopover as Te, ElCheckbox as E, ElCheckboxGroup as Ge, ElIcon as D, ElSwitch as Ee, ElTable as Ne, ElTableColumn as A, ElImage as Ve, ElMessage as c, ElMessageBox as M, ElNotification as Ie, dayjs as Le } from "element-plus";
|
|
10
|
+
import { CaretBottom as $e, Picture as Be, CirclePlus as J, Calendar as He } from "@element-plus/icons-vue";
|
|
11
|
+
import { u as ze, a as Ke, b as Ue, q as qe, p as Ae, r as Me, c as Je } from "../chunks/ProvideKeys-jhgDnhL_.js";
|
|
12
|
+
import Qe from "vuedraggable";
|
|
13
|
+
import { _ as Pe } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const We = { class: "manage-table" }, Xe = { class: "table-header" }, Ye = { class: "left" }, Ze = { class: "field-sort" }, _e = { class: "field-sort-header" }, et = { class: "menus-popover-sort" }, tt = {
|
|
15
15
|
class: "el-button el-button--primary is-plain",
|
|
16
16
|
type: "primary",
|
|
17
17
|
role: "button",
|
|
18
18
|
style: { "border-radius": "var(--el-border-radius-base)", width: "95px" }
|
|
19
|
-
},
|
|
19
|
+
}, at = { class: "table-body" }, rt = {
|
|
20
20
|
key: 4,
|
|
21
21
|
class: "latin-name"
|
|
22
|
-
},
|
|
22
|
+
}, lt = /* @__PURE__ */ me({
|
|
23
23
|
name: "ManageTable",
|
|
24
24
|
__name: "manageTable",
|
|
25
25
|
props: {
|
|
@@ -43,20 +43,30 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
43
43
|
deleteRowDataOptions: { type: Function },
|
|
44
44
|
researchDataQuery: { type: Function }
|
|
45
45
|
},
|
|
46
|
-
setup(l, { expose:
|
|
47
|
-
const
|
|
46
|
+
setup(l, { expose: Q }) {
|
|
47
|
+
const P = u({
|
|
48
48
|
prop: "createDate",
|
|
49
49
|
order: "descending"
|
|
50
50
|
}), N = u(!1);
|
|
51
|
-
var
|
|
52
|
-
const
|
|
51
|
+
var F = u({});
|
|
52
|
+
const V = u(), I = u(), O = u([]), h = u([]), W = u([]), X = u(), R = u(!1), j = be({
|
|
53
53
|
rowID: null,
|
|
54
54
|
index: null
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
}, y = u([]),
|
|
55
|
+
}), Y = (a, t, e, k) => {
|
|
56
|
+
R.value && (j.rowID = a.id, j.index = t.getColumnIndex());
|
|
57
|
+
}, y = u([]), Z = (a) => {
|
|
58
58
|
y.value = a;
|
|
59
|
-
},
|
|
59
|
+
}, L = U(() => [...O.value.map((a) => a.property), ...h.value]), _ = (a) => {
|
|
60
|
+
if (L.value.indexOf(a.property) > -1)
|
|
61
|
+
return !0;
|
|
62
|
+
if (!a.property && a.propertyGroup)
|
|
63
|
+
return L.value.indexOf(a.propertyGroup.join("_")) > -1;
|
|
64
|
+
}, ee = U(() => {
|
|
65
|
+
const a = [];
|
|
66
|
+
return g.value.forEach((t) => {
|
|
67
|
+
t.property ? h.value.indexOf(t.property) > -1 && a.push(t) : t.propertyGroup && h.value.indexOf(t.propertyGroup.join("_")) > -1 && a.push(t);
|
|
68
|
+
}), [...O.value, ...a];
|
|
69
|
+
}), te = (a) => a.unit ? `${a.title}(${a.unit})` : a.title, ae = (a, t) => {
|
|
60
70
|
if (a.extra)
|
|
61
71
|
try {
|
|
62
72
|
return JSON.parse(a.extra)[t];
|
|
@@ -64,37 +74,37 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
64
74
|
return "";
|
|
65
75
|
}
|
|
66
76
|
return "";
|
|
67
|
-
},
|
|
77
|
+
}, re = () => {
|
|
68
78
|
l.exportHandel ? l.exportHandel(JSON.parse(JSON.stringify(y.value))) : c.warning("暂不支持导出");
|
|
69
|
-
},
|
|
79
|
+
}, le = (a) => {
|
|
70
80
|
var t;
|
|
71
81
|
try {
|
|
72
|
-
(t =
|
|
82
|
+
(t = V.value) == null || t.open(JSON.parse(a));
|
|
73
83
|
} catch {
|
|
74
84
|
}
|
|
75
|
-
},
|
|
76
|
-
l.uploadFile &&
|
|
77
|
-
const
|
|
85
|
+
}, ne = (a) => a.id;
|
|
86
|
+
l.uploadFile && x(ze, l.uploadFile), l.rowDataOptions && x(Ke, l.rowDataOptions), l.researchDataOptions && x(Ue, l.researchDataOptions), l.queryResearchDataOptions && x(qe, l.queryResearchDataOptions), x(Ae, l.projectId), x(Me, l.researchStandard), l.researchDataQuery && x(Je, l.researchDataQuery);
|
|
87
|
+
const oe = () => {
|
|
78
88
|
var a;
|
|
79
|
-
l.dataType == "row-data" ? (a =
|
|
80
|
-
},
|
|
89
|
+
l.dataType == "row-data" ? (a = I.value) == null || a.showDialog(l.category, l.layerName) : c.warning("暂不支持新增");
|
|
90
|
+
}, ie = () => {
|
|
81
91
|
if (y.value.length == 0) {
|
|
82
92
|
c.warning("请先选择数据");
|
|
83
93
|
return;
|
|
84
94
|
}
|
|
85
95
|
var a = l.dataType == "row-data" ? l.deleteRowDataOptions : l.deleteResearchDataOptions;
|
|
86
|
-
a ?
|
|
96
|
+
a ? M.confirm(`是否要删除这${y.value.length}条调查数据?`, "提示", {
|
|
87
97
|
confirmButtonText: "确定",
|
|
88
98
|
cancelButtonText: "取消",
|
|
89
99
|
type: "warning"
|
|
90
100
|
}).then(() => {
|
|
91
101
|
a && a({ ids: y.value.map((t) => t.id) }).then((t) => {
|
|
92
102
|
let e = 0, k = /* @__PURE__ */ new Set(), n = 0;
|
|
93
|
-
Object.entries(t.data).forEach(([
|
|
94
|
-
(
|
|
103
|
+
Object.entries(t.data).forEach(([nt, G]) => {
|
|
104
|
+
(G.ykk_code || G.code) != 1e4 ? (e++, k.add(G.msg)) : n++;
|
|
95
105
|
});
|
|
96
106
|
let b = [];
|
|
97
|
-
n > 0 && b.push(`成功删除${n}条`), e > 0 && (b.push(`失败${e}条`), b.push("失败原因:" + Array.from(k).join(",") + "。")),
|
|
107
|
+
n > 0 && b.push(`成功删除${n}条`), e > 0 && (b.push(`失败${e}条`), b.push("失败原因:" + Array.from(k).join(",") + "。")), Ie({
|
|
98
108
|
title: "提示",
|
|
99
109
|
message: "共选择" + y.value.length + "条数据," + b.join(","),
|
|
100
110
|
type: "warning"
|
|
@@ -102,7 +112,7 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
102
112
|
});
|
|
103
113
|
}).catch(() => {
|
|
104
114
|
}) : c.warning("暂不支持删除");
|
|
105
|
-
},
|
|
115
|
+
}, se = () => {
|
|
106
116
|
if (l.dataType == "row-data") {
|
|
107
117
|
if (["soilResearchCollect", "waterResearchCollect", "plantResearchCollect", "fungusResearchCollect"].indexOf(l.category) > -1) {
|
|
108
118
|
c.warning("暂不支持复制");
|
|
@@ -113,7 +123,7 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
113
123
|
return;
|
|
114
124
|
}
|
|
115
125
|
var a = l.dataType == "row-data" ? l.rowDataOptions : l.researchDataOptions;
|
|
116
|
-
a ?
|
|
126
|
+
a ? M.confirm(`是否要复制这${y.value.length}条调查数据?`, "提示", {
|
|
117
127
|
confirmButtonText: "确定",
|
|
118
128
|
cancelButtonText: "取消",
|
|
119
129
|
type: "warning"
|
|
@@ -121,14 +131,14 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
121
131
|
N.value = !0;
|
|
122
132
|
for (let t = 0; t < y.value.length; t++) {
|
|
123
133
|
const e = Object.assign({}, y.value[t]);
|
|
124
|
-
delete e.id, e.createDate =
|
|
134
|
+
delete e.id, e.createDate = Le().unix(), a && await a([e]);
|
|
125
135
|
}
|
|
126
136
|
N.value = !1, c.success("复制成功");
|
|
127
137
|
}).catch(() => {
|
|
128
138
|
}) : c.warning("暂不支持复制");
|
|
129
139
|
} else
|
|
130
140
|
c.warning("暂不支持复制");
|
|
131
|
-
},
|
|
141
|
+
}, $ = u(), ue = () => {
|
|
132
142
|
var a;
|
|
133
143
|
if (["vegetationResearchCollect", "humanActivity", "naturalDisaster"].indexOf(l.category) > -1) {
|
|
134
144
|
c.warning("暂不支持替换");
|
|
@@ -139,173 +149,176 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
139
149
|
return;
|
|
140
150
|
}
|
|
141
151
|
if (l.dataType == "row-data") {
|
|
142
|
-
(a =
|
|
152
|
+
(a = $.value) == null || a.showDialog(l.category, y.value);
|
|
143
153
|
return;
|
|
144
154
|
} else {
|
|
145
155
|
c.warning("暂不支持替换");
|
|
146
156
|
return;
|
|
147
157
|
}
|
|
148
|
-
}, B = u(),
|
|
158
|
+
}, B = u(), pe = () => {
|
|
149
159
|
var a;
|
|
150
160
|
(a = B.value) == null || a.showDialog(
|
|
151
161
|
l.fieldList.filter((t) => t.sortAble),
|
|
152
162
|
"createDate"
|
|
153
163
|
);
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
}, H = u(),
|
|
164
|
+
}, de = u([]), ye = (a) => {
|
|
165
|
+
de.value = a;
|
|
166
|
+
}, H = u(), fe = () => {
|
|
157
167
|
var a;
|
|
158
168
|
(a = H.value) == null || a.showDialog(l.fieldList.filter((t) => t.filterAble));
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
},
|
|
169
|
+
}, ce = (a) => {
|
|
170
|
+
F.value = a;
|
|
171
|
+
}, S = u(!0), z = u(!1), T = u(!1), g = u([]), he = (a) => {
|
|
162
172
|
if (a) {
|
|
163
173
|
const t = g.value.map((e) => e.property ? e.property : e.propertyGroup ? e.propertyGroup.join("_") : "xxx");
|
|
164
|
-
t && t.length > 0 && (
|
|
174
|
+
t && t.length > 0 && (h.value = t);
|
|
165
175
|
} else {
|
|
166
176
|
const t = g.value.filter((e) => e.fixed).map((e) => e.property ? e.property : e.propertyGroup ? e.propertyGroup.join("_") : "xxx");
|
|
167
|
-
|
|
177
|
+
h.value = t, K(h.value);
|
|
168
178
|
}
|
|
169
|
-
|
|
179
|
+
T.value = !1;
|
|
170
180
|
}, K = (a) => {
|
|
171
181
|
let t = [];
|
|
172
182
|
g.value.forEach((e) => {
|
|
173
183
|
e.property ? t.push({ filedName: e.property, check: a.indexOf(e.property) != -1 }) : t.push({ filedName: (e.propertyGroup ?? []).join("_"), check: a.indexOf((e.propertyGroup ?? []).join("_")) != -1 });
|
|
174
184
|
});
|
|
175
|
-
},
|
|
185
|
+
}, ge = (a) => {
|
|
176
186
|
const t = a.length;
|
|
177
|
-
|
|
178
|
-
},
|
|
187
|
+
S.value = t === g.value.length, T.value = t > 0 && t < g.value.length, K(a);
|
|
188
|
+
}, ve = () => {
|
|
179
189
|
let a = [];
|
|
180
190
|
g.value.forEach((t) => {
|
|
181
191
|
a.push({
|
|
182
192
|
filedName: t.property,
|
|
183
|
-
check:
|
|
193
|
+
check: h.value.indexOf(t.property) != -1
|
|
184
194
|
});
|
|
185
195
|
});
|
|
186
196
|
};
|
|
187
|
-
return
|
|
197
|
+
return ke(
|
|
188
198
|
() => l.fieldList,
|
|
189
199
|
(a) => {
|
|
190
|
-
g.value = a.filter((e) => e.isShow).map((e) => ({
|
|
200
|
+
g.value = a.filter((e) => e.isShow && !e.fixed).map((e) => ({
|
|
191
201
|
...e,
|
|
192
202
|
property: e.property || (e.propertyGroup ? e.propertyGroup.join("_") : "")
|
|
193
203
|
}));
|
|
194
204
|
const t = a.map((e) => e.property ? e.property : e.propertyGroup ? e.propertyGroup.join("_") : "");
|
|
195
|
-
t && t.length > 0 && (
|
|
205
|
+
t && t.length > 0 && (h.value = t), console.log("displayFieldList.value", g.value), O.value = a.filter((e) => e.fixed).map((e) => ({
|
|
206
|
+
...e,
|
|
207
|
+
property: e.property || (e.propertyGroup ? e.propertyGroup.join("_") : "")
|
|
208
|
+
})), console.log("fixedFieldList.value", O.value);
|
|
196
209
|
},
|
|
197
210
|
{ immediate: !0 }
|
|
198
|
-
),
|
|
199
|
-
showFields:
|
|
200
|
-
fixedFieldList:
|
|
201
|
-
}), (a, t) => (
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
211
|
+
), Q({
|
|
212
|
+
showFields: h,
|
|
213
|
+
fixedFieldList: O
|
|
214
|
+
}), (a, t) => (i(), f("div", We, [
|
|
215
|
+
p("div", Xe, [
|
|
216
|
+
p("div", Ye, [
|
|
217
|
+
o(r(C), {
|
|
205
218
|
type: "primary",
|
|
206
219
|
plain: "",
|
|
207
|
-
onClick:
|
|
220
|
+
onClick: re
|
|
208
221
|
}, {
|
|
209
222
|
default: s(() => t[6] || (t[6] = [
|
|
210
|
-
|
|
211
|
-
|
|
223
|
+
p("i", { class: "icon bjh-export" }, null, -1),
|
|
224
|
+
d("导出")
|
|
212
225
|
])),
|
|
213
226
|
_: 1,
|
|
214
227
|
__: [6]
|
|
215
228
|
}),
|
|
216
|
-
a.category != "photoResearch" ? (
|
|
229
|
+
a.category != "photoResearch" ? (i(), v(r(C), {
|
|
217
230
|
key: 0,
|
|
218
231
|
type: "primary",
|
|
219
232
|
plain: "",
|
|
220
|
-
onClick:
|
|
233
|
+
onClick: oe
|
|
221
234
|
}, {
|
|
222
235
|
default: s(() => t[7] || (t[7] = [
|
|
223
|
-
|
|
224
|
-
|
|
236
|
+
p("i", { class: "icon bjh-add" }, null, -1),
|
|
237
|
+
d("增加 ")
|
|
225
238
|
])),
|
|
226
239
|
_: 1,
|
|
227
240
|
__: [7]
|
|
228
|
-
})) :
|
|
229
|
-
|
|
241
|
+
})) : q("", !0),
|
|
242
|
+
o(r(C), {
|
|
230
243
|
type: "primary",
|
|
231
244
|
plain: "",
|
|
232
|
-
onClick:
|
|
245
|
+
onClick: ie
|
|
233
246
|
}, {
|
|
234
247
|
default: s(() => t[8] || (t[8] = [
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
p("i", { class: "icon bjh-delete" }, null, -1),
|
|
249
|
+
d("删除")
|
|
237
250
|
])),
|
|
238
251
|
_: 1,
|
|
239
252
|
__: [8]
|
|
240
253
|
}),
|
|
241
|
-
|
|
254
|
+
o(r(C), {
|
|
242
255
|
type: "primary",
|
|
243
256
|
plain: "",
|
|
244
|
-
onClick:
|
|
257
|
+
onClick: se
|
|
245
258
|
}, {
|
|
246
259
|
default: s(() => t[9] || (t[9] = [
|
|
247
|
-
|
|
248
|
-
|
|
260
|
+
p("i", { class: "icon bjh-copy" }, null, -1),
|
|
261
|
+
d("复制")
|
|
249
262
|
])),
|
|
250
263
|
_: 1,
|
|
251
264
|
__: [9]
|
|
252
265
|
}),
|
|
253
|
-
|
|
266
|
+
o(r(C), {
|
|
254
267
|
type: "primary",
|
|
255
268
|
plain: "",
|
|
256
|
-
onClick:
|
|
269
|
+
onClick: ue
|
|
257
270
|
}, {
|
|
258
271
|
default: s(() => t[10] || (t[10] = [
|
|
259
|
-
|
|
260
|
-
|
|
272
|
+
p("i", { class: "icon bjh-replace" }, null, -1),
|
|
273
|
+
d("替换")
|
|
261
274
|
])),
|
|
262
275
|
_: 1,
|
|
263
276
|
__: [10]
|
|
264
277
|
}),
|
|
265
|
-
|
|
278
|
+
o(r(C), {
|
|
266
279
|
type: "primary",
|
|
267
280
|
plain: "",
|
|
268
|
-
onClick:
|
|
281
|
+
onClick: pe
|
|
269
282
|
}, {
|
|
270
283
|
default: s(() => t[11] || (t[11] = [
|
|
271
|
-
|
|
272
|
-
|
|
284
|
+
p("i", { class: "icon bjh-paixu2 active" }, null, -1),
|
|
285
|
+
d("排序 ")
|
|
273
286
|
])),
|
|
274
287
|
_: 1,
|
|
275
288
|
__: [11]
|
|
276
289
|
}),
|
|
277
|
-
|
|
290
|
+
o(r(C), {
|
|
278
291
|
type: "primary",
|
|
279
292
|
plain: "",
|
|
280
|
-
onClick:
|
|
293
|
+
onClick: fe
|
|
281
294
|
}, {
|
|
282
295
|
default: s(() => [
|
|
283
|
-
|
|
284
|
-
class:
|
|
296
|
+
p("i", {
|
|
297
|
+
class: Ce(["icon", { "bjh-shaixuan2": Object.keys(r(F)).length == 0, "bjh-shaixuan1 active": Object.keys(r(F)).length > 0 }])
|
|
285
298
|
}, null, 2),
|
|
286
|
-
t[12] || (t[12] =
|
|
299
|
+
t[12] || (t[12] = d("筛选 "))
|
|
287
300
|
]),
|
|
288
301
|
_: 1,
|
|
289
302
|
__: [12]
|
|
290
303
|
}),
|
|
291
|
-
|
|
304
|
+
o(r(Te), {
|
|
292
305
|
placement: "bottom",
|
|
293
306
|
width: 225,
|
|
294
307
|
trigger: "click"
|
|
295
308
|
}, {
|
|
296
309
|
reference: s(() => [
|
|
297
|
-
|
|
310
|
+
o(r(C), {
|
|
298
311
|
size: "default",
|
|
299
312
|
type: "primary",
|
|
300
313
|
plain: "",
|
|
301
314
|
style: { width: "95px" }
|
|
302
315
|
}, {
|
|
303
316
|
default: s(() => [
|
|
304
|
-
t[13] || (t[13] =
|
|
305
|
-
t[14] || (t[14] =
|
|
306
|
-
|
|
317
|
+
t[13] || (t[13] = p("i", { class: "icon bjh-display" }, null, -1)),
|
|
318
|
+
t[14] || (t[14] = d("显示")),
|
|
319
|
+
o(r(D), null, {
|
|
307
320
|
default: s(() => [
|
|
308
|
-
|
|
321
|
+
o(r($e))
|
|
309
322
|
]),
|
|
310
323
|
_: 1
|
|
311
324
|
})
|
|
@@ -315,55 +328,55 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
315
328
|
})
|
|
316
329
|
]),
|
|
317
330
|
default: s(() => [
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
modelValue:
|
|
322
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
323
|
-
indeterminate:
|
|
324
|
-
onChange:
|
|
331
|
+
p("div", Ze, [
|
|
332
|
+
p("div", _e, [
|
|
333
|
+
o(r(E), {
|
|
334
|
+
modelValue: S.value,
|
|
335
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => S.value = e),
|
|
336
|
+
indeterminate: T.value,
|
|
337
|
+
onChange: he
|
|
325
338
|
}, {
|
|
326
339
|
default: s(() => t[15] || (t[15] = [
|
|
327
|
-
|
|
340
|
+
d("全选")
|
|
328
341
|
])),
|
|
329
342
|
_: 1,
|
|
330
343
|
__: [15]
|
|
331
344
|
}, 8, ["modelValue", "indeterminate"])
|
|
332
345
|
]),
|
|
333
|
-
|
|
334
|
-
modelValue:
|
|
335
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) =>
|
|
336
|
-
onChange:
|
|
346
|
+
o(r(Ge), {
|
|
347
|
+
modelValue: h.value,
|
|
348
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => h.value = e),
|
|
349
|
+
onChange: ge
|
|
337
350
|
}, {
|
|
338
351
|
default: s(() => [
|
|
339
|
-
|
|
352
|
+
o(r(Qe), {
|
|
340
353
|
modelValue: g.value,
|
|
341
354
|
"onUpdate:modelValue": t[1] || (t[1] = (e) => g.value = e),
|
|
342
355
|
onStart: t[2] || (t[2] = (e) => z.value = !0),
|
|
343
356
|
onEnd: t[3] || (t[3] = (e) => z.value = !1),
|
|
344
357
|
"item-key": "title",
|
|
345
|
-
onChange:
|
|
358
|
+
onChange: ve,
|
|
346
359
|
animation: 400,
|
|
347
360
|
"fallback-tolerance": 100,
|
|
348
361
|
"scroll-sensitivity": 100
|
|
349
362
|
}, {
|
|
350
363
|
item: s(({ element: e }) => [
|
|
351
|
-
|
|
352
|
-
t[16] || (t[16] =
|
|
353
|
-
e.property ? (
|
|
364
|
+
p("div", et, [
|
|
365
|
+
t[16] || (t[16] = p("span", { class: "icon bjh-ketuodong" }, null, -1)),
|
|
366
|
+
e.property ? (i(), v(r(E), {
|
|
354
367
|
key: 0,
|
|
355
368
|
value: e.property
|
|
356
369
|
}, {
|
|
357
370
|
default: s(() => [
|
|
358
|
-
|
|
371
|
+
d(w(e.title), 1)
|
|
359
372
|
]),
|
|
360
373
|
_: 2
|
|
361
|
-
}, 1032, ["value"])) : (
|
|
374
|
+
}, 1032, ["value"])) : (i(), v(r(E), {
|
|
362
375
|
key: 1,
|
|
363
376
|
value: e.propertyGroup.join("_")
|
|
364
377
|
}, {
|
|
365
378
|
default: s(() => [
|
|
366
|
-
|
|
379
|
+
d(w(e.title), 1)
|
|
367
380
|
]),
|
|
368
381
|
_: 2
|
|
369
382
|
}, 1032, ["value"]))
|
|
@@ -378,158 +391,158 @@ const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { cla
|
|
|
378
391
|
]),
|
|
379
392
|
_: 1
|
|
380
393
|
}),
|
|
381
|
-
|
|
382
|
-
t[17] || (t[17] =
|
|
383
|
-
|
|
394
|
+
p("label", tt, [
|
|
395
|
+
t[17] || (t[17] = d(" 编辑 ")),
|
|
396
|
+
o(r(Ee), {
|
|
384
397
|
size: "small",
|
|
385
|
-
modelValue:
|
|
386
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) =>
|
|
398
|
+
modelValue: R.value,
|
|
399
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => R.value = e)
|
|
387
400
|
}, null, 8, ["modelValue"])
|
|
388
401
|
])
|
|
389
402
|
]),
|
|
390
|
-
t[18] || (t[18] =
|
|
403
|
+
t[18] || (t[18] = p("div", { class: "right" }, null, -1))
|
|
391
404
|
]),
|
|
392
|
-
|
|
393
|
-
|
|
405
|
+
p("div", at, [
|
|
406
|
+
o(r(Ne), {
|
|
394
407
|
ref_key: "dataTableRef",
|
|
395
|
-
ref:
|
|
408
|
+
ref: X,
|
|
396
409
|
onSortChange: a.onSortChange,
|
|
397
410
|
"header-row-class-name": "table-header",
|
|
398
411
|
data: a.records,
|
|
399
|
-
"default-sort":
|
|
412
|
+
"default-sort": P.value,
|
|
400
413
|
border: !0,
|
|
401
414
|
stripe: "",
|
|
402
|
-
"row-key":
|
|
415
|
+
"row-key": ne,
|
|
403
416
|
style: { width: "100%" },
|
|
404
417
|
height: a.tableHeight,
|
|
405
|
-
onCellClick:
|
|
406
|
-
onSelectionChange:
|
|
418
|
+
onCellClick: Y,
|
|
419
|
+
onSelectionChange: Z
|
|
407
420
|
}, {
|
|
408
421
|
default: s(() => [
|
|
409
|
-
|
|
422
|
+
o(r(A), {
|
|
410
423
|
type: "selection",
|
|
411
424
|
width: "55",
|
|
412
425
|
"reserve-selection": !0
|
|
413
426
|
}),
|
|
414
|
-
(
|
|
427
|
+
(i(!0), f(m, null, xe(ee.value, (e, k) => (i(), f(m, {
|
|
415
428
|
key: e.property
|
|
416
429
|
}, [
|
|
417
|
-
|
|
430
|
+
_(e) ? (i(), v(r(A), {
|
|
418
431
|
key: 0,
|
|
419
432
|
fixed: e.fixed,
|
|
420
433
|
sortable: e.sortAble,
|
|
421
434
|
prop: e.property,
|
|
422
|
-
label:
|
|
435
|
+
label: te(e),
|
|
423
436
|
width: e.width || 150
|
|
424
437
|
}, {
|
|
425
438
|
default: s(({ row: n }) => [
|
|
426
|
-
|
|
439
|
+
R.value && j.rowID === n.id && j.index === k + 1 && !e.disable ? (i(), v(Fe, {
|
|
427
440
|
key: e.title + "-" + n.id,
|
|
428
441
|
field: e,
|
|
429
442
|
data: n,
|
|
430
443
|
onChange: (b) => a.saveData(b, n, e)
|
|
431
|
-
}, null, 8, ["field", "data", "onChange"])) : (
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
], 64)) : e.property === "imageList" ? (
|
|
435
|
-
n[e.property] && n[e.property].length > 10 ? (
|
|
444
|
+
}, null, 8, ["field", "data", "onChange"])) : (i(), f(m, { key: 1 }, [
|
|
445
|
+
W.value.indexOf(e.property) !== -1 ? (i(), f(m, { key: 0 }, [
|
|
446
|
+
d(w(ae(n, e.property)), 1)
|
|
447
|
+
], 64)) : e.property === "imageList" ? (i(), f(m, { key: 1 }, [
|
|
448
|
+
n[e.property] && n[e.property].length > 10 ? (i(), v(r(D), {
|
|
436
449
|
key: 0,
|
|
437
450
|
size: "20",
|
|
438
|
-
onClick: (b) =>
|
|
451
|
+
onClick: (b) => R.value ? null : le(n[e.property]),
|
|
439
452
|
color: "green"
|
|
440
453
|
}, {
|
|
441
454
|
default: s(() => [
|
|
442
|
-
|
|
455
|
+
o(r(Be))
|
|
443
456
|
]),
|
|
444
457
|
_: 2
|
|
445
|
-
}, 1032, ["onClick"])) : (
|
|
458
|
+
}, 1032, ["onClick"])) : (i(), v(r(D), {
|
|
446
459
|
key: 1,
|
|
447
460
|
size: "20"
|
|
448
461
|
}, {
|
|
449
462
|
default: s(() => [
|
|
450
|
-
|
|
463
|
+
o(r(J))
|
|
451
464
|
]),
|
|
452
465
|
_: 1
|
|
453
466
|
}))
|
|
454
|
-
], 64)) : e.property === "voiceList" ? (
|
|
455
|
-
n[e.property] && n[e.property].length > 10 ? (
|
|
467
|
+
], 64)) : e.property === "voiceList" ? (i(), f(m, { key: 2 }, [
|
|
468
|
+
n[e.property] && n[e.property].length > 10 ? (i(), v(r(D), {
|
|
456
469
|
key: 0,
|
|
457
470
|
size: "20",
|
|
458
471
|
color: "green"
|
|
459
472
|
}, {
|
|
460
473
|
default: s(() => t[19] || (t[19] = [
|
|
461
|
-
|
|
474
|
+
p("i", { class: "icon bjh-audio_ico02" }, null, -1)
|
|
462
475
|
])),
|
|
463
476
|
_: 1,
|
|
464
477
|
__: [19]
|
|
465
|
-
})) : (
|
|
478
|
+
})) : (i(), v(r(D), {
|
|
466
479
|
key: 1,
|
|
467
480
|
size: "20"
|
|
468
481
|
}, {
|
|
469
482
|
default: s(() => [
|
|
470
|
-
|
|
483
|
+
o(r(J))
|
|
471
484
|
]),
|
|
472
485
|
_: 1
|
|
473
486
|
}))
|
|
474
|
-
], 64)) : e.property === "quadratChart" ? (
|
|
487
|
+
], 64)) : e.property === "quadratChart" ? (i(), v(r(D), {
|
|
475
488
|
key: 3,
|
|
476
489
|
size: "20"
|
|
477
490
|
}, {
|
|
478
491
|
default: s(() => [
|
|
479
|
-
|
|
492
|
+
o(r(He))
|
|
480
493
|
]),
|
|
481
494
|
_: 1
|
|
482
|
-
})) : e.property === "latinName" ? (
|
|
495
|
+
})) : e.property === "latinName" ? (i(), f("p", rt, w(n[e.property]), 1)) : e.property === "previewImage" ? (i(), v(r(Ve), {
|
|
483
496
|
key: 5,
|
|
484
497
|
src: a.buildThumbUrl ? a.buildThumbUrl(e.render ? e.render(n[e.property], n, k) : n[e.property]) : "",
|
|
485
498
|
fit: "cover",
|
|
486
|
-
"preview-src-list": [r(
|
|
499
|
+
"preview-src-list": [r(Se)(e.render ? e.render(n[e.property], n, k) : n[e.property])],
|
|
487
500
|
"preview-teleported": !0,
|
|
488
501
|
lazy: !0,
|
|
489
502
|
style: { width: "100px", height: "100px" }
|
|
490
|
-
}, null, 8, ["src", "preview-src-list"])) : e.propertyGroup ? (
|
|
491
|
-
|
|
492
|
-
], 64)) : (
|
|
493
|
-
e.render ? (
|
|
494
|
-
|
|
495
|
-
], 64)) : (
|
|
496
|
-
|
|
503
|
+
}, null, 8, ["src", "preview-src-list"])) : e.propertyGroup ? (i(), f(m, { key: 6 }, [
|
|
504
|
+
d(w(e.propertyGroup.map((b) => n[b]).join("/")), 1)
|
|
505
|
+
], 64)) : (i(), f(m, { key: 7 }, [
|
|
506
|
+
e.render ? (i(), f(m, { key: 0 }, [
|
|
507
|
+
d(w(e.render(n[e.property], n, k)), 1)
|
|
508
|
+
], 64)) : (i(), f(m, { key: 1 }, [
|
|
509
|
+
d(w(n[e.property]), 1)
|
|
497
510
|
], 64))
|
|
498
511
|
], 64))
|
|
499
512
|
], 64))
|
|
500
513
|
]),
|
|
501
514
|
_: 2
|
|
502
|
-
}, 1032, ["fixed", "sortable", "prop", "label", "width"])) :
|
|
515
|
+
}, 1032, ["fixed", "sortable", "prop", "label", "width"])) : q("", !0)
|
|
503
516
|
], 64))), 128))
|
|
504
517
|
]),
|
|
505
518
|
_: 1
|
|
506
519
|
}, 8, ["onSortChange", "data", "default-sort", "height"])
|
|
507
520
|
]),
|
|
508
|
-
|
|
521
|
+
o(we, {
|
|
509
522
|
ref_key: "imageTagRef",
|
|
510
|
-
ref:
|
|
523
|
+
ref: V
|
|
511
524
|
}, null, 512),
|
|
512
|
-
|
|
525
|
+
o(De, {
|
|
513
526
|
ref_key: "createDataRef",
|
|
514
|
-
ref:
|
|
527
|
+
ref: I
|
|
515
528
|
}, null, 512),
|
|
516
|
-
|
|
529
|
+
o(Re, {
|
|
517
530
|
ref_key: "replaceSpeciesNameDialogRef",
|
|
518
|
-
ref:
|
|
531
|
+
ref: $
|
|
519
532
|
}, null, 512),
|
|
520
|
-
|
|
533
|
+
o(Oe, {
|
|
521
534
|
ref_key: "sortRef",
|
|
522
535
|
ref: B,
|
|
523
|
-
onCallback:
|
|
536
|
+
onCallback: ye
|
|
524
537
|
}, null, 512),
|
|
525
|
-
|
|
538
|
+
o(je, {
|
|
526
539
|
ref_key: "filterRef",
|
|
527
540
|
ref: H,
|
|
528
|
-
onCallback:
|
|
541
|
+
onCallback: ce
|
|
529
542
|
}, null, 512)
|
|
530
543
|
]));
|
|
531
544
|
}
|
|
532
|
-
}),
|
|
545
|
+
}), kt = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-d5ac1ed9"]]);
|
|
533
546
|
export {
|
|
534
|
-
|
|
547
|
+
kt as default
|
|
535
548
|
};
|