You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

178 lines
4.0 KiB

3 years ago
<template>
<div class="foreBox">
<el-table
:data="tableData"
style="width: 100%;margin-top: 32px"
@selection-change="handleSelectionChange"
>
<el-table-column
type="selection"
width="55"
/>
<el-table-column
align="center"
prop="name"
label="OD"
>
<template slot-scope="scope">
<!-- <inputSelect :arrayList="arrayList" @getInputNum="getInputNum" />-->
<div>
</div>
</template>
</el-table-column>
<el-table-column
prop="date"
label="同步"
align="center"
width="120"
>
<template slot-scope="scope">
<p><i class="el-icon-back" /></p>
<p style="margin-top: 5px"><i class="el-icon-back" style="transform: rotateY(180deg)" /></p>
</template>
</el-table-column>
<el-table-column
align="center"
prop="name"
label="OS"
/>
</el-table>
</div>
</template>
<script>
import inputSelect from '@/components/input-select'
import treeGrid from '@/components/360View/treeSelect'
import { dateFilterTwo } from '@/filters/index.js'
const Base64 = require('js-base64').Base64
export default {
components: {
inputSelect,
treeGrid
},
mixins: [],
props: {
patientIdNumber: {
type: String,
default: ''
},
patientId: {
type: String,
default: ''
}
},
inject: ['refresh'],
data() {
return {
checked: '',
radio2: '',
value: '',
shiliAndYanya: {},
multipleSelection: [],
arrayList: [
{
code: '1',
text: '111'
},
{
code: '3',
text: '333'
},
{
code: '5',
text: '555'
}
],
inputSelectData: '', // 接收子组件的值
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}],
options: [{
value: '选项1',
label: '红绿色盲'
}, {
value: '选项2',
label: '双皮奶'
}, {
value: '选项3',
label: '蚵仔煎'
}, {
value: '选项5',
label: '北京烤鸭'
}]
}
},
created() {
},
mounted() {
this.getShiLiAndYanYaData()
},
methods: {
// 获取子组件的值
getInputNum(data) {
console.log('this is data of input-select: ', data)
this.inputSelectData = data
},
async getShiLiAndYanYaData() {
const { data: res } = await this.$http.get('/patient/view/getYanZouAndYanYaData', {
params: {
patientId: '200203836'
// patientId: this.patientId
}
})
if (res.code === 0) {
this.shiliAndYanya = res.data
} else {
this.shiliAndYanya = {}
this.$message.error(res.msg)
}
},
handleSelectionChange(val) {
this.multipleSelection = val
},
// 查看报告
handleRecord() {
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
if (rowIndex % 2 === 0) {
return {
rowspan: 2,
colspan: 1
}
} else {
return {
rowspan: 0,
colspan: 0
}
}
}
},
// 共三个参数,依次为:传递给 data 属性的数组中该节点所对应的对象、节点对应的 Node、节点组件本身
handleMoveCopyNodeClick(data) {
this.currentNodeKey = data.id
}
}
}
</script>
<style lang="scss" scoped>
.foreBox{
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
overflow-y: auto;
}
</style>
<style lang="scss">
.foreBox{
}
</style>