|
|
|
@ -6,6 +6,12 @@
|
|
|
|
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
|
|
|
|
<div style="display: flex;justify-content: flex-start;flex-wrap: wrap;">
|
|
|
|
<DatePicker style='width:200px;margin-right: 10px;' placeholder="年份" placement="bottom" format='yyyy'
|
|
|
|
<DatePicker style='width:200px;margin-right: 10px;' placeholder="年份" placement="bottom" format='yyyy'
|
|
|
|
type="year" @on-change="changeYear"></DatePicker>
|
|
|
|
type="year" @on-change="changeYear"></DatePicker>
|
|
|
|
|
|
|
|
<el-date-picker @change="changeDate" v-model="select.dateRange" type="daterange"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd" range-separator="至"
|
|
|
|
|
|
|
|
start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
|
|
|
|
|
style="width: 280px;margin-right: 10px;height:32px">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
<Input v-model="select.title" clearable style="width: 150px;margin-right: 10px;" placeholder="检查名称" />
|
|
|
|
<Select filterable clearable style='width:150px;margin-right: 10px;' v-model="select.status" placeholder="检查状态">
|
|
|
|
<Select filterable clearable style='width:150px;margin-right: 10px;' v-model="select.status" placeholder="检查状态">
|
|
|
|
<Option v-for="item in statusList" :value="item.id">{{item.value}}</Option>
|
|
|
|
<Option v-for="item in statusList" :value="item.id">{{item.value}}</Option>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
@ -70,6 +76,7 @@
|
|
|
|
<template v-slot:btns>
|
|
|
|
<template v-slot:btns>
|
|
|
|
<el-table-column align='center' label="操作" fixed="right" width="80" header-align="center">
|
|
|
|
<el-table-column align='center' label="操作" fixed="right" width="80" header-align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<template v-if="!scope.row.children || (scope.row.children && scope.row.children.length === 0)">
|
|
|
|
<div v-if="(is_guiji||is_chuzhang||scope.row.is_myself)&&!(scope.row.status==5||scope.row.status==6)">
|
|
|
|
<div v-if="(is_guiji||is_chuzhang||scope.row.is_myself)&&!(scope.row.status==5||scope.row.status==6)">
|
|
|
|
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')">办理</Button>
|
|
|
|
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')">办理</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -88,7 +95,7 @@
|
|
|
|
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size='small' ghost>删除</Button>
|
|
|
|
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size='small' ghost>删除</Button>
|
|
|
|
</Poptip>
|
|
|
|
</Poptip>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@ -157,7 +164,11 @@
|
|
|
|
ask_id:'',
|
|
|
|
ask_id:'',
|
|
|
|
sort_name:'date',
|
|
|
|
sort_name:'date',
|
|
|
|
sort_type:"DESC",
|
|
|
|
sort_type:"DESC",
|
|
|
|
year:''
|
|
|
|
year:'',
|
|
|
|
|
|
|
|
dateRange:[],
|
|
|
|
|
|
|
|
start_date:'',
|
|
|
|
|
|
|
|
end_date:'',
|
|
|
|
|
|
|
|
title:''
|
|
|
|
// pid:0
|
|
|
|
// pid:0
|
|
|
|
// myself_update:0
|
|
|
|
// myself_update:0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -232,6 +243,10 @@
|
|
|
|
label:"问题类型",
|
|
|
|
label:"问题类型",
|
|
|
|
prop:'ask_value',
|
|
|
|
prop:'ask_value',
|
|
|
|
width:120,
|
|
|
|
width:120,
|
|
|
|
|
|
|
|
},{
|
|
|
|
|
|
|
|
label:"检查名称",
|
|
|
|
|
|
|
|
prop:'title',
|
|
|
|
|
|
|
|
align:'left'
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
label:"问题描述",
|
|
|
|
label:"问题描述",
|
|
|
|
prop:'ask_introduce',
|
|
|
|
prop:'ask_introduce',
|
|
|
|
@ -304,8 +319,8 @@
|
|
|
|
// is_my_inspection:false
|
|
|
|
// is_my_inspection:false
|
|
|
|
// 导出
|
|
|
|
// 导出
|
|
|
|
importtable:[{
|
|
|
|
importtable:[{
|
|
|
|
label:"任务名称",
|
|
|
|
label:"检查名称",
|
|
|
|
prop:'mission_name',
|
|
|
|
prop:'title',
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
label:"发现时间",
|
|
|
|
label:"发现时间",
|
|
|
|
prop:'date',
|
|
|
|
prop:'date',
|
|
|
|
@ -377,6 +392,16 @@
|
|
|
|
// this.getList()
|
|
|
|
// this.getList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
changeDate(e){
|
|
|
|
|
|
|
|
if(e){
|
|
|
|
|
|
|
|
this.select.start_date = e[0];
|
|
|
|
|
|
|
|
this.select.end_date = e[1];
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.select.start_date = "";
|
|
|
|
|
|
|
|
this.select.end_date = "";
|
|
|
|
|
|
|
|
this.select.dateRange = [];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
selectionChange(e){
|
|
|
|
selectionChange(e){
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
let arr = []
|
|
|
|
let arr = []
|
|
|
|
@ -719,7 +744,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
for(var k of res.data){
|
|
|
|
for(var k of res.data){
|
|
|
|
k.mission_name = k.mission?k.mission.name:''
|
|
|
|
{/* k.mission_name = k.mission?k.mission.name:'' */}
|
|
|
|
k.site_name = k.site?k.site.name:k.address
|
|
|
|
k.site_name = k.site?k.site.name:k.address
|
|
|
|
k.ask_value = k.ask?k.ask.value:''
|
|
|
|
k.ask_value = k.ask?k.ask.value:''
|
|
|
|
k.up_admin_name = k.up_admin?k.up_admin.name:''
|
|
|
|
k.up_admin_name = k.up_admin?k.up_admin.name:''
|
|
|
|
|