|
|
|
@ -8,9 +8,9 @@ |
|
|
|
<div class="title_line"></div> |
|
|
|
<div class="second-select" style="position:absolute;margin-left:300px;"> |
|
|
|
<el-select v-model="type2" @change="init" :clearable="true"> |
|
|
|
<el-option value="安全生产场所">安全生产场所</el-option> |
|
|
|
<el-option value="城市管理场所">城市管理场所</el-option> |
|
|
|
<el-option value="应急处置场所">应急处置场所</el-option> |
|
|
|
<el-option value="enterprise" label="安全生产场所"></el-option> |
|
|
|
<el-option value="city_management" label="城市管理"></el-option> |
|
|
|
<el-option value="emergency_sites" label="应急场所"></el-option> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
<div class="m-search2 left10" style="display: inline-block;"> |
|
|
|
@ -149,7 +149,7 @@ export default { |
|
|
|
this.searchDate = [`${year}-${1}-${1}`, `${year}-${month}-${day}`]; |
|
|
|
}, |
|
|
|
changList() { |
|
|
|
this.type2 = '全部'; |
|
|
|
// this.type2 = '全部'; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
handleClickBreadItem({ item }) { |
|
|
|
@ -162,8 +162,21 @@ export default { |
|
|
|
|
|
|
|
showInfo(index) { |
|
|
|
let item = this.srcTableData[index]; |
|
|
|
this.detailType = item.danger_name; |
|
|
|
this.detailId = item.hidden_danger_id; |
|
|
|
console.log('item', item); |
|
|
|
|
|
|
|
if (this.type2 == 'enterprise') { |
|
|
|
this.detailId = item.enterprise_id; |
|
|
|
} else if (this.type2 == 'city_management') { |
|
|
|
this.detailId = item.city_management_id; |
|
|
|
} else { |
|
|
|
this.detailId = item.emergency_sites_id; |
|
|
|
} |
|
|
|
|
|
|
|
// 安全生产场所,城市管理,应急场所,对应enterprise,city_management,emergency_sites |
|
|
|
|
|
|
|
|
|
|
|
this.detailType = this.type2; |
|
|
|
console.log("this.detailId",this.detailId) |
|
|
|
}, |
|
|
|
|
|
|
|
handlePageNoChange(page_num) { |
|
|
|
@ -187,14 +200,14 @@ export default { |
|
|
|
this.loading = true; |
|
|
|
let url = ''; |
|
|
|
let mockId = 0; |
|
|
|
if (this.type2 == '安全生产场所') { |
|
|
|
if (this.type2 == 'enterprise') { |
|
|
|
url = 'place_resour_safe_product'; |
|
|
|
mockId = '69692497'; |
|
|
|
} else if (this.type2 == '城市管理场所') { |
|
|
|
url = 'place_resour_safe_product'; |
|
|
|
} else if (this.type2 == 'city_management') { |
|
|
|
url = 'place_resour_city_management'; |
|
|
|
mockId = '69784325'; |
|
|
|
} else { |
|
|
|
url = 'place_resour_safe_product'; |
|
|
|
url = 'place_resour_emergency_sites'; |
|
|
|
mockId = '69776621'; |
|
|
|
} |
|
|
|
|
|
|
|
@ -219,7 +232,7 @@ export default { |
|
|
|
if (code === 0) { |
|
|
|
this.srcTableData = data; |
|
|
|
console.log('this.srcTableData ', this.srcTableData); |
|
|
|
if (this.type2 == '安全生产场所') { |
|
|
|
if (this.type2 == 'enterprise') { |
|
|
|
(this.colList = [ |
|
|
|
{ |
|
|
|
align: 'left', |
|
|
|
@ -270,7 +283,7 @@ export default { |
|
|
|
{ type: 'operate', list: ['查看'] } |
|
|
|
]; |
|
|
|
}); |
|
|
|
} else if (this.type2 == '城市管理场所') { |
|
|
|
} else if (this.type2 == 'city_management') { |
|
|
|
this.header = ['序号', '场所名称', '场所类型', '所属组织', '场所地址', '操作']; |
|
|
|
this.list = data.map((item, index) => { |
|
|
|
// city_management_id |
|
|
|
@ -345,8 +358,7 @@ export default { |
|
|
|
width: '10%' |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: 'left', |
|
|
|
|
|
|
|
align: 'left' |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: 'left' |
|
|
|
@ -368,7 +380,15 @@ export default { |
|
|
|
const { org_id, listType, page_num, page_size, searchDate } = this; |
|
|
|
const start_date = searchDate[0]; |
|
|
|
const end_date = searchDate[1]; |
|
|
|
const url = 'hidden_danger_list_num'; |
|
|
|
let url = ''; |
|
|
|
if (this.type2 == 'enterprise') { |
|
|
|
url = 'place_resour_safe_product_total'; |
|
|
|
} else if (this.type2 == 'city_management') { |
|
|
|
url = 'place_resour_safe_product_total'; |
|
|
|
} else { |
|
|
|
url = 'place_resour_safe_product_total'; |
|
|
|
} |
|
|
|
|
|
|
|
let danger_name = this.type2; |
|
|
|
const { data, code, msg } = await requestPostBi( |
|
|
|
url, |
|
|
|
|