|
@@ -5,7 +5,7 @@
|
|
<div class="titlebox">
|
|
<div class="titlebox">
|
|
<div class="titlebox-text">病案首页数据导入</div>
|
|
<div class="titlebox-text">病案首页数据导入</div>
|
|
<div class="switch-box">
|
|
<div class="switch-box">
|
|
- <el-switch v-model="switch_value" active-color="#185da6"></el-switch>
|
|
|
|
|
|
+ <el-switch v-model="switch_value" active-color="#185da6" disabled="true"></el-switch>
|
|
<div class="switch-text">{{ switch_value?'上传 + 质控':'上传' }}</div>
|
|
<div class="switch-text">{{ switch_value?'上传 + 质控':'上传' }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -32,9 +32,9 @@
|
|
|
|
|
|
<div class="titlebox">
|
|
<div class="titlebox">
|
|
<div class="titlebox-text">导入结果</div>
|
|
<div class="titlebox-text">导入结果</div>
|
|
- <div><el-button type="primary" size="small" class="export-btn">导出数据</el-button></div>
|
|
|
|
|
|
+ <!-- <div><el-button type="primary" size="small" class="export-btn">导出数据</el-button></div> -->
|
|
</div>
|
|
</div>
|
|
- <p>共上传: {{ sum_count }}份<span style="padding-left: 20px;">导入失败: {{ error_count }}份</span></p>
|
|
|
|
|
|
+ <p style="margin-top: 10px;">共上传: {{ sum_count }}份<span style="padding-left: 20px;">导入失败: {{ error_count }}份</span></p>
|
|
<div class="table-block">
|
|
<div class="table-block">
|
|
<el-table :data="tableData" style="width: 100%">
|
|
<el-table :data="tableData" style="width: 100%">
|
|
<el-table-column prop="hospital_name" align="center" label="医院名称"></el-table-column>
|
|
<el-table-column prop="hospital_name" align="center" label="医院名称"></el-table-column>
|
|
@@ -47,9 +47,9 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
- <div class="footers">
|
|
|
|
|
|
+ <!-- <div class="footers">
|
|
<mPagination v-if="tableData && tableData.length !== 0" layout="sizes, prev, pager, next, slot" :data="paginationData" @sizeChange="handleSizeChange" @pageChangeEvent="pageHasChanged"></mPagination>
|
|
<mPagination v-if="tableData && tableData.length !== 0" layout="sizes, prev, pager, next, slot" :data="paginationData" @sizeChange="handleSizeChange" @pageChangeEvent="pageHasChanged"></mPagination>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -69,11 +69,6 @@ export default {
|
|
tableData: [],
|
|
tableData: [],
|
|
sum_count: 0, //导入总数
|
|
sum_count: 0, //导入总数
|
|
error_count: 0, // 导入失败数
|
|
error_count: 0, // 导入失败数
|
|
- paginationData: {
|
|
|
|
- total: 10,
|
|
|
|
- currentPage: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- },
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -83,29 +78,6 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
- funQuery() {
|
|
|
|
- this.getList(); //获取列表
|
|
|
|
- },
|
|
|
|
- pageHasChanged() {
|
|
|
|
- this.funQuery();
|
|
|
|
- },
|
|
|
|
- handleSizeChange(size) {
|
|
|
|
- this.paginationData.currentPage = 1
|
|
|
|
- this.paginationData.pageSize = size
|
|
|
|
- this.funQuery();
|
|
|
|
- },
|
|
|
|
- getList(){
|
|
|
|
- let pramse = {
|
|
|
|
- page: this.paginationData.currentPage, //页码
|
|
|
|
- limit: this.paginationData.pageSize, //条数
|
|
|
|
- };
|
|
|
|
- this.$axios.post('', pramse).then(res => {
|
|
|
|
-
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
// 选择的文件超出限制的文件总数量时触发
|
|
// 选择的文件超出限制的文件总数量时触发
|
|
limitCheck() {
|
|
limitCheck() {
|
|
@@ -120,6 +92,10 @@ export default {
|
|
this.$axios.post('/bl_import/importData',formData,{'Content-Type': 'multipart/form-data'}).then( res=>{
|
|
this.$axios.post('/bl_import/importData',formData,{'Content-Type': 'multipart/form-data'}).then( res=>{
|
|
console.log(res)
|
|
console.log(res)
|
|
console.log("上传完成")
|
|
console.log("上传完成")
|
|
|
|
+ this.fileList = [];
|
|
|
|
+ this.tableData = res.data.list;
|
|
|
|
+ this.sum_count = res.data.sum_count; //导入总数
|
|
|
|
+ this.error_count = res.data.error_count; // 导入失败数
|
|
}).catch( e=>{
|
|
}).catch( e=>{
|
|
console.log('erro')
|
|
console.log('erro')
|
|
})
|
|
})
|