sooyie-pgss 0.0.1 → 0.0.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.
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { p as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as W, getCurrentInstance as X, ref as T, reactive as R, resolveComponent as s, resolveDirective as Z, openBlock as u, createElementBlock as V, createElementVNode as $, createVNode as a, withCtx as o, withKeys as D, unref as n, createTextVNode as d, toDisplayString as i, withDirectives as k, createBlock as w, isRef as S, createCommentVNode as U } from "vue";
|
|
2
|
+
import { useTableHooks as ee } from "jmash-core";
|
|
3
|
+
import { useI18n as te } from "vue-i18n";
|
|
4
|
+
import { p as le } from "./index-DAKAeNie.mjs";
|
|
5
|
+
import oe from "./edit-CR3tiHFR.mjs";
|
|
6
6
|
import "./constant-D4fRv058.mjs";
|
|
7
|
-
import { D as
|
|
7
|
+
import { D as ae } from "./index-BapHEpjV.mjs";
|
|
8
8
|
import { u as ne } from "./index-CeyTmMNJ.mjs";
|
|
9
9
|
import { useRoute as me } from "vue-router";
|
|
10
|
-
const se = { class: "app-container" }, re = { class: "search-container" }, pe = ["onClick"],
|
|
10
|
+
const se = { class: "app-container" }, re = { class: "search-container" }, pe = ["onClick"], ue = ["onClick"], ke = /* @__PURE__ */ W({
|
|
11
11
|
__name: "index",
|
|
12
|
-
setup(
|
|
13
|
-
const { t: v } =
|
|
12
|
+
setup(ie) {
|
|
13
|
+
const { t: v } = te(), { proxy: j } = X();
|
|
14
14
|
me();
|
|
15
15
|
const r = T({
|
|
16
16
|
templateType: "common"
|
|
17
17
|
}), {
|
|
18
18
|
tableHooks: m,
|
|
19
|
-
multipleTableRef:
|
|
20
|
-
queryFormRef:
|
|
21
|
-
listLoading:
|
|
22
|
-
tableData:
|
|
19
|
+
multipleTableRef: P,
|
|
20
|
+
queryFormRef: q,
|
|
21
|
+
listLoading: z,
|
|
22
|
+
tableData: E,
|
|
23
23
|
total: b
|
|
24
|
-
} =
|
|
24
|
+
} = ee(v, le, r);
|
|
25
25
|
let c = T([
|
|
26
26
|
{
|
|
27
27
|
label: "promptTemplate.templateName",
|
|
@@ -63,38 +63,37 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
63
63
|
isColumn: !0
|
|
64
64
|
}
|
|
65
65
|
]);
|
|
66
|
-
|
|
67
|
-
const L = T([]);
|
|
66
|
+
const I = T([]);
|
|
68
67
|
ne.findFields().then(({ data: l }) => {
|
|
69
|
-
console.log(l),
|
|
68
|
+
console.log(l), I.value = l.results;
|
|
70
69
|
});
|
|
71
70
|
const p = T({
|
|
72
71
|
title: v("common.edit"),
|
|
73
72
|
visible: !1
|
|
74
73
|
});
|
|
75
|
-
let
|
|
76
|
-
function
|
|
77
|
-
|
|
74
|
+
let C = R({});
|
|
75
|
+
function L() {
|
|
76
|
+
C = R({}), p.value.title = v("common.add"), p.value.visible = !0;
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
78
|
+
function Q(l) {
|
|
79
|
+
C.templateId = l.templateId, p.value.title = v("common.edit"), p.value.visible = !0;
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function H(l) {
|
|
83
82
|
m.selectionRows.value = l;
|
|
84
83
|
}
|
|
85
|
-
function
|
|
84
|
+
function K(l) {
|
|
86
85
|
m.handleSort(l.prop, l.order);
|
|
87
86
|
}
|
|
88
|
-
function
|
|
87
|
+
function Y(l) {
|
|
89
88
|
l && m.getList();
|
|
90
89
|
}
|
|
91
90
|
return m.getList(), (l, t) => {
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
const A = s("el-input"), h = s("el-form-item"), f = s("el-col"), B = s("jmash-select"), _ = s("el-button"), N = s("el-row"), F = s("el-form"), M = s("jmash-column-select"), x = s("el-switch"), G = s("jmash-table"), J = s("jmash-pagination"), O = s("el-card"), g = Z("hasPerm");
|
|
92
|
+
return u(), V("div", se, [
|
|
94
93
|
$("div", re, [
|
|
95
|
-
a(
|
|
94
|
+
a(F, {
|
|
96
95
|
ref_key: "queryFormRef",
|
|
97
|
-
ref:
|
|
96
|
+
ref: q,
|
|
98
97
|
model: r.value,
|
|
99
98
|
inline: !0
|
|
100
99
|
}, {
|
|
@@ -108,11 +107,11 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
108
107
|
prop: "likeTemplateName"
|
|
109
108
|
}, {
|
|
110
109
|
default: o(() => [
|
|
111
|
-
a(
|
|
110
|
+
a(A, {
|
|
112
111
|
modelValue: r.value.likeTemplateName,
|
|
113
112
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeTemplateName = e),
|
|
114
113
|
placeholder: l.$t("promptTemplate.likeTemplateNameRequired"),
|
|
115
|
-
onKeyup: t[1] || (t[1] =
|
|
114
|
+
onKeyup: t[1] || (t[1] = D((e) => n(m).handleQuery(), ["enter"])),
|
|
116
115
|
class: "!w-[203px]"
|
|
117
116
|
}, null, 8, ["modelValue", "placeholder"])
|
|
118
117
|
]),
|
|
@@ -128,12 +127,12 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
128
127
|
prop: "status"
|
|
129
128
|
}, {
|
|
130
129
|
default: o(() => [
|
|
131
|
-
a(
|
|
130
|
+
a(B, {
|
|
132
131
|
modelValue: r.value.status,
|
|
133
132
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.status = e),
|
|
134
133
|
placeholder: l.$t("promptTemplate.statusRequired"),
|
|
135
|
-
onKeyup: t[3] || (t[3] =
|
|
136
|
-
data: n(
|
|
134
|
+
onKeyup: t[3] || (t[3] = D((e) => n(m).handleQuery(), ["enter"])),
|
|
135
|
+
data: n(ae).statusEnum.values,
|
|
137
136
|
clearable: "",
|
|
138
137
|
class: "!w-[203px]"
|
|
139
138
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -152,7 +151,7 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
152
151
|
onClick: t[4] || (t[4] = (e) => n(m).handleQuery())
|
|
153
152
|
}, {
|
|
154
153
|
default: o(() => [
|
|
155
|
-
d(
|
|
154
|
+
d(i(l.$t("common.search")), 1)
|
|
156
155
|
]),
|
|
157
156
|
_: 1
|
|
158
157
|
}),
|
|
@@ -160,7 +159,7 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
160
159
|
onClick: t[5] || (t[5] = (e) => n(m).resetQuery())
|
|
161
160
|
}, {
|
|
162
161
|
default: o(() => [
|
|
163
|
-
d(
|
|
162
|
+
d(i(l.$t("common.reset")), 1)
|
|
164
163
|
]),
|
|
165
164
|
_: 1
|
|
166
165
|
})
|
|
@@ -178,7 +177,7 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
178
177
|
}, 8, ["model"]),
|
|
179
178
|
t[13] || (t[13] = $("div", { class: "clear" }, null, -1))
|
|
180
179
|
]),
|
|
181
|
-
a(
|
|
180
|
+
a(O, {
|
|
182
181
|
shadow: "never",
|
|
183
182
|
class: "table-container"
|
|
184
183
|
}, {
|
|
@@ -187,23 +186,23 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
187
186
|
default: o(() => [
|
|
188
187
|
a(f, { span: 17 }, {
|
|
189
188
|
default: o(() => [
|
|
190
|
-
|
|
189
|
+
k((u(), w(_, {
|
|
191
190
|
type: "primary",
|
|
192
|
-
onClick:
|
|
191
|
+
onClick: L
|
|
193
192
|
}, {
|
|
194
193
|
default: o(() => [
|
|
195
|
-
d(
|
|
194
|
+
d(i(l.$t("promptTemplate.add")), 1)
|
|
196
195
|
]),
|
|
197
196
|
_: 1
|
|
198
197
|
})), [
|
|
199
198
|
[g, ["pgss:prompt_template:add"]]
|
|
200
199
|
]),
|
|
201
|
-
|
|
200
|
+
k((u(), w(_, {
|
|
202
201
|
type: "primary",
|
|
203
202
|
onClick: t[6] || (t[6] = (e) => n(m).deleteRecords())
|
|
204
203
|
}, {
|
|
205
204
|
default: o(() => [
|
|
206
|
-
d(
|
|
205
|
+
d(i(l.$t("common.batchDelete")), 1)
|
|
207
206
|
]),
|
|
208
207
|
_: 1
|
|
209
208
|
})), [
|
|
@@ -217,7 +216,7 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
217
216
|
class: "container-float"
|
|
218
217
|
}, {
|
|
219
218
|
default: o(() => [
|
|
220
|
-
a(
|
|
219
|
+
a(M, {
|
|
221
220
|
modelValue: n(c),
|
|
222
221
|
"onUpdate:modelValue": t[7] || (t[7] = (e) => S(c) ? c.value = e : c = e),
|
|
223
222
|
"label-name": "pgss/pgss-prompt-template"
|
|
@@ -230,7 +229,7 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
230
229
|
})
|
|
231
230
|
]),
|
|
232
231
|
footer: o(() => [
|
|
233
|
-
n(b) > 0 ? (
|
|
232
|
+
n(b) > 0 ? (u(), w(J, {
|
|
234
233
|
key: 0,
|
|
235
234
|
total: n(b),
|
|
236
235
|
"onUpdate:total": t[8] || (t[8] = (e) => S(b) ? b.value = e : null),
|
|
@@ -242,44 +241,44 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
242
241
|
}, null, 8, ["total", "current-page", "page-size"])) : U("", !0)
|
|
243
242
|
]),
|
|
244
243
|
default: o(() => [
|
|
245
|
-
a(
|
|
244
|
+
a(G, {
|
|
246
245
|
ref_key: "multipleTableRef",
|
|
247
|
-
ref:
|
|
246
|
+
ref: P,
|
|
248
247
|
"row-key": "templateId",
|
|
249
|
-
"list-loading": n(
|
|
250
|
-
data: n(
|
|
248
|
+
"list-loading": n(z),
|
|
249
|
+
data: n(E),
|
|
251
250
|
"table-label": n(c),
|
|
252
|
-
onSelectionChange:
|
|
253
|
-
onSortChange:
|
|
251
|
+
onSelectionChange: H,
|
|
252
|
+
onSortChange: K
|
|
254
253
|
}, {
|
|
255
254
|
createTime: o((e) => [
|
|
256
|
-
$("span", null,
|
|
255
|
+
$("span", null, i(n(j).$moment.formatDate(
|
|
257
256
|
e.data.row.createTime,
|
|
258
257
|
"YYYY-MM-DD HH:mm:ss"
|
|
259
258
|
)), 1)
|
|
260
259
|
]),
|
|
261
260
|
status: o((e) => [
|
|
262
|
-
a(
|
|
261
|
+
a(x, {
|
|
263
262
|
modelValue: e.data.row.status,
|
|
264
263
|
"onUpdate:modelValue": (y) => e.data.row.status = y,
|
|
265
264
|
onChange: (y) => n(m).enableRecord(e.data.row, e.data.row.status)
|
|
266
265
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
267
266
|
]),
|
|
268
267
|
operation: o((e) => [
|
|
269
|
-
|
|
268
|
+
k((u(), V("span", {
|
|
270
269
|
class: "el-button-color",
|
|
271
|
-
onClick: (y) =>
|
|
270
|
+
onClick: (y) => Q(e.data.row)
|
|
272
271
|
}, [
|
|
273
|
-
d(
|
|
272
|
+
d(i(l.$t("common.edit")), 1)
|
|
274
273
|
], 8, pe)), [
|
|
275
274
|
[g, ["pgss:prompt_template:update"]]
|
|
276
275
|
]),
|
|
277
|
-
|
|
276
|
+
k((u(), V("span", {
|
|
278
277
|
class: "el-button-color dropdown-left",
|
|
279
278
|
onClick: (y) => n(m).deleteRecord(e.data.row)
|
|
280
279
|
}, [
|
|
281
|
-
d(
|
|
282
|
-
], 8,
|
|
280
|
+
d(i(l.$t("common.delete")), 1)
|
|
281
|
+
], 8, ue)), [
|
|
283
282
|
[g, ["pgss:prompt_template:delete"]]
|
|
284
283
|
])
|
|
285
284
|
]),
|
|
@@ -288,13 +287,13 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
288
287
|
]),
|
|
289
288
|
_: 1
|
|
290
289
|
}),
|
|
291
|
-
p.value.visible ? (
|
|
290
|
+
p.value.visible ? (u(), w(oe, {
|
|
292
291
|
key: 0,
|
|
293
292
|
modelValue: p.value.visible,
|
|
294
293
|
"onUpdate:modelValue": t[12] || (t[12] = (e) => p.value.visible = e),
|
|
295
294
|
title: p.value.title,
|
|
296
|
-
"entity-key": n(
|
|
297
|
-
onRefresh:
|
|
295
|
+
"entity-key": n(C),
|
|
296
|
+
onRefresh: Y,
|
|
298
297
|
width: "900px"
|
|
299
298
|
}, null, 8, ["modelValue", "title", "entity-key"])) : U("", !0)
|
|
300
299
|
]);
|
|
@@ -302,5 +301,5 @@ const se = { class: "app-container" }, re = { class: "search-container" }, pe =
|
|
|
302
301
|
}
|
|
303
302
|
});
|
|
304
303
|
export {
|
|
305
|
-
|
|
304
|
+
ke as default
|
|
306
305
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -3027,11 +3027,12 @@ As({
|
|
|
3027
3027
|
// 刷新时,滚动条位置还原
|
|
3028
3028
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3029
3029
|
});
|
|
3030
|
-
const Xi = /* @__PURE__ */ Object.assign({ "./views/pgss/pgss-app-info/app-info.vue": () => import("./app-info-B4CG9SYQ.mjs"), "./views/pgss/pgss-app-info/edit.vue": () => import("./edit-Do1a4xeJ.mjs"), "./views/pgss/pgss-app-info/index.vue": () => import("./index-CoC7n2M9.mjs"), "./views/pgss/pgss-app-info/info.vue": () => import("./info-Bba_NzcG.mjs"), "./views/pgss/pgss-app-info/resetPwd.vue": () => import("./resetPwd-CeTAHbCm.mjs"), "./views/pgss/pgss-homepage/apiCall.vue": () => import("./apiCall-DGnOSgOg.mjs"), "./views/pgss/pgss-homepage/image.vue": () => import("./image-CROZrkNB.mjs"), "./views/pgss/pgss-homepage/index.vue": () => import("./index-CM5e4jX-.mjs"), "./views/pgss/pgss-message-log/index.vue": () => import("./index-C_8_sh8W.mjs"), "./views/pgss/pgss-portrait-weight/index.vue": () => import("./index-BUiu8rPV.mjs"), "./views/pgss/pgss-prompt-template-custom/edit.vue": () => import("./edit-sq0ohOci.mjs"), "./views/pgss/pgss-prompt-template-custom/index.vue": () => import("./index-AzecE6QF.mjs"), "./views/pgss/pgss-prompt-template/edit.vue": () => import("./edit-CR3tiHFR.mjs"), "./views/pgss/pgss-prompt-template/index.vue": () => import("./index-
|
|
3030
|
+
const Xi = /* @__PURE__ */ Object.assign({ "./views/pgss/pgss-app-info/app-info.vue": () => import("./app-info-B4CG9SYQ.mjs"), "./views/pgss/pgss-app-info/edit.vue": () => import("./edit-Do1a4xeJ.mjs"), "./views/pgss/pgss-app-info/index.vue": () => import("./index-CoC7n2M9.mjs"), "./views/pgss/pgss-app-info/info.vue": () => import("./info-Bba_NzcG.mjs"), "./views/pgss/pgss-app-info/resetPwd.vue": () => import("./resetPwd-CeTAHbCm.mjs"), "./views/pgss/pgss-homepage/apiCall.vue": () => import("./apiCall-DGnOSgOg.mjs"), "./views/pgss/pgss-homepage/image.vue": () => import("./image-CROZrkNB.mjs"), "./views/pgss/pgss-homepage/index.vue": () => import("./index-CM5e4jX-.mjs"), "./views/pgss/pgss-message-log/index.vue": () => import("./index-C_8_sh8W.mjs"), "./views/pgss/pgss-portrait-weight/index.vue": () => import("./index-BUiu8rPV.mjs"), "./views/pgss/pgss-prompt-template-custom/edit.vue": () => import("./edit-sq0ohOci.mjs"), "./views/pgss/pgss-prompt-template-custom/index.vue": () => import("./index-AzecE6QF.mjs"), "./views/pgss/pgss-prompt-template/edit.vue": () => import("./edit-CR3tiHFR.mjs"), "./views/pgss/pgss-prompt-template/index.vue": () => import("./index-B0w3Hvh3.mjs"), "./views/pgss/pgss-user-portrait/index.vue": () => import("./index-BEtcyjc1.mjs"), "./views/pgss/pgss-user-portrait/info.vue": () => import("./info-CunGvr-S.mjs"), "./views/pgss/pgss-user-portrait/simulateNum.vue": () => import("./simulateNum-DcFDMOSh.mjs") }), so = {
|
|
3031
3031
|
install(e) {
|
|
3032
3032
|
Us(Xi, 7), Hs(xs), zs(Es), e.use(Ji);
|
|
3033
3033
|
}
|
|
3034
3034
|
};
|
|
3035
3035
|
export {
|
|
3036
|
-
so as default
|
|
3036
|
+
so as default,
|
|
3037
|
+
Qi as homepage
|
|
3037
3038
|
};
|
package/dts/src/index.d.ts
CHANGED