|
|
@ -54,16 +54,16 @@ |
|
|
|
<el-table-column prop="brand" label="品牌" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.brandEyeTypeList && scope.row.brandEyeTypeList.length"> |
|
|
|
<span class="odType">{{ scope.row.brandEyeTypeList[0]. brand }}</span>/ |
|
|
|
<span class="osType">{{ scope.row.brandEyeTypeList[1].brand }}</span> |
|
|
|
<span class="odType">{{ scope.row.brandEyeTypeList[0]. brand }}</span> |
|
|
|
<span class="osType">{{ scope.row.brandEyeTypeList[1] ? '/' + scope.row.brandEyeTypeList[1].brand : '' }}</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="eyeType" label="眼别" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.brandEyeTypeList && scope.row.brandEyeTypeList.length"> |
|
|
|
<span class="odType">{{ scope.row.brandEyeTypeList[0].eyeType }}</span>/ |
|
|
|
<span class="osType">{{ scope.row.brandEyeTypeList[1].eyeType }}</span> |
|
|
|
<span class="odType">{{ scope.row.brandEyeTypeList[0].eyeType }}</span> |
|
|
|
<span class="osType">{{ scope.row.brandEyeTypeList[1] ? '/' + scope.row.brandEyeTypeList[1].eyeType : ''}}</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -100,10 +100,15 @@ |
|
|
|
<el-table-column prop="operation" label="操作" header-align="center" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span |
|
|
|
style="color: #1890ff; padding-right: 8px" |
|
|
|
style="color: #1890ff; padding-right: 16px" |
|
|
|
class="operation-details" |
|
|
|
@click="browseClick(scope.row)" |
|
|
|
>离焦眼镜</span> |
|
|
|
<span |
|
|
|
style="color: #ff183b;" |
|
|
|
class="operation-details" |
|
|
|
@click="handleDel(scope.row)" |
|
|
|
>删除</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -186,21 +191,39 @@ export default { |
|
|
|
this.detailViewVisible = true |
|
|
|
this.patientId = scopeRow.patientId |
|
|
|
this.patientIdNumber = scopeRow.patientIdNumber |
|
|
|
// this.$router.push({ |
|
|
|
// path: '/patientInfo', |
|
|
|
// query: { |
|
|
|
// info: this.$Base64.encode(JSON.stringify({ |
|
|
|
// patientIdNumber: scopeRow.patientIdNumber, |
|
|
|
// patientId: scopeRow.patientId |
|
|
|
// })) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
handleType(value, index) { |
|
|
|
this.curIndex = index |
|
|
|
this.dataForm.nextCheckFlag = value |
|
|
|
this.getDataListInitial() |
|
|
|
}, |
|
|
|
// 删除 |
|
|
|
handleDel(row) { |
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.deletePatient(row.id) |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消删除' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
async deletePatient(id) { |
|
|
|
const params = { |
|
|
|
id: id |
|
|
|
} |
|
|
|
const { data: res } = await this.$http.post('/defocused/delPatientInfo', params) |
|
|
|
if (res.code === 0) { |
|
|
|
this.$message.success('删除成功') |
|
|
|
await this.pageCurrentChangeHandle(this.page) |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 下拉选择医生 |
|
|
|
changeDoctor(value, scopeRow, type) { |
|
|
|
const params = {} |
|
|
|