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
e39a3209
Commit
e39a3209
authored
Oct 28, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task record project
parent
85296545
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
27 deletions
+36
-27
detail.vue
pages/project/project/detail.vue
+11
-11
add.vue
pages/project/record/add.vue
+2
-2
index.vue
pages/project/task/index.vue
+23
-14
No files found.
pages/project/project/detail.vue
View file @
e39a3209
...
...
@@ -123,23 +123,23 @@ export default {
this
.
detail
=
()
=>
import
(
"../plan"
);
},
task
()
{
this
.
curId
=
this
.
eid
;
//
this.curId = this.eid;
this
.
title
=
"任务"
;
//
this.detail = () => import("../task/index");
this
.
$router
.
push
({
name
:
"project-task"
,
params
:
{
id
:
this
.
curId
}
});
this
.
detail
=
()
=>
import
(
"../task/index"
);
//
this.$router.push({
//
name: "project-task",
//
params: {
//
id: this.curId
//
}
//
});
},
group
()
{
this
.
title
=
"项目成员"
;
this
.
detail
=
()
=>
import
(
"../groupUser/index1"
);
this
.
detail
=
()
=>
import
(
"../groupUser/index1"
);
},
log
()
{
log
()
{
this
.
title
=
"项目动态"
;
this
.
detail
=
()
=>
import
(
"../record/index1"
);
this
.
detail
=
()
=>
import
(
"../record/index1"
);
},
l
(
key
)
{
key
=
"project_main"
+
"."
+
key
;
...
...
pages/project/record/add.vue
View file @
e39a3209
...
...
@@ -4,7 +4,7 @@
<Col
:span=
"12"
>
<FormItem
:label=
"l('workHour')"
prop=
"workHour"
>
<InputNumber
v-model=
"entity.workHour"
></InputNumber>
<InputNumber
v-model=
"entity.workHour"
:min=
"0"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
...
...
@@ -51,7 +51,7 @@ export default {
deleterUserId
:
null
,
projectId
:
""
,
planId
:
""
,
workHour
:
null
,
workHour
:
0
,
status
:
null
,
title
:
""
,
note
:
""
,
...
...
pages/project/task/index.vue
View file @
e39a3209
...
...
@@ -9,7 +9,7 @@
</a>
</div>
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:lazy=
"true"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
:lazy=
"true"
:set=
"false"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
inline
>
<FormItem>
...
...
@@ -56,11 +56,13 @@
</FormItem>
<FormItem
prop=
"keys"
><Input
placeholder=
"请输入项目标题/计划名称/任务标题"
v-model=
"easySearch.keys.value"
v-width=
"240"
/>
</FormItem>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
<!--
<FormItem>
<Button @click="highSearch" type="text">
<Icon type="md-search" />高级
</Button>
</FormItem>
-->
</Form>
</template>
<
template
slot=
"buttons"
>
...
...
@@ -251,7 +253,6 @@ export default {
type
:
"icon"
,
oprate
:
"edit"
,
title
:
params
.
row
.
status
==
0
?
"开始"
:
params
.
row
.
status
==
2
?
"继续"
:
''
,
// color: "#19be6b",
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
},
on
:
{
...
...
@@ -263,7 +264,6 @@ export default {
// icon: "ios-pause",
// type: "icon",
// title: "暂停",
// //color: "#19be6b",
// //disable: params.row.status == 1 ? false : true
// },
// on: {
...
...
@@ -276,7 +276,6 @@ export default {
type
:
"icon"
,
oprate
:
"edit"
,
title
:
"完成"
,
//color: "#19be6b",
//disable: (params.row.status != 0 && params.row.status != 3) ? false : true
},
on
:
{
...
...
@@ -289,7 +288,6 @@ export default {
type
:
"icon"
,
oprate
:
"add"
,
title
:
"新增记录"
,
//color: "#19be6b",
// disable: (params.row.status != 3 && params.row.status != 4) ? false : true
},
on
:
{
...
...
@@ -302,7 +300,6 @@ export default {
type
:
"icon"
,
oprate
:
"edit"
,
title
:
"修改"
,
// color: "#2b85e4",
//disable: (params.row.status == 0 || params.row.status == 2) ? false : true
},
on
:
{
...
...
@@ -315,7 +312,6 @@ export default {
type
:
"icon"
,
title
:
"删除"
,
oprate
:
'delete'
,
//color: "#ed4014",
// disable: (params.row.status == 0 || params.row.status == 3) ? false : true
},
on
:
{
...
...
@@ -335,6 +331,9 @@ export default {
planIdsCur
:
[]
}
},
props
:
{
eid
:
String
},
async
fetch
({
store
,
params
...
...
@@ -342,15 +341,18 @@ export default {
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
created
()
{
if
(
this
.
$route
.
params
.
id
!=
''
)
{
this
.
projectId
=
this
.
$route
.
params
.
id
this
.
easySearch
.
projectId
.
value
=
this
.
$route
.
params
.
id
if
(
this
.
e
id
!=
''
)
{
this
.
projectId
=
this
.
e
id
this
.
easySearch
.
projectId
.
value
=
this
.
e
id
}
this
.
treeHeight
=
window
.
innerHeight
-
150
;
},
mounted
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
console
.
log
(
this
.
easySearch
);
if
(
this
.
eid
!=
""
)
{
this
.
easySearch
.
projectId
.
value
=
this
.
eid
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
}
},
methods
:
{
ok
()
{
...
...
@@ -427,7 +429,7 @@ export default {
},
projectId
:
{
op
:
"Equal"
,
value
:
this
.
$route
.
params
.
id
value
:
this
.
e
id
},
};
this
.
$refs
.
grid
.
reload
(
where
);
...
...
@@ -470,7 +472,7 @@ export default {
addRecord
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"新增记录"
;
this
.
fullScreen
=
tru
e
;
this
.
fullScreen
=
fals
e
;
this
.
detail
=
()
=>
import
(
'../record/add'
)
this
.
modal
=
true
;
},
...
...
@@ -478,6 +480,13 @@ export default {
let
vkey
=
"project_task"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
""
)
{
this
.
eid
=
v
}
}
}
}
</
script
>
...
...
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