社区感知,户室或独栋点击弹窗中九大场景支持build
| | |
| | | * @returns |
| | | */ |
| | | |
| | | export const getPlacePractitionerPage = (resBusId) => { |
| | | return request({ |
| | | url: '/api/blade-placePractitioner/placePractitioner/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId |
| | | } |
| | | }) |
| | | export const getPlacePractitionerPage = (type = 1, resBusId) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-placePractitioner/placePractitioner/page', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | /** |
| | |
| | | * @returns |
| | | */ |
| | | |
| | | export const getTaskLabelReportingEventPage = (resBusId) => { |
| | | return request({ |
| | | url: '/api/blade-taskLabelReportingEvent/taskLabelReportingEvent/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId |
| | | } |
| | | }) |
| | | export const getTaskLabelReportingEventPage = (type = 1, resBusId) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-taskLabelReportingEvent/taskLabelReportingEvent/page', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param {*} resBusId |
| | | * @returns |
| | | */ |
| | | export const getTaskLabelAntiFraudPage = (resBusId) => { |
| | | return request({ |
| | | url: '/api/blade-backblastPubRecord/backblastPubRecord/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId |
| | | } |
| | | }) |
| | | export const getTaskLabelAntiFraudPage = (type = 1, resBusId) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-backblastPubRecord/backblastPubRecord/page', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | /** |
| | | * 反诈预警列表 |
| | | * @param {*} resBusId |
| | | * @returns |
| | | */ |
| | | export const getBackblastWarnHanRec = (resBusId) => { |
| | | return request({ |
| | | url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId |
| | | } |
| | | }) |
| | | export const getBackblastWarnHanRec = (type = 1, resBusId) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/page', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param {*} current |
| | | * @returns |
| | | */ |
| | | export const getPoliceAlarmRecordsPage = (resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-policeAlarmRecords/policeAlarmRecords/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const getPoliceAlarmRecordsPage = (type = 1, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | |
| | | return request({ |
| | | url: '/api/blade-policeAlarmRecords/policeAlarmRecords/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | /** |
| | | * 消防检查 |
| | |
| | | * @returns |
| | | */ |
| | | |
| | | export const getPlaceCheckPage = (resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-placeCheck/placeCheck/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const getPlaceCheckPage = (type = 1, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-placeCheck/placeCheck/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | |
| | | * @returns |
| | | */ |
| | | |
| | | export const getTaskPlaceSelfCheckPage = (type, resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-taskPlaceSelfCheck/taskPlaceSelfCheck/page', |
| | | method: 'get', |
| | | params: { |
| | | type, |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const getTaskPlaceSelfCheckPage = (houseType = 1, type, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (houseType != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-taskPlaceSelfCheck/taskPlaceSelfCheck/page', |
| | | method: 'get', |
| | | params: { |
| | | type, |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | |
| | | * @param {*} current |
| | | * @returns |
| | | */ |
| | | export const getHouseRentalPage = (resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-houseRental/houseRental/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const getHouseRentalPage = (type = 1, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | |
| | | return request({ |
| | | url: '/api/blade-houseRental/houseRental/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | /** |
| | | * 居住证申请列表 |
| | |
| | | * @param {*} current |
| | | * @returns |
| | | */ |
| | | export const geTaskResidencePermitApplyPage = (reportType, resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-taskResidencePermitApply/taskResidencePermitApply/page', |
| | | method: 'get', |
| | | params: { |
| | | reportType, |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const geTaskResidencePermitApplyPage = (type = 1, reportType, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-taskResidencePermitApply/taskResidencePermitApply/page', |
| | | method: 'get', |
| | | params: { |
| | | reportType, |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | /** |
| | | * 租客列表 |
| | |
| | | * @param {*} current |
| | | * @returns |
| | | */ |
| | | export const getTenantPage = (relationship, resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-household/household/selectTenantPage', |
| | | method: 'get', |
| | | params: { |
| | | relationship, |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const getTenantPage = (type = 1, relationship, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-household/household/selectTenantPage', |
| | | method: 'get', |
| | | params: { |
| | | relationship, |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | export const getTaskNoFraudReporting = (resBusId, size, current) => { |
| | | return request({ |
| | | url: '/api/blade-taskNoFraudReporting/taskNoFraudReporting/page', |
| | | method: 'get', |
| | | params: { |
| | | resBusId, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | export const getTaskNoFraudReporting = (type = 1, resBusId, size, current) => { |
| | | let params = { |
| | | resBusId |
| | | } |
| | | |
| | | if (type != 1) { |
| | | params = { |
| | | buildId: resBusId |
| | | } |
| | | } |
| | | |
| | | return request({ |
| | | url: '/api/blade-taskNoFraudReporting/taskNoFraudReporting/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | current, |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | /** |
| | | * |
| | |
| | | * @returns |
| | | */ |
| | | export const getTaskNoFraudReportingInfo = (id) => { |
| | | return request({ |
| | | url: '/api/blade-taskNoFraudReporting/taskNoFraudReporting/getInfo', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-taskNoFraudReporting/taskNoFraudReporting/getInfo', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | } |
| | | }) |
| | | } |
| | | /** |
| | | * |
| | |
| | | * @returns |
| | | */ |
| | | export const getHouseRentalDetail = (id) => { |
| | | return request({ |
| | | url: '/api/blade-houseRental/houseRental/getDetail', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/blade-houseRental/houseRental/getDetail', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | } |
| | | }) |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | |
| | | export const getPatrolGroupTree = (type, childType) => { |
| | | return request({ |
| | | url: '/api/patrol/patrolGroup/getPatrolGroupTree', |
| | | method: 'get', |
| | | params: { |
| | | type, |
| | | childType |
| | | } |
| | | }) |
| | | return request({ |
| | | url: '/api/patrol/patrolGroup/getPatrolGroupTree', |
| | | method: 'get', |
| | | params: { |
| | | type, |
| | | childType |
| | | } |
| | | }) |
| | | } |
| | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | |
| | | this.detailBox = false |
| | | if (type == 1) { |
| | | this.residentLoading = true |
| | | getTaskLabelAntiFraudPage(this.residentIdSave).then((res) => { |
| | | getTaskLabelAntiFraudPage(this.residentDetailsType, this.residentIdSave).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | }) |
| | | } else { |
| | | this.residentLoading = true |
| | | getBackblastWarnHanRec(this.residentIdSave).then((res) => { |
| | | getBackblastWarnHanRec(this.residentDetailsType, this.residentIdSave).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | |
| | | init() { |
| | | this.residentLoading = true |
| | | getTaskLabelAntiFraudPage(this.residentIdSave).then((res) => { |
| | | getTaskLabelAntiFraudPage(this.residentDetailsType, this.residentIdSave).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | data() { |
| | | data () { |
| | | //这里存放数据 |
| | | return { |
| | | row: {}, |
| | |
| | | }, |
| | | //监控data中的数据变化 |
| | | watch: { |
| | | residentIdSave(newVal, oldVal) { |
| | | residentIdSave (newVal, oldVal) { |
| | | console.log('residentIdSave', newVal, oldVal) |
| | | if (newVal) { |
| | | this.init() |
| | |
| | | }, |
| | | //方法集合 |
| | | methods: { |
| | | init() { |
| | | init () { |
| | | this.residentLoading = true |
| | | getPlacePractitionerPage(this.residentIdSave).then((res) => { |
| | | getPlacePractitionerPage(this.residentDetailsType, this.residentIdSave).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | this.residentLoading = false |
| | | }) |
| | | }, |
| | | cellClick(row, column, cell, event) { |
| | | cellClick (row, column, cell, event) { |
| | | row.employerImg = this.getImgUrls(row.employerImg) |
| | | this.row = row |
| | | this.detailBox = !this.detailBox |
| | | console.log('cellClick', row, column, cell, event) |
| | | }, |
| | | // // 图片转换 |
| | | getImgUrls(imageUrls) { |
| | | getImgUrls (imageUrls) { |
| | | if (imageUrls && imageUrls != '' && imageUrls.length > 0) { |
| | | imageUrls = imageUrls.split(',').filter(ele => ele != '').map(ele => { |
| | | return 'http://10.141.11.11/jczzMedia/' + ele |
| | |
| | | |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | | created () { |
| | | console.log('tableFromPop created', this.residentIdSave) |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | mounted () { |
| | | console.log('tableFromPop mounted', this.residentIdSave) |
| | | this.init() |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | | beforeUpdate() { }, //生命周期 - 更新之前 |
| | | updated() { }, //生命周期 - 更新之后 |
| | | beforeDestroy() { }, //生命周期 - 销毁之前 |
| | | destroyed() { }, //生命周期 - 销毁完成 |
| | | activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | beforeCreate () { }, //生命周期 - 创建之前 |
| | | beforeMount () { }, //生命周期 - 挂载之前 |
| | | beforeUpdate () { }, //生命周期 - 更新之前 |
| | | updated () { }, //生命周期 - 更新之后 |
| | | beforeDestroy () { }, //生命周期 - 销毁之前 |
| | | destroyed () { }, //生命周期 - 销毁完成 |
| | | activated () { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | } |
| | | </script> |
| | | |
| | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | data() { |
| | | data () { |
| | | //这里存放数据 |
| | | return { |
| | | row: {}, |
| | |
| | | //方法集合 |
| | | methods: { |
| | | // 写一个方法,把阿拉伯数字转换中文的大写 |
| | | getUpperCase(num) { |
| | | getUpperCase (num) { |
| | | const chineseNumbers = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'] |
| | | const units = ['', '十', '百', '千', '万'] |
| | | let str = '' |
| | |
| | | console.log(numResult) |
| | | return numResult |
| | | }, |
| | | handleSizeChange(val) { |
| | | handleSizeChange (val) { |
| | | console.log(`每页 ${val} 条`) |
| | | this.pageparm.pageSize = val |
| | | this.changeData(this.current) |
| | | }, |
| | | handleCurrentChange(val) { |
| | | handleCurrentChange (val) { |
| | | console.log(`当前页: ${val}`) |
| | | this.pageparm.current = val |
| | | this.changeData(this.current) |
| | | }, |
| | | changeData(type) { |
| | | changeData (type) { |
| | | this.current = type |
| | | this.detailBox = false |
| | | if (type == 1) { |
| | | this.residentLoading = true |
| | | getPlaceCheckPage(this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getPlaceCheckPage(this.residentDetailsType, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | }) |
| | | } else { |
| | | this.residentLoading = true |
| | | getTaskPlaceSelfCheckPage(1, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getTaskPlaceSelfCheckPage(this.residentDetailsType, 1, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | }) |
| | | } |
| | | }, |
| | | init() { |
| | | init () { |
| | | this.residentLoading = true |
| | | getPlaceCheckPage(this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getPlaceCheckPage(this.residentDetailsType, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | cellClick(row, column, cell, event) { |
| | | cellClick (row, column, cell, event) { |
| | | row.employerImg = this.getImgUrls(row.employerImg) |
| | | this.row = row |
| | | this.detailBox = !this.detailBox |
| | |
| | | }, |
| | | |
| | | |
| | | getRectificationImageUrls() { |
| | | getRectificationImageUrls () { |
| | | return (item) => { |
| | | let imageUrls = item.rectificationImageUrls |
| | | |
| | |
| | | } |
| | | }, |
| | | // // 图片转换 |
| | | getImgUrls(imageUrls) { |
| | | getImgUrls (imageUrls) { |
| | | if (imageUrls && imageUrls != '' && imageUrls.length > 0) { |
| | | imageUrls = imageUrls.split(',').filter(ele => ele != '').map(ele => { |
| | | // return 'http://10.141.11.11/place/' + ele |
| | |
| | | |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | | created () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | mounted () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | this.init() |
| | | |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | | beforeUpdate() { }, //生命周期 - 更新之前 |
| | | updated() { }, //生命周期 - 更新之后 |
| | | beforeDestroy() { }, //生命周期 - 销毁之前 |
| | | destroyed() { }, //生命周期 - 销毁完成 |
| | | activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | beforeCreate () { }, //生命周期 - 创建之前 |
| | | beforeMount () { }, //生命周期 - 挂载之前 |
| | | beforeUpdate () { }, //生命周期 - 更新之前 |
| | | updated () { }, //生命周期 - 更新之后 |
| | | beforeDestroy () { }, //生命周期 - 销毁之前 |
| | | destroyed () { }, //生命周期 - 销毁完成 |
| | | activated () { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | } |
| | | </script> |
| | | |
| | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | data() { |
| | | data () { |
| | | //这里存放数据 |
| | | return { |
| | | row: {}, |
| | |
| | | //方法集合 |
| | | methods: { |
| | | // 获取无诈数据 |
| | | getNoFraudType(val) { |
| | | getNoFraudType (val) { |
| | | let type = '' |
| | | this.noFraudTypeList.forEach(item => { |
| | | if (item.value == val) { |
| | |
| | | return type |
| | | }, |
| | | |
| | | handleSizeChange(val) { |
| | | handleSizeChange (val) { |
| | | console.log(`每页 ${val} 条`) |
| | | this.pageparm.pageSize = val |
| | | this.init() |
| | | }, |
| | | handleCurrentChange(val) { |
| | | handleCurrentChange (val) { |
| | | console.log(`当前页: ${val}`) |
| | | this.pageparm.current = val |
| | | this.init() |
| | | |
| | | }, |
| | | init() { |
| | | init () { |
| | | this.residentLoading = true |
| | | getTaskNoFraudReporting(this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getTaskNoFraudReporting(this.residentDetailsType, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | this.residentLoading = false |
| | | }) |
| | | }, |
| | | cellClick(row, column, cell, event) { |
| | | cellClick (row, column, cell, event) { |
| | | row.employerImg = this.getImgUrls(row.employerImg) |
| | | this.row = row |
| | | this.detailBox = !this.detailBox |
| | | console.log('cellClick', row, column, cell, event) |
| | | }, |
| | | // // 图片转换 |
| | | getImgUrls(imageUrls) { |
| | | getImgUrls (imageUrls) { |
| | | if (imageUrls && imageUrls != '' && imageUrls.length > 0) { |
| | | imageUrls = imageUrls.split(',').filter(ele => ele != '').map(ele => { |
| | | return 'http://10.141.11.11/jczzMedia/' + ele |
| | |
| | | |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | | created () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | mounted () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | this.init() |
| | | |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | | beforeUpdate() { }, //生命周期 - 更新之前 |
| | | updated() { }, //生命周期 - 更新之后 |
| | | beforeDestroy() { }, //生命周期 - 销毁之前 |
| | | destroyed() { }, //生命周期 - 销毁完成 |
| | | activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | beforeCreate () { }, //生命周期 - 创建之前 |
| | | beforeMount () { }, //生命周期 - 挂载之前 |
| | | beforeUpdate () { }, //生命周期 - 更新之前 |
| | | updated () { }, //生命周期 - 更新之后 |
| | | beforeDestroy () { }, //生命周期 - 销毁之前 |
| | | destroyed () { }, //生命周期 - 销毁完成 |
| | | activated () { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | } |
| | | </script> |
| | | |
| | |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | residentIdSave: { |
| | | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | data() { |
| | | data () { |
| | | //这里存放数据 |
| | | return { |
| | | row: {}, |
| | |
| | | watch: {}, |
| | | //方法集合 |
| | | methods: { |
| | | cellClick(row, column, cell, event) { |
| | | cellClick (row, column, cell, event) { |
| | | row.imageUrls = this.getImgUrls(row.imageUrls) |
| | | row.goodsImageUrls = this.getImgUrls(row.goodsImageUrls) |
| | | this.row = row |
| | |
| | | console.log('cellClick', row, column, cell, event) |
| | | }, |
| | | // // 图片转换 |
| | | getImgUrls(imageUrls) { |
| | | getImgUrls (imageUrls) { |
| | | if (imageUrls && imageUrls != '' && imageUrls.length > 0) { |
| | | imageUrls = imageUrls.split(',').filter(ele => ele != '').map(ele => { |
| | | return 'http://10.141.11.11/jczzMedia/' + ele |
| | |
| | | |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | | created () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | // this.residentIdSave |
| | | this.residentLoading = true |
| | | getTaskLabelReportingEventPage(this.residentIdSave).then((res) => { |
| | | getTaskLabelReportingEventPage(this.residentDetailsType, this.residentIdSave).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | }) |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | mounted () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | | beforeUpdate() { }, //生命周期 - 更新之前 |
| | | updated() { }, //生命周期 - 更新之后 |
| | | beforeDestroy() { }, //生命周期 - 销毁之前 |
| | | destroyed() { }, //生命周期 - 销毁完成 |
| | | activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | beforeCreate () { }, //生命周期 - 创建之前 |
| | | beforeMount () { }, //生命周期 - 挂载之前 |
| | | beforeUpdate () { }, //生命周期 - 更新之前 |
| | | updated () { }, //生命周期 - 更新之后 |
| | | beforeDestroy () { }, //生命周期 - 销毁之前 |
| | | destroyed () { }, //生命周期 - 销毁完成 |
| | | activated () { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | } |
| | | </script> |
| | | |
| | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | |
| | | this.current = type |
| | | this.detailBox = false |
| | | if (type == 1) { |
| | | getHouseRentalPage(this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getHouseRentalPage(this.residentDetailsType, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | }) |
| | | } else if (type == 2) { |
| | | geTaskResidencePermitApplyPage(2, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | geTaskResidencePermitApplyPage(this.residentDetailsType, 2, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | }) |
| | | } else if (type == 3) { |
| | | getTenantPage(1, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getTenantPage(this.residentDetailsType, 1, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | }) |
| | |
| | | }, |
| | | init() { |
| | | this.residentLoading = true |
| | | getHouseRentalPage(this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getHouseRentalPage(this.residentDetailsType, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | residentIdSave: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | residentDetailsType: { |
| | | type: Number, |
| | | default: 1 |
| | | }, |
| | | }, |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: {}, |
| | | data() { |
| | | data () { |
| | | //这里存放数据 |
| | | return { |
| | | row: {}, |
| | |
| | | watch: {}, |
| | | //方法集合 |
| | | methods: { |
| | | handleSizeChange(val) { |
| | | handleSizeChange (val) { |
| | | console.log(`每页 ${val} 条`) |
| | | this.pageparm.pageSize = val |
| | | this.init() |
| | | }, |
| | | handleCurrentChange(val) { |
| | | handleCurrentChange (val) { |
| | | console.log(`当前页: ${val}`) |
| | | this.pageparm.current = val |
| | | this.init() |
| | | |
| | | }, |
| | | init() { |
| | | init () { |
| | | this.residentLoading = true |
| | | getPoliceAlarmRecordsPage(this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | getPoliceAlarmRecordsPage(this.residentDetailsType, this.residentIdSave, this.pageparm.pageSize, this.pageparm.current).then((res) => { |
| | | this.dataList.total = res.data.data.total |
| | | this.dataList.records = res.data.data.records |
| | | this.residentLoading = false |
| | |
| | | this.residentLoading = false |
| | | }) |
| | | }, |
| | | cellClick(row, column, cell, event) { |
| | | cellClick (row, column, cell, event) { |
| | | row.employerImg = this.getImgUrls(row.employerImg) |
| | | this.row = row |
| | | this.detailBox = !this.detailBox |
| | | console.log('cellClick', row, column, cell, event) |
| | | }, |
| | | // // 图片转换 |
| | | getImgUrls(imageUrls) { |
| | | getImgUrls (imageUrls) { |
| | | if (imageUrls && imageUrls != '' && imageUrls.length > 0) { |
| | | imageUrls = imageUrls.split(',').filter(ele => ele != '').map(ele => { |
| | | return 'http://10.141.11.11/jczzMedia/' + ele |
| | |
| | | |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | | created () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | |
| | | }, |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | mounted () { |
| | | console.log('tableFromPop mounted', this.hushiPeoTy) |
| | | this.init() |
| | | |
| | | }, |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | | beforeUpdate() { }, //生命周期 - 更新之前 |
| | | updated() { }, //生命周期 - 更新之后 |
| | | beforeDestroy() { }, //生命周期 - 销毁之前 |
| | | destroyed() { }, //生命周期 - 销毁完成 |
| | | activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | beforeCreate () { }, //生命周期 - 创建之前 |
| | | beforeMount () { }, //生命周期 - 挂载之前 |
| | | beforeUpdate () { }, //生命周期 - 更新之前 |
| | | updated () { }, //生命周期 - 更新之后 |
| | | beforeDestroy () { }, //生命周期 - 销毁之前 |
| | | destroyed () { }, //生命周期 - 销毁完成 |
| | | activated () { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | } |
| | | </script> |
| | | |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-01-08 15:43:25 |
| | | * @LastEditTime: 2025-01-08 15:53:43 |
| | | * @FilePath: \srs-police-affairs\src\views\house\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 5" class="pay-info-box"> |
| | | <employees :residentIdSave="residentIdSave" ref="employees"></employees> |
| | | <employees :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="employees"> |
| | | </employees> |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 6" class="pay-info-box"> |
| | | <positionTrading :residentIdSave="residentIdSave" ref="positionTrading"></positionTrading> |
| | | <positionTrading :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" |
| | | ref="positionTrading"></positionTrading> |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 7" class="pay-info-box"> |
| | | <antiFraud :residentIdSave="residentIdSave" ref="antiFraud"></antiFraud> |
| | | <antiFraud :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="antiFraud"> |
| | | </antiFraud> |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 8" class="pay-info-box"> |
| | | <scanCodeAlarm :residentIdSave="residentIdSave" ref="scanCodeAlarm"></scanCodeAlarm> |
| | | <scanCodeAlarm :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" |
| | | ref="scanCodeAlarm"> |
| | | </scanCodeAlarm> |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 10" class="pay-info-box"> |
| | | <rentalHouse :residentIdSave="residentIdSave" ref="rentalHouse"></rentalHouse> |
| | | <rentalHouse :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="rentalHouse"> |
| | | </rentalHouse> |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 12" class="pay-info-box"> |
| | | <noFraudAuthentication :residentIdSave="residentIdSave" ref="noFraudAuthentication"></noFraudAuthentication> |
| | | <noFraudAuthentication :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" |
| | | ref="noFraudAuthentication"></noFraudAuthentication> |
| | | </div> |
| | | |
| | | <div v-if="hushiPeoTy == 11" class="pay-info-box"> |
| | | <nineSmallPlaces :residentIdSave="residentIdSave" ref="nineSmallPlaces"></nineSmallPlaces> |
| | | <nineSmallPlaces :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" |
| | | ref="nineSmallPlaces"></nineSmallPlaces> |
| | | </div> |
| | | |
| | | <el-table :data="houseDate" |
| | |
| | | ], |
| | | policeSituationVisible: false, |
| | | JWdetails: {}, |
| | | residentDetailsParams: null, |
| | | residentDetailsType: 1, |
| | | residentDetailsTitle: "", |
| | | residentDetailsShow: false, |
| | | lastBtnShow: false, |
| | |
| | | hushiPeoTyClick (type) { |
| | | this.hushiPeoTy = type |
| | | if (type <= 4) { |
| | | if (this.residentDetailsParams.exttype == 'room') { |
| | | if (this.residentDetailsType == 1) { |
| | | this.getVillagePersonInfo(this.residentIdSave, '', { personType: this.hushiPeoTy }) |
| | | } else { |
| | | this.getVillagePersonInfo('', this.residentIdSave, '', '', '', '', '独栋') |
| | |
| | | console.log(' this.isShowPayInfo=false') |
| | | this.isShowPayInfo = false |
| | | } |
| | | this.residentDetailsType = 1 |
| | | this.residentIdSave = residentId |
| | | this.getVillagePersonInfo(residentId, '', { personType: this.hushiPeoTy }) |
| | | this.floorChoosed = params.sname |
| | | this.getResident3DData(residentId) |
| | | } else { |
| | | residentId = params.std_addr_id.split('|')[1] |
| | | this.residentDetailsType = 2 |
| | | this.residentIdSave = residentId |
| | | this.getVillagePersonInfo('', residentId, '', '', '', '', '独栋') |
| | | // this.$EventBus.$emit("toPosition", { |
| | |
| | | // }) |
| | | } |
| | | this.getPicURL(residentId) |
| | | this.residentDetailsParams = params |
| | | |
| | | this.residentDetailsTitle = `${params.name}住户信息` |
| | | this.residentDetailsShow = true |
| | | this.residentNoDataText = ' ' |
| | |
| | | residentDetailsClose () { |
| | | this.hushiPeoTy = 1 |
| | | this.residentDetailsShow = false |
| | | this.residentDetailsParams = null |
| | | this.residentDetailsType = 1 |
| | | }, |
| | | |
| | | buildingClick (item, aoiArr) { |