zsysview 0.0.17 → 0.0.18

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.
Files changed (76) hide show
  1. package/README.md +19 -3
  2. package/dist/backup-BwHGMFM9.js +519 -0
  3. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-B-s19d7a.js +42 -0
  4. package/dist/change_password-Cvx2fsBt.js +135 -0
  5. package/dist/department-D19P31la.js +410 -0
  6. package/dist/desktop-IlIshTtF.js +9 -0
  7. package/dist/http_api_v1-DFc71lD8.js +2755 -0
  8. package/dist/index-C_d1JnWR.js +49346 -0
  9. package/dist/index.es-BcGc183Q.js +170 -0
  10. package/dist/log-sQxXMuk2.js +163 -0
  11. package/dist/login-CN37wrzM.js +111 -0
  12. package/dist/main-B5GBQKz0.js +292 -0
  13. package/dist/message-Dd0EkBmy.js +26 -0
  14. package/dist/position-DfWT0ovL.js +312 -0
  15. package/dist/role-CNn2CuOU.js +405 -0
  16. package/dist/self-CraGrpq3.js +102 -0
  17. package/dist/sys-BjlP52cg.js +30 -0
  18. package/dist/user-CYvTCZB6.js +651 -0
  19. package/dist/vite.svg +1 -0
  20. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js +72 -0
  21. package/dist/zsys_eventBus-Dc_JZwH4.js +36 -0
  22. package/dist/zsys_time-DHEMuVgo.js +17 -0
  23. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js +465 -0
  24. package/dist/zsysview.css +1 -0
  25. package/dist/zsysview.es.js +2 -0
  26. package/package.json +34 -20
  27. package/assets/default_avatar.png +0 -0
  28. package/assets/default_logo.png +0 -0
  29. package/assets/default_logo_40.png +0 -0
  30. package/assets/login_bg.jpg +0 -0
  31. package/components/export/export_dialog.vue +0 -150
  32. package/components/export/export_progress.vue +0 -62
  33. package/components/list/zsyslist.vue +0 -164
  34. package/components/list/zsyslist_content.vue +0 -29
  35. package/components/list/zsyslist_header.vue +0 -62
  36. package/components/message/index.ts +0 -3
  37. package/components/message/message.ts +0 -35
  38. package/components/zsys_delbutton.vue +0 -60
  39. package/core/app.ts +0 -32
  40. package/core/common/common.ts +0 -29
  41. package/core/common/zsys_eventBus.ts +0 -45
  42. package/core/common/zsys_time.ts +0 -26
  43. package/core/httpapi/http_api_return_data.ts +0 -43
  44. package/core/httpapi/http_api_v1.ts +0 -151
  45. package/core/httpapi/http_axios.ts +0 -54
  46. package/core/router copy.ts +0 -148
  47. package/core/router.ts +0 -153
  48. package/core/runtime.ts +0 -14
  49. package/core/user_token.ts +0 -17
  50. package/css/common.css +0 -16
  51. package/css/style.css +0 -79
  52. package/index.ts +0 -0
  53. package/view/app.vue +0 -10
  54. package/view/backup/backup.vue +0 -308
  55. package/view/building.vue +0 -22
  56. package/view/department/department.vue +0 -111
  57. package/view/department/department_edit_dialog.vue +0 -267
  58. package/view/desktop/desktop.vue +0 -11
  59. package/view/log/log.vue +0 -60
  60. package/view/log/log_setting.vue +0 -41
  61. package/view/login.vue +0 -91
  62. package/view/main/breadcrumb.vue +0 -41
  63. package/view/main/main.vue +0 -60
  64. package/view/main/userHeader.vue +0 -73
  65. package/view/main/userMenu.vue +0 -132
  66. package/view/main/userMenuItem.vue +0 -49
  67. package/view/position/position.vue +0 -58
  68. package/view/position/position_edit_dialog.vue +0 -203
  69. package/view/role/role.vue +0 -72
  70. package/view/role/role_edit_dialog.vue +0 -271
  71. package/view/self/change_password.vue +0 -97
  72. package/view/self/self.vue +0 -62
  73. package/view/sys/sys.vue +0 -19
  74. package/view/user/change_user_password_dialog.vue +0 -155
  75. package/view/user/user.vue +0 -110
  76. package/view/user/user_edit_dialog.vue +0 -283
@@ -0,0 +1,292 @@
1
+ import { defineComponent as k, resolveComponent as l, createBlock as f, createCommentVNode as E, openBlock as _, withCtx as o, createVNode as a, createElementVNode as h, resolveDynamicComponent as A, toDisplayString as b, createElementBlock as S, Fragment as C, renderList as M, markRaw as s, reactive as N, onMounted as F, createTextVNode as v, unref as R, watch as T } from "vue";
2
+ import { H as y } from "./http_api_v1-DFc71lD8.js";
3
+ import { h as U, u as H, o as $, c as j, s as D, v as O, l as Z, d as L, b as Y, a as G, e as I, r as J, f as K, g as Q, _ as z, i as V, j as W, k as B } from "./index-C_d1JnWR.js";
4
+ import { Z as X } from "./message-Dd0EkBmy.js";
5
+ const P = /* @__PURE__ */ k({
6
+ __name: "userMenuItem",
7
+ props: {
8
+ item: {}
9
+ },
10
+ setup(w) {
11
+ const t = w;
12
+ return (r, n) => {
13
+ const p = l("el-icon"), u = l("el-menu-item"), e = l("el-sub-menu");
14
+ return !t.item.children && t.item.show ? (_(), f(u, {
15
+ key: 0,
16
+ index: t.item.url
17
+ }, {
18
+ default: o(() => [
19
+ a(p, null, {
20
+ default: o(() => [
21
+ (_(), f(A(t.item.icon)))
22
+ ]),
23
+ _: 1
24
+ }),
25
+ h("span", null, b(t.item.name), 1)
26
+ ]),
27
+ _: 1
28
+ }, 8, ["index"])) : t.item.show ? (_(), f(e, {
29
+ key: 1,
30
+ index: t.item.url
31
+ }, {
32
+ title: o(() => [
33
+ a(p, null, {
34
+ default: o(() => [
35
+ (_(), f(A(s(t.item.icon))))
36
+ ]),
37
+ _: 1
38
+ }),
39
+ h("span", null, b(t.item.name), 1)
40
+ ]),
41
+ default: o(() => [
42
+ (_(!0), S(C, null, M(t.item.children, (i) => (_(), f(P, {
43
+ key: i.url,
44
+ item: i
45
+ }, null, 8, ["item"]))), 128))
46
+ ]),
47
+ _: 1
48
+ }, 8, ["index"])) : E("", !0);
49
+ };
50
+ }
51
+ });
52
+ class x {
53
+ //数组中是否存在字符串
54
+ static StringArrayHasString(t, r) {
55
+ return t.indexOf(r) !== -1;
56
+ }
57
+ //数组中是否存在另一数组中的任意一个元素
58
+ static StringArrayHasStringArrayOne(t, r) {
59
+ for (const n of r)
60
+ if (x.StringArrayHasString(t, n))
61
+ return !0;
62
+ return !1;
63
+ }
64
+ //数组2是否包含在数组1中
65
+ static StringArrayHasStringArray(t, r) {
66
+ if (r.length == 0)
67
+ return !1;
68
+ for (const n of r)
69
+ if (!x.StringArrayHasString(t, n))
70
+ return !1;
71
+ return !0;
72
+ }
73
+ }
74
+ const ee = /* @__PURE__ */ k({
75
+ __name: "userMenu",
76
+ setup(w) {
77
+ const t = N(
78
+ [
79
+ { name: "首页", iconname: "House", icon: s(U), url: "/desktop", show: !0 },
80
+ { name: "个人中心", icon: s(H), url: "/self", show: !0 },
81
+ { name: "数据看板", icon: s($), url: "/chart", show: !1 },
82
+ { name: "事件管理", icon: s(j), url: "/eventgroup/event", show: !1 },
83
+ // {
84
+ // name: '事件管理', icon: markRaw(Collection), url: '/111', show: false,
85
+ // children: [
86
+ // { name: '数据看板', icon: markRaw(Odometer), url: '/user', show: false },
87
+ // { name: '事件', icon: markRaw(Collection), url: '/eventgroup/event', show: false },
88
+ // ]
89
+ // },
90
+ { name: "行为分析引擎", icon: s(D), url: "/engine", show: !1 },
91
+ { name: "设备管理", icon: s(O), url: "/equipment", show: !1 },
92
+ { name: "区域管理", icon: s(Z), url: "/area", show: !1 },
93
+ { name: "报表与统计", icon: s(L), url: "/building?1", show: !1 },
94
+ { name: "报警与通知", icon: s(Y), url: "/building?2", show: !1 },
95
+ {
96
+ name: "系统管理",
97
+ icon: s(Q),
98
+ url: "/zsys",
99
+ show: !1,
100
+ children: [
101
+ { name: "用户管理", icon: s(H), url: "/user", show: !1 },
102
+ { name: "组织架构", icon: s(G), url: "/department", show: !1 },
103
+ { name: "职务", icon: s(I), url: "/position", show: !1 },
104
+ { name: "角色权限", icon: s(I), url: "/role", show: !1 },
105
+ { name: "日志", icon: s(J), url: "/log", show: !1 },
106
+ { name: "备份", icon: s(K), url: "/backup", show: !1 }
107
+ ]
108
+ }
109
+ ]
110
+ );
111
+ function r(e, i) {
112
+ for (const c of e) {
113
+ if (c.name === i)
114
+ return c;
115
+ if (c.children && c.children.length > 0) {
116
+ const d = r(c.children, i);
117
+ if (d)
118
+ return d;
119
+ }
120
+ }
121
+ }
122
+ const n = (e, i, c) => {
123
+ let d = i.split("|"), g = !1;
124
+ for (const m of d) {
125
+ let q = m.split(",");
126
+ if (x.StringArrayHasStringArray(c, q)) {
127
+ g = !0;
128
+ break;
129
+ }
130
+ }
131
+ if (g) {
132
+ let m = r(t, e);
133
+ m.show = g;
134
+ }
135
+ }, p = (e) => {
136
+ n("事件管理", "gwxw.event", e), n("数据看板", "gwxw.event", e), n("行为分析引擎", "gwxw.engine", e), n("设备管理", "gwxw.equipment", e), n("区域管理", "gwxw.area", e), n("报表与统计", "gwxw.total", e), n("报警与通知", "gwxw.notice", e), n("系统管理", "zsys.user|zsys.department|zsys.position|zsys.role|zsys.log|zsys.backup", e), n("用户管理", "zsys.user", e), n("组织架构", "zsys.department", e), n("职务", "zsys.position", e), n("角色权限", "zsys.role", e), n("日志", "zsys.log", e), n("备份", "zsys.backup", e);
137
+ }, u = async () => {
138
+ try {
139
+ let e = await y.Post(y.url_user_permission, {});
140
+ if (e.IsSuccess) {
141
+ let i = e.data;
142
+ p(i);
143
+ }
144
+ } catch (e) {
145
+ console.log(e);
146
+ }
147
+ };
148
+ return F(() => {
149
+ u();
150
+ }), (e, i) => {
151
+ const c = l("el-menu"), d = l("el-scrollbar"), g = l("el-aside");
152
+ return _(), f(g, {
153
+ width: "200px",
154
+ style: { position: "fixed", top: "60px", left: "0px", bottom: "0px" }
155
+ }, {
156
+ default: o(() => [
157
+ a(d, { style: { "background-color": "#252423" } }, {
158
+ default: o(() => [
159
+ a(c, {
160
+ "default-active": "2",
161
+ router: "",
162
+ style: { "margin-bottom": "20px" },
163
+ "background-color": "#252423",
164
+ "text-color": "#fff",
165
+ "active-text-color": "#409EFF"
166
+ }, {
167
+ default: o(() => [
168
+ (_(!0), S(C, null, M(t, (m) => (_(), f(P, {
169
+ key: m.url,
170
+ item: m
171
+ }, null, 8, ["item"]))), 128))
172
+ ]),
173
+ _: 1
174
+ })
175
+ ]),
176
+ _: 1
177
+ })
178
+ ]),
179
+ _: 1
180
+ });
181
+ };
182
+ }
183
+ }), te = /* @__PURE__ */ z(ee, [["__scopeId", "data-v-8a1eba4e"]]), ne = { style: { "padding-left": "20px", "padding-right": "20px" } }, oe = { style: { height: "60px", "margin-right": "10px", float: "left", display: "flex", "align-items": "center", "justify-content": "center" } }, se = { class: "el-dropdown-link" }, ae = /* @__PURE__ */ k({
184
+ __name: "userHeader",
185
+ setup(w) {
186
+ const t = V(), r = N({
187
+ uname: ""
188
+ });
189
+ y.Post(y.url_usercenter, {}).then((u) => {
190
+ if (u.IsSuccess) {
191
+ let e = u.data;
192
+ r.uname = e.uname;
193
+ }
194
+ }).catch((u) => {
195
+ console.log("er1111r"), console.log(u);
196
+ });
197
+ const n = () => {
198
+ B().saveToken(""), t.push("/login");
199
+ }, p = () => {
200
+ t.push("/password");
201
+ };
202
+ return (u, e) => {
203
+ const i = l("el-image"), c = l("el-icon"), d = l("el-dropdown-item"), g = l("el-dropdown-menu"), m = l("el-dropdown");
204
+ return _(), S("div", ne, [
205
+ h("div", oe, [
206
+ a(i, {
207
+ style: { height: "40px" },
208
+ src: "../../assets/default_logo_40.png"
209
+ })
210
+ ]),
211
+ e[2] || (e[2] = h("div", { style: { float: "left", "line-height": "60px" } }, "岗位行为识别系统", -1)),
212
+ a(m, {
213
+ trigger: "click",
214
+ class: "user_operate"
215
+ }, {
216
+ dropdown: o(() => [
217
+ a(g, null, {
218
+ default: o(() => [
219
+ a(d, { onClick: p }, {
220
+ default: o(() => [...e[0] || (e[0] = [
221
+ v("修改密码", -1)
222
+ ])]),
223
+ _: 1
224
+ }),
225
+ a(d, { onClick: n }, {
226
+ default: o(() => [...e[1] || (e[1] = [
227
+ v("退出", -1)
228
+ ])]),
229
+ _: 1
230
+ })
231
+ ]),
232
+ _: 1
233
+ })
234
+ ]),
235
+ default: o(() => [
236
+ h("span", se, [
237
+ v(b(r.uname) + " ", 1),
238
+ a(c, { class: "el-icon--right" }, {
239
+ default: o(() => [
240
+ a(R(W))
241
+ ]),
242
+ _: 1
243
+ })
244
+ ])
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]);
249
+ };
250
+ }
251
+ }), re = /* @__PURE__ */ z(ae, [["__scopeId", "data-v-a1eff353"]]), le = /* @__PURE__ */ k({
252
+ __name: "main",
253
+ setup(w) {
254
+ const t = B(), r = V();
255
+ return T(t, (n) => {
256
+ console.log("watch"), n.token_data == "none" ? (console.log("newv.token_data==none"), r.push({
257
+ path: "/login",
258
+ query: {
259
+ redirect: r.currentRoute.value.fullPath
260
+ }
261
+ }), X.ShowInfo("系统要求您重新登录")) : console.log("newv.token_data!=none");
262
+ }), (n, p) => {
263
+ const u = l("el-header"), e = l("router-view"), i = l("el-main"), c = l("el-container");
264
+ return _(), f(c, null, {
265
+ default: o(() => [
266
+ a(u, { class: "header" }, {
267
+ default: o(() => [
268
+ a(re)
269
+ ]),
270
+ _: 1
271
+ }),
272
+ a(c, null, {
273
+ default: o(() => [
274
+ a(te),
275
+ a(i, { style: { padding: "0", "background-color": "white", position: "fixed", left: "200px", top: "60px", right: "0px", bottom: "0px" } }, {
276
+ default: o(() => [
277
+ a(e)
278
+ ]),
279
+ _: 1
280
+ })
281
+ ]),
282
+ _: 1
283
+ })
284
+ ]),
285
+ _: 1
286
+ });
287
+ };
288
+ }
289
+ }), de = /* @__PURE__ */ z(le, [["__scopeId", "data-v-f4cbb690"]]);
290
+ export {
291
+ de as default
292
+ };
@@ -0,0 +1,26 @@
1
+ import { E as n } from "./index-C_d1JnWR.js";
2
+ class s {
3
+ static show(o = "info", t) {
4
+ n({
5
+ message: t,
6
+ type: o,
7
+ plain: !0,
8
+ duration: 3e3,
9
+ // 3秒后消失
10
+ showClose: !1
11
+ });
12
+ }
13
+ static ShowInfo(o) {
14
+ s.show("info", o);
15
+ }
16
+ static ShowSuccess(o) {
17
+ s.show("success", o);
18
+ }
19
+ static ShowError(o) {
20
+ s.show("error", o);
21
+ }
22
+ install = (o) => (o.component(s.name, s), o);
23
+ }
24
+ export {
25
+ s as Z
26
+ };
@@ -0,0 +1,312 @@
1
+ import { defineComponent as h, ref as g, watch as F, reactive as V, resolveComponent as a, resolveDirective as Z, createBlock as S, openBlock as w, withCtx as l, withDirectives as j, withModifiers as G, createVNode as t, createElementVNode as q, createCommentVNode as K, createTextVNode as c, createElementBlock as Q, Fragment as Y, unref as J } from "vue";
2
+ import { _ as L } from "./breadcrumb.vue_vue_type_script_setup_true_lang-B-s19d7a.js";
3
+ import { _ as W } from "./zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js";
4
+ import { H as v } from "./http_api_v1-DFc71lD8.js";
5
+ import { Z as R } from "./message-Dd0EkBmy.js";
6
+ import { m as X, w as ee } from "./index-C_d1JnWR.js";
7
+ import { z as te } from "./zsys_eventBus-Dc_JZwH4.js";
8
+ import { _ as oe } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js";
9
+ const le = { style: { display: "flex", "justify-content": "right" } }, ie = /* @__PURE__ */ h({
10
+ __name: "position_edit_dialog",
11
+ props: {
12
+ modelValue: { type: Boolean, required: !0 },
13
+ // 控制显示隐藏
14
+ id: { type: BigInt, required: !0 }
15
+ },
16
+ emits: ["update:modelValue"],
17
+ setup(B, { emit: b }) {
18
+ const k = te(), d = g(null), r = B, y = b, o = g(!1);
19
+ F(
20
+ () => r.modelValue,
21
+ (s) => {
22
+ o.value = s;
23
+ },
24
+ { immediate: !0 }
25
+ ), F(o, (s) => {
26
+ y("update:modelValue", s);
27
+ });
28
+ const C = () => {
29
+ n.isnew = r.id == 0n, $();
30
+ }, _ = () => {
31
+ o.value = !1;
32
+ }, x = (s) => {
33
+ m.value?.clearValidate(), s();
34
+ }, n = V({
35
+ loading: !0,
36
+ saving: !1,
37
+ donotClose: !1,
38
+ isnew: !0
39
+ }), m = g(), i = g({
40
+ position_id: r.id,
41
+ position_title: "",
42
+ position_notes: ""
43
+ }), u = V({
44
+ position_title: [
45
+ { required: !0, message: "请输入职务名称", trigger: "blur" }
46
+ ]
47
+ }), $ = async () => {
48
+ if (n.loading = !0, i.value.position_id = r.id, r.id != 0n) {
49
+ n.donotClose = !1;
50
+ try {
51
+ let s = await v.Post(v.url_position_detail, { id: r.id });
52
+ if (s.IsSuccess) {
53
+ let e = s.data;
54
+ i.value = e;
55
+ }
56
+ } catch (s) {
57
+ console.log(s);
58
+ } finally {
59
+ }
60
+ } else
61
+ i.value.position_title = "", i.value.position_notes = "";
62
+ n.loading = !1;
63
+ }, E = async () => await v.Post(v.url_position_save, {
64
+ position_id: i.value.position_id,
65
+ position_title: i.value.position_title,
66
+ position_notes: i.value.position_notes
67
+ }), U = (s) => {
68
+ s && s.validate(async (e) => {
69
+ if (e) {
70
+ n.saving = !0;
71
+ try {
72
+ let f = await E();
73
+ f.IsSuccess ? (n.donotClose ? setTimeout(() => {
74
+ I();
75
+ }, 200) : _(), R.ShowSuccess("保存成功"), k.emit("aud", { module: "position", id: i.value.position_id })) : R.ShowError(f.message);
76
+ } catch {
77
+ } finally {
78
+ n.saving = !1;
79
+ }
80
+ }
81
+ });
82
+ }, I = () => {
83
+ d.value?.focus(), d.value?.select();
84
+ }, M = X();
85
+ return ee(M.alt_s, () => {
86
+ o.value && (console.log("Alt+S提交"), U(m.value));
87
+ }), (s, e) => {
88
+ const f = a("el-input"), N = a("el-form-item"), T = a("el-form"), z = a("el-checkbox"), A = a("el-tooltip"), H = a("el-text"), D = a("el-button"), O = a("el-dialog"), P = Z("loading");
89
+ return w(), S(O, {
90
+ modelValue: o.value,
91
+ "onUpdate:modelValue": e[5] || (e[5] = (p) => o.value = p),
92
+ title: "职务",
93
+ "align-center": !0,
94
+ "before-close": x,
95
+ onOpen: C,
96
+ width: "550",
97
+ draggable: !0,
98
+ overflow: !0,
99
+ onOpened: I,
100
+ "destroy-on-close": ""
101
+ }, {
102
+ footer: l(() => [
103
+ q("div", le, [
104
+ i.value.position_id == 0n ? (w(), S(A, {
105
+ key: 0,
106
+ content: "保存成功后不关闭窗口"
107
+ }, {
108
+ default: l(() => [
109
+ t(z, {
110
+ modelValue: n.donotClose,
111
+ "onUpdate:modelValue": e[3] || (e[3] = (p) => n.donotClose = p),
112
+ label: "连续录入",
113
+ style: { "margin-right": "10px" }
114
+ }, null, 8, ["modelValue"])
115
+ ]),
116
+ _: 1
117
+ })) : K("", !0),
118
+ t(A, {
119
+ content: "快捷键 Alt+S",
120
+ "show-after": 800
121
+ }, {
122
+ default: l(() => [
123
+ t(D, {
124
+ type: "primary",
125
+ onClick: e[4] || (e[4] = (p) => U(m.value)),
126
+ disabled: n.loading,
127
+ loading: n.saving
128
+ }, {
129
+ default: l(() => [
130
+ e[7] || (e[7] = c("保存(", -1)),
131
+ t(H, {
132
+ tag: "ins",
133
+ style: { color: "white" }
134
+ }, {
135
+ default: l(() => [...e[6] || (e[6] = [
136
+ c("S", -1)
137
+ ])]),
138
+ _: 1
139
+ }),
140
+ e[8] || (e[8] = c(")", -1))
141
+ ]),
142
+ _: 1
143
+ }, 8, ["disabled", "loading"])
144
+ ]),
145
+ _: 1
146
+ }),
147
+ t(D, { onClick: _ }, {
148
+ default: l(() => [...e[9] || (e[9] = [
149
+ c("取消", -1)
150
+ ])]),
151
+ _: 1
152
+ })
153
+ ])
154
+ ]),
155
+ default: l(() => [
156
+ j((w(), S(T, {
157
+ onSubmit: e[2] || (e[2] = G(() => {
158
+ }, ["prevent"])),
159
+ ref_key: "ruleFormRef",
160
+ ref: m,
161
+ model: i.value,
162
+ rules: u,
163
+ style: { "padding-left": "10px", "padding-right": "10px" },
164
+ "label-width": "auto",
165
+ disabled: n.saving
166
+ }, {
167
+ default: l(() => [
168
+ t(N, {
169
+ label: "职务名称",
170
+ prop: "position_title"
171
+ }, {
172
+ default: l(() => [
173
+ t(f, {
174
+ ref_key: "inputRef",
175
+ ref: d,
176
+ modelValue: i.value.position_title,
177
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => i.value.position_title = p)
178
+ }, null, 8, ["modelValue"])
179
+ ]),
180
+ _: 1
181
+ }),
182
+ t(N, {
183
+ label: "备注",
184
+ prop: "position_notes"
185
+ }, {
186
+ default: l(() => [
187
+ t(f, {
188
+ modelValue: i.value.position_notes,
189
+ "onUpdate:modelValue": e[1] || (e[1] = (p) => i.value.position_notes = p),
190
+ type: "textarea",
191
+ rows: 4
192
+ }, null, 8, ["modelValue"])
193
+ ]),
194
+ _: 1
195
+ })
196
+ ]),
197
+ _: 1
198
+ }, 8, ["model", "rules", "disabled"])), [
199
+ [P, n.loading]
200
+ ])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["modelValue"]);
204
+ };
205
+ }
206
+ }), ne = { style: { padding: "0px 20px" } }, fe = /* @__PURE__ */ h({
207
+ __name: "position",
208
+ setup(B) {
209
+ const b = g("first"), k = (y, o) => {
210
+ console.log(y, o);
211
+ }, d = V({
212
+ edit_id: 0n,
213
+ edit_dialog_show: !1
214
+ }), r = V({
215
+ ApiUrl: v.url_position_list,
216
+ QuickConditionsGroups: []
217
+ });
218
+ return (y, o) => {
219
+ const C = a("el-button"), _ = a("el-table-column"), x = a("el-link"), n = a("el-space"), m = a("el-tab-pane"), i = a("el-tabs");
220
+ return w(), Q(Y, null, [
221
+ t(L),
222
+ q("div", ne, [
223
+ t(i, {
224
+ modelValue: b.value,
225
+ "onUpdate:modelValue": o[1] || (o[1] = (u) => b.value = u),
226
+ onTabClick: k
227
+ }, {
228
+ default: l(() => [
229
+ t(m, {
230
+ label: "全部职务",
231
+ name: "first"
232
+ }, {
233
+ default: l(() => [
234
+ t(W, {
235
+ config: r,
236
+ module: "position"
237
+ }, {
238
+ headermain: l(() => [
239
+ t(C, {
240
+ class: "main_btn",
241
+ type: "primary",
242
+ onClick: o[0] || (o[0] = (u) => {
243
+ d.edit_id = 0n, d.edit_dialog_show = !0;
244
+ })
245
+ }, {
246
+ default: l(() => [...o[3] || (o[3] = [
247
+ c("新建", -1)
248
+ ])]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ content: l(() => [
253
+ t(_, {
254
+ prop: "position_title",
255
+ label: "职务名称",
256
+ width: "140"
257
+ }),
258
+ t(_, {
259
+ prop: "position_notes",
260
+ label: "备注",
261
+ "min-width": "180"
262
+ }),
263
+ t(_, {
264
+ label: "操作",
265
+ width: "100"
266
+ }, {
267
+ default: l(({ row: u }) => [
268
+ t(n, null, {
269
+ default: l(() => [
270
+ t(x, {
271
+ type: "primary",
272
+ onClick: ($) => {
273
+ d.edit_id = BigInt(u.position_id), d.edit_dialog_show = !0;
274
+ }
275
+ }, {
276
+ default: l(() => [...o[4] || (o[4] = [
277
+ c("修改", -1)
278
+ ])]),
279
+ _: 1
280
+ }, 8, ["onClick"]),
281
+ t(oe, {
282
+ id: BigInt(u.position_id),
283
+ api_url: J(v).url_position_del
284
+ }, null, 8, ["id", "api_url"])
285
+ ]),
286
+ _: 2
287
+ }, 1024)
288
+ ]),
289
+ _: 1
290
+ })
291
+ ]),
292
+ _: 1
293
+ }, 8, ["config"])
294
+ ]),
295
+ _: 1
296
+ })
297
+ ]),
298
+ _: 1
299
+ }, 8, ["modelValue"])
300
+ ]),
301
+ t(ie, {
302
+ id: d.edit_id,
303
+ modelValue: d.edit_dialog_show,
304
+ "onUpdate:modelValue": o[2] || (o[2] = (u) => d.edit_dialog_show = u)
305
+ }, null, 8, ["id", "modelValue"])
306
+ ], 64);
307
+ };
308
+ }
309
+ });
310
+ export {
311
+ fe as default
312
+ };