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.
@@ -1,25 +1,25 @@
1
- import { defineComponent as ge, ref as u, reactive as me, computed as ve, provide as w, watch as be, createElementBlock as f, openBlock as o, createElementVNode as d, createVNode as i, createBlock as h, createCommentVNode as U, unref as r, withCtx as s, createTextVNode as p, normalizeClass as ke, toDisplayString as D, Fragment as m, renderList as Ce } from "vue";
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 xe from "./SortItem.mjs";
5
- import { _ as Oe } from "../chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CZWZ8Fr_.js";
6
- import Re from "./FilterItem.mjs";
7
- import { _ as je } from "../chunks/RenderFormItem.vue_vue_type_style_index_0_lang-BKjS65Ak.js";
8
- import { b as Fe } from "../chunks/utils-DIRgjeAd.js";
9
- import { ElButton as C, ElPopover as Se, ElCheckbox as E, ElCheckboxGroup as Te, ElIcon as x, ElSwitch as Ee, ElTable as Ne, ElTableColumn as q, ElImage as Ge, ElMessage as c, ElMessageBox as A, ElNotification as Ve, dayjs as Ie } from "element-plus";
10
- import { CaretBottom as $e, Picture as Le, CirclePlus as M, Calendar as Be } from "@element-plus/icons-vue";
11
- import { u as He, a as ze, b as Ke, q as Ue, p as qe, r as Ae, c as Me } from "../chunks/ProvideKeys-jhgDnhL_.js";
12
- import Je from "vuedraggable";
13
- import { _ as Qe } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Pe = { class: "manage-table" }, We = { class: "table-header" }, Xe = { class: "left" }, Ye = { class: "field-sort" }, Ze = { class: "field-sort-header" }, _e = { class: "menus-popover-sort" }, et = {
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
- }, tt = { class: "table-body" }, at = {
19
+ }, at = { class: "table-body" }, rt = {
20
20
  key: 4,
21
21
  class: "latin-name"
22
- }, rt = /* @__PURE__ */ ge({
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: J }) {
47
- const Q = u({
46
+ setup(l, { expose: Q }) {
47
+ const P = u({
48
48
  prop: "createDate",
49
49
  order: "descending"
50
50
  }), N = u(!1);
51
- var j = u({});
52
- const G = u(), V = u(), I = u([]), v = u([]), P = u([]), W = u(), O = u(!1), R = me({
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
- }), X = (a, t, e, k) => {
56
- O.value && (R.rowID = a.id, R.index = t.getColumnIndex());
57
- }, y = u([]), Y = (a) => {
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
- }, $ = ve(() => [...I.value.map((a) => a.property), ...v.value]), Z = (a) => $.value.includes(a.property) ? !0 : !a.property && a.propertyGroup ? $.value.includes(a.propertyGroup.join("_")) : !0, _ = (a) => a.unit ? `${a.title}(${a.unit})` : a.title, ee = (a, t) => {
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
- }, te = () => {
77
+ }, re = () => {
68
78
  l.exportHandel ? l.exportHandel(JSON.parse(JSON.stringify(y.value))) : c.warning("暂不支持导出");
69
- }, ae = (a) => {
79
+ }, le = (a) => {
70
80
  var t;
71
81
  try {
72
- (t = G.value) == null || t.open(JSON.parse(a));
82
+ (t = V.value) == null || t.open(JSON.parse(a));
73
83
  } catch {
74
84
  }
75
- }, re = (a) => a.id;
76
- l.uploadFile && w(He, l.uploadFile), l.rowDataOptions && w(ze, l.rowDataOptions), l.researchDataOptions && w(Ke, l.researchDataOptions), l.queryResearchDataOptions && w(Ue, l.queryResearchDataOptions), w(qe, l.projectId), w(Ae, l.researchStandard), l.researchDataQuery && w(Me, l.researchDataQuery);
77
- const le = () => {
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 = V.value) == null || a.showDialog(l.category, l.layerName) : c.warning("暂不支持新增");
80
- }, ne = () => {
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 ? A.confirm(`是否要删除这${y.value.length}条调查数据?`, "提示", {
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(([lt, T]) => {
94
- (T.ykk_code || T.code) != 1e4 ? (e++, k.add(T.msg)) : n++;
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(",") + "。")), Ve({
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
- }, ie = () => {
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 ? A.confirm(`是否要复制这${y.value.length}条调查数据?`, "提示", {
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 = Ie().unix(), a && await a([e]);
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
- }, L = u(), oe = () => {
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 = L.value) == null || a.showDialog(l.category, y.value);
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(), se = () => {
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
- }, ue = u([]), de = (a) => {
155
- ue.value = a;
156
- }, H = u(), pe = () => {
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
- }, ye = (a) => {
160
- j.value = a;
161
- }, F = u(!0), z = u(!1), S = u(!1), g = u([]), fe = (a) => {
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 && (v.value = t);
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
- v.value = t, K(v.value);
177
+ h.value = t, K(h.value);
168
178
  }
169
- S.value = !1;
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
- }, ce = (a) => {
185
+ }, ge = (a) => {
176
186
  const t = a.length;
177
- F.value = t === g.value.length, S.value = t > 0 && t < g.value.length, K(a);
178
- }, he = () => {
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: v.value.indexOf(t.property) != -1
193
+ check: h.value.indexOf(t.property) != -1
184
194
  });
185
195
  });
186
196
  };
187
- return be(
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 && (v.value = t), console.log("displayFieldList.value", g.value);
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
- ), J({
199
- showFields: v,
200
- fixedFieldList: I
201
- }), (a, t) => (o(), f("div", Pe, [
202
- d("div", We, [
203
- d("div", Xe, [
204
- i(r(C), {
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: te
220
+ onClick: re
208
221
  }, {
209
222
  default: s(() => t[6] || (t[6] = [
210
- d("i", { class: "icon bjh-export" }, null, -1),
211
- p("导出")
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" ? (o(), h(r(C), {
229
+ a.category != "photoResearch" ? (i(), v(r(C), {
217
230
  key: 0,
218
231
  type: "primary",
219
232
  plain: "",
220
- onClick: le
233
+ onClick: oe
221
234
  }, {
222
235
  default: s(() => t[7] || (t[7] = [
223
- d("i", { class: "icon bjh-add" }, null, -1),
224
- p("增加 ")
236
+ p("i", { class: "icon bjh-add" }, null, -1),
237
+ d("增加 ")
225
238
  ])),
226
239
  _: 1,
227
240
  __: [7]
228
- })) : U("", !0),
229
- i(r(C), {
241
+ })) : q("", !0),
242
+ o(r(C), {
230
243
  type: "primary",
231
244
  plain: "",
232
- onClick: ne
245
+ onClick: ie
233
246
  }, {
234
247
  default: s(() => t[8] || (t[8] = [
235
- d("i", { class: "icon bjh-delete" }, null, -1),
236
- p("删除")
248
+ p("i", { class: "icon bjh-delete" }, null, -1),
249
+ d("删除")
237
250
  ])),
238
251
  _: 1,
239
252
  __: [8]
240
253
  }),
241
- i(r(C), {
254
+ o(r(C), {
242
255
  type: "primary",
243
256
  plain: "",
244
- onClick: ie
257
+ onClick: se
245
258
  }, {
246
259
  default: s(() => t[9] || (t[9] = [
247
- d("i", { class: "icon bjh-copy" }, null, -1),
248
- p("复制")
260
+ p("i", { class: "icon bjh-copy" }, null, -1),
261
+ d("复制")
249
262
  ])),
250
263
  _: 1,
251
264
  __: [9]
252
265
  }),
253
- i(r(C), {
266
+ o(r(C), {
254
267
  type: "primary",
255
268
  plain: "",
256
- onClick: oe
269
+ onClick: ue
257
270
  }, {
258
271
  default: s(() => t[10] || (t[10] = [
259
- d("i", { class: "icon bjh-replace" }, null, -1),
260
- p("替换")
272
+ p("i", { class: "icon bjh-replace" }, null, -1),
273
+ d("替换")
261
274
  ])),
262
275
  _: 1,
263
276
  __: [10]
264
277
  }),
265
- i(r(C), {
278
+ o(r(C), {
266
279
  type: "primary",
267
280
  plain: "",
268
- onClick: se
281
+ onClick: pe
269
282
  }, {
270
283
  default: s(() => t[11] || (t[11] = [
271
- d("i", { class: "icon bjh-paixu2 active" }, null, -1),
272
- p("排序 ")
284
+ p("i", { class: "icon bjh-paixu2 active" }, null, -1),
285
+ d("排序 ")
273
286
  ])),
274
287
  _: 1,
275
288
  __: [11]
276
289
  }),
277
- i(r(C), {
290
+ o(r(C), {
278
291
  type: "primary",
279
292
  plain: "",
280
- onClick: pe
293
+ onClick: fe
281
294
  }, {
282
295
  default: s(() => [
283
- d("i", {
284
- class: ke(["icon", { "bjh-shaixuan2": Object.keys(r(j)).length == 0, "bjh-shaixuan1 active": Object.keys(r(j)).length > 0 }])
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] = p("筛选 "))
299
+ t[12] || (t[12] = d("筛选 "))
287
300
  ]),
288
301
  _: 1,
289
302
  __: [12]
290
303
  }),
291
- i(r(Se), {
304
+ o(r(Te), {
292
305
  placement: "bottom",
293
306
  width: 225,
294
307
  trigger: "click"
295
308
  }, {
296
309
  reference: s(() => [
297
- i(r(C), {
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] = d("i", { class: "icon bjh-display" }, null, -1)),
305
- t[14] || (t[14] = p("显示")),
306
- i(r(x), null, {
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
- i(r($e))
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
- d("div", Ye, [
319
- d("div", Ze, [
320
- i(r(E), {
321
- modelValue: F.value,
322
- "onUpdate:modelValue": t[0] || (t[0] = (e) => F.value = e),
323
- indeterminate: S.value,
324
- onChange: fe
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
- p("全选")
340
+ d("全选")
328
341
  ])),
329
342
  _: 1,
330
343
  __: [15]
331
344
  }, 8, ["modelValue", "indeterminate"])
332
345
  ]),
333
- i(r(Te), {
334
- modelValue: v.value,
335
- "onUpdate:modelValue": t[4] || (t[4] = (e) => v.value = e),
336
- onChange: ce
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
- i(r(Je), {
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: he,
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
- d("div", _e, [
352
- t[16] || (t[16] = d("span", { class: "icon bjh-ketuodong" }, null, -1)),
353
- e.property ? (o(), h(r(E), {
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
- p(D(e.title), 1)
371
+ d(w(e.title), 1)
359
372
  ]),
360
373
  _: 2
361
- }, 1032, ["value"])) : (o(), h(r(E), {
374
+ }, 1032, ["value"])) : (i(), v(r(E), {
362
375
  key: 1,
363
376
  value: e.propertyGroup.join("_")
364
377
  }, {
365
378
  default: s(() => [
366
- p(D(e.title), 1)
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
- d("label", et, [
382
- t[17] || (t[17] = p(" 编辑 ")),
383
- i(r(Ee), {
394
+ p("label", tt, [
395
+ t[17] || (t[17] = d(" 编辑 ")),
396
+ o(r(Ee), {
384
397
  size: "small",
385
- modelValue: O.value,
386
- "onUpdate:modelValue": t[5] || (t[5] = (e) => O.value = 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] = d("div", { class: "right" }, null, -1))
403
+ t[18] || (t[18] = p("div", { class: "right" }, null, -1))
391
404
  ]),
392
- d("div", tt, [
393
- i(r(Ne), {
405
+ p("div", at, [
406
+ o(r(Ne), {
394
407
  ref_key: "dataTableRef",
395
- ref: W,
408
+ ref: X,
396
409
  onSortChange: a.onSortChange,
397
410
  "header-row-class-name": "table-header",
398
411
  data: a.records,
399
- "default-sort": Q.value,
412
+ "default-sort": P.value,
400
413
  border: !0,
401
414
  stripe: "",
402
- "row-key": re,
415
+ "row-key": ne,
403
416
  style: { width: "100%" },
404
417
  height: a.tableHeight,
405
- onCellClick: X,
406
- onSelectionChange: Y
418
+ onCellClick: Y,
419
+ onSelectionChange: Z
407
420
  }, {
408
421
  default: s(() => [
409
- i(r(q), {
422
+ o(r(A), {
410
423
  type: "selection",
411
424
  width: "55",
412
425
  "reserve-selection": !0
413
426
  }),
414
- (o(!0), f(m, null, Ce(a.fieldList, (e, k) => (o(), f(m, {
427
+ (i(!0), f(m, null, xe(ee.value, (e, k) => (i(), f(m, {
415
428
  key: e.property
416
429
  }, [
417
- Z(e) ? (o(), h(r(q), {
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: _(e),
435
+ label: te(e),
423
436
  width: e.width || 150
424
437
  }, {
425
438
  default: s(({ row: n }) => [
426
- O.value && R.rowID === n.id && R.index === k + 1 && !e.disable ? (o(), h(je, {
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"])) : (o(), f(m, { key: 1 }, [
432
- P.value.indexOf(e.property) !== -1 ? (o(), f(m, { key: 0 }, [
433
- p(D(ee(n, e.property)), 1)
434
- ], 64)) : e.property === "imageList" ? (o(), f(m, { key: 1 }, [
435
- n[e.property] && n[e.property].length > 10 ? (o(), h(r(x), {
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) => O.value ? null : ae(n[e.property]),
451
+ onClick: (b) => R.value ? null : le(n[e.property]),
439
452
  color: "green"
440
453
  }, {
441
454
  default: s(() => [
442
- i(r(Le))
455
+ o(r(Be))
443
456
  ]),
444
457
  _: 2
445
- }, 1032, ["onClick"])) : (o(), h(r(x), {
458
+ }, 1032, ["onClick"])) : (i(), v(r(D), {
446
459
  key: 1,
447
460
  size: "20"
448
461
  }, {
449
462
  default: s(() => [
450
- i(r(M))
463
+ o(r(J))
451
464
  ]),
452
465
  _: 1
453
466
  }))
454
- ], 64)) : e.property === "voiceList" ? (o(), f(m, { key: 2 }, [
455
- n[e.property] && n[e.property].length > 10 ? (o(), h(r(x), {
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
- d("i", { class: "icon bjh-audio_ico02" }, null, -1)
474
+ p("i", { class: "icon bjh-audio_ico02" }, null, -1)
462
475
  ])),
463
476
  _: 1,
464
477
  __: [19]
465
- })) : (o(), h(r(x), {
478
+ })) : (i(), v(r(D), {
466
479
  key: 1,
467
480
  size: "20"
468
481
  }, {
469
482
  default: s(() => [
470
- i(r(M))
483
+ o(r(J))
471
484
  ]),
472
485
  _: 1
473
486
  }))
474
- ], 64)) : e.property === "quadratChart" ? (o(), h(r(x), {
487
+ ], 64)) : e.property === "quadratChart" ? (i(), v(r(D), {
475
488
  key: 3,
476
489
  size: "20"
477
490
  }, {
478
491
  default: s(() => [
479
- i(r(Be))
492
+ o(r(He))
480
493
  ]),
481
494
  _: 1
482
- })) : e.property === "latinName" ? (o(), f("p", at, D(n[e.property]), 1)) : e.property === "previewImage" ? (o(), h(r(Ge), {
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(Fe)(e.render ? e.render(n[e.property], n, k) : n[e.property])],
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 ? (o(), f(m, { key: 6 }, [
491
- p(D(e.propertyGroup.map((b) => n[b]).join("/")), 1)
492
- ], 64)) : (o(), f(m, { key: 7 }, [
493
- e.render ? (o(), f(m, { key: 0 }, [
494
- p(D(e.render(n[e.property], n, k)), 1)
495
- ], 64)) : (o(), f(m, { key: 1 }, [
496
- p(D(n[e.property]), 1)
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"])) : U("", !0)
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
- i(we, {
521
+ o(we, {
509
522
  ref_key: "imageTagRef",
510
- ref: G
523
+ ref: V
511
524
  }, null, 512),
512
- i(De, {
525
+ o(De, {
513
526
  ref_key: "createDataRef",
514
- ref: V
527
+ ref: I
515
528
  }, null, 512),
516
- i(Oe, {
529
+ o(Re, {
517
530
  ref_key: "replaceSpeciesNameDialogRef",
518
- ref: L
531
+ ref: $
519
532
  }, null, 512),
520
- i(xe, {
533
+ o(Oe, {
521
534
  ref_key: "sortRef",
522
535
  ref: B,
523
- onCallback: de
536
+ onCallback: ye
524
537
  }, null, 512),
525
- i(Re, {
538
+ o(je, {
526
539
  ref_key: "filterRef",
527
540
  ref: H,
528
- onCallback: ye
541
+ onCallback: ce
529
542
  }, null, 512)
530
543
  ]));
531
544
  }
532
- }), bt = /* @__PURE__ */ Qe(rt, [["__scopeId", "data-v-fe166ddb"]]);
545
+ }), kt = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-d5ac1ed9"]]);
533
546
  export {
534
- bt as default
547
+ kt as default
535
548
  };