Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue
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
张伯涛
91isoft_web_vue
Commits
c971c490
Commit
c971c490
authored
Sep 18, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.记住筛选项问题默认参数修改
2.用户管理模块的部门树接口查询修改
parent
82ae223d
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
58 additions
and
35 deletions
+58
-35
filterData.js
src/assets/js/filterData.js
+2
-2
index.vue
src/views/monitor/errorLog/index.vue
+3
-2
index.vue
src/views/monitor/loginInfo/index.vue
+3
-2
index.vue
src/views/monitor/operLog/index.vue
+3
-2
index.vue
src/views/system/dept/index.vue
+3
-2
data.vue
src/views/system/dict/data.vue
+3
-2
index.vue
src/views/system/dict/index.vue
+3
-2
index.vue
src/views/system/menu/index.vue
+3
-2
index.vue
src/views/system/role/index.vue
+3
-1
index.vue
src/views/system/user/index.vue
+32
-18
No files found.
src/assets/js/filterData.js
View file @
c971c490
...
...
@@ -20,11 +20,11 @@ export function getDataCache(routerPath) {
if
(
param
){
return
param
}
else
{
const
paramNew
=
'{
"page":1,"rows":10
}'
const
paramNew
=
'{}'
return
paramNew
}
}
else
{
const
paramNew
=
'{
"page":1,"rows":10
}'
const
paramNew
=
'{}'
return
paramNew
}
}
...
...
src/views/monitor/errorLog/index.vue
View file @
c971c490
...
...
@@ -274,8 +274,9 @@ export default {
next
()
},
created
()
{
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
// this.queryParams.operTime = this.$parseDate(new Date(), 'YYYY-MM')
this
.
getList
()
},
...
...
src/views/monitor/loginInfo/index.vue
View file @
c971c490
...
...
@@ -230,8 +230,9 @@ export default {
// const param = JSON.parse(filterData)
// this.queryParams = { ...param }
// }
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
this
.
getList
()
},
methods
:
{
...
...
src/views/monitor/operLog/index.vue
View file @
c971c490
...
...
@@ -319,8 +319,9 @@ export default {
// const param = JSON.parse(filterData)
// this.queryParams = { ...param }
// }
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
// this.queryParams.operTime = this.$parseDate(new Date(), 'YYYY-MM')
this
.
getList
()
},
...
...
src/views/system/dept/index.vue
View file @
c971c490
...
...
@@ -246,8 +246,9 @@ export default {
next
()
},
created
()
{
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
this
.
getList
()
},
methods
:
{
...
...
src/views/system/dict/data.vue
View file @
c971c490
...
...
@@ -293,8 +293,9 @@ export default {
next
()
},
created
()
{
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
const
dictId
=
this
.
$route
.
params
&&
this
.
$route
.
params
.
dictId
this
.
getType
(
dictId
)
this
.
getTypeList
()
...
...
src/views/system/dict/index.vue
View file @
c971c490
...
...
@@ -309,8 +309,9 @@ export default {
next
()
},
created
()
{
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
this
.
getList
()
},
methods
:
{
...
...
src/views/system/menu/index.vue
View file @
c971c490
...
...
@@ -362,8 +362,9 @@ export default {
next
()
},
created
()
{
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
this
.
getList
()
},
methods
:
{
...
...
src/views/system/role/index.vue
View file @
c971c490
...
...
@@ -409,7 +409,9 @@ export default {
next
()
},
created
()
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
this
.
getList
()
// 列表查询
},
methods
:
{
...
...
src/views/system/user/index.vue
View file @
c971c490
...
...
@@ -274,7 +274,8 @@
<treeSelect
v-model=
"form.deptId"
:disable-branch-nodes=
"true"
:options=
"deptChildren"
:options=
"deptOptionsTree"
:normalizer=
"normalizer"
:show-count=
"true"
placeholder=
"请选择归属部门"
@
input=
"changeValue"
...
...
@@ -416,7 +417,7 @@ import {
// userLoginManage
}
from
'@/api/system/user'
import
{
getToken
}
from
'@/utils/auth'
import
{
treeSelect
}
from
'@/api/system/dept'
import
{
treeSelect
,
listDept
}
from
'@/api/system/dept'
import
TreeSelect
from
'@riophae/vue-treeselect'
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
import
{
getListRole
}
from
'@/api/system/role'
...
...
@@ -526,7 +527,7 @@ export default {
},
defaultProps
:
{
children
:
'children'
,
label
:
'
label
'
label
:
'
deptName
'
},
ruleForm
:
{
newPassword
:
''
,
...
...
@@ -628,8 +629,9 @@ export default {
}
},
created
()
{
// 分页参数初始化为{"page":1,"rows":10},如需自定义分页参数,自行修改
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
if
(
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
!==
{})
{
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// 获取存储的筛选项
}
this
.
getList
()
// 列表查询
this
.
getTreeSelect
()
// 查询部门下拉树结构
this
.
getRole
()
// 查询角色下拉
...
...
@@ -670,6 +672,17 @@ export default {
changeValue
()
{
this
.
$refs
.
form
.
validateField
(
'id'
)
},
/** 转换部门数据结构 */
normalizer
(
node
)
{
if
(
node
.
children
&&
!
node
.
children
.
length
)
{
delete
node
.
children
}
return
{
id
:
node
.
businessId
,
label
:
node
.
deptName
,
children
:
node
.
children
}
},
a
()
{
},
/** 查询用户列表 */
...
...
@@ -689,15 +702,16 @@ export default {
},
/** 查询部门下拉树结构 */
getTreeSelect
()
{
treeSelect
().
then
(
response
=>
{
this
.
deptOptionsTree
=
response
.
data
.
concat
({
id
:
-
1
,
label
:
'无部门人员'
,
children
:
undefined
})
if
(
response
.
data
&&
response
.
data
.
length
>
0
)
{
this
.
deptOptions
=
response
.
data
[
0
].
children
}
listDept
().
then
(
response
=>
{
// this.deptOptionsTree = response.data.concat({
// id: -1,
// label: '无部门人员',
// children: undefined
// })
this
.
deptOptionsTree
=
this
.
handleTree
(
response
.
data
,
'businessId'
)
// if (response.data && response.data.length > 0) {
// this.deptOptions = response.data[0].children
// }
})
},
/** 查询子部门 */
...
...
@@ -718,13 +732,13 @@ export default {
// 筛选节点
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
return
data
.
label
.
indexOf
(
value
)
!==
-
1
return
data
.
deptName
.
indexOf
(
value
)
!==
-
1
},
// 节点单击事件
handleNodeClick
(
data
)
{
// TODO: clear this log
// TODO: clear this log
this
.
queryParams
.
deptId
=
data
.
i
d
this
.
queryParams
.
deptId
=
data
.
businessI
d
this
.
getList
()
},
// 点击部门空白处
...
...
@@ -808,7 +822,7 @@ export default {
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
()
this
.
getChildrenDept
(
0
)
//
this.getChildrenDept(0)
this
.
open
=
true
this
.
title
=
'添加用户'
},
...
...
@@ -828,7 +842,7 @@ export default {
// this.form.postId = response.data.deptId
this
.
title
=
'修改用户'
})
this
.
getChildrenDept
(
userId
)
//
this.getChildrenDept(userId)
},
/** 重置密码按钮操作 */
handleResetPwd
(
row
)
{
...
...
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