| | |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | import website from '@/config/website' |
| | | import { |
| | | getYHTJList |
| | | } from "@/api/publicSecurity/ninePlaceManage" |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | delBtn: false, |
| | | addBtn: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | label: "地区", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "场所名称", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "场所地址", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "场所类别", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "场所负责人", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "身份证信息", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "联系方式", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "辖区派出所", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "责任民警", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }, { |
| | | label: "责任民警联系方式", |
| | | prop: "regionName", |
| | | align: 'center', |
| | | }], |
| | | column: [ |
| | | { |
| | | label: "地区", |
| | | prop: "name", |
| | | align: 'center', |
| | | }, { |
| | | label: "小商店", |
| | | prop: "xsd", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "小旅馆", |
| | | prop: "xlg", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "小学校(幼儿园、校外培训机构)", |
| | | align: 'center', |
| | | children: [ |
| | | { |
| | | label: "学校", |
| | | prop: "xxx", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "幼儿园", |
| | | prop: "yey", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "校外培训机构", |
| | | prop: "xwpxjg", |
| | | align: 'center', |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "小医院(诊所、养老院)", |
| | | align: 'center', |
| | | children: [ |
| | | { |
| | | label: "医院", |
| | | prop: "yy", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "诊所", |
| | | prop: "zs", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "养老院", |
| | | prop: "yly", |
| | | align: 'center', |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "小网吧", |
| | | prop: "xwb", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "小餐饮场所", |
| | | prop: "xcycs", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "小歌舞娱乐场所", |
| | | prop: "xgwylcs", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "小美容洗浴场所", |
| | | prop: "xmrxycs", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "小生产加工企业", |
| | | prop: "xscjgqy", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "总数", |
| | | prop: "count", |
| | | align: 'center', |
| | | }], |
| | | }, |
| | | data: [] |
| | | } |
| | |
| | | |
| | | onLoad (page, params = {}) { |
| | | this.loading = true |
| | | this.loading = false |
| | | getYHTJList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | console.log('getZGQKList', res.data.data) |
| | | const data = res.data.data |
| | | data.forEach(item => { |
| | | // 统计总数 |
| | | item.count = 0 |
| | | item.nineTypeStatistics.forEach(element => { |
| | | item.count += Number(element.number) |
| | | if (element.dict_value == '小生产加工企业') { |
| | | item.xscjgqy = element.number |
| | | } else if (element.dict_value == '小美容洗浴场所') { |
| | | item.xmrxycs = element.number |
| | | } else if (element.dict_value == '小歌舞娱乐场所') { |
| | | item.xgwylcs = element.number |
| | | } else if (element.dict_value == '小餐饮场所') { |
| | | item.xcycs = element.number |
| | | } else if (element.dict_value == '小网吧') { |
| | | item.xwb = element.number |
| | | } else if (element.dict_value == '小旅馆') { |
| | | item.xlg = element.number |
| | | } else if (element.dict_value == '小商店') { |
| | | item.xsd = element.number |
| | | } else if (element.dict_value == '幼儿园') { |
| | | item.yey = element.number |
| | | } else if (element.dict_value == '养老院') { |
| | | item.yly = element.number |
| | | } else if (element.dict_value == '校外培训机构') { |
| | | item.xwpxjg = element.number |
| | | } else if (element.dict_value == '小学校') { |
| | | item.xxx = element.number |
| | | } else if (element.dict_value == '诊所') { |
| | | item.zs = element.number |
| | | } else if (element.dict_value == '医院') { |
| | | item.yy = element.number |
| | | } |
| | | }) |
| | | }) |
| | | this.data = data |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | } |
| | | } |
| | | } |