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
b642e412
Commit
b642e412
authored
Oct 26, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分卡原因
parent
05765173
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
441 additions
and
485 deletions
+441
-485
speed.vue
pages/order/monitoring/speed.vue
+377
-396
add.vue
pages/project/record/add.vue
+28
-7
add.vue
pages/project/task/add.vue
+28
-55
detail.vue
pages/project/task/detail.vue
+4
-7
edit.vue
pages/project/task/edit.vue
+4
-0
index.vue
pages/project/task/index.vue
+0
-20
No files found.
pages/order/monitoring/speed.vue
View file @
b642e412
This diff is collapsed.
Click to expand it.
pages/project/record/add.vue
View file @
b642e412
...
@@ -8,16 +8,12 @@
...
@@ -8,16 +8,12 @@
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.project_plan_record.Status"
v-model=
"entity.status"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
<FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<i-quill
v-model=
"entity.note"
:height=
"300"
v-paste=
"handleImg"
/></Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -34,8 +30,12 @@
...
@@ -34,8 +30,12 @@
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
'./api'
import
iQuill
from
'@/components/quill'
export
default
{
export
default
{
name
:
'Add'
,
name
:
'Add'
,
components
:
{
iQuill
},
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
disabled
:
false
,
...
@@ -107,6 +107,27 @@ export default {
...
@@ -107,6 +107,27 @@ export default {
this
.
entity
.
id
=
0
;
this
.
entity
.
id
=
0
;
});
});
},
},
handleImg
(
e
)
{
console
.
warn
(
e
)
let
file
=
null
if
(
e
.
clipboardData
&&
e
.
clipboardData
.
items
[
0
]
&&
e
.
clipboardData
.
items
[
0
].
type
&&
e
.
clipboardData
.
items
[
0
].
type
.
indexOf
(
'image'
)
>
-
1
)
{
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file
=
e
.
clipboardData
.
items
[
0
].
getAsFile
()
let
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
setTimeout
(()
=>
{
var
img
=
'<img src="'
+
reader
.
result
+
'" alt=""/>'
this
.
entity
.
note
+=
img
},
1000
)
// new R
}
},
l
(
key
)
{
l
(
key
)
{
key
=
"project_plan_record"
+
"."
+
key
;
key
=
"project_plan_record"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
)
...
...
pages/project/task/add.vue
View file @
b642e412
...
@@ -5,71 +5,19 @@
...
@@ -5,71 +5,19 @@
<FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
<FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('level')"
prop=
"level"
>
<FormItem
:label=
"l('level')"
prop=
"level"
>
<Dictionary
code=
"project.task.level"
v-model=
"entity.level"
></Dictionary>
<Dictionary
code=
"project.task.level"
v-model=
"entity.level"
></Dictionary>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
<FormItem
:label=
"l('projectTitle')"
prop=
"projectTitle"
>
<Input
v-model=
"entity.projectTitle"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('planTitle')"
prop=
"planTitle"
>
<Input
v-model=
"entity.planTitle"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"false"
>
<FormItem
:label=
"l('planId')"
prop=
"planId"
>
<Input
v-model=
"entity.planId"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"false"
>
<FormItem
:label=
"l('projectId')"
prop=
"projectId"
>
<Input
v-model=
"entity.projectId"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<FormItem
:label=
"l('userId')"
prop=
"userId"
>
<UserSelect
ref=
"userSelected"
v-model=
"entity.userId"
/>
</Input>
<UserSelect
ref=
"userSelected"
v-model=
"entity.userId"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('userIds')"
prop=
"userIds"
>
<Input
v-model=
"entity.userIds"
type=
"textarea"
:rows=
"5"
></Input>
<FormItem
:label=
"l('note')"
prop=
"note"
>
</FormItem>
<i-quill
v-model=
"entity.note"
:height=
"300"
v-paste=
"handleImg"
/>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('startDate')"
prop=
"startDate"
>
<DatePicker
type=
"date"
v-model=
"entity.startDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('endDate')"
prop=
"endDate"
>
<DatePicker
type=
"date"
v-model=
"entity.endDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('plansToStartDate')"
prop=
"plansToStartDate"
>
<DatePicker
type=
"date"
v-model=
"entity.plansToStartDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('plansToEndTime')"
prop=
"plansToEndTime"
>
<DatePicker
type=
"date"
v-model=
"entity.plansToEndTime"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('completePercentage')"
prop=
"completePercentage"
>
<InputNumber
v-model=
"entity.completePercentage"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('upTaskId')"
prop=
"upTaskId"
>
<InputNumber
v-model=
"entity.upTaskId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
@@ -82,8 +30,12 @@
...
@@ -82,8 +30,12 @@
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
'./api'
import
iQuill
from
'@/components/quill'
export
default
{
export
default
{
name
:
'Add'
,
name
:
'Add'
,
components
:
{
iQuill
},
data
()
{
data
()
{
return
{
return
{
disabled
:
false
,
disabled
:
false
,
...
@@ -169,6 +121,27 @@ export default {
...
@@ -169,6 +121,27 @@ export default {
this
.
entity
.
id
=
0
;
this
.
entity
.
id
=
0
;
});
});
},
},
handleImg
(
e
)
{
console
.
warn
(
e
)
let
file
=
null
if
(
e
.
clipboardData
&&
e
.
clipboardData
.
items
[
0
]
&&
e
.
clipboardData
.
items
[
0
].
type
&&
e
.
clipboardData
.
items
[
0
].
type
.
indexOf
(
'image'
)
>
-
1
)
{
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file
=
e
.
clipboardData
.
items
[
0
].
getAsFile
()
let
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
setTimeout
(()
=>
{
var
img
=
'<img src="'
+
reader
.
result
+
'" alt=""/>'
this
.
entity
.
note
+=
img
},
1000
)
// new R
}
},
l
(
key
)
{
l
(
key
)
{
key
=
"project_task"
+
"."
+
key
;
key
=
"project_task"
+
"."
+
key
;
return
this
.
$t
(
key
)
return
this
.
$t
(
key
)
...
...
pages/project/task/detail.vue
View file @
b642e412
...
@@ -10,15 +10,12 @@
...
@@ -10,15 +10,12 @@
<Filed
:span=
"6"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('projectTitle')"
>
{{
entity
.
projectTitle
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('projectTitle')"
>
{{
entity
.
projectTitle
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('planTitle')"
>
{{
entity
.
planTitle
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('planTitle')"
>
{{
entity
.
planTitle
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('userIds')"
>
{{
entity
.
userIds
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('userId')"
>
{{
entity
.
userId
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('userId')"
>
{{
entity
.
userId
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('endDate')"
>
{{
entity
.
endDate
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('note')"
>
{{
entity
.
note
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('startDate')"
>
{{
entity
.
startDate
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('startDate')"
>
{{
entity
.
startDate
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('
plansToStartDate')"
>
{{
entity
.
plansToStart
Date
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('
endDate')"
>
{{
entity
.
end
Date
}}
</Filed>
<Filed
:span=
"
6"
:name=
"l('plansToEndTime')"
>
{{
entity
.
plansToEndTime
}}
</Filed>
<Filed
:span=
"
12"
>
</Filed>
<Filed
:span=
"
6"
:name=
"l('completePercentage')"
>
{{
entity
.
completePercentag
e
}}
</Filed>
<Filed
:span=
"
24"
:name=
"l('note')"
>
{{
entity
.
not
e
}}
</Filed>
<Filed
:span=
"6"
:name=
"l('upTaskId')"
>
{{
entity
.
upTaskId
}}
</Filed>
</Row>
</Row>
<component
:is=
"detail"
:eid=
"curId"
/>
<component
:is=
"detail"
:eid=
"curId"
/>
</div>
</div>
...
...
pages/project/task/edit.vue
View file @
b642e412
...
@@ -85,6 +85,9 @@
...
@@ -85,6 +85,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
replace
}
from
'lodash'
;
import
Api
from
'./api'
import
Api
from
'./api'
export
default
{
export
default
{
name
:
'Edit'
,
name
:
'Edit'
,
...
@@ -121,6 +124,7 @@ export default {
...
@@ -121,6 +124,7 @@ export default {
id
:
v
id
:
v
}).
then
(
r
=>
{
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
entity
.
userId
=
parseInt
(
r
.
result
.
userId
)
})
})
},
},
handleSubmit
()
{
handleSubmit
()
{
...
...
pages/project/task/index.vue
View file @
b642e412
...
@@ -188,26 +188,6 @@ export default {
...
@@ -188,26 +188,6 @@ export default {
high
:
true
,
high
:
true
,
type
:
'date'
type
:
'date'
},
},
{
key
:
"plansToStartDate"
,
title
:
this
.
l
(
"plansToStartDate"
),
align
:
"center"
,
high
:
true
,
type
:
'date'
},
{
key
:
"plansToEndTime"
,
title
:
this
.
l
(
"plansToEndTime"
),
align
:
"center"
,
high
:
true
,
type
:
'date'
},
{
key
:
"completePercentage"
,
title
:
this
.
l
(
"completePercentage"
),
align
:
"left"
,
high
:
true
},
{
{
key
:
"note"
,
key
:
"note"
,
title
:
this
.
l
(
"note"
),
title
:
this
.
l
(
"note"
),
...
...
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