|
|
|
@ -275,34 +275,34 @@ |
|
|
|
/> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
:title="curRow.itemName" |
|
|
|
:visible.sync="previousResults" |
|
|
|
width="500px" |
|
|
|
:close-on-click-modal="true" |
|
|
|
:show-close="false" |
|
|
|
@close="resultsclose" |
|
|
|
> |
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
<el-tab-pane label="文字结果" name="first"> |
|
|
|
<el-table :data="gridData"> |
|
|
|
<el-table-column |
|
|
|
property="checkDate" |
|
|
|
label="检查日期" |
|
|
|
align="center" |
|
|
|
></el-table-column> |
|
|
|
<el-table-column |
|
|
|
property="itemResult" |
|
|
|
label="项目结果" |
|
|
|
align="center" |
|
|
|
></el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="折线图" name="second"> |
|
|
|
<div style="height: 400px; width: 500px" ref="chart1"></div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
:title="curRow.itemName" |
|
|
|
:visible.sync="previousResults" |
|
|
|
width="500px" |
|
|
|
:close-on-click-modal="true" |
|
|
|
:show-close="false" |
|
|
|
@close="resultsclose" |
|
|
|
> |
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
<el-tab-pane label="文字结果" name="first"> |
|
|
|
<el-table :data="gridData"> |
|
|
|
<el-table-column |
|
|
|
property="checkDate" |
|
|
|
label="检查日期" |
|
|
|
align="center" |
|
|
|
></el-table-column> |
|
|
|
<el-table-column |
|
|
|
property="itemResult" |
|
|
|
label="项目结果" |
|
|
|
align="center" |
|
|
|
></el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="折线图" name="second"> |
|
|
|
<div style="height: 400px; width: 500px" ref="chart1"></div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -321,7 +321,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
activeName: "first", |
|
|
|
previousResults:false, |
|
|
|
previousResults: false, |
|
|
|
gridData: [], |
|
|
|
resultStatus: [], //结果状态提示数据 |
|
|
|
tipsNormal: { |
|
|
|
@ -363,7 +363,11 @@ export default { |
|
|
|
}, |
|
|
|
symbols: [], //特殊符号 |
|
|
|
splitSymbols: [";", "、"], // 分隔符 |
|
|
|
userId: "", |
|
|
|
userInfo: { |
|
|
|
operatorType: "0", |
|
|
|
userId: "", |
|
|
|
user: "", |
|
|
|
}, |
|
|
|
|
|
|
|
// pacs 结果录入 |
|
|
|
pacsParams: { |
|
|
|
@ -374,7 +378,7 @@ export default { |
|
|
|
result: "", |
|
|
|
summary: "", |
|
|
|
}, |
|
|
|
curRow:{} |
|
|
|
curRow: {}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -385,8 +389,9 @@ export default { |
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
this.checkItemList(this.dataTransOpts.tableS.register_check.id); |
|
|
|
|
|
|
|
this.userId = window.sessionStorage.getItem("userId"); |
|
|
|
this.userInfo.operatorType = window.sessionStorage.getItem("operatorType") || '0'; |
|
|
|
this.userInfo.userId = window.sessionStorage.getItem("userId")||null; |
|
|
|
this.userInfo.user = window.sessionStorage.getItem("user")||null; |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -477,21 +482,21 @@ export default { |
|
|
|
itemId: row.itemId, |
|
|
|
}).then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
this.previousResults=true |
|
|
|
this.previousResults = true; |
|
|
|
this.gridData = res.data; |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.$nextTick(() => { |
|
|
|
this.initEcharts(); |
|
|
|
}) |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
initEcharts() { |
|
|
|
let yAxisData = []; |
|
|
|
let xAxisData = []; |
|
|
|
for(let i=0;i<this.gridData.length;i++){ |
|
|
|
if(this.gridData[i].checkDate){ |
|
|
|
xAxisData.push(this.gridData[i].checkDate) |
|
|
|
yAxisData.push(this.gridData[i].itemResult) |
|
|
|
for (let i = 0; i < this.gridData.length; i++) { |
|
|
|
if (this.gridData[i].checkDate) { |
|
|
|
xAxisData.push(this.gridData[i].checkDate); |
|
|
|
yAxisData.push(this.gridData[i].itemResult); |
|
|
|
} |
|
|
|
} |
|
|
|
let myChart = echarts.init(this.$refs.chart1); |
|
|
|
@ -542,10 +547,10 @@ export default { |
|
|
|
}, |
|
|
|
], |
|
|
|
}; |
|
|
|
myChart.setOption(option1) |
|
|
|
myChart.setOption(option1); |
|
|
|
}, |
|
|
|
resultsclose(){ |
|
|
|
this.activeName="first" |
|
|
|
resultsclose() { |
|
|
|
this.activeName = "first"; |
|
|
|
}, |
|
|
|
// chartTabs(tab) { |
|
|
|
// if (tab.name == "second") { |
|
|
|
@ -902,7 +907,10 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == "0") { |
|
|
|
this.doctorCheck.RegisterCheckEdit.checkDoctorId = this.userId; |
|
|
|
// 当前用户是检查医生时,默认当前用户 |
|
|
|
if(this.userInfo.operatorType == '1' || this.userInfo.operatorType == '3'){ |
|
|
|
this.doctorCheck.RegisterCheckEdit.checkDoctorId = this.userInfo.userId; |
|
|
|
} |
|
|
|
this.doctorCheck.RegisterCheckEdit.checkDate = new Date(); |
|
|
|
} |
|
|
|
return getapi( |
|
|
|
|