Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
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
wbx-PCAndMobi
pc
Commits
26029d88
Commit
26029d88
authored
May 06, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更var 为 let
parent
977b3dd0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
rizhiList.vue
src/views/personal/rizhi/rizhiList.vue
+2
-3
zhanghuInfo.vue
src/views/personal/rizhi/zhanghuInfo.vue
+3
-2
add.vue
src/views/personal/role/add.vue
+3
-2
No files found.
src/views/personal/rizhi/rizhiList.vue
View file @
26029d88
...
...
@@ -137,20 +137,19 @@ export default {
this
.
getCompanyList
()
},
getCompanyList
(
params
){
let
searchParms
=
params
if
(
params
&&
params
.
hasOwnProperty
(
'streetsId'
)){
var
searchParms
=
params
this
.
$nextTick
(()
=>
{
this
.
searchForm
.
setFieldsValue
(
params
)
})
}
else
{
var
searchParms
=
{
searchParms
=
{
'createTime_desc'
:
'desc'
,
'createTime_btw'
:
!!
this
.
searchForm
.
getFieldValue
(
'createTime_btw'
)
?
[
this
.
$moment
(
this
.
searchForm
.
getFieldValue
(
'createTime_btw'
)[
0
]).
format
(
'YYYY-MM-DD'
),
this
.
$moment
(
this
.
searchForm
.
getFieldValue
(
'createTime_btw'
)[
1
]).
format
(
'YYYY-MM-DD'
)].
toString
():
''
,
pageNo
:
this
.
pagination
.
current
,
pageSize
:
10
,
}
}
this
.
searchParms
=
searchParms
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_RIZHI
,
...
...
src/views/personal/rizhi/zhanghuInfo.vue
View file @
26029d88
...
...
@@ -149,14 +149,15 @@ export default {
})
},
getTreeNode
(
item
,
index
){
let
childrenNode
=
{}
if
(
this
.
roleIds
.
length
>
0
&&
this
.
roleIds
.
indexOf
(
item
.
id
)
<
0
&&
!
this
.
$store
.
state
.
userInfos
.
isAllPerm
){
var
childrenNode
=
{
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
,
disabled
:
true
,
}
}
else
{
var
childrenNode
=
{
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
}
...
...
src/views/personal/role/add.vue
View file @
26029d88
...
...
@@ -121,14 +121,15 @@ export default {
* 整理权限树
*/
getTreeNode
(
item
,
index
){
let
childrenNode
=
{}
if
(
this
.
roleIds
.
length
>
0
&&
this
.
roleIds
.
indexOf
(
item
.
id
)
<
0
&&
!
this
.
$store
.
state
.
userInfos
.
isAllPerm
){
var
childrenNode
=
{
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
,
disabled
:
true
,
}
}
else
{
var
childrenNode
=
{
childrenNode
=
{
title
:
item
.
permName
,
key
:
item
.
id
}
...
...
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