zsysview 0.0.25 → 0.0.27
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.
- package/dist/backup-DgoJ-AYS.js +519 -0
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-CGEOrj8x.js +43 -0
- package/dist/change_password-CfTKlKzq.js +135 -0
- package/dist/department-SWj0HA-l.js +410 -0
- package/dist/desktop-le1cI27_.js +9 -0
- package/dist/http_api_v1-d9smAbJZ.js +1008 -0
- package/dist/index-BZZm3CTh.js +6688 -0
- package/dist/{index-BaFHeDAF.js → index-DG0x9mYD.js} +105 -105
- package/dist/index.es-DrN1BLo5.js +170 -0
- package/dist/log-D-BDBVS7.js +163 -0
- package/dist/login-DUn4tmOp.js +111 -0
- package/dist/main-Bgkb3hrI.js +293 -0
- package/dist/message-CVTa4Hb1.js +26 -0
- package/dist/position-D7u-VoeU.js +311 -0
- package/dist/role-CyCsBm0V.js +405 -0
- package/dist/self-BRTR2NdM.js +102 -0
- package/dist/sys-BZgBUI3k.js +30 -0
- package/dist/user-cl8kQwmL.js +650 -0
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-Dqud3QQ4.js +72 -0
- package/dist/zsys_eventBus-CZOk9fTb.js +178 -0
- package/dist/zsys_time-4KclnYJN.js +17 -0
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-BE2Kl33t.js +466 -0
- package/dist/zsysview.es.js +1 -1
- package/package.json +1 -1
- package/dist/backup-BtlHW0BD.js +0 -519
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-0fY46hVF.js +0 -43
- package/dist/change_password-CFzY6W1m.js +0 -135
- package/dist/department-CTjgunsp.js +0 -410
- package/dist/desktop-DllfdF_C.js +0 -9
- package/dist/http_api_v1-CKW-eruI.js +0 -2758
- package/dist/index-1JxUipsC.js +0 -6688
- package/dist/index.es-BcGc183Q.js +0 -170
- package/dist/log-B0TFmX0G.js +0 -163
- package/dist/login-DvnQWaIX.js +0 -111
- package/dist/main-zeYv7R6E.js +0 -293
- package/dist/message-CdVUOGzt.js +0 -26
- package/dist/position-DFLhIMSw.js +0 -311
- package/dist/role-D2CDQgt8.js +0 -405
- package/dist/self-2M89YD6I.js +0 -102
- package/dist/sys-BjlP52cg.js +0 -30
- package/dist/user-Q7eKhHdo.js +0 -650
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-DDPcW53J.js +0 -72
- package/dist/zsys_eventBus-DDrk0Aw8.js +0 -178
- package/dist/zsys_time-DHEMuVgo.js +0 -17
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CDcUSsVO.js +0 -466
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, createElementBlock, Fragment, unref } from "vue";
|
|
2
|
+
import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-CGEOrj8x.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./zsyslist.vue_vue_type_script_setup_true_lang-BE2Kl33t.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-d9smAbJZ.js";
|
|
5
|
+
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-Dqud3QQ4.js";
|
|
6
|
+
import { Z as ZSYSMessage } from "./message-CVTa4Hb1.js";
|
|
7
|
+
import { z as zsysEventBus, u as useMagicKeys, w as whenever } from "./zsys_eventBus-CZOk9fTb.js";
|
|
8
|
+
import { _ as _export_sfc } from "./index-BZZm3CTh.js";
|
|
9
|
+
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "role_edit_dialog",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: { type: Boolean, required: !0 },
|
|
13
|
+
// 控制显示隐藏
|
|
14
|
+
id: { type: BigInt, required: !0 }
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const eventBus = zsysEventBus(), inputRef = ref(null), props = __props, emit = __emit, visible = ref(!1);
|
|
19
|
+
watch(
|
|
20
|
+
() => props.modelValue,
|
|
21
|
+
(val) => {
|
|
22
|
+
visible.value = val;
|
|
23
|
+
},
|
|
24
|
+
{ immediate: !0 }
|
|
25
|
+
), watch(visible, (val) => {
|
|
26
|
+
emit("update:modelValue", val);
|
|
27
|
+
});
|
|
28
|
+
const open = () => {
|
|
29
|
+
view.isnew = props.id == 0n, getData();
|
|
30
|
+
}, close = () => {
|
|
31
|
+
visible.value = !1;
|
|
32
|
+
}, handleBeforeClose = (done) => {
|
|
33
|
+
ruleFormRef.value?.clearValidate(), done();
|
|
34
|
+
}, view = reactive({
|
|
35
|
+
loading: !0,
|
|
36
|
+
saving: !1,
|
|
37
|
+
donotClose: !1,
|
|
38
|
+
isnew: !0
|
|
39
|
+
});
|
|
40
|
+
props.id == 0n && (view.isnew = !0);
|
|
41
|
+
const getPermissionOption = async () => {
|
|
42
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_syspermission_list, {});
|
|
43
|
+
return res.IsSuccess ? res.data.listdata : [];
|
|
44
|
+
}, permission_option = ref([]), ruleFormRef = ref(), form = ref({
|
|
45
|
+
role_id: props.id,
|
|
46
|
+
role_is_enable: !0,
|
|
47
|
+
set role_enable(v) {
|
|
48
|
+
this.role_is_enable = v == 1;
|
|
49
|
+
},
|
|
50
|
+
get role_enable() {
|
|
51
|
+
return this.role_is_enable ? 1 : 0;
|
|
52
|
+
},
|
|
53
|
+
role_title: "",
|
|
54
|
+
role_notes: "",
|
|
55
|
+
permission_value: [],
|
|
56
|
+
set role_permission(v) {
|
|
57
|
+
this.permission_value = v.split(",");
|
|
58
|
+
}
|
|
59
|
+
}), rules = reactive({
|
|
60
|
+
role_title: [
|
|
61
|
+
{ required: !0, message: "请输入角色名称", trigger: "blur" }
|
|
62
|
+
]
|
|
63
|
+
}), getData = async () => {
|
|
64
|
+
if (view.loading = !0, permission_option.value = await getPermissionOption(), form.value.role_id = props.id, props.id != 0n) {
|
|
65
|
+
view.donotClose = !1;
|
|
66
|
+
try {
|
|
67
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_sysrole_detail, { id: props.id });
|
|
68
|
+
if (res.IsSuccess) {
|
|
69
|
+
let data = res.data;
|
|
70
|
+
form.value.role_title = data.role_name, form.value.role_notes = data.role_notes, form.value.role_enable = data.role_enable, form.value.role_permission = data.role_permission;
|
|
71
|
+
}
|
|
72
|
+
} catch (e) {
|
|
73
|
+
console.log(e);
|
|
74
|
+
} finally {
|
|
75
|
+
}
|
|
76
|
+
} else
|
|
77
|
+
form.value.role_title = "", form.value.role_notes = "";
|
|
78
|
+
view.loading = !1;
|
|
79
|
+
}, saveData = async () => {
|
|
80
|
+
let pv = "";
|
|
81
|
+
for (let i = 0; i < form.value.permission_value.length; i++)
|
|
82
|
+
pv != "" && (pv += ","), pv += form.value.permission_value[i];
|
|
83
|
+
return await HttpApiV1.Post(HttpApiV1.url_sysrole_save, {
|
|
84
|
+
role_id: form.value.role_id,
|
|
85
|
+
role_name: form.value.role_title,
|
|
86
|
+
role_permission: pv,
|
|
87
|
+
role_notes: form.value.role_notes,
|
|
88
|
+
role_enable: form.value.role_enable
|
|
89
|
+
});
|
|
90
|
+
}, submitForm = (formEl) => {
|
|
91
|
+
formEl && formEl.validate(async (valid) => {
|
|
92
|
+
if (valid) {
|
|
93
|
+
view.saving = !0;
|
|
94
|
+
try {
|
|
95
|
+
let res = await saveData();
|
|
96
|
+
res.IsSuccess ? (view.donotClose ? (form.value.role_id = 0n, setTimeout(() => {
|
|
97
|
+
focus();
|
|
98
|
+
}, 200)) : close(), ZSYSMessage.ShowSuccess("保存成功"), eventBus.emit("aud", { module: "role", id: form.value.role_id })) : ZSYSMessage.ShowError(res.message);
|
|
99
|
+
} catch {
|
|
100
|
+
} finally {
|
|
101
|
+
view.saving = !1;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}, focus = () => {
|
|
106
|
+
inputRef.value?.focus(), inputRef.value?.select();
|
|
107
|
+
}, keys = useMagicKeys();
|
|
108
|
+
return whenever(keys.alt_s, () => {
|
|
109
|
+
visible.value && (console.log("Alt+S提交"), submitForm(ruleFormRef.value));
|
|
110
|
+
}), (_ctx, _cache) => {
|
|
111
|
+
const _component_el_input = resolveComponent("el-input"), _component_el_switch = resolveComponent("el-switch"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_empty = resolveComponent("el-empty"), _component_el_transfer = resolveComponent("el-transfer"), _component_el_form = resolveComponent("el-form"), _component_el_checkbox = resolveComponent("el-checkbox"), _component_el_tooltip = resolveComponent("el-tooltip"), _component_el_text = resolveComponent("el-text"), _component_el_button = resolveComponent("el-button"), _component_el_dialog = resolveComponent("el-dialog"), _directive_loading = resolveDirective("loading");
|
|
112
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
113
|
+
modelValue: visible.value,
|
|
114
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => visible.value = $event),
|
|
115
|
+
title: "角色权限",
|
|
116
|
+
"align-center": !0,
|
|
117
|
+
"before-close": handleBeforeClose,
|
|
118
|
+
onOpen: open,
|
|
119
|
+
width: "800",
|
|
120
|
+
draggable: !0,
|
|
121
|
+
overflow: !0,
|
|
122
|
+
onOpened: focus,
|
|
123
|
+
"destroy-on-close": "",
|
|
124
|
+
"close-on-click-modal": !1
|
|
125
|
+
}, {
|
|
126
|
+
footer: withCtx(() => [
|
|
127
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
128
|
+
createVNode(_component_el_tooltip, { content: "保存成功后不关闭窗口" }, {
|
|
129
|
+
default: withCtx(() => [
|
|
130
|
+
view.isnew ? (openBlock(), createBlock(_component_el_checkbox, {
|
|
131
|
+
key: 0,
|
|
132
|
+
modelValue: view.donotClose,
|
|
133
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => view.donotClose = $event),
|
|
134
|
+
label: "连续录入",
|
|
135
|
+
style: { "margin-right": "10px" }
|
|
136
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", !0)
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
createVNode(_component_el_tooltip, {
|
|
141
|
+
content: "快捷键 Alt+S",
|
|
142
|
+
"show-after": 800
|
|
143
|
+
}, {
|
|
144
|
+
default: withCtx(() => [
|
|
145
|
+
createVNode(_component_el_button, {
|
|
146
|
+
type: "primary",
|
|
147
|
+
onClick: _cache[6] || (_cache[6] = ($event) => submitForm(ruleFormRef.value)),
|
|
148
|
+
disabled: view.loading,
|
|
149
|
+
loading: view.saving
|
|
150
|
+
}, {
|
|
151
|
+
default: withCtx(() => [
|
|
152
|
+
_cache[9] || (_cache[9] = createTextVNode("保存(", -1)),
|
|
153
|
+
createVNode(_component_el_text, {
|
|
154
|
+
tag: "ins",
|
|
155
|
+
style: { color: "white" }
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
158
|
+
createTextVNode("S", -1)
|
|
159
|
+
])]),
|
|
160
|
+
_: 1
|
|
161
|
+
}),
|
|
162
|
+
_cache[10] || (_cache[10] = createTextVNode(")", -1))
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["disabled", "loading"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
createVNode(_component_el_button, { onClick: close }, {
|
|
170
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
171
|
+
createTextVNode("取消", -1)
|
|
172
|
+
])]),
|
|
173
|
+
_: 1
|
|
174
|
+
})
|
|
175
|
+
])
|
|
176
|
+
]),
|
|
177
|
+
default: withCtx(() => [
|
|
178
|
+
withDirectives((openBlock(), createBlock(_component_el_form, {
|
|
179
|
+
onSubmit: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
180
|
+
}, ["prevent"])),
|
|
181
|
+
ref_key: "ruleFormRef",
|
|
182
|
+
ref: ruleFormRef,
|
|
183
|
+
model: form.value,
|
|
184
|
+
rules,
|
|
185
|
+
style: { "padding-left": "10px", "padding-right": "10px" },
|
|
186
|
+
"label-width": "auto",
|
|
187
|
+
disabled: view.saving
|
|
188
|
+
}, {
|
|
189
|
+
default: withCtx(() => [
|
|
190
|
+
createVNode(_component_el_form_item, {
|
|
191
|
+
label: "角色名称",
|
|
192
|
+
prop: "role_title"
|
|
193
|
+
}, {
|
|
194
|
+
default: withCtx(() => [
|
|
195
|
+
createVNode(_component_el_input, {
|
|
196
|
+
ref_key: "inputRef",
|
|
197
|
+
ref: inputRef,
|
|
198
|
+
modelValue: form.value.role_title,
|
|
199
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.role_title = $event),
|
|
200
|
+
style: { width: "300px" }
|
|
201
|
+
}, null, 8, ["modelValue"]),
|
|
202
|
+
createVNode(_component_el_switch, {
|
|
203
|
+
modelValue: form.value.role_is_enable,
|
|
204
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.role_is_enable = $event),
|
|
205
|
+
"inline-prompt": "",
|
|
206
|
+
"active-text": "已启用",
|
|
207
|
+
"inactive-text": "已禁用",
|
|
208
|
+
style: { "margin-left": "10px" }
|
|
209
|
+
}, null, 8, ["modelValue"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}),
|
|
213
|
+
createVNode(_component_el_form_item, {
|
|
214
|
+
label: "备注",
|
|
215
|
+
prop: "role_notes"
|
|
216
|
+
}, {
|
|
217
|
+
default: withCtx(() => [
|
|
218
|
+
createVNode(_component_el_input, {
|
|
219
|
+
modelValue: form.value.role_notes,
|
|
220
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.value.role_notes = $event),
|
|
221
|
+
type: "textarea",
|
|
222
|
+
rows: 2
|
|
223
|
+
}, null, 8, ["modelValue"])
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}),
|
|
227
|
+
createVNode(_component_el_form_item, { label: "权限" }, {
|
|
228
|
+
default: withCtx(() => [
|
|
229
|
+
createVNode(_component_el_transfer, {
|
|
230
|
+
modelValue: form.value.permission_value,
|
|
231
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.value.permission_value = $event),
|
|
232
|
+
data: permission_option.value,
|
|
233
|
+
titles: ["可选", "已选"],
|
|
234
|
+
props: {
|
|
235
|
+
key: "permission_key",
|
|
236
|
+
label: "permission_title"
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
"left-empty": withCtx(() => [
|
|
240
|
+
createVNode(_component_el_empty, {
|
|
241
|
+
"image-size": 60,
|
|
242
|
+
description: "无可选项"
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
"right-empty": withCtx(() => [
|
|
246
|
+
createVNode(_component_el_empty, {
|
|
247
|
+
"image-size": 60,
|
|
248
|
+
description: "请从左侧选择"
|
|
249
|
+
})
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["modelValue", "data"])
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
})
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 8, ["model", "rules", "disabled"])), [
|
|
259
|
+
[_directive_loading, view.loading]
|
|
260
|
+
])
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}, 8, ["modelValue"]);
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
}), role_edit_dialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3a18120e"]]), _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
267
|
+
__name: "role",
|
|
268
|
+
setup(__props) {
|
|
269
|
+
const activeName = ref("first"), handleClick = (tab, event) => {
|
|
270
|
+
console.log(tab, event);
|
|
271
|
+
}, view = reactive({
|
|
272
|
+
edit_id: BigInt(0),
|
|
273
|
+
edit_dialog_show: !1
|
|
274
|
+
}), newdata = () => {
|
|
275
|
+
view.edit_id = BigInt(0), console.log(view), setTimeout(() => {
|
|
276
|
+
view.edit_dialog_show = !0;
|
|
277
|
+
}, 100);
|
|
278
|
+
}, listconfig = reactive({
|
|
279
|
+
ApiUrl: HttpApiV1.url_sysrole_list
|
|
280
|
+
});
|
|
281
|
+
return (_ctx, _cache) => {
|
|
282
|
+
const _component_el_button = resolveComponent("el-button"), _component_el_table_column = resolveComponent("el-table-column"), _component_el_tag = resolveComponent("el-tag"), _component_el_link = resolveComponent("el-link"), _component_el_space = resolveComponent("el-space"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
|
|
283
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
284
|
+
createVNode(_sfc_main$2),
|
|
285
|
+
createElementVNode("div", _hoisted_1, [
|
|
286
|
+
createVNode(_component_el_tabs, {
|
|
287
|
+
modelValue: activeName.value,
|
|
288
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeName.value = $event),
|
|
289
|
+
class: "demo-tabs",
|
|
290
|
+
onTabClick: handleClick
|
|
291
|
+
}, {
|
|
292
|
+
default: withCtx(() => [
|
|
293
|
+
createVNode(_component_el_tab_pane, {
|
|
294
|
+
label: "角色列表",
|
|
295
|
+
name: "first"
|
|
296
|
+
}, {
|
|
297
|
+
default: withCtx(() => [
|
|
298
|
+
createVNode(_sfc_main$3, {
|
|
299
|
+
config: listconfig,
|
|
300
|
+
module: "role"
|
|
301
|
+
}, {
|
|
302
|
+
headermain: withCtx(() => [
|
|
303
|
+
createVNode(_component_el_button, {
|
|
304
|
+
class: "main_btn",
|
|
305
|
+
type: "primary",
|
|
306
|
+
onClick: newdata
|
|
307
|
+
}, {
|
|
308
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
309
|
+
createTextVNode("新建", -1)
|
|
310
|
+
])]),
|
|
311
|
+
_: 1
|
|
312
|
+
})
|
|
313
|
+
]),
|
|
314
|
+
content: withCtx(() => [
|
|
315
|
+
createVNode(_component_el_table_column, {
|
|
316
|
+
prop: "role_name",
|
|
317
|
+
label: "角色名称",
|
|
318
|
+
width: "180"
|
|
319
|
+
}),
|
|
320
|
+
createVNode(_component_el_table_column, {
|
|
321
|
+
prop: "event_state",
|
|
322
|
+
label: "状态",
|
|
323
|
+
width: "80"
|
|
324
|
+
}, {
|
|
325
|
+
default: withCtx(({ row }) => [
|
|
326
|
+
row.role_enable == 0 ? (openBlock(), createBlock(_component_el_tag, {
|
|
327
|
+
key: 0,
|
|
328
|
+
type: "info",
|
|
329
|
+
"disable-transitions": !0,
|
|
330
|
+
size: "small"
|
|
331
|
+
}, {
|
|
332
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
333
|
+
createTextVNode("禁用", -1)
|
|
334
|
+
])]),
|
|
335
|
+
_: 1
|
|
336
|
+
})) : createCommentVNode("", !0),
|
|
337
|
+
row.role_enable == 1 ? (openBlock(), createBlock(_component_el_tag, {
|
|
338
|
+
key: 1,
|
|
339
|
+
type: "success",
|
|
340
|
+
"disable-transitions": !0,
|
|
341
|
+
size: "small"
|
|
342
|
+
}, {
|
|
343
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
344
|
+
createTextVNode("启用", -1)
|
|
345
|
+
])]),
|
|
346
|
+
_: 1
|
|
347
|
+
})) : createCommentVNode("", !0)
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}),
|
|
351
|
+
createVNode(_component_el_table_column, {
|
|
352
|
+
prop: "role_notes",
|
|
353
|
+
label: "备注",
|
|
354
|
+
"min-width": "180"
|
|
355
|
+
}),
|
|
356
|
+
createVNode(_component_el_table_column, {
|
|
357
|
+
label: "操作",
|
|
358
|
+
width: "130"
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(({ row }) => [
|
|
361
|
+
createVNode(_component_el_space, null, {
|
|
362
|
+
default: withCtx(() => [
|
|
363
|
+
createVNode(_component_el_link, {
|
|
364
|
+
type: "primary",
|
|
365
|
+
onClick: ($event) => {
|
|
366
|
+
view.edit_id = BigInt(row.role_id), view.edit_dialog_show = !0;
|
|
367
|
+
}
|
|
368
|
+
}, {
|
|
369
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
370
|
+
createTextVNode("查看和编辑", -1)
|
|
371
|
+
])]),
|
|
372
|
+
_: 1
|
|
373
|
+
}, 8, ["onClick"]),
|
|
374
|
+
createVNode(_sfc_main$4, {
|
|
375
|
+
id: BigInt(row.role_id),
|
|
376
|
+
api_url: unref(HttpApiV1).url_sysrole_del
|
|
377
|
+
}, null, 8, ["id", "api_url"])
|
|
378
|
+
]),
|
|
379
|
+
_: 2
|
|
380
|
+
}, 1024)
|
|
381
|
+
]),
|
|
382
|
+
_: 1
|
|
383
|
+
})
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 8, ["config"])
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
})
|
|
390
|
+
]),
|
|
391
|
+
_: 1
|
|
392
|
+
}, 8, ["modelValue"])
|
|
393
|
+
]),
|
|
394
|
+
createVNode(role_edit_dialog, {
|
|
395
|
+
id: view.edit_id,
|
|
396
|
+
modelValue: view.edit_dialog_show,
|
|
397
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => view.edit_dialog_show = $event)
|
|
398
|
+
}, null, 8, ["id", "modelValue"])
|
|
399
|
+
], 64);
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
export {
|
|
404
|
+
_sfc_main as default
|
|
405
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-CGEOrj8x.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-d9smAbJZ.js";
|
|
4
|
+
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "self",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const user = ref({
|
|
8
|
+
uid: 0,
|
|
9
|
+
uname: "",
|
|
10
|
+
user_name: "",
|
|
11
|
+
phone: ""
|
|
12
|
+
});
|
|
13
|
+
return onMounted(() => {
|
|
14
|
+
HttpApiV1.Post(HttpApiV1.url_usercenter, {}).then((res) => {
|
|
15
|
+
if (res.IsSuccess) {
|
|
16
|
+
let d = res.data;
|
|
17
|
+
user.value = d;
|
|
18
|
+
}
|
|
19
|
+
}).catch((err) => {
|
|
20
|
+
console.log(err);
|
|
21
|
+
});
|
|
22
|
+
}), (_ctx, _cache) => {
|
|
23
|
+
const _component_el_image = resolveComponent("el-image"), _component_el_col = resolveComponent("el-col"), _component_el_descriptions_item = resolveComponent("el-descriptions-item"), _component_el_descriptions = resolveComponent("el-descriptions"), _component_el_button = resolveComponent("el-button"), _component_router_link = resolveComponent("router-link"), _component_el_row = resolveComponent("el-row");
|
|
24
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
25
|
+
createVNode(_sfc_main$1),
|
|
26
|
+
createElementVNode("div", _hoisted_1, [
|
|
27
|
+
createVNode(_component_el_row, null, {
|
|
28
|
+
default: withCtx(() => [
|
|
29
|
+
createVNode(_component_el_col, {
|
|
30
|
+
span: 6,
|
|
31
|
+
style: { "justify-content": "center", "align-items": "center", display: "flex" }
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
createVNode(_component_el_image, {
|
|
35
|
+
style: { width: "160px", height: "160px" },
|
|
36
|
+
fit: "cover"
|
|
37
|
+
})
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}),
|
|
41
|
+
createVNode(_component_el_col, { span: 18 }, {
|
|
42
|
+
default: withCtx(() => [
|
|
43
|
+
createVNode(_component_el_descriptions, { title: "您的信息" }, {
|
|
44
|
+
default: withCtx(() => [
|
|
45
|
+
createVNode(_component_el_descriptions_item, { label: "UID" }, {
|
|
46
|
+
default: withCtx(() => [
|
|
47
|
+
createTextVNode(toDisplayString(user.value.uid), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}),
|
|
51
|
+
createVNode(_component_el_descriptions_item, { label: "用户名" }, {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
createTextVNode(toDisplayString(user.value.user_name), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
createVNode(_component_el_descriptions_item, { label: "姓名" }, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createTextVNode(toDisplayString(user.value.uname), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}),
|
|
63
|
+
createVNode(_component_el_descriptions_item, { label: "岗位" }, {
|
|
64
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
65
|
+
createTextVNode("安环部,部长", -1)
|
|
66
|
+
])]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
createVNode(_component_el_descriptions_item, { label: "手机号码" }, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createTextVNode(toDisplayString(user.value.phone), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}),
|
|
78
|
+
createVNode(_component_router_link, { to: "/password" }, {
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createVNode(_component_el_button, null, {
|
|
81
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
82
|
+
createTextVNode("修改密码", -1)
|
|
83
|
+
])]),
|
|
84
|
+
_: 1
|
|
85
|
+
})
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})
|
|
95
|
+
])
|
|
96
|
+
], 64);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
_sfc_main as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx } from "vue";
|
|
2
|
+
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "sys",
|
|
4
|
+
setup(__props) {
|
|
5
|
+
const tab = ref("base");
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
const _component_breadcrumb = resolveComponent("breadcrumb"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
|
|
8
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
9
|
+
createVNode(_component_breadcrumb),
|
|
10
|
+
createElementVNode("div", _hoisted_1, [
|
|
11
|
+
createVNode(_component_el_tabs, {
|
|
12
|
+
modelValue: tab.value,
|
|
13
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tab.value = $event)
|
|
14
|
+
}, {
|
|
15
|
+
default: withCtx(() => [
|
|
16
|
+
createVNode(_component_el_tab_pane, {
|
|
17
|
+
label: "基础",
|
|
18
|
+
name: "base"
|
|
19
|
+
})
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, ["modelValue"])
|
|
23
|
+
])
|
|
24
|
+
], 64);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_sfc_main as default
|
|
30
|
+
};
|