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.

261 lines
6.1 KiB

3 years ago
<template>
<div class="specialBox">
<el-table
:data="tableData"
style="width: 100%;margin-top: 16px"
>
<el-table-column
prop="date"
label="时间"
width="180"
/>
<el-table-column
prop="name"
label="检查项目"
width="180"
/>
<el-table-column
prop="name"
label="检查报告"
width="180"
>
<template slot-scope="scope">
<el-button type="text" size="small" @click.native.prevent="handleRecord(scope.$index, tableData4)">
当次报告
</el-button>
<el-button type="text" size="small" @click.native.prevent="handleRecord(scope.$index, tableData4)">
所有报告
</el-button>
</template>
</el-table-column>
</el-table>
<div style="margin: 16px 0 0 16px">
<div style="display: flex;justify-content: space-between">
<span style="font-size: 16px;font-weight: 500;color: rgba(0, 0, 0, 0.88);margin-top: 4px">提取数据</span>
<div size="small" style="display:inline-block;margin-left:10px;width: 32px;height: 32px;line-height:32px;text-align:center;background-color: #1e79ff;border-radius: 4px;vertical-align: middle">
<img :src="require('@/assets/img/data.png')" alt="" style="width: 17px;height: 16px;margin-bottom: 2px">
</div>
</div>
<el-table
class="tableBox"
:data="tableData"
style="width: 100%;margin-top: 16px"
@selection-change="handleSelectionChange"
>
<el-table-column
type="selection"
width="55"
/>
<el-table-column
prop="date"
label="名称"
width="120"
/>
<el-table-column
prop="name"
label="OD"
width="120"
/>
<el-table-column
prop="name"
label="OS"
width="180"
/>
<el-table-column
prop="name"
label="OU"
width="120"
/>
</el-table>
</div>
</div>
</template>
<script>
import { dateFilterTwo } from '@/filters/index.js'
const Base64 = require('js-base64').Base64
export default {
components: {
},
mixins: [],
props: {
editorIDName: {
type: String,
default: ''
},
patientIdNumber: {
type: String,
default: ''
},
patientId: {
type: String,
default: ''
},
currentArchiveList: {
type: Object,
default: () => { }
}
},
inject: ['refresh'],
data() {
return {
checked: '',
radio2: '',
value: '',
shiliAndYanya: {},
multipleSelection: [],
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: {
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>
.specialBox{
width: 100%;
height: 100%;
display: flex;
box-sizing: border-box;
overflow-y: auto;
.header{
width: 100%;
display: flex;
justify-content: space-between;
height: 49px;
line-height: 49px;
padding: 0px 16px;
box-sizing: border-box;
margin-bottom: 32px;
border: 1px solid rgba(0, 0, 0, 0.06);
}
.content{
width: 100%;
//display: flex;
//justify-content: space-between;
box-sizing: border-box;
}
.lineBox{
//width: 48%;
width: 100%;
height: 260px;
padding: 16px;
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.06);
margin-bottom: 32px;
}
.scroll-echearts {
padding: 5px 0;
flex: 1;
margin-bottom: 16px;
//background: #171515;
border-radius: 4px;
}
.eyeBox{
width: 480px;
height: 180px;
display: flex;
margin-left: 32px;
border: 1px solid rgba(0, 0, 0, 0.06);
.eye{
width: 50%;
display: flex;
flex-direction: column;
div{
height: 45px;
line-height: 45px;
text-align: center;
}
.info{
display: flex;
justify-content: space-between;
padding: 0 14px;
border-top: 1px solid rgba(0, 0, 0, 0.06);
}
}
.el{
background: rgba(0, 0, 0, 0.04);
}
}
.mr30{
margin-right: 30px;
}
}
</style>
<style lang="scss">
.specialBox{
.el-table th{
background-color: #FAFAFA;
}
}
</style>