yh-pub 1.0.2 → 2.0.2
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/AdminLogin-W5d0M-rz.js +137 -0
- package/AdminLogin-W5d0M-rz.js.map +1 -0
- package/Dict.vue_vue_type_script_setup_true_lang-CcfyhJln.js +54 -0
- package/Dict.vue_vue_type_script_setup_true_lang-CcfyhJln.js.map +1 -0
- package/Error-BZ9xAkuT.js +43 -0
- package/Error-BZ9xAkuT.js.map +1 -0
- package/Error401-DrA7Y9h3.js +30 -0
- package/Error401-DrA7Y9h3.js.map +1 -0
- package/Error404-C5K4o1R3.js +30 -0
- package/Error404-C5K4o1R3.js.map +1 -0
- package/Error500-D9nu1xhW.js +30 -0
- package/Error500-D9nu1xhW.js.map +1 -0
- package/HomeIndex-DnGu5xD0.js +438 -0
- package/HomeIndex-DnGu5xD0.js.map +1 -0
- package/IconExplorer-IvNeUIhq.js +66 -0
- package/IconExplorer-IvNeUIhq.js.map +1 -0
- package/Index-BMd4lEnI.js +5 -0
- package/Index-BMd4lEnI.js.map +1 -0
- package/MainLogin-CgJLift-.js +153 -0
- package/MainLogin-CgJLift-.js.map +1 -0
- package/MenuManage-BJkQPgpt.js +640 -0
- package/MenuManage-BJkQPgpt.js.map +1 -0
- package/OrgManage-jLpAnwf4.js +378 -0
- package/OrgManage-jLpAnwf4.js.map +1 -0
- package/RoleManage-D2RwwJoM.js +729 -0
- package/RoleManage-D2RwwJoM.js.map +1 -0
- package/SysConfig-CYcl0wCh.js +727 -0
- package/SysConfig-CYcl0wCh.js.map +1 -0
- package/TenantList-CNVwmoEt.js +693 -0
- package/TenantList-CNVwmoEt.js.map +1 -0
- package/index-C75ufNln.js +49816 -0
- package/index-C75ufNln.js.map +1 -0
- package/index-wVC41gTc.js +23955 -0
- package/index-wVC41gTc.js.map +1 -0
- package/index.d.ts +35 -0
- package/index.es.js +66 -0
- package/index.es.js.map +1 -0
- package/package.json +26 -6
- package/style.css +1 -0
- package/README.MD +0 -19
- package/layout/admin/adminIndex.vue +0 -104
- package/layout/admin/api/loginApi.js +0 -24
- package/layout/admin/api/routers.js +0 -93
- package/layout/admin/api/tenantApi.js +0 -123
- package/layout/admin/home/homeIndex.vue +0 -25
- package/layout/admin/login/login.vue +0 -161
- package/layout/admin/menu/MenuIndex.vue +0 -648
- package/layout/admin/menu/icon.vue +0 -108
- package/layout/admin/menu/iconList.js +0 -934
- package/layout/admin/saTenant/saTenant.js +0 -0
- package/layout/admin/saTenant/saTenant.vue +0 -173
- package/layout/admin/saTenant/saTenantForm.js +0 -80
- package/layout/admin/saTenant/saTenantForm.vue +0 -61
- package/layout/admin/saTenant/saTenantRoleManage.js +0 -417
- package/layout/admin/saTenant/saTenantRoleManage.vue +0 -99
- package/layout/admin/user/saUser.less +0 -6
- package/layout/admin/user/saUser.vue +0 -72
- package/layout/main/components/console/console.vue +0 -205
- package/layout/main/components/error-store/error-store.vue +0 -72
- package/layout/main/components/error-store/index.js +0 -2
- package/layout/main/components/fullscreen/fullscreen.vue +0 -57
- package/layout/main/components/fullscreen/index.js +0 -2
- package/layout/main/components/language/language.vue +0 -71
- package/layout/main/components/side-menu/side-menu.less +0 -74
- package/layout/main/components/side-menu/side-menu.vue +0 -75
- package/layout/main/components/tags-nav/tags-nav.less +0 -45
- package/layout/main/components/tags-nav/tags-nav.vue +0 -144
- package/layout/main/components/user/user.less +0 -12
- package/layout/main/components/user/user.vue +0 -185
- package/layout/main/home/home.vue +0 -480
- package/layout/main/home/index.js +0 -2
- package/layout/main/home/toDoList.vue +0 -32
- package/layout/main/login/login.less +0 -93
- package/layout/main/login/login.vue +0 -151
- package/layout/main/main.less +0 -81
- package/layout/main/main.vue +0 -254
- package/layout/main/system/dict.vue +0 -64
- package/layout/main/system/orgManage.vue +0 -473
- package/layout/main/system/roleManage.js +0 -807
- package/layout/main/system/roleManage.vue +0 -424
- package/view/basic/error-logger.vue +0 -74
- package/view/basic/error-page/401.vue +0 -22
- package/view/basic/error-page/404.vue +0 -22
- package/view/basic/error-page/500.vue +0 -22
- package/view/basic/error-page/back-btn-group.vue +0 -48
- package/view/basic/error-page/error-content.vue +0 -28
- package/view/basic/error-page/error.less +0 -46
- package/view/config/component/confFormItem.vue +0 -49
- package/view/config/config.scss +0 -45
- package/view/config/configIndex.vue +0 -150
- package/view/config/subPage/router-config.vue +0 -5
- package/view/config/subPage/sys-config.vue +0 -249
- package/view/window/IframeFReportView.vue +0 -28
- package/view/window/windowIndex.vue +0 -22
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ver-container">
|
|
3
|
-
<div class="ver-col">
|
|
4
|
-
<div class="operation">
|
|
5
|
-
<div style="padding: 5px 15px 5px 2px; font-size: 13px">角色名称</div>
|
|
6
|
-
<el-input
|
|
7
|
-
v-model="searchForm.key"
|
|
8
|
-
@change="getDataList"
|
|
9
|
-
placeholder="输入关键词搜索"
|
|
10
|
-
style="width: 300px; margin-left: 12px"
|
|
11
|
-
clearable
|
|
12
|
-
enter-button />
|
|
13
|
-
</div>
|
|
14
|
-
<div class="operation">
|
|
15
|
-
<div style="padding: 5px 15px 5px 2px; font-size: 18px; font-weight: bold">角色管理</div>
|
|
16
|
-
<el-button
|
|
17
|
-
@click="addRole"
|
|
18
|
-
type="primary">
|
|
19
|
-
<i class="iconfont icon-plus"></i>
|
|
20
|
-
添加角色
|
|
21
|
-
</el-button>
|
|
22
|
-
<el-popconfirm
|
|
23
|
-
title="确定要删除所选的角色吗?"
|
|
24
|
-
ok-text="删除"
|
|
25
|
-
cancel-text="取消"
|
|
26
|
-
@confirm="delAll"
|
|
27
|
-
style="margin-left: 12px">
|
|
28
|
-
<el-button>
|
|
29
|
-
<i class="iconfont icon-delete"></i>
|
|
30
|
-
批量删除
|
|
31
|
-
</el-button>
|
|
32
|
-
</el-popconfirm>
|
|
33
|
-
<el-button
|
|
34
|
-
@click="getDataList"
|
|
35
|
-
style="margin-left: 12px">
|
|
36
|
-
<i class="iconfont icon-refresh"></i>
|
|
37
|
-
刷新
|
|
38
|
-
</el-button>
|
|
39
|
-
</div>
|
|
40
|
-
<el-table
|
|
41
|
-
v-loading="loading"
|
|
42
|
-
row-key="adRoleId"
|
|
43
|
-
:data="data"
|
|
44
|
-
ref="table"
|
|
45
|
-
highlight-current-row
|
|
46
|
-
:header-cell-style="{background: '#f8f8f8', color: '#606266', fontSize: '13px'}"
|
|
47
|
-
stripe>
|
|
48
|
-
<el-table-column
|
|
49
|
-
label="#"
|
|
50
|
-
width="50">
|
|
51
|
-
<template #default="scope">{{ scope.$index + 1 }}</template>
|
|
52
|
-
</el-table-column>
|
|
53
|
-
<el-table-column
|
|
54
|
-
label="所属机构"
|
|
55
|
-
min-width="150"
|
|
56
|
-
prop="orgName"></el-table-column>
|
|
57
|
-
<el-table-column
|
|
58
|
-
label="角色名称"
|
|
59
|
-
min-width="200"
|
|
60
|
-
prop="name"></el-table-column>
|
|
61
|
-
<el-table-column
|
|
62
|
-
label="角色管理员"
|
|
63
|
-
width="150"
|
|
64
|
-
align="center"
|
|
65
|
-
prop="isAdmin"></el-table-column>
|
|
66
|
-
<el-table-column
|
|
67
|
-
label="备注"
|
|
68
|
-
min-width="300"
|
|
69
|
-
prop="description"></el-table-column>
|
|
70
|
-
<el-table-column
|
|
71
|
-
width="320"
|
|
72
|
-
align="center"
|
|
73
|
-
label="操作">
|
|
74
|
-
<template #default="{row}">
|
|
75
|
-
<el-button
|
|
76
|
-
size="small"
|
|
77
|
-
type="primary"
|
|
78
|
-
@click="editPerm(row)">
|
|
79
|
-
菜单权限
|
|
80
|
-
</el-button>
|
|
81
|
-
<el-button
|
|
82
|
-
size="small"
|
|
83
|
-
type="success"
|
|
84
|
-
@click="editOrg(row)">
|
|
85
|
-
角色机构
|
|
86
|
-
</el-button>
|
|
87
|
-
<el-button
|
|
88
|
-
size="small"
|
|
89
|
-
type="info"
|
|
90
|
-
@click="edit(row)">
|
|
91
|
-
编辑
|
|
92
|
-
</el-button>
|
|
93
|
-
<el-popconfirm
|
|
94
|
-
title="你确定要删除吗"
|
|
95
|
-
ok-text="确定"
|
|
96
|
-
cancel-text="取消"
|
|
97
|
-
@confirm="remove(row)">
|
|
98
|
-
<template #reference>
|
|
99
|
-
<el-button
|
|
100
|
-
title="删除"
|
|
101
|
-
size="small"
|
|
102
|
-
type="danger">
|
|
103
|
-
删除
|
|
104
|
-
</el-button>
|
|
105
|
-
</template>
|
|
106
|
-
</el-popconfirm>
|
|
107
|
-
</template>
|
|
108
|
-
</el-table-column>
|
|
109
|
-
</el-table>
|
|
110
|
-
<el-pagination
|
|
111
|
-
v-model:current-page="pagination.currentPage"
|
|
112
|
-
v-model:page-size="pagination.pageSize"
|
|
113
|
-
:page-sizes="[10, 30, 50, 100]"
|
|
114
|
-
layout="prev, pager, next, sizes, total, jumper"
|
|
115
|
-
:total="pagination.total"
|
|
116
|
-
@size-change="getDataList"
|
|
117
|
-
@current-change="getDataList" />
|
|
118
|
-
<!-- 编辑 -->
|
|
119
|
-
<el-dialog
|
|
120
|
-
:title="modalTitle"
|
|
121
|
-
v-model="roleModalVisible"
|
|
122
|
-
:mask-closable="false"
|
|
123
|
-
@cancel="cancelRole"
|
|
124
|
-
:width="500">
|
|
125
|
-
<el-form
|
|
126
|
-
ref="roleForm"
|
|
127
|
-
:model="roleForm"
|
|
128
|
-
:label-width="100"
|
|
129
|
-
:rules="roleFormValidate">
|
|
130
|
-
<el-form-item
|
|
131
|
-
label="组织机构"
|
|
132
|
-
prop="ad_org_id">
|
|
133
|
-
<dict
|
|
134
|
-
dict="ad_org_id"
|
|
135
|
-
url="/orgController/getGroupOrgs"
|
|
136
|
-
v-model="roleForm.adOrgId"
|
|
137
|
-
placeholder="请选择或输入搜索"
|
|
138
|
-
filterable
|
|
139
|
-
clearable />
|
|
140
|
-
</el-form-item>
|
|
141
|
-
<el-form-item
|
|
142
|
-
label="角色名称"
|
|
143
|
-
prop="name">
|
|
144
|
-
<el-input
|
|
145
|
-
v-model="roleForm.name"
|
|
146
|
-
placeholder="请输入" />
|
|
147
|
-
</el-form-item>
|
|
148
|
-
<el-form-item label="角色管理员">
|
|
149
|
-
<el-switch
|
|
150
|
-
v-model="roleForm.isAdmin"
|
|
151
|
-
active-value="Y"
|
|
152
|
-
inactive-value="N"
|
|
153
|
-
size="large">
|
|
154
|
-
<span slot="Y">Y</span>
|
|
155
|
-
<span slot="N">N</span>
|
|
156
|
-
</el-switch>
|
|
157
|
-
</el-form-item>
|
|
158
|
-
<el-form-item
|
|
159
|
-
label="备注"
|
|
160
|
-
prop="description">
|
|
161
|
-
<el-input v-model="roleForm.description" />
|
|
162
|
-
</el-form-item>
|
|
163
|
-
</el-form>
|
|
164
|
-
<div
|
|
165
|
-
slot="footer"
|
|
166
|
-
style="padding-left: 150px">
|
|
167
|
-
<el-button
|
|
168
|
-
text
|
|
169
|
-
@click="cancelRole">
|
|
170
|
-
取消
|
|
171
|
-
</el-button>
|
|
172
|
-
<el-button
|
|
173
|
-
type="primary"
|
|
174
|
-
:loading="submitLoading"
|
|
175
|
-
@click="submitRole">
|
|
176
|
-
提交
|
|
177
|
-
</el-button>
|
|
178
|
-
</div>
|
|
179
|
-
</el-dialog>
|
|
180
|
-
<!-- 菜单权限 -->
|
|
181
|
-
<el-drawer
|
|
182
|
-
:title="modalTitle"
|
|
183
|
-
v-model="permModalVisible"
|
|
184
|
-
:mask-closable="false"
|
|
185
|
-
:width="800"
|
|
186
|
-
@close="cancelPermEdit">
|
|
187
|
-
<el-row>
|
|
188
|
-
<el-col
|
|
189
|
-
:span="12"
|
|
190
|
-
style="overflow: auto; height: 100%">
|
|
191
|
-
<el-tree
|
|
192
|
-
ref="tree"
|
|
193
|
-
v-loading="treeLoading"
|
|
194
|
-
:data="permData"
|
|
195
|
-
:props="{label: 'title'}"
|
|
196
|
-
show-checkbox
|
|
197
|
-
default-expand-all
|
|
198
|
-
node-key="adMenuId"
|
|
199
|
-
@current-change="selectTree"
|
|
200
|
-
@check-change="checkedMenuTree"></el-tree>
|
|
201
|
-
</el-col>
|
|
202
|
-
<el-col :span="12">
|
|
203
|
-
<div class="ivu-card-head"><p style="margin-bottom: 0px">按钮权限</p></div>
|
|
204
|
-
<div style="height: 100%; overflow-y: auto; padding: 0 10px">
|
|
205
|
-
<el-card
|
|
206
|
-
v-for="(item, key) in curWindowBtnList"
|
|
207
|
-
:key="key"
|
|
208
|
-
shadow="never"
|
|
209
|
-
style="margin-top: 5px">
|
|
210
|
-
<template #header>
|
|
211
|
-
{{ item.NAME }}
|
|
212
|
-
<el-checkbox
|
|
213
|
-
style="margin-left: 10px"
|
|
214
|
-
:indeterminate="item.indeterminate"
|
|
215
|
-
v-model="item.checkAll"
|
|
216
|
-
:key="item.ID"
|
|
217
|
-
@change="handleCheckAll(item, key)">
|
|
218
|
-
全选
|
|
219
|
-
</el-checkbox>
|
|
220
|
-
</template>
|
|
221
|
-
<el-checkbox-group
|
|
222
|
-
v-model="item.checkChilds"
|
|
223
|
-
:options="
|
|
224
|
-
item.childs.map((item) => {
|
|
225
|
-
return {value: item.ID, label: item.NAME};
|
|
226
|
-
})
|
|
227
|
-
"
|
|
228
|
-
@change="checkAllGroupChange($event, key)">
|
|
229
|
-
<el-checkbox
|
|
230
|
-
v-for="child in item.childs"
|
|
231
|
-
:key="child.ID"
|
|
232
|
-
:label="child.ID">
|
|
233
|
-
{{ child.NAME }}
|
|
234
|
-
</el-checkbox>
|
|
235
|
-
</el-checkbox-group>
|
|
236
|
-
</el-card>
|
|
237
|
-
<el-empty
|
|
238
|
-
description="暂无按钮权限数据"
|
|
239
|
-
v-if="curWindowBtnList.length === 0"></el-empty>
|
|
240
|
-
</div>
|
|
241
|
-
</el-col>
|
|
242
|
-
</el-row>
|
|
243
|
-
<template #footer>
|
|
244
|
-
<el-button
|
|
245
|
-
type="primary"
|
|
246
|
-
:loading="submitPermLoading"
|
|
247
|
-
@click="submitPermEdit">
|
|
248
|
-
提交
|
|
249
|
-
</el-button>
|
|
250
|
-
<el-button
|
|
251
|
-
text
|
|
252
|
-
@click="cancelPermEdit">
|
|
253
|
-
取消
|
|
254
|
-
</el-button>
|
|
255
|
-
</template>
|
|
256
|
-
</el-drawer>
|
|
257
|
-
<!-- 角色机构所属 -->
|
|
258
|
-
<el-dialog
|
|
259
|
-
:title="modalTitle"
|
|
260
|
-
v-model="orgModalVisible"
|
|
261
|
-
:close-on-click-modal="false"
|
|
262
|
-
:width="400"
|
|
263
|
-
class="depModal yh-el-dialog">
|
|
264
|
-
<el-alert
|
|
265
|
-
show-icon
|
|
266
|
-
title="请勾选下方组织机构,选中复选框为角色管理员"></el-alert>
|
|
267
|
-
<div style="margin-top: 15px; min-height: 300px">
|
|
268
|
-
<div style="position: relative">
|
|
269
|
-
<el-tree
|
|
270
|
-
ref="depTree"
|
|
271
|
-
:data="orgData"
|
|
272
|
-
:props="{label: 'title'}"
|
|
273
|
-
show-checkbox
|
|
274
|
-
default-expand-all
|
|
275
|
-
node-key="adOrgId"
|
|
276
|
-
check-on-click-node
|
|
277
|
-
check-strictly
|
|
278
|
-
:selectedKeys.sync="selectedKeys"
|
|
279
|
-
v-model="deptCheckedKeys"
|
|
280
|
-
@check-change="checkOrgTree"></el-tree>
|
|
281
|
-
</div>
|
|
282
|
-
</div>
|
|
283
|
-
<template #footer>
|
|
284
|
-
<el-button
|
|
285
|
-
type="primary"
|
|
286
|
-
:loading="submitDepLoading"
|
|
287
|
-
@click="submitRoleOrg">
|
|
288
|
-
提交
|
|
289
|
-
</el-button>
|
|
290
|
-
<el-button
|
|
291
|
-
text
|
|
292
|
-
@click="orgModalVisible = false">
|
|
293
|
-
取消
|
|
294
|
-
</el-button>
|
|
295
|
-
</template>
|
|
296
|
-
</el-dialog>
|
|
297
|
-
</div>
|
|
298
|
-
</div>
|
|
299
|
-
</template>
|
|
300
|
-
|
|
301
|
-
<script src="./roleManage.js"></script>
|
|
302
|
-
<style lang="scss">
|
|
303
|
-
.main-container:has(.ver-container) {
|
|
304
|
-
overflow: hidden;
|
|
305
|
-
}
|
|
306
|
-
.ver-container {
|
|
307
|
-
display: flex;
|
|
308
|
-
flex-direction: column;
|
|
309
|
-
overflow: hidden;
|
|
310
|
-
height: 100%;
|
|
311
|
-
.ver-col {
|
|
312
|
-
flex: 1;
|
|
313
|
-
width: 100%;
|
|
314
|
-
overflow: hidden;
|
|
315
|
-
display: flex;
|
|
316
|
-
flex-direction: column;
|
|
317
|
-
.operation {
|
|
318
|
-
display: flex;
|
|
319
|
-
padding: 8px 16px;
|
|
320
|
-
}
|
|
321
|
-
.el-table {
|
|
322
|
-
flex: 1;
|
|
323
|
-
overflow: hidden;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.select-count {
|
|
327
|
-
font-weight: 600;
|
|
328
|
-
color: #40a9ff;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.select-clear {
|
|
332
|
-
margin-left: 10px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.page {
|
|
336
|
-
margin-top: 2vh;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.drop-down {
|
|
340
|
-
margin-left: 5px;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.el-pagination {
|
|
344
|
-
padding: 10px 0;
|
|
345
|
-
justify-content: flex-end;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.el-drawer__body {
|
|
349
|
-
overflow: hidden;
|
|
350
|
-
|
|
351
|
-
.el-row {
|
|
352
|
-
height: 100%;
|
|
353
|
-
overflow: hidden;
|
|
354
|
-
|
|
355
|
-
.el-card__header {
|
|
356
|
-
padding: 5px 10px;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.el-card__body {
|
|
360
|
-
padding: 7px 10px;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.tree-list {
|
|
368
|
-
position: relative;
|
|
369
|
-
min-height: 80px;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.drawer-footer {
|
|
373
|
-
z-index: 10;
|
|
374
|
-
width: 100%;
|
|
375
|
-
position: absolute;
|
|
376
|
-
bottom: 0;
|
|
377
|
-
left: 0;
|
|
378
|
-
border-top: 1px solid #e8e8e8;
|
|
379
|
-
padding: 10px 16px;
|
|
380
|
-
text-align: left;
|
|
381
|
-
background: #fff;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.drawer-footer {
|
|
385
|
-
z-index: 10;
|
|
386
|
-
width: 100%;
|
|
387
|
-
position: absolute;
|
|
388
|
-
bottom: 0;
|
|
389
|
-
left: 0;
|
|
390
|
-
border-top: 1px solid #e8e8e8;
|
|
391
|
-
padding: 10px 16px;
|
|
392
|
-
text-align: left;
|
|
393
|
-
background: #fff;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.drawer-content {
|
|
397
|
-
overflow: auto;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.drawer-header {
|
|
401
|
-
display: flex;
|
|
402
|
-
align-items: center;
|
|
403
|
-
margin-bottom: 16px;
|
|
404
|
-
font-size: 16px;
|
|
405
|
-
color: rgba(0, 0, 0, 0.85);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.drawer-title {
|
|
409
|
-
font-size: 16px;
|
|
410
|
-
color: rgba(0, 0, 0, 0.85);
|
|
411
|
-
display: block;
|
|
412
|
-
margin-bottom: 16px;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.permModal .ivu-modal-body {
|
|
416
|
-
max-height: 560px;
|
|
417
|
-
overflow: auto;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.depModal .ivu-modal-body {
|
|
421
|
-
max-height: 500px;
|
|
422
|
-
overflow: auto;
|
|
423
|
-
}
|
|
424
|
-
</style>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-button
|
|
4
|
-
@click="exportData"
|
|
5
|
-
type="primary"
|
|
6
|
-
style="margin: 0 10px 10px 0">
|
|
7
|
-
导出日志记录
|
|
8
|
-
</a-button>
|
|
9
|
-
<b>注:这里只会显示成功保存到服务端的错误日志,而且页面错误日志不会在浏览器持久化存储,刷新页面即会丢失</b>
|
|
10
|
-
<a-table
|
|
11
|
-
ref="table"
|
|
12
|
-
:columns="columns"
|
|
13
|
-
:data="errorList"></a-table>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import { useAppStore } from "@/store/app";
|
|
19
|
-
import dayjs from "dayjs";
|
|
20
|
-
export default {
|
|
21
|
-
name: "error_logger_page",
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
columns: [
|
|
25
|
-
{
|
|
26
|
-
type: "index",
|
|
27
|
-
title: "序号",
|
|
28
|
-
width: 100,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
key: "type",
|
|
32
|
-
title: "类型",
|
|
33
|
-
width: 100,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
key: "code",
|
|
37
|
-
title: "编码",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
key: "mes",
|
|
41
|
-
title: "信息",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
key: "url",
|
|
45
|
-
title: "URL",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
key: "time",
|
|
49
|
-
title: "时间",
|
|
50
|
-
sortable: true,
|
|
51
|
-
sortType: "desc",
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
computed: {
|
|
57
|
-
errorList() {
|
|
58
|
-
return this.$store.state.app.errorList;
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
methods: {
|
|
62
|
-
exportData() {
|
|
63
|
-
this.$refs.table.exportCsv({
|
|
64
|
-
filename: "错误日志.csv",
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
activated() {},
|
|
69
|
-
mounted() {},
|
|
70
|
-
};
|
|
71
|
-
</script>
|
|
72
|
-
|
|
73
|
-
<style></style>
|
|
74
|
-
@/store/app
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<error-content
|
|
3
|
-
code="401"
|
|
4
|
-
desc="Oh~~您没有浏览这个页面的权限~"
|
|
5
|
-
:src="src" />
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import error401 from "@/assets/images/error-page/error-401.svg";
|
|
10
|
-
import errorContent from "./error-content.vue";
|
|
11
|
-
export default {
|
|
12
|
-
name: "error_401",
|
|
13
|
-
components: {
|
|
14
|
-
errorContent,
|
|
15
|
-
},
|
|
16
|
-
data() {
|
|
17
|
-
return {
|
|
18
|
-
src: error401,
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
</script>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<error-content
|
|
3
|
-
code="404"
|
|
4
|
-
desc="Oh~~您的页面好像飞走了~"
|
|
5
|
-
:src="src" />
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import error404 from "@/assets/images/error-page/error-404.svg";
|
|
10
|
-
import errorContent from "./error-content.vue";
|
|
11
|
-
export default {
|
|
12
|
-
name: "error_404",
|
|
13
|
-
components: {
|
|
14
|
-
errorContent,
|
|
15
|
-
},
|
|
16
|
-
data() {
|
|
17
|
-
return {
|
|
18
|
-
src: error404,
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
</script>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<error-content
|
|
3
|
-
code="500"
|
|
4
|
-
desc="Oh~~鬼知道服务器经历了什么~"
|
|
5
|
-
:src="src" />
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import error404 from "@/assets/images/error-page/error-500.svg";
|
|
10
|
-
import errorContent from "./error-content.vue";
|
|
11
|
-
export default {
|
|
12
|
-
name: "error_500",
|
|
13
|
-
components: {
|
|
14
|
-
errorContent,
|
|
15
|
-
},
|
|
16
|
-
data() {
|
|
17
|
-
return {
|
|
18
|
-
src: error404,
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
</script>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-button
|
|
4
|
-
size="large"
|
|
5
|
-
text
|
|
6
|
-
@click="backHome">
|
|
7
|
-
返回首页
|
|
8
|
-
</el-button>
|
|
9
|
-
<el-button
|
|
10
|
-
size="large"
|
|
11
|
-
text
|
|
12
|
-
@click="backPrev">
|
|
13
|
-
返回上一页({{ second }}s)
|
|
14
|
-
</el-button>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
import "./error.less";
|
|
20
|
-
export default {
|
|
21
|
-
name: "backBtnGroup",
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
second: 5,
|
|
25
|
-
timer: null,
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
methods: {
|
|
29
|
-
backHome() {
|
|
30
|
-
this.$router.replace({
|
|
31
|
-
name: this.$config.homeName,
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
backPrev() {
|
|
35
|
-
this.$router.go(-1);
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
mounted() {
|
|
39
|
-
this.timer = setInterval(() => {
|
|
40
|
-
if (this.second === 0) this.backPrev();
|
|
41
|
-
else this.second--;
|
|
42
|
-
}, 1000);
|
|
43
|
-
},
|
|
44
|
-
beforeUnmount() {
|
|
45
|
-
clearInterval(this.timer);
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
</script>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="error-page">
|
|
3
|
-
<div class="content-con">
|
|
4
|
-
<img :src="src" :alt="code">
|
|
5
|
-
<div class="text-con">
|
|
6
|
-
<h4>{{ code }}</h4>
|
|
7
|
-
<h5>{{ desc }}</h5>
|
|
8
|
-
</div>
|
|
9
|
-
<back-btn-group class="back-btn-group"></back-btn-group>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
import './error.less'
|
|
16
|
-
import backBtnGroup from './back-btn-group.vue'
|
|
17
|
-
export default {
|
|
18
|
-
name: 'error_content',
|
|
19
|
-
components: {
|
|
20
|
-
backBtnGroup
|
|
21
|
-
},
|
|
22
|
-
props: {
|
|
23
|
-
code: String,
|
|
24
|
-
desc: String,
|
|
25
|
-
src: String
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.error-page{
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
position: relative;
|
|
5
|
-
background: #f8f8f9;
|
|
6
|
-
.content-con{
|
|
7
|
-
width: 700px;
|
|
8
|
-
height: 600px;
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 50%;
|
|
11
|
-
top: 50%;
|
|
12
|
-
transform: translate(-50%, -60%);
|
|
13
|
-
img{
|
|
14
|
-
display: block;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
}
|
|
18
|
-
.text-con{
|
|
19
|
-
position: absolute;
|
|
20
|
-
left: 0px;
|
|
21
|
-
top: 0px;
|
|
22
|
-
h4{
|
|
23
|
-
position: absolute;
|
|
24
|
-
left: 0px;
|
|
25
|
-
top: 0px;
|
|
26
|
-
font-size: 80px;
|
|
27
|
-
font-weight: 700;
|
|
28
|
-
color: #348EED;
|
|
29
|
-
}
|
|
30
|
-
h5{
|
|
31
|
-
position: absolute;
|
|
32
|
-
width: 700px;
|
|
33
|
-
left: 0px;
|
|
34
|
-
top: 100px;
|
|
35
|
-
font-size: 20px;
|
|
36
|
-
font-weight: 700;
|
|
37
|
-
color: #67647D;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.back-btn-group{
|
|
41
|
-
position: absolute;
|
|
42
|
-
right: 0px;
|
|
43
|
-
bottom: 20px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|