Chensc il y a 2 jours
Parent
commit
c92f550724

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

@ -13,7 +13,8 @@ $.ajax('../../../component/statistics/LascModifyPatient/index.html', {
Vue.component('lasc-modify-patient', {
  template: template,
  props: [],
  name: 'lasc-modify-patient',
  props: ['currentInfo'],
  data: function () {
    return {
      form: {},
@ -102,6 +103,8 @@ Vue.component('lasc-modify-patient', {
    }
  },
  mounted() {
    // console.log(this.currentInfo)
    this.form = this.currentInfo
    for (var i = 8; i < 21; i++) {
      this.menophaniaAgeList.push(i)
    }

+ 2 - 2
component/statistics/LascPatient/index.html

@ -63,7 +63,7 @@
      </el-table-column>
      <el-table-column label="操作" align="center" width="130px">
        <template slot-scope="scope">
          <el-button type="text" @click="openDialog(scope)">编辑</el-button>
          <el-button type="text" @click="openDialog(scope.row)">编辑</el-button>
          <el-button type="text" @click="onClickServiceRecord(scope.row)">服务记录</el-button>
          <el-button type="text">就医记录</el-button>
        </template>
@ -82,7 +82,7 @@
  <template v-if="serviceRecordVisable">
    <Copd-service-record-patient :patient="currentEditData" @back="back"></Copd-service-record-patient>
  </template>
  <el-dialog title="编辑" :visible.sync="dialogVisible" width="70%">
  <el-dialog title="编辑" :currentInfo="currentInfo" :visible.sync="dialogVisible" width="70%">
    <lasc-modify-patient></lasc-modify-patient>
  </el-dialog>
</div>

+ 5 - 2
component/statistics/LascPatient/index.js

@ -80,7 +80,8 @@ Vue.component('lasc-patient', {
      size: 10,
      total: 0,
      level: 0,
      FormData: {}
      FormData: {},
      currentInfo: {}
    }
  },
  methods: {
@ -270,8 +271,10 @@ Vue.component('lasc-patient', {
      this.size = val
      this.getList()
    },
    openDialog(scope) {
    openDialog(row) {
      this.dialogVisible = true
      // console.log(row)
      this.currentInfo = row
    }
  },
  mounted() {