|
@@ -255,13 +255,27 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: right; margin-bottom: 20px;">
|
|
<div style="text-align: right; margin-bottom: 20px;">
|
|
- <el-button type="primary" class="export-btn export-btn" @click="getExportField(xxx = 'table')">弹窗筛选</el-button>
|
|
|
|
- <el-button type="primary" class="export-btn export-btn" @click="getExportField(xxx = 'export')">导出筛选</el-button>
|
|
|
|
|
|
+ <el-button type="primary" class="export-btn export-btn" @click="getExportField(filterTypeName = 'table')">表格筛选</el-button>
|
|
|
|
+ <el-button type="primary" class="export-btn export-btn" @click="getExportField(filterTypeName = 'export')">数据导出</el-button>
|
|
|
|
+ <!--
|
|
<el-button type="primary" v-if="!isWhitelist" icon="el-icon-download" class="export-btn export-btn" @click="funExport('质控列表', '/qualityList')">导出数据</el-button>
|
|
<el-button type="primary" v-if="!isWhitelist" icon="el-icon-download" class="export-btn export-btn" @click="funExport('质控列表', '/qualityList')">导出数据</el-button>
|
|
|
|
+ -->
|
|
</div>
|
|
</div>
|
|
<el-table :data="tableData" style="width: 100%" v-if="tableOptions.length > 0">
|
|
<el-table :data="tableData" style="width: 100%" v-if="tableOptions.length > 0">
|
|
- <el-table-column :prop="item.prop" :label="item.name" width="80" align="center" v-for="(item,index) in tableOptions" :key="index"></el-table-column>
|
|
|
|
|
|
+ <template v-for="(item,index) in tableOptions">
|
|
|
|
+ <el-table-column v-if="item.prop == 'id'" type="index" label="序号" width="80" align="center" :key="index" ></el-table-column>
|
|
|
|
+ <el-table-column v-else-if="item.prop == 'AAA28'" :prop="item.prop" :label="item.name" :width="item.filed_width" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span class="blue" @click="funGoto(scope.row.MED_REC_ID)">{{ scope.row.AAA28 }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column v-else :prop="item.prop" :label="item.name" :width="item.filed_width" align="center" ></el-table-column>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
<!--
|
|
<!--
|
|
|
|
+ <template slot-scope="scope" v-if="item.prop == 'AAA28'">
|
|
|
|
+ <span class="blue" @click="funGoto(scope.row.MED_REC_ID)">{{ scope.row.AAA28 }}</span>
|
|
|
|
+ </template>
|
|
<el-table-column type="index" label="序号" width="80" align="center"></el-table-column>
|
|
<el-table-column type="index" label="序号" width="80" align="center"></el-table-column>
|
|
<el-table-column prop="AAA28" label="病案号" width="100" align="center">
|
|
<el-table-column prop="AAA28" label="病案号" width="100" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -372,7 +386,7 @@
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!--导出筛选-->
|
|
<!--导出筛选-->
|
|
- <el-dialog :title="xxx == 'table' ? '表单内容筛选': '导出内容筛选'" :visible.sync="exportFilter" width="1000px" center custom-class="custom-dialog">
|
|
|
|
|
|
+ <el-dialog :title="filterTypeName == 'table' ? '表单内容筛选': '导出内容筛选'" :visible.sync="exportFilter" width="1000px" center custom-class="custom-dialog">
|
|
<el-transfer
|
|
<el-transfer
|
|
ref="myTransfer"
|
|
ref="myTransfer"
|
|
filterable
|
|
filterable
|
|
@@ -389,8 +403,8 @@
|
|
</el-transfer>
|
|
</el-transfer>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click=" exportFilter = false">取消</el-button>
|
|
<el-button @click=" exportFilter = false">取消</el-button>
|
|
- <el-button type="primary" @click="exportExcel" v-if="xxx == 'export'">导出</el-button>
|
|
|
|
- <el-button type="primary" @click="tableChange" v-if="xxx == 'table'">确认</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="exportExcel" v-if="filterTypeName == 'export'">导出</el-button>
|
|
|
|
+ <el-button type="primary" @click="tableChange" v-if="filterTypeName == 'table'">确认</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -428,7 +442,7 @@ export default {
|
|
return {
|
|
return {
|
|
filterSearchKeyword:'',
|
|
filterSearchKeyword:'',
|
|
tableOptions:[],
|
|
tableOptions:[],
|
|
- xxx:'table',
|
|
|
|
|
|
+ filterTypeName:'table',
|
|
isExportDefault:true,//导出默认选择状态
|
|
isExportDefault:true,//导出默认选择状态
|
|
isExportAll:false,//导出全选状态
|
|
isExportAll:false,//导出全选状态
|
|
checkList:[],//导出选中list
|
|
checkList:[],//导出选中list
|
|
@@ -570,17 +584,15 @@ export default {
|
|
//把选中的数据转换成key=>value
|
|
//把选中的数据转换成key=>value
|
|
let checkArray = [];
|
|
let checkArray = [];
|
|
this.checkList.forEach((item)=>{
|
|
this.checkList.forEach((item)=>{
|
|
- console.log(item);
|
|
|
|
checkArray[item] = item;
|
|
checkArray[item] = item;
|
|
});
|
|
});
|
|
//处理表格显示的数据
|
|
//处理表格显示的数据
|
|
this.tableOptions = [];
|
|
this.tableOptions = [];
|
|
this.cityOptions.forEach((item,index)=>{
|
|
this.cityOptions.forEach((item,index)=>{
|
|
if (checkArray[item.id]){
|
|
if (checkArray[item.id]){
|
|
- this.tableOptions.push({'prop':item.filed_name,'name':item.name});
|
|
|
|
|
|
+ this.tableOptions.push({'prop':item.filed_name,'name':item.name,'filed_width':item.filed_width});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
this.exportFilter = false;
|
|
this.exportFilter = false;
|
|
},
|
|
},
|
|
//获取搜索条件
|
|
//获取搜索条件
|
|
@@ -687,7 +699,7 @@ export default {
|
|
{
|
|
{
|
|
this.$axios.post('/getExportField').then(res => {
|
|
this.$axios.post('/getExportField').then(res => {
|
|
this.cityOptions = res.data.fieldTable;
|
|
this.cityOptions = res.data.fieldTable;
|
|
- this.checkList = res.data.checkList;
|
|
|
|
|
|
+ this.checkList = this.checkList == "" ? res.data.checkList : this.checkList;
|
|
this.exportFilter = true;
|
|
this.exportFilter = true;
|
|
this.isExportDefault = true;
|
|
this.isExportDefault = true;
|
|
});
|
|
});
|