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
d5cdcd17
Commit
d5cdcd17
authored
Nov 17, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
fb26967f
65efb352
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
576 additions
and
499 deletions
+576
-499
dateRange.vue
components/page/dateRange.vue
+1
-1
projectTaskTree.vue
components/page/projectTaskTree.vue
+15
-5
gant.vue
pages/project/plan/gant.vue
+1
-1
detail.vue
pages/project/task/detail.vue
+10
-3
index.vue
pages/project/task/index.vue
+535
-469
index.js
store/index.js
+14
-20
No files found.
components/page/dateRange.vue
View file @
d5cdcd17
...
...
@@ -23,7 +23,7 @@
<span
v-else
v-text=
"placeholder"
>
</span>
</div>
</DatePicker>
<div
class=
"time-view"
v-else-if=
"!edit &&
startDate && endDate
"
>
<div
class=
"time-view"
v-else-if=
"!edit &&
( startDate || endDate)
"
>
<span>
{{
startDate
}}
</span>
<span
class=
"jian-tou"
>
{{
jg
}}
{{
unit
}}
</span>
<span>
{{
endDate
}}
</span>
...
...
components/page/projectTaskTree.vue
View file @
d5cdcd17
...
...
@@ -85,7 +85,13 @@ export default {
},
listSlecet
()
{
let
data
=
{
conditions
:
[],
conditions
:
[
{
fieldName
:
"userId"
,
fieldValue
:
this
.
$store
.
state
.
userInfo
.
id
,
conditionalType
:
"Equal"
,
},
],
sortBy
:
"id"
,
isDesc
:
false
,
};
...
...
@@ -93,15 +99,14 @@ export default {
if
(
r
.
result
)
{
this
.
projectList
=
r
.
result
;
if
(
this
.
curId
)
{
this
.
projectList
.
map
(
u
=>
{
if
(
u
.
id
==
this
.
curId
)
{
this
.
projectList
.
map
(
(
u
)
=>
{
if
(
u
.
id
==
this
.
curId
)
{
this
.
downName
=
u
.
title
;
}
})
})
;
}
else
{
this
.
downName
=
this
.
projectList
[
0
].
title
;
this
.
curdId
=
this
.
projectList
[
0
].
id
;
}
this
.
loadTree
(
this
.
curId
);
}
...
...
@@ -115,6 +120,11 @@ export default {
fieldValue
:
this
.
curdId
,
conditionalType
:
"Equal"
,
},
{
fieldName
:
"userId"
,
fieldValue
:
this
.
$store
.
state
.
userInfo
.
id
,
conditionalType
:
"Equal"
,
},
],
};
this
.
$api
.
post
(
`
${
material
}
/projectplan/list`
,
params
).
then
((
r
)
=>
{
...
...
pages/project/plan/gant.vue
View file @
d5cdcd17
...
...
@@ -122,7 +122,7 @@ export default {
{
id
:
4
,
label
:
"计划开始时间"
,
//
value: 'startDate',
value
:
'startDate'
,
value
:
(
task
)
=>
dayjs
(
task
.
startDate
).
format
(
"YYYY-MM-DD"
),
width
:
160
,
},
...
...
pages/project/task/detail.vue
View file @
d5cdcd17
...
...
@@ -22,11 +22,11 @@
<Filed
:span=
"24"
:name=
"l('userIds')"
>
<User
v-for=
"(li,i) in entity.userIds"
:value=
"li"
:key=
"i"
class=
"ml10"
/>
</Filed>
<Filed
:span=
"12"
:name=
"l('startDate')
"
>
<Filed
:span=
"12"
name=
"计划日期
"
>
<DateRange
:value=
"entity"
></DateRange>
</Filed>
<Filed
:span=
"12"
:name=
"l('plansToStartDate')
"
>
<DateRange
:value=
"entity"
start=
"
plansToStartDate"
end=
"plansTo
EndTime"
></DateRange>
<Filed
:span=
"12"
name=
"执行日期
"
>
<DateRange
:value=
"entity"
start=
"
runStartDate"
end=
"run
EndTime"
></DateRange>
</Filed>
<Filed
:span=
"24"
:name=
"l('note')"
>
<div
v-html=
"entity.note"
></div>
...
...
@@ -173,6 +173,13 @@ export default {
id
:
this
.
eid
,
status
:
this
.
status
,
};
if
(
this
.
status
==
1
){
params
.
runStartDate
=
""
;
}
else
if
(
this
.
status
==
2
){
params
.
runEndDate
=
""
;
}
else
if
(
this
.
status
==
3
){
params
.
runEndDate
=
""
;
}
Api
.
updatepart
(
params
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"任务状态汇报成功"
);
...
...
pages/project/task/index.vue
View file @
d5cdcd17
This diff is collapsed.
Click to expand it.
store/index.js
View file @
d5cdcd17
...
...
@@ -3,7 +3,7 @@ import Api from '@/plugins/request'
// import Mock from 'mockjs'
export
const
state
=
()
=>
({
counter
:
0
,
dictionary
:
new
Map
()
,
//所有字典项
dictionary
:
[]
,
//所有字典项
userMap
:
new
Map
(),
//所有用户缓存;
userNameMap
:
new
Map
(),
//所有用户名称缓存;
departmentsMap
:
new
Map
(),
//部门缓存;
...
...
@@ -25,10 +25,11 @@ export const getters = {
dictionaryByKey
:
(
state
)
=>
(
key
)
=>
{
let
result
=
[];
if
(
state
&&
state
.
dictionary
)
{
let
items
=
state
.
dictionary
.
get
(
key
);
if
(
items
)
{
// console.info("items",items)
return
items
;
let
items
=
state
.
dictionary
.
filter
(
u
=>
{
return
u
.
code
===
key
});
if
(
items
.
length
>
0
)
{
return
items
[
0
].
items
;
}
}
...
...
@@ -36,12 +37,11 @@ export const getters = {
},
dictionaryByCode
:
(
state
)
=>
(
key
,
code
)
=>
{
let
result
=
null
;
let
items
=
state
.
dictionary
.
get
(
key
);
if
(
items
)
{
// console.info("items",items)
return
items
.
filter
(
u
=>
{
return
u
.
code
==
code
})[
0
];
let
items
=
state
.
dictionary
.
filter
(
u
=>
{
return
u
.
code
===
key
});
if
(
items
.
length
>
0
)
{
return
items
[
0
];
}
return
result
;
},
...
...
@@ -167,18 +167,12 @@ export const actions = {
async
loadDictionary
({
commit
})
{
let
url
=
`
${
systemUrl
}
/Dictionary/
GetAll
`
let
url
=
`
${
systemUrl
}
/Dictionary/
getallanditems
`
let
{
result
}
=
await
Api
.
get
(
url
);
var
map
=
new
Map
();
for
(
const
key
in
result
)
{
if
(
result
.
hasOwnProperty
(
key
))
{
map
.
set
(
key
,
result
[
key
])
}
}
commit
(
"setDictionary"
,
map
);
commit
(
"setDictionary"
,
result
);
let
r
=
await
Api
.
get
(
`
${
systemUrl
}
/user/getuserlist`
);
var
umap
=
new
Map
();
...
...
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