Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
30f12f9f
Commit
30f12f9f
authored
Oct 22, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authorityCount
parent
5f194040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
index1.vue
pages/project/groupUser/index1.vue
+8
-2
No files found.
pages/project/groupUser/index1.vue
View file @
30f12f9f
...
...
@@ -191,6 +191,7 @@ export default {
if
(
el
.
authority
==
1
)
{
this
.
authorityCount
=
1
}
//截取加入日期
if
(
el
.
joindate
&&
el
.
joindate
.
length
>=
10
)
{
el
.
joindate
=
el
.
joindate
.
substr
(
0
,
10
)
}
...
...
@@ -198,6 +199,7 @@ export default {
}
},
//新增
addList
()
{
this
.
edit
=
this
.
list
.
length
;
this
.
cur
=
{
...
...
@@ -213,6 +215,7 @@ export default {
this
.
authorityCur
=
0
this
.
list
.
push
(
this
.
cur
);
},
//编辑
editRow
(
row
,
index
)
{
let
lastListGroupId
=
this
.
list
[
this
.
list
.
length
-
1
].
groupId
if
(
lastListGroupId
==
undefined
)
{
...
...
@@ -231,12 +234,14 @@ export default {
this
.
authorityCur
=
row
.
authority
this
.
edit
=
index
},
//选择权限
changeAuthority
(
val
)
{
if
(
this
.
authorityCur
!=
1
&&
this
.
authorityCount
==
1
&&
val
==
1
)
{
this
.
$Message
.
error
(
"已存在项目经理,请选择其他权限!"
)
this
.
$Message
.
error
(
"已存在
权限:
项目经理,请选择其他权限!"
)
this
.
cur
.
authority
=
null
}
},
//选择加入日期
getTime
(
value
)
{
if
(
value
!=
''
)
{
this
.
cur
.
joindate
=
this
.
getFormatDateStart
(
...
...
@@ -246,6 +251,7 @@ export default {
this
.
cur
.
joindate
=
''
}
},
//删除
delRow
(
id
)
{
Api
.
delete
(
id
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
...
...
@@ -255,6 +261,7 @@ export default {
}
})
},
//新增时取消
remove
(
row
,
index
)
{
if
(
!
row
.
id
||
!
row
.
groupId
)
{
this
.
list
.
pop
();
...
...
@@ -314,7 +321,6 @@ export default {
})
}
},
getFormatDateStart
(
dates
)
{
const
d
=
new
Date
(
dates
);
const
resDate
=
...
...
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