Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
f994bdcc
Commit
f994bdcc
authored
Apr 14, 2025
by
lwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机构管理,用户管理
parent
58203947
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
457 additions
and
402 deletions
+457
-402
index.vue
src/views/system/dept/index.vue
+53
-16
index.vue
src/views/system/user/index.vue
+404
-386
No files found.
src/views/system/dept/index.vue
View file @
f994bdcc
...
...
@@ -6,16 +6,16 @@
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"
部门名称
"
prop=
"deptName"
>
<el-form-item
label=
""
prop=
"deptName"
>
<el-input
v-model=
"queryParams.deptName"
placeholder=
"请输入
部门名称
"
placeholder=
"请输入
搜索关键词
"
clearable
style=
"width: 200px"
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<!--
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"部门状态"
...
...
@@ -29,7 +29,7 @@
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"handleQuery"
>
搜索
</el-button
...
...
@@ -38,7 +38,7 @@
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<!--
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['system:dept:add']"
...
...
@@ -58,7 +58,7 @@
v-model:show-search=
"showSearch"
@
query-table=
"getList"
></right-toolbar>
</el-row>
</el-row>
-->
<el-table
v-if=
"refreshTable"
...
...
@@ -70,20 +70,35 @@
>
<el-table-column
prop=
"deptName"
label=
"
部门
名称"
width=
"
26
0"
label=
"
机构
名称"
width=
"
57
0"
></el-table-column>
<el-table-column
<!--
<el-table-column
prop=
"orderNum"
label=
"排序"
width=
"200"
></el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
></el-table-column>
-->
<!--
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
<template
#
default=
"scope"
>
<dict-tag
:options=
"sys_normal_disable"
:value=
"scope.row.status"
/>
</
template
>
</el-table-column>
</el-table-column>
-->
<el-table-column
prop=
"type"
label=
"机构类型"
width=
"500"
></el-table-column>
<el-table-column
label=
"同步时间"
align=
"center"
prop=
"updateTime"
width=
"500"
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
updateTime
)
}}
</span>
</
template
>
</el-table-column>
<!-- <el-table-column
label="创建时间"
align="center"
prop="createTime"
...
...
@@ -92,8 +107,8 @@
<template #default="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
</el-table-column>
-->
<!--
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
...
...
@@ -125,9 +140,16 @@
>删除</el-button
>
</template>
</el-table-column>
</el-table-column>
-->
</el-table>
<!-- 分页 -->
<pagination
v-show=
"total > 0"
v-model:page=
"queryParams.pageNum"
v-model:limit=
"queryParams.pageSize"
:total=
"total"
@
pagination=
"getList"
/>
<!-- 添加或修改部门对话框 -->
<el-dialog
v-model=
"open"
:title=
"title"
width=
"600px"
append-to-body
>
<el-form
ref=
"deptRef"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
...
...
@@ -231,6 +253,7 @@ const open = ref(false)
const
loading
=
ref
(
true
)
const
showSearch
=
ref
(
true
)
const
title
=
ref
(
''
)
const
total
=
ref
(
0
)
const
deptOptions
=
ref
([])
const
isExpandAll
=
ref
(
true
)
const
refreshTable
=
ref
(
true
)
...
...
@@ -238,6 +261,8 @@ const refreshTable = ref(true)
const
data
=
reactive
({
form
:
{},
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deptName
:
undefined
,
status
:
undefined
,
},
...
...
@@ -275,6 +300,7 @@ function getList() {
loading
.
value
=
true
listDept
(
queryParams
.
value
).
then
((
response
)
=>
{
deptList
.
value
=
proxy
.
handleTree
(
response
.
data
,
'deptId'
)
total
.
value
=
response
.
total
loading
.
value
=
false
})
}
...
...
@@ -383,3 +409,14 @@ function handleDelete(row) {
getList
()
</
script
>
<
style
scoped
>
/* 自定义样式优化布局 */
.el-table
{
width
:
100%
;
/* 确保表格宽度占满容器 */
}
.el-table-column
{
box-sizing
:
border-box
;
/* 避免因边框影响实际宽度 */
}
</
style
>
src/views/system/user/index.vue
View file @
f994bdcc
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment