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
ff5044ec
Commit
ff5044ec
authored
Oct 28, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
4e006a98
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
10 deletions
+45
-10
opration.vue
components/page/opration.vue
+2
-2
userGroup.vue
components/page/userGroup.vue
+6
-4
index1.vue
pages/project/groupUser/index1.vue
+4
-3
api.js
pages/project/plan/api.js
+3
-0
index.vue
pages/project/plan/index.vue
+30
-1
No files found.
components/page/opration.vue
View file @
ff5044ec
...
@@ -40,8 +40,8 @@ export default {
...
@@ -40,8 +40,8 @@ export default {
type
:
String
type
:
String
},
},
disable
:
{
disable
:
{
type
:
Boolean
,
type
:
Number
,
default
:
false
default
:
0
},
},
},
},
...
...
components/page/userGroup.vue
View file @
ff5044ec
...
@@ -13,10 +13,12 @@
...
@@ -13,10 +13,12 @@
v-for=
"item in users"
v-for=
"item in users"
:value=
"item.userId"
:value=
"item.userId"
:key=
"item.userId"
:key=
"item.userId"
:disabled=
"item.status==1"
:label=
"item.note"
:disabled=
"item.status==0"
>
>
<div
class=
"user"
>
<div
class=
"user"
>
<State
v-show=
"item.authority"
code=
"project.group.authority"
:value=
"item.authority"
class=
"mr10"
/>
{{
item
.
note
}}
<User
:value=
"item.userId"
/></span><Tag>
{{
item
.
role
}}
</Tag>
<State
code=
"project.group.authority"
:value=
"item.authority"
class=
"mr10"
type=
"tag"
/>
{{
item
.
note
}}
<State
code=
"project.group.role"
:value=
"item.role"
class=
"mr10"
type=
"tag"
/>
</div>
</div>
</Option>
</Option>
</Select>
</Select>
...
@@ -58,13 +60,13 @@ export default {
...
@@ -58,13 +60,13 @@ export default {
// codition:[{fieldName: "groupId", fieldValue: "b9d6fa9e-e033-4a3e-9925-c1f4437d970c", conditionalType: "Equal"}]
// codition:[{fieldName: "groupId", fieldValue: "b9d6fa9e-e033-4a3e-9925-c1f4437d970c", conditionalType: "Equal"}]
codition
:[{
fieldName
:
"projectId"
,
fieldValue
:
this
.
projectId
,
conditionalType
:
"Equal"
}]
codition
:[{
fieldName
:
"projectId"
,
fieldValue
:
this
.
projectId
,
conditionalType
:
"Equal"
}]
}
}
this
.
$api
.
post
(
`
${
material
}
/project
plan
/list`
,
params
).
then
(
r
=>
{
this
.
$api
.
post
(
`
${
material
}
/project
groupuser
/list`
,
params
).
then
(
r
=>
{
this
.
users
=
r
.
result
;
this
.
users
=
r
.
result
;
})
})
},
},
change
(
event
)
{
change
(
event
)
{
let
name
=
""
;
let
name
=
""
;
this
.
data
.
forEach
((
e
)
=>
{
this
.
users
.
forEach
((
e
)
=>
{
if
(
e
.
id
==
event
)
{
if
(
e
.
id
==
event
)
{
name
=
e
.
label
;
name
=
e
.
label
;
}
}
...
...
pages/project/groupUser/index1.vue
View file @
ff5044ec
...
@@ -244,7 +244,7 @@ export default {
...
@@ -244,7 +244,7 @@ export default {
//新增保存或修改保存
//新增保存或修改保存
save
()
{
save
()
{
this
.
cur
.
groupId
=
this
.
eid
this
.
cur
.
groupId
=
this
.
eid
if
(
!
this
.
cur
.
userId
)
{
if
(
this
.
cur
.
userId
==
0
||
this
.
cur
.
userId
==
null
)
{
this
.
$Message
.
error
(
"请选择人员"
);
this
.
$Message
.
error
(
"请选择人员"
);
return
;
return
;
}
}
...
@@ -255,14 +255,15 @@ export default {
...
@@ -255,14 +255,15 @@ export default {
this
.
$Message
.
error
(
"此人已经选择"
);
this
.
$Message
.
error
(
"此人已经选择"
);
return
;
return
;
}
}
if
(
!
this
.
cur
.
role
)
{
if
(
this
.
cur
.
role
===
undefined
)
{
this
.
$Message
.
error
(
"请选择人员角色"
);
this
.
$Message
.
error
(
"请选择人员角色"
);
return
;
return
;
}
}
if
(
this
.
cur
.
authority
==
null
||
this
.
cur
.
authority
==
''
)
{
if
(
this
.
cur
.
authority
==
=
undefined
)
{
this
.
$Message
.
error
(
"请选择人员权限"
);
this
.
$Message
.
error
(
"请选择人员权限"
);
return
;
return
;
}
}
if
(
this
.
cur
.
id
&&
this
.
cur
.
id
!=
''
)
{
//人员修改
if
(
this
.
cur
.
id
&&
this
.
cur
.
id
!=
''
)
{
//人员修改
Api
.
update
(
this
.
cur
).
then
((
r
)
=>
{
Api
.
update
(
this
.
cur
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
this
.
disabled
=
false
;
...
...
pages/project/plan/api.js
View file @
ff5044ec
...
@@ -16,6 +16,9 @@ export default {
...
@@ -16,6 +16,9 @@ export default {
update
(
params
)
{
update
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projectplan/update`
,
params
);
return
Api
.
post
(
`
${
material
}
/projectplan/update`
,
params
);
},
},
sendtask
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projectplan/sendtask`
,
params
);
},
delete
(
id
)
{
delete
(
id
)
{
return
Api
.
delete
(
`
${
material
}
/projectplan/delete`
,
{
return
Api
.
delete
(
`
${
material
}
/projectplan/delete`
,
{
params
:
{
params
:
{
...
...
pages/project/plan/index.vue
View file @
ff5044ec
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
oprate
:
"edit"
,
oprate
:
"edit"
,
disable
:
params
.
row
.
status
disable
:
params
.
row
.
status
},
},
on
:
{
click
:
()
=>
this
.
send
(
params
.
row
.
id
)
},
on
:
{
click
:
()
=>
this
.
send
(
params
.
row
)
},
},
},
),
),
h
(
h
(
...
@@ -249,6 +249,35 @@ export default {
...
@@ -249,6 +249,35 @@ export default {
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
send
(
row
){
console
.
log
(
row
);
if
(
!
row
.
startDate
){
this
.
$Message
.
error
(
"未设置开始时间"
);
return
}
if
(
!
row
.
endDate
){
this
.
$Message
.
error
(
"未设置结束时间"
);
return
}
if
(
!
row
.
executor
){
this
.
$Message
.
error
(
"为设置执行人"
);
return
}
delete
row
.
chlidren
;
delete
row
.
parent
;
console
.
warn
(
row
)
var
data
=
JSON
.
parse
(
JSON
.
stringify
(
row
));
data
.
status
=
1
;
Api
.
sendtask
({
id
:
row
.
id
,
}).
then
(
r
=>
{
if
(
r
.
result
){
this
.
$Message
.
info
(
"任务派发成功!"
);
this
.
search
();
}
})
},
copy
(
id
)
{
copy
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
title
=
"克隆"
;
...
...
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