| | |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="事件编号" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="问题小类" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="eventSource" label="问题描述" min-width="10"> |
| | | <el-table-column prop="eventSource" label="问题来源" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.row.eventSource===1 ? '违规': '违建'}}</span> |
| | | <span>{{scope.row.eventSource===1 ? '视频巡查': '人工上报'}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="category" label="问题类别" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.row.category===1 ? '违规': '违建'}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createTime" label="创建时间" min-width="10"> |
| | | <template slot-scope="scope"> |
| | | <span>{{changeTime(scope.row.createTime)}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="剩余时间" min-width="10"> |
| | | <template slot-scope="scope"> |
| | |
| | | import updateUser from "./updateUser" |
| | | import createUser from "./createUser" |
| | | import {computeTime} from '@/utils/helper' |
| | | import filterTime from '@/utils/mydate' |
| | | export default { |
| | | components: { |
| | | updateUser,createUser |
| | |
| | | }, |
| | | // 计算时间 |
| | | getRestTime(time2){ |
| | | console.log(time2); |
| | | return computeTime(time2); |
| | | }, |
| | | // 改变日期格式 |
| | | changeTime(time){ |
| | | if(time){ |
| | | return filterTime(time); |
| | | } |
| | | } |
| | | } |
| | | } |