zsysview 0.0.17 → 0.0.19

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