yh-pub 1.0.0 → 1.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/README.MD +19 -19
- package/layout/admin/adminIndex.vue +104 -104
- package/layout/admin/api/loginApi.js +24 -24
- package/layout/admin/api/routers.js +93 -93
- package/layout/admin/api/tenantApi.js +123 -123
- package/layout/admin/home/homeIndex.vue +25 -25
- package/layout/admin/login/login.vue +161 -161
- package/layout/admin/menu/MenuIndex.vue +648 -648
- package/layout/admin/menu/icon.vue +108 -108
- package/layout/admin/menu/iconList.js +934 -934
- package/layout/admin/saTenant/saTenant.vue +173 -173
- package/layout/admin/saTenant/saTenantForm.js +80 -80
- package/layout/admin/saTenant/saTenantForm.vue +61 -61
- package/layout/admin/saTenant/saTenantRoleManage.js +417 -417
- package/layout/admin/saTenant/saTenantRoleManage.vue +99 -99
- package/layout/admin/user/saUser.less +6 -6
- package/layout/admin/user/saUser.vue +72 -72
- package/layout/main/components/console/console.vue +205 -205
- package/layout/main/components/error-store/error-store.vue +72 -72
- package/layout/main/components/error-store/index.js +2 -2
- package/layout/main/components/fullscreen/fullscreen.vue +57 -57
- package/layout/main/components/fullscreen/index.js +2 -2
- package/layout/main/components/language/language.vue +71 -71
- package/layout/main/components/side-menu/side-menu.less +73 -73
- package/layout/main/components/side-menu/side-menu.vue +75 -75
- package/layout/main/components/tags-nav/tags-nav.less +44 -44
- package/layout/main/components/tags-nav/tags-nav.vue +144 -144
- package/layout/main/components/user/user.less +12 -12
- package/layout/main/components/user/user.vue +185 -185
- package/layout/main/home/home.vue +480 -480
- package/layout/main/home/index.js +2 -2
- package/layout/main/home/toDoList.vue +32 -32
- package/layout/main/login/login.less +93 -93
- package/layout/main/login/login.vue +151 -151
- package/layout/main/main.less +81 -81
- package/layout/main/main.vue +254 -202
- package/layout/main/system/dict.vue +64 -64
- package/layout/main/system/orgManage.vue +473 -473
- package/layout/main/system/roleManage.js +807 -755
- package/layout/main/system/roleManage.vue +424 -399
- package/package.json +11 -11
- package/view/basic/error-logger.vue +74 -74
- package/view/basic/error-page/401.vue +22 -22
- package/view/basic/error-page/404.vue +22 -22
- package/view/basic/error-page/500.vue +22 -22
- package/view/basic/error-page/back-btn-group.vue +48 -48
- package/view/basic/error-page/error-content.vue +28 -28
- package/view/basic/error-page/error.less +46 -46
- package/view/config/component/confFormItem.vue +49 -49
- package/view/config/config.scss +45 -45
- package/view/config/configIndex.vue +150 -150
- package/view/config/subPage/router-config.vue +4 -4
- package/view/config/subPage/sys-config.vue +249 -249
- package/view/window/IframeFReportView.vue +27 -27
- package/view/window/windowIndex.vue +22 -22
|
@@ -1,399 +1,424 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
label="
|
|
129
|
-
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
</
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
overflow: auto;
|
|
398
|
-
}
|
|
399
|
-
|
|
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>
|