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
6e2edec5
Commit
6e2edec5
authored
Nov 12, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
182d2c6f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
14 deletions
+33
-14
EditGrid.vue
components/page/treeGrid/EditGrid.vue
+9
-8
list.vue
pages/project/groupUser/list.vue
+3
-3
add.vue
pages/project/project/add.vue
+17
-3
api.js
pages/project/project/api.js
+4
-0
No files found.
components/page/treeGrid/EditGrid.vue
View file @
6e2edec5
...
...
@@ -470,7 +470,6 @@ export default {
}
});
}
console
.
warn
(
index
,
item
.
_expanded
,
item
);
},
show
(
item
)
{
if
(
item
.
_level
==
0
)
{
...
...
@@ -858,11 +857,15 @@ export default {
<
style
lang=
"less"
>
@import "../../../assets/css/custom.less";
@table_theme: #2680eb;
@table_head: #
e9f2fd
;
@table_head: #
f5f6fa
;
@table_line_height: 50px;
@table_hover: #f2f8fe;
@table_border: #accef7;
@table_border: #e8e9eb ;
// @table_theme: #2680eb;
// @table_head: #e9f2fd;
// @table_line_height: 50px;
// @table_hover: #f2f8fe;
// @table_border: #accef7;
.table-content1 {
position: relative;
height: 100%;
...
...
@@ -912,10 +915,8 @@ export default {
td,
th {
border-left: @table_border solid 1px;
border-right: @table_border solid 1px;
border-bottom: #e8e9eb solid 1px;
line-height: 50px;
border: @table_border solid 1px;
line-height: 40px;
padding: 0 5px;
.drag:hover {
...
...
pages/project/groupUser/list.vue
View file @
6e2edec5
...
...
@@ -533,9 +533,9 @@ export default {
},
//新增时取消
remove
(
row
,
index
)
{
if
(
!
row
.
id
||
!
row
.
groupId
)
{
this
.
list
.
pop
();
}
//
if (!row.id || !row.groupId) {
//
this.list.pop();
//
}
this
.
edit
=
-
1
;
},
//新增保存或修改保存
...
...
pages/project/project/add.vue
View file @
6e2edec5
...
...
@@ -79,10 +79,9 @@
></Col>
<Col
:span=
"12"
>
<FormItem
label=
"开始结束时间"
prop=
"date"
>
<DateRange
v-model=
"entity"
edit
></DateRange>
</FormItem
<DateRange
v-model=
"entity"
edit
></DateRange>
</FormItem
></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
...
...
@@ -200,8 +199,23 @@ export default {
}
Api
.
create
(
this
.
entity
)
.
then
((
r
)
=>
{
debugger
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
//添加当前登陆人为项目经理
var
user
=
this
.
$store
.
state
.
userInfo
;
var
entity
=
{
userId
:
user
.
id
,
role
:
0
,
status
:
1
,
joindate
:
""
,
whour
:
14
,
whourpd
:
7.0
,
authority
:
2
,
projectId
:
r
.
result
.
id
,
note
:
user
.
name
,
};
Api
.
addMaster
(
entity
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
...
...
pages/project/project/api.js
View file @
6e2edec5
...
...
@@ -16,6 +16,10 @@ export default {
update
(
params
){
return
Api
.
post
(
`
${
material
}
/projectmain/update`
,
params
);
},
addMaster
(
params
)
{
return
Api
.
post
(
`
${
material
}
/projectgroupuser/create`
,
params
);
},
delete
(
id
)
{
return
Api
.
delete
(
`
${
material
}
/projectmain/delete`
,{
params
:{
id
:
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