sooyie-pgss 0.0.4 → 0.0.5

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,4 +1,4 @@
1
- import { _ as f } from "./app-info.vue_vue_type_script_setup_true_lang-CgJRP6lc.mjs";
1
+ import { _ as f } from "./app-info.vue_vue_type_script_setup_true_lang-DxE5gyRR.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,10 +2,10 @@ import { defineComponent as ye, getCurrentInstance as ve, ref as T, watch as _e,
2
2
  import { useTableHooks as be } from "jmash-core";
3
3
  import { useI18n as ge } from "vue-i18n";
4
4
  import { a as ke } from "./index-MA9jC8ZF.mjs";
5
- import { D as L } from "./index-D0X52CmM.mjs";
5
+ import { D as L } from "./index-K_0ErcZa.mjs";
6
6
  import Ce from "./edit-BlxqUB6-.mjs";
7
7
  import { _ as Te } from "./resetPwd.vue_vue_type_script_setup_true_lang-Dx51Xvte.mjs";
8
- import he from "./info-_AfeplKG.mjs";
8
+ import he from "./info-BVeWJFsE.mjs";
9
9
  import { useRouter as Ve } from "vue-router";
10
10
  import { C as $e } from "./constant--xMn450l.mjs";
11
11
  const Ie = { class: "app-container" }, Re = { class: "search-container" }, De = ["onClick"], Pe = ["onClick"], Ne = { class: "el-dropdown-link" }, He = /* @__PURE__ */ ye({
@@ -1,16 +1,15 @@
1
- import { defineComponent as oe, ref as R, reactive as B, computed as V, useModel as ae, resolveComponent as m, openBlock as d, createBlock as P, withCtx as i, createVNode as a, unref as p, createElementVNode as o, createElementBlock as f, Fragment as h, renderList as C, createTextVNode as y, toDisplayString as g, createCommentVNode as se, mergeModels as K, nextTick as re } from "vue";
1
+ import { defineComponent as oe, ref as R, reactive as B, computed as N, useModel as ae, resolveComponent as d, openBlock as m, createBlock as P, withCtx as i, createVNode as a, unref as p, createElementVNode as o, createElementBlock as f, Fragment as h, renderList as y, createTextVNode as C, toDisplayString as _, createCommentVNode as se, mergeModels as K, nextTick as ne } from "vue";
2
2
  import { ElMessage as H } from "element-plus";
3
- import { d as ne } from "./index-CkVsz6yH.mjs";
3
+ import { d as re } from "./index-CkVsz6yH.mjs";
4
4
  import { useI18n as ie } from "vue-i18n";
5
- import { p as D } from "./index-DAKAeNie.mjs";
6
- import { D as k } from "./index-D0X52CmM.mjs";
5
+ import { D as V, p as D } from "./index-K_0ErcZa.mjs";
7
6
  import { u as pe } from "./index-CeyTmMNJ.mjs";
8
- import { C as me } from "./constant--xMn450l.mjs";
9
- import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
10
- const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { class: "variable-palette" }, ge = { class: "palette-label" }, _e = { class: "palette-pills" }, ve = ["onClick"], he = { class: "variable-palette" }, Ce = { class: "palette-row" }, ye = { class: "palette-pills" }, be = ["onClick"], Te = { class: "variable-palette" }, we = { class: "template-footer" }, Ne = { class: "char-count" }, Ve = {
7
+ import { C as de } from "./constant--xMn450l.mjs";
8
+ import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
+ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { class: "variable-palette" }, _e = { class: "palette-label" }, ge = { class: "palette-pills" }, ve = ["onClick"], he = { class: "variable-palette" }, ye = { class: "palette-row" }, Ce = { class: "palette-pills" }, be = ["onClick"], Te = { class: "variable-palette" }, we = { class: "template-footer" }, ke = { class: "char-count" }, Ne = {
11
10
  key: 0,
12
11
  class: "referenced-placeholders"
13
- }, ke = { class: "form-section" }, qe = { class: "sample-preview" }, $e = { class: "sample-header" }, Re = { class: "sample-header-left" }, De = { class: "sample-header-right" }, Fe = { class: "sample-meta" }, Se = ["innerHTML"], Ee = { class: "dialog-footer" }, Me = /* @__PURE__ */ oe({
12
+ }, Ve = { class: "form-section" }, qe = { class: "sample-preview" }, $e = { class: "sample-header" }, Re = { class: "sample-header-left" }, De = { class: "sample-header-right" }, Fe = { class: "sample-meta" }, Se = ["innerHTML"], xe = { class: "dialog-footer" }, Ee = /* @__PURE__ */ oe({
14
13
  __name: "edit",
15
14
  props: /* @__PURE__ */ K({
16
15
  entityKey: {
@@ -30,53 +29,78 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
30
29
  updateMask: "weightCode,templateCode,templateName,templateContent,templateSample,priorityNo",
31
30
  templateType: "common"
32
31
  });
33
- console.log(k.commonFieldDict.values, "=>Dict.commonFieldDict.values ");
34
- const E = R([]);
32
+ console.log(V.commonFieldDict.values, "=>Dict.commonFieldDict.values ");
33
+ const x = R([]);
35
34
  pe.findFields().then(({ data: t }) => {
36
- E.value = t.results || [];
35
+ x.value = t.results || [];
37
36
  });
38
- const G = V(() => {
39
- const t = k.profileCodeDict.values || [], e = E.value || [];
40
- return t.map((n) => {
41
- const c = n.dictCode, v = e.filter((b) => {
37
+ const G = N(() => {
38
+ const t = V.profileCodeDict.values || [], e = x.value || [];
39
+ return t.map((r) => {
40
+ const c = r.dictCode, v = e.filter((b) => {
42
41
  var T;
43
42
  return console.log(b, "=>f "), ((T = b.fieldName) == null ? void 0 : T.split("_")[0]) === c;
44
43
  });
45
44
  return {
46
- dictCode: n.dictCode,
47
- dictName: n.dictName,
45
+ dictCode: r.dictCode,
46
+ dictName: r.dictName,
48
47
  fields: v
49
48
  };
50
49
  });
51
- }), W = V(
52
- () => (k.commonFieldDict.values || []).map((t) => ({
50
+ }), W = N(
51
+ () => (V.commonFieldDict.values || []).map((t) => ({
53
52
  fieldName: t.dictCode,
54
53
  fieldRemark: t.dictName
55
54
  }))
56
- ), q = V(() => {
57
- const t = s.templateContent || "", e = /\((\w+\.\w+)\)/g, r = /* @__PURE__ */ new Set();
58
- let n;
59
- for (; (n = e.exec(t)) !== null; )
60
- r.add(n[1]);
61
- return Array.from(r);
62
- }), M = {}, J = V(() => {
55
+ ), q = N(() => {
56
+ const t = s.templateContent || "", e = /\((\w+\.\w+)\)/g, n = /* @__PURE__ */ new Set();
57
+ let r;
58
+ for (; (r = e.exec(t)) !== null; )
59
+ n.add(r[1]);
60
+ return Array.from(n);
61
+ }), E = {
62
+ // 身份特征
63
+ identity_name: "张伟",
64
+ identity_age_range: "30-40岁",
65
+ identity_type: "自然人",
66
+ identity_job: "企业普通员工",
67
+ identity_region: "山西省太原市",
68
+ identity_special: "高层次人才",
69
+ // 业务需求
70
+ business_focus: "社保",
71
+ business_matter: "社保缴费",
72
+ business_stage: "已受理",
73
+ // 认知水平
74
+ know_education: "本科及以上",
75
+ know_complexity: "专业术语型",
76
+ // 偏好
77
+ pref_channel: "政务服务网",
78
+ pref_style: "简洁要点式",
79
+ // 时效性意图
80
+ intent_high_freq: "社保交费须知",
81
+ intent_unfinished: "",
82
+ intent_reminder: "缴费截止",
83
+ // 公共
84
+ app_type: "政务办事",
85
+ user_question: "如何进行社保交费"
86
+ }, J = N(() => {
63
87
  let t = s.templateContent || "";
64
- return t ? (Object.keys(M).forEach((e) => {
65
- const r = `(${e})`, n = M[e];
66
- t = t.split(r).join(n);
88
+ return t ? (Object.keys(E).forEach((e) => {
89
+ const n = `{${e}}`, r = E[e];
90
+ t = t.split(n).join(r);
67
91
  }), t = t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/^# (.+)$/gm, '<div class="md-h1">$1</div>').replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\n/g, "<br>"), t) : "<div class='empty'>暂无模板内容,请先编辑上方模板</div>";
68
92
  });
69
- function x(t) {
70
- const e = `{${t.fieldName}}`, r = s.templateContent || "", n = document.querySelector(
93
+ function M(t) {
94
+ const e = `{${t.fieldName}}`, n = s.templateContent || "", r = document.querySelector(
71
95
  ".template-content-textarea textarea"
72
96
  );
73
- if (!n) {
74
- s.templateContent = r + e;
97
+ if (!r) {
98
+ s.templateContent = n + e;
75
99
  return;
76
100
  }
77
- const c = n.selectionStart, v = n.selectionEnd;
78
- s.templateContent = r.substring(0, c) + e + r.substring(v), re(() => {
79
- n.selectionStart = n.selectionEnd = c + e.length, n.focus();
101
+ const c = r.selectionStart, v = r.selectionEnd;
102
+ s.templateContent = n.substring(0, c) + e + n.substring(v), ne(() => {
103
+ r.selectionStart = r.selectionEnd = c + e.length, r.focus();
80
104
  });
81
105
  }
82
106
  const Q = B({
@@ -143,42 +167,42 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
143
167
  trigger: "change"
144
168
  }
145
169
  ]
146
- }), _ = ae(F, "modelValue"), U = F, j = z, X = Object.keys(U.entityKey), $ = R(X.length >= 1);
147
- $.value && D.findById(U.entityKey).then(({ data: t }) => {
170
+ }), g = ae(F, "modelValue"), j = F, U = z, X = Object.keys(j.entityKey), $ = R(X.length >= 1);
171
+ $.value && D.findById(j.entityKey).then(({ data: t }) => {
148
172
  Object.assign(s, t);
149
173
  });
150
174
  const Y = async () => {
151
175
  var t;
152
176
  await ((t = S.value) == null ? void 0 : t.validate((e) => {
153
- e && ($.value ? D.update(s).then((r) => {
154
- console.log(r), r.status === 200 && (H({
177
+ e && ($.value ? D.update(s).then((n) => {
178
+ console.log(n), n.status === 200 && (H({
155
179
  message: u("common.submitSuccess"),
156
180
  type: "success"
157
- }), _.value && (_.value = !1), j("refresh", r.status === 200));
158
- }) : D.create(s).then((r) => {
159
- console.log(r), r.status === 200 && (H({
181
+ }), g.value && (g.value = !1), U("refresh", n.status === 200));
182
+ }) : D.create(s).then((n) => {
183
+ console.log(n), n.status === 200 && (H({
160
184
  message: u("common.submitSuccess"),
161
185
  type: "success"
162
- }), _.value && (_.value = !1), j("refresh", r.status === 200));
186
+ }), g.value && (g.value = !1), U("refresh", n.status === 200));
163
187
  }));
164
188
  }));
165
189
  };
166
190
  function A() {
167
- _.value && (_.value = !1);
191
+ g.value && (g.value = !1);
168
192
  }
169
193
  return (t, e) => {
170
- const r = m("el-input"), n = m("el-form-item"), c = m("el-col"), v = m("jmash-dict-select"), b = m("el-input-number"), I = m("el-radio"), T = m("el-radio-group"), Z = m("el-row"), ee = m("el-icon"), L = m("el-tag"), te = m("el-form"), O = m("el-button"), le = m("el-dialog");
171
- return d(), P(le, {
172
- modelValue: _.value,
173
- "onUpdate:modelValue": e[6] || (e[6] = (w) => _.value = w),
194
+ const n = d("el-input"), r = d("el-form-item"), c = d("el-col"), v = d("jmash-dict-select"), b = d("el-input-number"), I = d("el-radio"), T = d("el-radio-group"), Z = d("el-row"), ee = d("el-icon"), L = d("el-tag"), te = d("el-form"), O = d("el-button"), le = d("el-dialog");
195
+ return m(), P(le, {
196
+ modelValue: g.value,
197
+ "onUpdate:modelValue": e[6] || (e[6] = (w) => g.value = w),
174
198
  onClose: A,
175
199
  width: "900px"
176
200
  }, {
177
201
  footer: i(() => [
178
- o("div", Ee, [
202
+ o("div", xe, [
179
203
  a(O, { onClick: A }, {
180
204
  default: i(() => [
181
- y(g(t.$t("common.cancel")), 1)
205
+ C(_(t.$t("common.cancel")), 1)
182
206
  ]),
183
207
  _: 1
184
208
  }),
@@ -187,7 +211,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
187
211
  onClick: Y
188
212
  }, {
189
213
  default: i(() => [
190
- y(g(t.$t("common.confirm")), 1)
214
+ C(_(t.$t("common.confirm")), 1)
191
215
  ]),
192
216
  _: 1
193
217
  })
@@ -210,12 +234,12 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
210
234
  default: i(() => [
211
235
  a(c, { span: 12 }, {
212
236
  default: i(() => [
213
- a(n, {
237
+ a(r, {
214
238
  label: t.$t("promptTemplate.templateName"),
215
239
  prop: "templateName"
216
240
  }, {
217
241
  default: i(() => [
218
- a(r, {
242
+ a(n, {
219
243
  modelValue: p(s).templateName,
220
244
  "onUpdate:modelValue": e[0] || (e[0] = (l) => p(s).templateName = l),
221
245
  placeholder: t.$t("promptTemplate.likeTemplateNameRequired"),
@@ -231,12 +255,12 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
231
255
  }),
232
256
  a(c, { span: 12 }, {
233
257
  default: i(() => [
234
- a(n, {
258
+ a(r, {
235
259
  label: t.$t("promptTemplate.templateCode"),
236
260
  prop: "templateCode"
237
261
  }, {
238
262
  default: i(() => [
239
- a(r, {
263
+ a(n, {
240
264
  modelValue: p(s).templateCode,
241
265
  "onUpdate:modelValue": e[1] || (e[1] = (l) => p(s).templateCode = l),
242
266
  placeholder: t.$t("promptTemplate.templateCodeRequired"),
@@ -252,7 +276,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
252
276
  }),
253
277
  a(c, { span: 12 }, {
254
278
  default: i(() => [
255
- a(n, {
279
+ a(r, {
256
280
  label: t.$t("promptTemplate.weightCode"),
257
281
  prop: "weightCode"
258
282
  }, {
@@ -260,7 +284,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
260
284
  a(v, {
261
285
  modelValue: p(s).weightCode,
262
286
  "onUpdate:modelValue": e[2] || (e[2] = (l) => p(s).weightCode = l),
263
- "type-code": p(me).MODULE_WEIGHT_DICT,
287
+ "type-code": p(de).MODULE_WEIGHT_DICT,
264
288
  placeholder: t.$t("promptTemplate.weightCodeRequired"),
265
289
  class: "w-full"
266
290
  }, null, 8, ["modelValue", "type-code", "placeholder"])
@@ -272,7 +296,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
272
296
  }),
273
297
  a(c, { span: 12 }, {
274
298
  default: i(() => [
275
- a(n, {
299
+ a(r, {
276
300
  label: t.$t("promptTemplate.priorityNo"),
277
301
  prop: "priorityNo"
278
302
  }, {
@@ -295,7 +319,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
295
319
  }),
296
320
  a(c, { span: 12 }, {
297
321
  default: i(() => [
298
- a(n, {
322
+ a(r, {
299
323
  label: t.$t("promptTemplate.status"),
300
324
  prop: "status"
301
325
  }, {
@@ -305,13 +329,13 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
305
329
  "onUpdate:modelValue": e[4] || (e[4] = (l) => p(s).status = l)
306
330
  }, {
307
331
  default: i(() => [
308
- (d(!0), f(h, null, C(p(k).statusEnum.values, (l) => (d(), P(I, {
332
+ (m(!0), f(h, null, y(p(V).statusEnum.values, (l) => (m(), P(I, {
309
333
  key: l.key,
310
334
  value: l.key,
311
335
  disabled: $.value
312
336
  }, {
313
337
  default: i(() => [
314
- y(g(l.value), 1)
338
+ C(_(l.value), 1)
315
339
  ]),
316
340
  _: 2
317
341
  }, 1032, ["value", "disabled"]))), 128))
@@ -331,34 +355,34 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
331
355
  o("div", ce, [
332
356
  e[10] || (e[10] = o("div", { class: "section-title" }, "模板内容", -1)),
333
357
  o("div", fe, [
334
- (d(!0), f(h, null, C(G.value, (l) => (d(), f("div", {
358
+ (m(!0), f(h, null, y(G.value, (l) => (m(), f("div", {
335
359
  class: "palette-row",
336
360
  key: l.dictCode
337
361
  }, [
338
- o("span", ge, g(l.dictName), 1),
339
- o("div", _e, [
340
- (d(!0), f(h, null, C(l.fields, (N) => (d(), f("span", {
362
+ o("span", _e, _(l.dictName), 1),
363
+ o("div", ge, [
364
+ (m(!0), f(h, null, y(l.fields, (k) => (m(), f("span", {
341
365
  class: "field-pill",
342
- key: N.fieldName,
343
- onClick: (xe) => x(N)
344
- }, g(N.fieldRemark), 9, ve))), 128))
366
+ key: k.fieldName,
367
+ onClick: (Me) => M(k)
368
+ }, _(k.fieldRemark), 9, ve))), 128))
345
369
  ])
346
370
  ]))), 128))
347
371
  ]),
348
372
  o("div", he, [
349
- o("div", Ce, [
373
+ o("div", ye, [
350
374
  e[8] || (e[8] = o("span", { class: "palette-label" }, "公共信息", -1)),
351
- o("div", ye, [
352
- (d(!0), f(h, null, C(W.value, (l) => (d(), f("span", {
375
+ o("div", Ce, [
376
+ (m(!0), f(h, null, y(W.value, (l) => (m(), f("span", {
353
377
  class: "field-pill",
354
378
  key: l.fieldName,
355
- onClick: (N) => x(l)
356
- }, g(l.fieldRemark), 9, be))), 128))
379
+ onClick: (k) => M(l)
380
+ }, _(l.fieldRemark), 9, be))), 128))
357
381
  ])
358
382
  ])
359
383
  ]),
360
384
  o("div", Te, [
361
- a(r, {
385
+ a(n, {
362
386
  modelValue: p(s).templateContent,
363
387
  "onUpdate:modelValue": e[5] || (e[5] = (l) => p(s).templateContent = l),
364
388
  type: "textarea",
@@ -369,25 +393,25 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
369
393
  class: "template-content-textarea"
370
394
  }, null, 8, ["modelValue", "placeholder"]),
371
395
  o("div", we, [
372
- o("span", Ne, "字符数 " + g(((w = p(s).templateContent) == null ? void 0 : w.length) || 0), 1),
373
- q.value.length ? (d(), f("div", Ve, [
396
+ o("span", ke, "字符数 " + _(((w = p(s).templateContent) == null ? void 0 : w.length) || 0), 1),
397
+ q.value.length ? (m(), f("div", Ne, [
374
398
  e[9] || (e[9] = o("span", { class: "referenced-label" }, "引用占位符", -1)),
375
- (d(!0), f(h, null, C(q.value, (l) => (d(), f("span", {
399
+ (m(!0), f(h, null, y(q.value, (l) => (m(), f("span", {
376
400
  class: "referenced-pill",
377
401
  key: l
378
- }, g(l), 1))), 128))
402
+ }, _(l), 1))), 128))
379
403
  ])) : se("", !0)
380
404
  ])
381
405
  ])
382
406
  ]),
383
- o("div", ke, [
407
+ o("div", Ve, [
384
408
  e[14] || (e[14] = o("div", { class: "section-title" }, "提示词样例", -1)),
385
409
  o("div", qe, [
386
410
  o("div", $e, [
387
411
  o("div", Re, [
388
412
  a(ee, null, {
389
413
  default: i(() => [
390
- a(p(ne))
414
+ a(p(re))
391
415
  ]),
392
416
  _: 1
393
417
  }),
@@ -397,7 +421,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
397
421
  type: "info"
398
422
  }, {
399
423
  default: i(() => [...e[11] || (e[11] = [
400
- y("只读预览", -1)
424
+ C("只读预览", -1)
401
425
  ])]),
402
426
  _: 1
403
427
  })
@@ -408,11 +432,11 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
408
432
  type: "success"
409
433
  }, {
410
434
  default: i(() => [...e[13] || (e[13] = [
411
- y("变量已渲染", -1)
435
+ C("变量已渲染", -1)
412
436
  ])]),
413
437
  _: 1
414
438
  }),
415
- o("span", Fe, g(q.value.length) + " 条指令", 1)
439
+ o("span", Fe, _(q.value.length) + " 条指令", 1)
416
440
  ])
417
441
  ]),
418
442
  o("div", {
@@ -430,7 +454,7 @@ const ue = { class: "form-section" }, ce = { class: "form-section" }, fe = { cla
430
454
  }, 8, ["modelValue"]);
431
455
  };
432
456
  }
433
- }), He = /* @__PURE__ */ de(Me, [["__scopeId", "data-v-ce562b80"]]);
457
+ }), Ke = /* @__PURE__ */ me(Ee, [["__scopeId", "data-v-bbdbf0a2"]]);
434
458
  export {
435
- He as default
459
+ Ke as default
436
460
  };