|
@@ -11,15 +11,25 @@
|
|
|
linkTo="KnowledgeMapRuleTest"
|
|
|
>
|
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
- <el-form-item style="marginBottom: 0px">
|
|
|
+ <el-form-item style="marginbottom: 0px">
|
|
|
<el-button size="mini" @click="exportData">导出</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</crumbs>
|
|
|
<div style="margin: 60px 20px 0">
|
|
|
<el-table :data="list" border>
|
|
|
- <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
|
|
|
- <el-table-column :resizable="false" prop="gmtModified" label="测试时间"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ :resizable="false"
|
|
|
+ type="index"
|
|
|
+ :index="indexMethod"
|
|
|
+ label="编号"
|
|
|
+ width="80"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ :resizable="false"
|
|
|
+ prop="gmtModified"
|
|
|
+ label="测试时间"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
:resizable="false"
|
|
|
prop="highriskItemName"
|
|
@@ -38,13 +48,13 @@
|
|
|
label="手术级别"
|
|
|
show-overflow-tooltip
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <el-table-column
|
|
|
:resizable="false"
|
|
|
prop="factorItemType"
|
|
|
label="禁忌项类型"
|
|
|
show-overflow-tooltip
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <el-table-column
|
|
|
:resizable="false"
|
|
|
prop="factorItemName"
|
|
|
label="禁忌项(标准术语)"
|
|
@@ -62,7 +72,12 @@
|
|
|
label="禁忌项输入值/结果"
|
|
|
show-overflow-tooltip
|
|
|
></el-table-column>
|
|
|
- <el-table-column :resizable="false" prop="output" label="实际结果" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ :resizable="false"
|
|
|
+ prop="output"
|
|
|
+ label="实际结果"
|
|
|
+ show-overflow-tooltip
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
:resizable="false"
|
|
|
prop="expectedOutput"
|
|
@@ -70,7 +85,9 @@
|
|
|
show-overflow-tooltip
|
|
|
></el-table-column>
|
|
|
<el-table-column label="测试结果">
|
|
|
- <template slot-scope="scope">{{ scope.row.success === 1 ? '成功' : '失败' }}</template>
|
|
|
+ <template slot-scope="scope">{{
|
|
|
+ scope.row.success === 1 ? '成功' : '失败'
|
|
|
+ }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
v-if="type !== 'success'"
|
|
@@ -109,7 +126,7 @@ export default {
|
|
|
pageSizeArr: config.pageSizeArr,
|
|
|
pageLayout: config.pageLayout,
|
|
|
total: 0,
|
|
|
- type: ''
|
|
|
+ type: '',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -121,7 +138,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
- next(vm => {
|
|
|
+ next((vm) => {
|
|
|
Object.assign(vm, to.params);
|
|
|
vm.inCurrentPage = to.params.currentPage;
|
|
|
});
|
|
@@ -132,7 +149,7 @@ export default {
|
|
|
this.type = type;
|
|
|
return {
|
|
|
resultId: data && data.resultId,
|
|
|
- success: type === 'success' ? 1 : 0
|
|
|
+ success: type === 'success' ? 1 : 0,
|
|
|
};
|
|
|
},
|
|
|
indexMethod(index) {
|
|
@@ -159,9 +176,9 @@ export default {
|
|
|
lock: true,
|
|
|
text: 'Loading',
|
|
|
spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
});
|
|
|
- api.getResultHighriskOperationPage(params).then(res => {
|
|
|
+ api.getResultHighriskOperationPage(params).then((res) => {
|
|
|
loading.close();
|
|
|
if (res.data.code === '0') {
|
|
|
this.list = res.data.data && res.data.data.records;
|
|
@@ -174,8 +191,31 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 导出
|
|
|
- exportData() {}
|
|
|
- }
|
|
|
+ exportData() {
|
|
|
+ const { data, hospitalId, hospitalName, type } = this.$route.params;
|
|
|
+ let params = {
|
|
|
+ success: type === 'success' ? 1 : 0,
|
|
|
+ resultId: data.resultId,
|
|
|
+ };
|
|
|
+ this.$alert('确定要导出规则测试结果吗?', '', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ title: '提示',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ api.highriskOperationExportExcel(params).then((res) => {
|
|
|
+ if (res.status === 200) {
|
|
|
+ this.$message({ message: '导出成功', type: 'success' });
|
|
|
+ utils.downloadExportedData(
|
|
|
+ res.data,
|
|
|
+ `${hospitalName}-高风险提示_高危手术整合规则测试结果.xls`
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|