Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
861be4ec
Commit
861be4ec
authored
Jun 30, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8e0221e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
167 additions
and
35 deletions
+167
-35
schedul-orderlist.vue
src/components/schedul/schedul-orderlist.vue
+167
-35
No files found.
src/components/schedul/schedul-orderlist.vue
View file @
861be4ec
...
...
@@ -184,7 +184,6 @@
width
:
40px
;
height
:
40px
;
right
:
0px
;
bottom
:
-10px
;
}
.SchImg_List
{
...
...
@@ -344,8 +343,8 @@
@
click=
"isShowSure=true"
>
{{
WorkObj
.
WorkContent
}}
<q-tooltip
:offset=
"[10, 10]"
>
点击文字进行修改
</q-tooltip>
</span>
</q-tooltip>
</span>
<el-input
v-else
v-model=
"WorkObj.WorkContent"
@
focus=
"isShowSure=true"
placeholder=
"完成情况怎么样"
>
</el-input>
</
template
>
...
...
@@ -357,17 +356,22 @@
</div>
</template>
<
template
v-else
>
<div
class=
"OtherListContent"
>
<div
v-for=
"(item,index) in WorkRuleList"
>
<div
style=
"margin-bottom:10px;"
>
{{
index
+
1
}}
.
{{
item
.
ItemName
}}
</div>
<div
v-if=
"item.ItemImgList&&item.ItemImgList.length>0"
style=
"width:100%;display:flex;flex-wrap:wrap"
>
<div
v-for=
"subItem in item.ItemImgList"
style=
"width:40px;height:40px;margin:0 10px 10px 0;"
>
<el-image
:src=
"subItem"
style=
"width:100%;height:100%;"
:preview-src-list=
"item.ItemImgList"
>
<div
class=
"scheList_Bottom"
>
<div
class=
"sche_List_in"
v-if=
"WorkRuleObj"
>
<div
class=
"sche_Dian"
style=
"margin-top:5px;"
></div>
<div
class=
"sche_ListInner"
>
{{
WorkRuleObj
.
ItemName
}}
</div>
</div>
</div>
<div
class=
"WorkObj_ImgList"
>
<el-scrollbar
v-if=
"WorkRuleObj.ItemImgList&&WorkRuleObj.ItemImgList.length>0"
>
<template>
<div
class=
"SchImg_List"
style=
"width:50px;height:50px;border:0;"
v-for=
"(item,index) in WorkRuleObj.ItemImgList"
>
<el-image
:src=
"item"
style=
"width:100%;height:100%;"
:preview-src-list=
"WorkRuleObj.ItemImgList"
>
</el-image>
</div>
</
div
>
</
div
>
</
template
>
</
el-scrollbar
>
</div>
</template>
</div>
...
...
@@ -399,6 +403,20 @@
</div>
</div>
</div>
<div
class=
"tufa_btm"
v-else
style=
"flex-direction:row-reverse;"
>
<div
class=
" sche_Fenye"
v-if=
"saveObj&&WorkRuleList&&WorkRuleList.length>0"
>
<div
class=
"sche_left"
>
<i
class=
"iconfont icon-arrow-left"
:class=
"{'canClick_Color':workRuleIndex!=0}"
@
click=
"WorkRuleMove(1)"
></i>
</div>
<div
class=
"sche_Page"
v-if=
"saveObj&&WorkRuleList"
>
{{workRuleIndex+1}}/{{this.WorkRuleList.length}}
</div>
<div
class=
"sche_left"
v-if=
"saveObj&&WorkRuleList"
>
<i
class=
"iconfont icon-arrow-right1"
:class=
"{'canClick_Color':workRuleIndex!=WorkRuleList.length-1}"
@
click=
"WorkRuleMove(2)"
></i>
</div>
</div>
</div>
</div>
<div
class=
"sche_midList"
>
<div
class=
"scheList_TOP"
>
...
...
@@ -450,16 +468,22 @@
</div>
</template>
<
template
v-else
>
<div
class=
"OtherListContent"
>
<div
v-for=
"(item,index) in EmergenciesRuleList"
>
<div
style=
"margin-bottom:10px;"
>
{{
index
+
1
}}
.
{{
item
.
ItemName
}}
</div>
<div
v-if=
"item.ItemImgList&&item.ItemImgList.length>0"
style=
"width:100%;display:flex;flex-wrap:wrap"
>
<div
v-for=
"subItem in item.ItemImgList"
style=
"width:40px;height:40px;margin:0 10px 10px 0;"
>
<el-image
:src=
"subItem"
style=
"width:100%;height:100%;"
:preview-src-list=
"item.ItemImgList"
>
<div
class=
"scheList_Bottom"
>
<div
class=
"sche_List_in"
v-if=
"TufaRuleObj"
>
<div
class=
"sche_Dian"
style=
"margin-top:5px;"
></div>
<div
class=
"sche_ListInner"
>
{{
TufaRuleObj
.
ItemName
}}
</div>
</div>
</div>
<div
class=
"WorkObj_ImgList"
>
<el-scrollbar
v-if=
"TufaRuleObj.ItemImgList&&TufaRuleObj.ItemImgList.length>0"
>
<template>
<div
class=
"SchImg_List"
style=
"width:50px;height:50px;border:0;"
v-for=
"(item,index) in TufaRuleObj.ItemImgList"
>
<el-image
:src=
"item"
style=
"width:100%;height:100%;"
:preview-src-list=
"TufaRuleObj.ItemImgList"
>
</el-image>
</div>
</
div
>
</
div
>
</
template
>
</
el-scrollbar
>
</div>
</template>
</div>
...
...
@@ -509,6 +533,21 @@
</div>
</div>
</div>
<div
class=
"tufa_btm"
v-else
style=
"flex-direction:row-reverse;"
>
<div
class=
" sche_Fenye"
v-if=
"TufaRuleObj&&EmergenciesRuleList&&EmergenciesRuleList.length>0"
>
<div
class=
"sche_left"
>
<i
class=
"iconfont icon-arrow-left"
:class=
"{'canClick_Color':TufaRuleIndex!=0}"
@
click=
"TufaRuleMove(1)"
></i>
</div>
<div
class=
"sche_Page"
v-if=
"TufaRuleObj&&EmergenciesRuleList"
>
{{TufaRuleIndex+1}}/{{this.EmergenciesRuleList.length}}
</div>
<div
class=
"sche_left"
v-if=
"TufaRuleObj&&EmergenciesRuleList"
>
<i
class=
"iconfont icon-arrow-right1"
:class=
"{'canClick_Color':TufaRuleIndex!=EmergenciesRuleList.length-1}"
@
click=
"TufaRuleMove(2)"
></i>
</div>
</div>
</div>
</div>
<div
class=
"sche_midList"
>
<div
class=
"scheList_TOP"
>
...
...
@@ -559,16 +598,22 @@
</div>
</
template
>
<
template
v-else
>
<div
class=
"OtherListContent"
>
<div
v-for=
"(item,index) in HandoverRuleList"
>
<div
style=
"margin-bottom:10px;"
>
{{
index
+
1
}}
.
{{
item
.
ItemName
}}
</div>
<div
v-if=
"item.ItemImgList&&item.ItemImgList.length>0"
style=
"width:100%;display:flex;flex-wrap:wrap"
>
<div
v-for=
"subItem in item.ItemImgList"
style=
"width:40px;height:40px;margin:0 10px 10px 0;"
>
<el-image
:src=
"subItem"
style=
"width:100%;height:100%;"
:preview-src-list=
"item.ItemImgList"
>
<div
class=
"scheList_Bottom"
>
<div
class=
"sche_List_in"
v-if=
"HandRuleObj"
>
<div
class=
"sche_Dian"
style=
"margin-top:5px;"
></div>
<div
class=
"sche_ListInner"
>
{{
HandRuleObj
.
ItemName
}}
</div>
</div>
</div>
<div
class=
"WorkObj_ImgList"
>
<el-scrollbar
v-if=
"HandRuleObj.ItemImgList&&HandRuleObj.ItemImgList.length>0"
>
<template>
<div
class=
"SchImg_List"
style=
"width:50px;height:50px;border:0;"
v-for=
"(item,index) in HandRuleObj.ItemImgList"
>
<el-image
:src=
"item"
style=
"width:100%;height:100%;"
:preview-src-list=
"HandRuleObj.ItemImgList"
>
</el-image>
</div>
</
div
>
</
div
>
</
template
>
</
el-scrollbar
>
</div>
</template>
</div>
...
...
@@ -618,6 +663,21 @@
</div>
</div>
</div>
<div
class=
"tufa_btm"
v-else
style=
"flex-direction:row-reverse;"
>
<div
class=
" sche_Fenye"
v-if=
"HandRuleObj&&HandoverRuleList&&HandoverRuleList.length>0"
>
<div
class=
"sche_left"
>
<i
class=
"iconfont icon-arrow-left"
:class=
"{'canClick_Color':HandRuleIndex!=0}"
@
click=
"HandRuleMove(1)"
></i>
</div>
<div
class=
"sche_Page"
v-if=
"HandRuleObj&&HandoverRuleList"
>
{{HandRuleIndex+1}}/{{this.HandoverRuleList.length}}
</div>
<div
class=
"sche_left"
v-if=
"HandRuleObj&&HandoverRuleList"
>
<i
class=
"iconfont icon-arrow-right1"
:class=
"{'canClick_Color':HandRuleIndex!=HandoverRuleList.length-1}"
@
click=
"HandRuleMove(2)"
></i>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -694,6 +754,13 @@
WorkRuleList
:
[],
EmergenciesRuleList
:
[],
HandoverRuleList
:
[],
workRuleIndex
:
0
,
//工作清单规则索引
TufaRuleIndex
:
0
,
//突发事件规则索引
HandRuleIndex
:
0
,
//交接工作规则索引
WorkRuleObj
:
{},
//工作清单规则对象
TufaRuleObj
:
{},
//突发事件规则对象
HandRuleObj
:
{}
//交接工作规则对象
}
},
watch
:
{
...
...
@@ -728,7 +795,12 @@
if
(
res
.
Code
==
1
)
{
this
.
HandoverList
=
res
.
Data
.
HandoverList
;
this
.
EmergenciesList
=
res
.
Data
.
EmergenciesList
;
this
.
WorkRuleList
=
res
.
Data
.
WorkRuleList
;
this
.
WorkList
=
res
.
Data
.
WorkList
;
this
.
EmergenciesRuleList
=
res
.
Data
.
EmergenciesRuleList
;
this
.
HandoverRuleList
=
res
.
Data
.
HandoverRuleList
;
if
(
this
.
EmergenciesList
&&
this
.
EmergenciesList
.
length
>
0
)
{
this
.
EmergenciesObj
=
this
.
EmergenciesList
[
this
.
EmergenciesIndex
];
}
...
...
@@ -738,6 +810,17 @@
if
(
this
.
WorkList
&&
this
.
WorkList
.
length
>
0
)
{
this
.
WorkObj
=
this
.
WorkList
[
this
.
WorkIndex
];
}
if
(
this
.
WorkRuleList
&&
this
.
WorkRuleList
.
length
>
0
)
{
this
.
WorkRuleObj
=
this
.
WorkRuleList
[
this
.
workRuleIndex
]
}
if
(
this
.
EmergenciesRuleList
&&
this
.
EmergenciesRuleList
.
length
>
0
)
{
this
.
TufaRuleObj
=
this
.
EmergenciesRuleList
[
this
.
TufaRuleIndex
]
}
if
(
this
.
HandoverRuleList
&&
this
.
HandoverRuleList
.
length
>
0
)
{
this
.
HandRuleObj
=
this
.
HandoverRuleList
[
this
.
HandRuleIndex
]
}
this
.
WorkRuleList
=
res
.
Data
.
WorkRuleList
;
this
.
EmergenciesRuleList
=
res
.
Data
.
EmergenciesRuleList
;
this
.
HandoverRuleList
=
res
.
Data
.
HandoverRuleList
;
...
...
@@ -747,20 +830,20 @@
//获取突发和交接
getTufaHand
()
{
var
obj
=
{
IsBurst
:
0
,
IsHandover
:
0
IsBurst
:
0
,
IsHandover
:
0
}
if
(
this
.
EmergenciesList
.
length
>
0
)
{
obj
.
IsBurst
=
1
obj
.
IsBurst
=
1
}
let
HandArr
=
[];
this
.
HandoverList
.
forEach
(
x
=>
{
if
(
x
.
IsOperate
==
1
)
{
this
.
HandoverList
.
forEach
(
x
=>
{
if
(
x
.
IsOperate
==
1
)
{
HandArr
.
push
(
x
);
}
})
if
(
HandArr
.
length
>
0
)
{
obj
.
IsHandover
=
1
obj
.
IsHandover
=
1
}
return
obj
;
},
...
...
@@ -791,6 +874,22 @@
}
}
},
WorkRuleMove
(
type
)
{
//上一条
if
(
type
==
1
)
{
if
(
this
.
workRuleIndex
>
0
&&
this
.
WorkRuleList
)
{
this
.
workRuleIndex
=
this
.
workRuleIndex
-
1
;
this
.
WorkRuleObj
=
this
.
WorkRuleList
[
this
.
workRuleIndex
];
}
}
//下一条
else
{
if
(
this
.
WorkRuleList
&&
this
.
workRuleIndex
<
this
.
WorkRuleList
.
length
-
1
)
{
this
.
workRuleIndex
=
this
.
workRuleIndex
+
1
;
this
.
WorkRuleObj
=
this
.
WorkRuleList
[
this
.
workRuleIndex
];
}
}
},
//紧急事项上一条(1),下一条(2)
EmergenciesMove
(
type
)
{
//上一条
...
...
@@ -808,6 +907,23 @@
}
}
},
//突发事件规则
TufaRuleMove
(
type
)
{
//上一条
if
(
type
==
1
)
{
if
(
this
.
TufaRuleIndex
>
0
)
{
this
.
TufaRuleIndex
=
this
.
TufaRuleIndex
-
1
;
this
.
TufaRuleObj
=
this
.
EmergenciesRuleList
[
this
.
TufaRuleIndex
];
}
}
//下一条
else
{
if
(
this
.
TufaRuleIndex
<
this
.
EmergenciesRuleList
.
length
-
1
)
{
this
.
TufaRuleIndex
=
this
.
TufaRuleIndex
+
1
;
this
.
TufaRuleObj
=
this
.
EmergenciesRuleList
[
this
.
TufaRuleIndex
];
}
}
},
//交接事项上一条(1),下一条(2)
HandoverMove
(
type
)
{
//上一条
...
...
@@ -825,6 +941,22 @@
}
}
},
HandRuleMove
(
type
){
//上一条
if
(
type
==
1
)
{
if
(
this
.
HandRuleIndex
>
0
)
{
this
.
HandRuleIndex
=
this
.
HandRuleIndex
-
1
;
this
.
HandRuleObj
=
this
.
HandoverRuleList
[
this
.
HandRuleIndex
];
}
}
//下一条
else
{
if
(
this
.
HandRuleIndex
<
this
.
HandoverRuleList
.
length
-
1
)
{
this
.
HandRuleIndex
=
this
.
HandRuleIndex
+
1
;
this
.
HandRuleObj
=
this
.
HandoverRuleList
[
this
.
HandRuleIndex
];
}
}
},
//工作清单上传图片
UploadWorkFile
(
files
)
{
UploadSelfFile
(
'Attachment'
,
files
.
file
,
res
=>
{
...
...
@@ -876,7 +1008,7 @@
WorkIsFinish
:
this
.
WorkObj
.
IsChecked
,
ItemId
:
this
.
WorkObj
.
ItemId
,
FileList
:
this
.
WorkObj
.
FileList
,
ItemType
:
this
.
WorkObj
.
ItemType
,
ItemType
:
this
.
WorkObj
.
ItemType
,
};
if
(
type
==
2
)
{
saveWorkMsg
.
WorkContent
=
this
.
WorkContent
;
...
...
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