|
@@ -1,24 +1,61 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<crumbs
|
|
<crumbs
|
|
- title="缺少静态知识的医院术语-诊断"
|
|
|
|
|
|
+ :title="title"
|
|
class="topBack"
|
|
class="topBack"
|
|
:param="$route.params"
|
|
:param="$route.params"
|
|
- linkTo="KnowledgeMapRuleTest"
|
|
|
|
|
|
+ linkTo="StaticKnowledgeMapTest"
|
|
>
|
|
>
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<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-button size="mini" @click="exportData">导出</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</crumbs>
|
|
</crumbs>
|
|
<div style="margin: 60px 20px 0">
|
|
<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" prop="hisName" label="医院术语" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="标准术语" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="静态知识标识" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <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"
|
|
|
|
+ prop="hisName"
|
|
|
|
+ :label="caseName === '检验' ? '医院术语(检验套餐)' : '医院术语'"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="hisDetailName"
|
|
|
|
+ label="医院术语(检验细项)"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ v-if="caseName === '检验'"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="name"
|
|
|
|
+ label="标准术语"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-if="type === 'lessStatic'"
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="hasStaticKnowledge"
|
|
|
|
+ label="静态知识标识"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.hasStaticKnowledge === 0 ? '无' : '有' }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<div class="pagination pagepage">
|
|
<div class="pagination pagepage">
|
|
<el-pagination
|
|
<el-pagination
|
|
@@ -48,24 +85,42 @@ export default {
|
|
pageSize: config.pageSize,
|
|
pageSize: config.pageSize,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageLayout: config.pageLayout,
|
|
pageLayout: config.pageLayout,
|
|
- total: 0
|
|
|
|
|
|
+ total: 0,
|
|
|
|
+ caseName: '',
|
|
|
|
+ type: '', // 来自什么页面 noMap/lessStatic
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.getDataList()
|
|
|
|
|
|
+ this._initData();
|
|
|
|
+ this.getDataList();
|
|
// 非首页 编辑页返回 设置 this.currentPage
|
|
// 非首页 编辑页返回 设置 this.currentPage
|
|
if (Object.keys(this.$route.params).length !== 0) {
|
|
if (Object.keys(this.$route.params).length !== 0) {
|
|
this.currentPage = this.$route.params.currentPage;
|
|
this.currentPage = this.$route.params.currentPage;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ title() {
|
|
|
|
+ let text = '';
|
|
|
|
+ if (this.type === 'noMap') {
|
|
|
|
+ text = '未映射到标准术语的医院术语-';
|
|
|
|
+ } else if (this.type === 'lessStatic') {
|
|
|
|
+ text = '缺少静态知识的医院术语-';
|
|
|
|
+ }
|
|
|
|
+ return text + this.caseName;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
beforeRouteEnter(to, from, next) {
|
|
beforeRouteEnter(to, from, next) {
|
|
- next(vm => {
|
|
|
|
- //const pm = to.param;
|
|
|
|
|
|
+ next((vm) => {
|
|
Object.assign(vm, to.params);
|
|
Object.assign(vm, to.params);
|
|
vm.inCurrentPage = to.params.currentPage;
|
|
vm.inCurrentPage = to.params.currentPage;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ _initData() {
|
|
|
|
+ const { data, type } = this.$route.params;
|
|
|
|
+ this.caseName = (data && data.caseName) || '';
|
|
|
|
+ this.type = type;
|
|
|
|
+ },
|
|
indexMethod(index) {
|
|
indexMethod(index) {
|
|
return (this.currentPage - 1) * this.pageSize + index + 1;
|
|
return (this.currentPage - 1) * this.pageSize + index + 1;
|
|
},
|
|
},
|
|
@@ -83,12 +138,89 @@ export default {
|
|
this.getDataList();
|
|
this.getDataList();
|
|
},
|
|
},
|
|
|
|
|
|
- getDataList(){
|
|
|
|
|
|
+ handleParams() {
|
|
|
|
+ const { data, type } = this.$route.params;
|
|
|
|
+ let params = {
|
|
|
|
+ resultId: data.resultId, //结果id
|
|
|
|
+ };
|
|
|
|
+ if (type === 'noMap') {
|
|
|
|
+ //是否映射到标准术语(0:否,1:是)
|
|
|
|
+ params = { ...params, hasStandName: 0 };
|
|
|
|
+ } else if (type === 'lessStatic') {
|
|
|
|
+ //是否有静态知识(0:无,1:有)
|
|
|
|
+ params = { ...params, hasStaticKnowledge: 0 };
|
|
|
|
+ }
|
|
|
|
+ return params;
|
|
|
|
+ },
|
|
|
|
+ getDataList() {
|
|
|
|
+ const params = this.handleParams();
|
|
|
|
+ this.searched = true;
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: 'Loading',
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
+ });
|
|
|
|
+ api.getStaticPage(params).then((res) => {
|
|
|
|
+ loading.close();
|
|
|
|
+ if (res.data.code === '0') {
|
|
|
|
+ this.list = res.data.data && res.data.data.records;
|
|
|
|
+ }
|
|
|
|
+ this.total = res.data.data && res.data.data.total;
|
|
|
|
+ if (this.inCurrentPage !== undefined) {
|
|
|
|
+ this.currentPage = this.inCurrentPage;
|
|
|
|
+ this.inCurrentPage = undefined;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // excel文件名处理
|
|
|
|
+ handleExcelName() {
|
|
|
|
+ const { data, hospitalId, hospitalName, type } = this.$route.params;
|
|
|
|
+ let exportText = ''; // excel文件名
|
|
|
|
|
|
|
|
+ return exportText;
|
|
},
|
|
},
|
|
// 导出
|
|
// 导出
|
|
- exportData() {}
|
|
|
|
- }
|
|
|
|
|
|
+ exportData() {
|
|
|
|
+ const { data, hospitalId, hospitalName, type } = this.$route.params;
|
|
|
|
+ let requestAjax;
|
|
|
|
+ let exportText; // excel文件名
|
|
|
|
+ let params = {
|
|
|
|
+ resultId: data.resultId,
|
|
|
|
+ };
|
|
|
|
+ if (data.caseName === '检验' && type === 'noMap') {
|
|
|
|
+ requestAjax = 'exportStaticLisExcel';
|
|
|
|
+ exportText = `${hospitalName}-未映射到标准术语的${data.caseName}医院术语.xls`;
|
|
|
|
+ params = { ...params, hasStandName: 0 };
|
|
|
|
+ } else if (data.caseName !== '检验' && type === 'noMap') {
|
|
|
|
+ requestAjax = 'exportStaticCommonExcel';
|
|
|
|
+ exportText = `${hospitalName}-未映射到标准术语的${data.caseName}医院术语.xls`;
|
|
|
|
+ params = { ...params, hasStandName: 0 };
|
|
|
|
+ } else if (data.caseName === '检验' && type === 'lessStatic') {
|
|
|
|
+ requestAjax = 'exportStaticLisStaticExcel';
|
|
|
|
+ exportText = `${hospitalName}-缺少静态知识的${data.caseName}医院术语.xls`;
|
|
|
|
+ params = { ...params, hasStaticKnowledge: 0 };
|
|
|
|
+ } else if (data.caseName !== '检验' && type === 'lessStatic') {
|
|
|
|
+ requestAjax = 'exportStaticCommonStaticExcel';
|
|
|
|
+ exportText = `${hospitalName}-缺少静态知识的${data.caseName}医院术语.xls`;
|
|
|
|
+ params = { ...params, hasStaticKnowledge: 0 };
|
|
|
|
+ }
|
|
|
|
+ this.$alert('确定要导出静态知识映射测试结果吗?', '', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ title: '提示',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ api[requestAjax](params).then((res) => {
|
|
|
|
+ if (res.status === 200) {
|
|
|
|
+ this.$message({ message: '导出成功', type: 'success' });
|
|
|
|
+ utils.downloadExportedData(res.data, exportText);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|