hd 4 月之前
父節點
當前提交
1f8502228d

+ 1 - 1
app/statistics/html/comprehensive-query.html

@ -909,7 +909,7 @@
      </div>
      <!--模态框组件-->
      <vuedals></vuedals>
      <person-info></person-info>
      <person-info v-if="componentId.indexOf(handleNodeId)>-1" ref="personInfo"></person-info>
    </div>
    <script src="../../../js/FileSaver/FileSaver.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>

+ 8 - 7
app/statistics/js/comprehensive-query.js

@ -641,8 +641,6 @@ new Vue({
      this.componentId.push(i + '')
    }
    EventBus.$on('toPage', function (data) {
      console.log(data);
      
      vm.handleNodeId = data.id
      vm.$nextTick(function () {
        if (vm.handleNodeId == 77) {
@ -656,6 +654,14 @@ new Vue({
        }
      })
    })
    EventBus.$on('preview-person-info', function(data){
      vm.$refs.personInfo.openDialog(data)
    })
  },
  beforeDestroy() {
    EventBus.$off("toPage")
    EventBus.$off("preview-person-info")
  },
  methods: {
    getfwDictName() {
@ -669,7 +675,6 @@ new Vue({
      var vm = this
      statisticAPI.getDictByDictName({ name: 'jkcopd_quotaStr' }).then(function (res) {
        vm.copdManageSearchFilterList = res.list
        console.log(vm.copdManageSearchFilterList, 'osidosioaidoasodais')
      })
    },
    startTimeChange: function (o) {
@ -1049,7 +1054,6 @@ new Vue({
      // initScope(this)
    },
    tabsClick: function (item) {
      console.log(item, 'item')
      var vm = this
      this.collectCode = ''
      this.copdFilterCheckValue = []
@ -1264,7 +1268,6 @@ new Vue({
      }
      // 慢阻肺监测档案
      if (type == 7) {
        console.log('点击了')
        EventBus.$emit('copd-reset-select', {})
      }
      // // 家庭病床统计
@ -2062,7 +2065,6 @@ new Vue({
      var vm = this
      statisticAPI.exportTreeList({ rang: vm.rangeCode }).then(function (res) {
        if (res.status == 200) {
          console.log(res, 'Sddd')
          ;(vm.treedata = []), (jindex = 0)
          _.each(res.data, function (item, index) {
            vm.treedata.push({
@ -2745,7 +2747,6 @@ new Vue({
      var vm = this
      vm.specializedHospital = [{ value: '', label: '全部' }]
      homeAPI.getSpecialistHospital().then(function (res) {
        console.log(res, 'Sdddddd')
        if (res.status == 200) {
          res.data.forEach(function (v) {
            vm.specializedHospital.push({

+ 3 - 1
component/statistics/GxbEvaluation/index.js

@ -463,7 +463,9 @@ Vue.component('gxb-evaluation', {
    closeDialog() {
      this.visible = false
    },
    seePatientDetail(row) {},
    seePatientDetail(row) {
      EventBus.$emit('preview-person-info', { type: '1', code: row.code })
    },
    dialogReset() {
      var params = {
        ...this.query

+ 4 - 1
component/statistics/GxbMz/index.js

@ -601,7 +601,10 @@ Vue.component('gxb-mz', {
        this.getTeam(data.hospital, false)
      }
      this.searchFn()
    }
    },
    seePatientDetail(row) {
      EventBus.$emit('preview-person-info', { type: '1', code: row.code })
    },
  },
  mounted() {
    this.init()

+ 3 - 1
component/statistics/GxbTurnup/index.js

@ -362,7 +362,9 @@ Vue.component('gxb-turnup', {
        }
      })
    },
    seePatientDetail(row) {},
    seePatientDetail(row) {
      EventBus.$emit('preview-person-info', { type: '2', code: row.code })
    },
    closeDialog() {
      this.visible = false
    },

+ 6 - 7
component/statistics/PersonInfo/index.js

@ -17,7 +17,7 @@ Vue.component('person-info', {
  data: function () {
    return {
      visible: false,
      code: '0fab4dd67e074e16ac86db6b6c15233e',
      code: null,
      loading: false,
      type: '1',
      patientInfo: {},
@ -37,10 +37,6 @@ Vue.component('person-info', {
      messInfo: ''
    }
  },
  mounted() {
    this.getPatientInfo()
    this.getPatientDetailList(1)
  },
  methods: {
    setImg(str) {
      return httpRequest.getImgUrl(str)
@ -129,9 +125,12 @@ Vue.component('person-info', {
        vm.loading = false
      })
    },
    openDialog(type) {
    openDialog(data) {
      this.visible = true
      this.type = type
      this.type = data.type
      this.code = data.code
      this.getPatientInfo()
      this.getPatientDetailList(1)
    },
    closeDialog() {
      this.visible = false