shuishen
2025-01-08 fcfca196ac3c329ad83da49377e68424acf4c716
社区感知,户室或独栋点击弹窗中九大场景支持build
9 files modified
616 ■■■■■ changed files
src/api/dept/newIndex.js 358 ●●●●● patch | view | raw | blame | history
src/views/house/components/antiFraud.vue 12 ●●●●● patch | view | raw | blame | history
src/views/house/components/employees.vue 36 ●●●●● patch | view | raw | blame | history
src/views/house/components/nineSmallPlaces.vue 48 ●●●● patch | view | raw | blame | history
src/views/house/components/noFraudAuthentication.vue 40 ●●●●● patch | view | raw | blame | history
src/views/house/components/positionTrading.vue 36 ●●●●● patch | view | raw | blame | history
src/views/house/components/rentalHouse.vue 14 ●●●●● patch | view | raw | blame | history
src/views/house/components/scanCodeAlarm.vue 38 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 34 ●●●●● patch | view | raw | blame | history
src/api/dept/newIndex.js
@@ -6,14 +6,22 @@
 * @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
  })
}
/**
@@ -22,14 +30,22 @@
 * @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
  })
}
/**
@@ -37,28 +53,44 @@
 * @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
  })
}
/**
@@ -68,16 +100,27 @@
 * @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
    }
  })
}
/**
 * 消防检查
@@ -87,16 +130,26 @@
 * @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
    }
  })
}
@@ -108,17 +161,27 @@
 * @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
    }
  })
}
@@ -129,16 +192,27 @@
 * @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
    }
  })
}
/**
 *  居住证申请列表
@@ -147,17 +221,27 @@
 * @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
    }
  })
}
/**
 * 租客列表
@@ -167,28 +251,48 @@
 * @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
    }
  })
}
/**
 * 
@@ -196,13 +300,13 @@
 * @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
    }
  })
}
/**
 * 
@@ -210,13 +314,13 @@
 * @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
    }
  })
}
/**
@@ -227,12 +331,12 @@
 */
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
    }
  })
}
src/views/house/components/antiFraud.vue
@@ -236,7 +236,11 @@
    residentIdSave: {
      type: String,
      default: ''
    }
    },
    residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
@@ -274,7 +278,7 @@
      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
@@ -283,7 +287,7 @@
        })
      } 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
@@ -311,7 +315,7 @@
    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
src/views/house/components/employees.vue
@@ -186,11 +186,15 @@
    residentIdSave: {
      type: String,
      default: ''
    }
    },
    residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
  data () {
    //这里存放数据
    return {
      row: {},
@@ -210,7 +214,7 @@
  },
  //监控data中的数据变化
  watch: {
    residentIdSave(newVal, oldVal) {
    residentIdSave (newVal, oldVal) {
      console.log('residentIdSave', newVal, oldVal)
      if (newVal) {
        this.init()
@@ -219,9 +223,9 @@
  },
  //方法集合
  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
@@ -229,14 +233,14 @@
        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
@@ -248,21 +252,21 @@
  },
  //生命周期 - 创建完成(可以访问当前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>
src/views/house/components/nineSmallPlaces.vue
@@ -375,11 +375,15 @@
    residentIdSave: {
      type: String,
      default: ''
    }
    },
    residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
  data () {
    //这里存放数据
    return {
      row: {},
@@ -408,7 +412,7 @@
  //方法集合
  methods: {
    // 写一个方法,把阿拉伯数字转换中文的大写
    getUpperCase(num) {
    getUpperCase (num) {
      const chineseNumbers = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九']
      const units = ['', '十', '百', '千', '万']
      let str = ''
@@ -420,22 +424,22 @@
      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
@@ -444,7 +448,7 @@
        })
      } 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
@@ -453,9 +457,9 @@
        })
      }
    },
    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
@@ -473,7 +477,7 @@
        })
      })
    },
    cellClick(row, column, cell, event) {
    cellClick (row, column, cell, event) {
      row.employerImg = this.getImgUrls(row.employerImg)
      this.row = row
      this.detailBox = !this.detailBox
@@ -496,7 +500,7 @@
    },
    getRectificationImageUrls() {
    getRectificationImageUrls () {
      return (item) => {
        let imageUrls = item.rectificationImageUrls
@@ -510,7 +514,7 @@
      }
    },
    // // 图片转换
    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
@@ -522,23 +526,23 @@
  },
  //生命周期 - 创建完成(可以访问当前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>
src/views/house/components/noFraudAuthentication.vue
@@ -162,11 +162,15 @@
    residentIdSave: {
      type: String,
      default: ''
    }
    },
    residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
  data () {
    //这里存放数据
    return {
      row: {},
@@ -203,7 +207,7 @@
  //方法集合
  methods: {
    // 获取无诈数据
    getNoFraudType(val) {
    getNoFraudType (val) {
      let type = ''
      this.noFraudTypeList.forEach(item => {
        if (item.value == val) {
@@ -213,20 +217,20 @@
      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
@@ -234,14 +238,14 @@
        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
@@ -253,22 +257,22 @@
  },
  //生命周期 - 创建完成(可以访问当前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>
src/views/house/components/positionTrading.vue
@@ -177,14 +177,20 @@
      type: String,
      default: ''
    },
      residentIdSave: {
    residentIdSave: {
      type: String,
      default: ''
    }
    },
    residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
  data () {
    //这里存放数据
    return {
      row: {},
@@ -206,7 +212,7 @@
  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
@@ -214,7 +220,7 @@
      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
@@ -226,11 +232,11 @@
  },
  //生命周期 - 创建完成(可以访问当前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
@@ -239,16 +245,16 @@
    })
  },
  //生命周期 - 挂载完成(可以访问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>
src/views/house/components/rentalHouse.vue
@@ -329,7 +329,11 @@
    residentIdSave: {
      type: String,
      default: ''
    }
    },
     residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
@@ -407,17 +411,17 @@
      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
        })
@@ -426,7 +430,7 @@
    },
    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
src/views/house/components/scanCodeAlarm.vue
@@ -111,11 +111,15 @@
    residentIdSave: {
      type: String,
      default: ''
    }
    },
    residentDetailsType: {
      type: Number,
      default: 1
    },
  },
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
  data () {
    //这里存放数据
    return {
      row: {},
@@ -141,20 +145,20 @@
  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
@@ -162,14 +166,14 @@
        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
@@ -181,23 +185,23 @@
  },
  //生命周期 - 创建完成(可以访问当前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>
src/views/house/index.vue
@@ -2,7 +2,7 @@
 * @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: 小区-栋-层-房屋
 * 
@@ -541,31 +541,39 @@
        </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"
@@ -972,7 +980,7 @@
      ],
      policeSituationVisible: false,
      JWdetails: {},
      residentDetailsParams: null,
      residentDetailsType: 1,
      residentDetailsTitle: "",
      residentDetailsShow: false,
      lastBtnShow: false,
@@ -1278,7 +1286,7 @@
    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, '', '', '', '', '独栋')
@@ -1979,12 +1987,14 @@
          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", {
@@ -1995,7 +2005,7 @@
        // })
      }
      this.getPicURL(residentId)
      this.residentDetailsParams = params
      this.residentDetailsTitle = `${params.name}住户信息`
      this.residentDetailsShow = true
      this.residentNoDataText = ' '
@@ -2005,7 +2015,7 @@
    residentDetailsClose () {
      this.hushiPeoTy = 1
      this.residentDetailsShow = false
      this.residentDetailsParams = null
      this.residentDetailsType = 1
    },
    buildingClick (item, aoiArr) {