|
|
@@ -35,19 +35,22 @@
|
|
|
<!-- <van-empty description="暂无数据" /> -->
|
|
|
<van-cell-group>
|
|
|
<van-cell
|
|
|
+ @click.stop="isFalgHandler(i, item.taskType, item.id)"
|
|
|
v-for="(i, index) in item.dataList"
|
|
|
:key="index"
|
|
|
class="mainTitle"
|
|
|
:value="worksLink(2, item.taskType, i.recStatus ? i.recStatus : i.status)"
|
|
|
- :label="i.startTime + '-' + i.endTime"
|
|
|
- :value-class="iColorClas(item.taskType,i.status) "
|
|
|
+ :label="
|
|
|
+ i.startTime.substring(5, i.startTime.length - 3) + '至' + i.endTime.substring(5, i.endTime.length - 3)
|
|
|
+ "
|
|
|
+ :value-class="iColorClas(item.taskType, i.status)"
|
|
|
>
|
|
|
<template #title>
|
|
|
<span class="custom-title"
|
|
|
>{{ i.taskName }}
|
|
|
<van-tag
|
|
|
class="resetDy"
|
|
|
- @click="resetHandler(item.id)"
|
|
|
+ @click.stop="resetHandler(item.id)"
|
|
|
v-if="i.status == 1 && item.taskType == 3"
|
|
|
type="primary"
|
|
|
>重新调阅</van-tag
|
|
|
@@ -56,12 +59,10 @@
|
|
|
</template>
|
|
|
|
|
|
<template #right-icon>
|
|
|
- <van-icon name="arrow" class="rightIcon" @click="isFalgHandler(i, item.taskType, item.id)" />
|
|
|
+ <van-icon name="arrow" class="rightIcon" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <!-- <van-tag class="resetDy" @click="resetHandler(item.id)" v-if="item.status == 1" type="primary"
|
|
|
- >重新调阅</van-tag
|
|
|
- > -->
|
|
|
+
|
|
|
</van-cell-group>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -104,16 +105,14 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
- iColorClas(type,status){
|
|
|
-
|
|
|
- if(status==0||type==0&&status==1){
|
|
|
+ iColorClas(type, status) {
|
|
|
+ if (status == 0 || (type == 0 && status == 1)|| (type == 2 && status == 1)) {
|
|
|
return 'wj-title-blue'
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return 'wj-title-orange'
|
|
|
}
|
|
|
},
|
|
|
isFalgHandler(i, taskType, id) {
|
|
|
-
|
|
|
if (i.isExist != undefined && i.isExist == 0) {
|
|
|
return Dialog.alert({
|
|
|
message: '机构下没有主机摄像头,不能开启调阅任务!',
|
|
|
@@ -190,7 +189,10 @@ export default {
|
|
|
path = '/monitoringCall'
|
|
|
pathInfo = '/consultInfo_' + id
|
|
|
break
|
|
|
- case '/jc':
|
|
|
+ case 2:
|
|
|
+ strName = '待检查'
|
|
|
+ path = '/securityCheckRegister'
|
|
|
+ pathInfo = '/securityDetail' + id
|
|
|
str = '/jc'
|
|
|
break
|
|
|
case 4:
|
|
|
@@ -225,6 +227,10 @@ export default {
|
|
|
if (val == 0 && taskType == 2) {
|
|
|
strName = '进行中'
|
|
|
}
|
|
|
+ //安全检查
|
|
|
+ if (val == 2 && taskType == 2) {
|
|
|
+ strName = '进行中'
|
|
|
+ }
|
|
|
|
|
|
//监控调阅
|
|
|
if (val == 3 && taskType == 1) {
|
|
|
@@ -276,6 +282,10 @@ export default {
|
|
|
if (val == 5 && taskType == 1) {
|
|
|
pathInfo = '/personnelSignature/' + id + '_edit'
|
|
|
}
|
|
|
+ //安全检查跳转
|
|
|
+ if (val == 2 && taskType == 1||(val == 2 && taskType == 2)) {
|
|
|
+ pathInfo = `/securityDetail?id=${id}&enable=${taskType}`
|
|
|
+ }
|
|
|
//履职跳转
|
|
|
if ((val == 0 && taskType == 1) || (val == 0 && taskType == 2)) {
|
|
|
pathInfo = `/resumption_detail?id=${id}&enable=${taskType}&taskDate=${item.startTime.split(' ')[0]}
|
|
|
@@ -312,8 +322,6 @@ export default {
|
|
|
},
|
|
|
//tab栏点击
|
|
|
tabClickHandler(name) {
|
|
|
-
|
|
|
-
|
|
|
const filePath = `/#${name}`
|
|
|
const tempLink = document.createElement('a')
|
|
|
tempLink.style.display = 'none'
|
|
|
@@ -346,7 +354,7 @@ export default {
|
|
|
</script>
|
|
|
<style>
|
|
|
.van-info {
|
|
|
-right: -12px;
|
|
|
+ right: -12px;
|
|
|
background-color: #008cd6;
|
|
|
}
|
|
|
</style>
|