|
@@ -143,7 +143,36 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <!-- 问题反馈 -->
|
|
|
+ <view class="part" v-if="type==='snapshot'">
|
|
|
+ <view class="part-cont">
|
|
|
+ <view class="item" v-for="(item,snapshotIdx) in items" :key="snapshotIdx" @click="handle('snapshot',item)">
|
|
|
+ <view class="index">
|
|
|
+ {{snapshotIdx+1}}
|
|
|
+ </view>
|
|
|
+ <view class="title">
|
|
|
+ <view class="name">{{item.snapshotContent}}</view>
|
|
|
+ <view class="state">{{snapshotStatus(item.status)}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="tags">
|
|
|
+ <text class="tag">{{dangerLevel(item.dangerLevel)}}</text>
|
|
|
+ <text class="tag">{{item.dangerCatTitle}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="user">
|
|
|
+ <image class="avatar" src="/static/index/user.png" mode="widthFix"></image>
|
|
|
+ <text>处理人:</text>
|
|
|
+ <text class="user" v-if="item.handleAccountId > 0">{{ item.handleAccountName }}</text>
|
|
|
+ <text class="user" v-else>{{item.wxName||'--'}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="hand-time">
|
|
|
+ {{item.submitTime}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<template v-if="total<1">
|
|
@@ -182,6 +211,7 @@
|
|
|
import { getTaskByPage } from '@/api/aqpt/taskApi.js';
|
|
|
import { getWarningByPage } from '@/api/aqpt/warning.js';
|
|
|
import { handleCheckTask } from '@/api/aqpt/checkTaskApi'
|
|
|
+ import { getSnapshotByPage} from '@/api/aqpt/snapshotApi.js'
|
|
|
import{
|
|
|
taskStatus,taskPriority,taskType,
|
|
|
alertLevel,alertStatus,
|
|
@@ -219,6 +249,17 @@
|
|
|
alertLevel,alertStatus,
|
|
|
dangerStatus,dangerLevel,
|
|
|
warningLevel,warningStatus,
|
|
|
+ snapshotStatus(val){
|
|
|
+ if (val >= 0) {
|
|
|
+ const strs = [
|
|
|
+ '待处理',
|
|
|
+ '已处理'
|
|
|
+ ]
|
|
|
+ return strs[val]
|
|
|
+ } else {
|
|
|
+ return '已撤销'
|
|
|
+ }
|
|
|
+ },
|
|
|
getData(){
|
|
|
if(this.type==='task'){
|
|
|
this.getTaskByPage()
|
|
@@ -233,7 +274,9 @@
|
|
|
if(this.type==='warn'){
|
|
|
this.getWarningByPage()
|
|
|
}
|
|
|
-
|
|
|
+ if(this.type==='snapshot'){
|
|
|
+ this.getSnapshotByPage()
|
|
|
+ }
|
|
|
},
|
|
|
getWarningByPage(){
|
|
|
let items=JSON.parse(JSON.stringify(this.items))
|
|
@@ -320,9 +363,11 @@
|
|
|
this.$refs.alertpopup.open('bottom')
|
|
|
return
|
|
|
}
|
|
|
- uni.navigateTo({
|
|
|
- url
|
|
|
- })
|
|
|
+ if(type==='snapshot'){
|
|
|
+ let pageUrl="/pages/app_views/problem_feedback/record/record"
|
|
|
+ url=`${pageUrl}?id=${item.snapshotId}`
|
|
|
+ };
|
|
|
+ uni.redirectTo({url})
|
|
|
},
|
|
|
handTask(item){
|
|
|
// if(item.handleAccountId!==this.user.userId) return;
|