| | |
| | | <template> |
| | | <el-table v-loading="loading" :data="patarchiveList" @ > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table v-loading="loading" :data="patarchiveList" @row-click="rowChanged"> |
| | | <!--el-table-column type="selection" width="55" align="center" /--> |
| | | <el-table-column label=" 自增ID " align="center" prop="patid"/> |
| | | <el-table-column label=" 姓名 " align="center" prop="name" /> |
| | | <el-table-column label=" 性别 " align="center" prop="sex"> |
| | |
| | | dicts: ['sys_user_sex', 'sys_patientfrom'], |
| | | data() { |
| | | return { |
| | | parent:null, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | initial(parent) |
| | | { |
| | | this.parent = parent |
| | | }, |
| | | getList() { |
| | | this.loading = true; |
| | | listPatarchive(this.queryParams).then(response => { |
| | |
| | | //alert("selections:"+this.ids[0]) |
| | | //this.$parent.selectionChanged(this.ids[0]) |
| | | }, |
| | | rowChanged(row){ |
| | | //alert(row.patid) |
| | | //console.log(row) |
| | | //this.parent.selectionChanged(row.patid) |
| | | //this.$parent.selectionChanged(row.patid) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div is="dw_list" style="height:240pt"/> |
| | | <div is="dw_list" style="height:240pt" ref="dwlist"/> |
| | | <el-tabs v-model="activeName" > |
| | | <el-tab-pane label="基本信息" name="first"><div is="dw_base"/></el-tab-pane> |
| | | <el-tab-pane label="门诊记录" name="second"><div is="dw_patouthosp"/></el-tab-pane> |
| | |
| | | }, |
| | | created() { |
| | | //dw_list.getList(); |
| | | //alert(this.$refs.dwlist); |
| | | //this.$refs.dwlist.initial(this) |
| | | }, |
| | | selectionChanged(patid) |
| | | { |
| | | alert(patid) |
| | | console.log("selection:"+patid) |
| | | } |
| | | } |