|
@@ -5,7 +5,7 @@
|
|
<el-form-item style="marginBottom: 0px">
|
|
<el-form-item style="marginBottom: 0px">
|
|
<el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
|
|
<el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
|
|
<input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
|
|
<input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
|
|
- <el-button size="mini" @click="handleMatchData" >预匹配</el-button>
|
|
|
|
|
|
+ <el-button size="mini" @click="handleMatchData">预匹配</el-button>
|
|
<el-button size="mini" @click="importPage" style="margin:0 10px">{{uploadInfo}}</el-button>
|
|
<el-button size="mini" @click="importPage" style="margin:0 10px">{{uploadInfo}}</el-button>
|
|
<input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
|
|
<input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
|
|
<el-button size="mini" @click="exportData">导出</el-button>
|
|
<el-button size="mini" @click="exportData">导出</el-button>
|
|
@@ -15,7 +15,27 @@
|
|
<div class="searchBar">
|
|
<div class="searchBar">
|
|
<div class="searchContent">
|
|
<div class="searchContent">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
- <el-form-item label class="selectMedicine">
|
|
|
|
|
|
+ <el-form-item class="selectMedicine" label="标准术语状态:">
|
|
|
|
+ <el-select size="mini" v-model="filter.status" placeholder="请选择" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in statusList"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="剂型术语状态:" class="selectMedicine">
|
|
|
|
+ <el-select size="mini" v-model="filter.formStatus" placeholder="请选择" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in formstatusList"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="匹配状态:" class="selectMedicine">
|
|
<el-select size="mini" v-model="filter.match" placeholder="请选择" clearable>
|
|
<el-select size="mini" v-model="filter.match" placeholder="请选择" clearable>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in matchList"
|
|
v-for="item in matchList"
|
|
@@ -31,6 +51,8 @@
|
|
<el-form-item label="标准药品名称:">
|
|
<el-form-item label="标准药品名称:">
|
|
<el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
|
|
<el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <el-form :inline="true" class="demo-form-inline">
|
|
<el-form-item class="dododo">
|
|
<el-form-item class="dododo">
|
|
<el-button size="mini" @click="filterDatas">检索</el-button>
|
|
<el-button size="mini" @click="filterDatas">检索</el-button>
|
|
<el-button size="mini" type="warning" @click="addRelation">添加关联</el-button>
|
|
<el-button size="mini" type="warning" @click="addRelation">添加关联</el-button>
|
|
@@ -38,6 +60,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<div class="contentsOther">
|
|
<div class="contentsOther">
|
|
<el-table :data="list" border style="width: 100%">
|
|
<el-table :data="list" border style="width: 100%">
|
|
<el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
|
|
<el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
|
|
@@ -45,7 +68,22 @@
|
|
<el-table-column :resizable="false" prop="hisName" label="医院药品名称" show-overflow-tooltip></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-column :resizable="false" prop="form" label="药品剂型" show-overflow-tooltip></el-table-column>
|
|
<el-table-column :resizable="false" prop="form" label="药品剂型" show-overflow-tooltip></el-table-column>
|
|
- <el-table-column :resizable="false" prop="operate" label="状态">
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column :resizable="false" prop="operate" label="标准术语状态">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span
|
|
|
|
+ v-if="scope.row.uniqueName && scope.row.uniqueName!=''"
|
|
|
|
+ >{{scope.row.status == 0?'禁用':'启用'}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :resizable="false" prop="operate" label="剂型术语状态">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span
|
|
|
|
+ v-if="scope.row.form && scope.row.form!=''"
|
|
|
|
+ >{{scope.row.formStatus == 0?'禁用':'启用'}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column :resizable="false" prop="operate" label="匹配状态">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
|
|
<span>{{scope.row.isMatch == 0?'未匹配':'已匹配'}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -110,8 +148,20 @@ export default {
|
|
filter: {
|
|
filter: {
|
|
hisName: '', // 医院诊断名称
|
|
hisName: '', // 医院诊断名称
|
|
uniqueName: '', //标准诊断名称
|
|
uniqueName: '', //标准诊断名称
|
|
- match:''
|
|
|
|
|
|
+ match: '',
|
|
|
|
+ status: '',
|
|
|
|
+ formStatus: ''
|
|
},
|
|
},
|
|
|
|
+ statusList: [
|
|
|
|
+ { id: '', name: '全部' },
|
|
|
|
+ { id: 1, name: '启用' },
|
|
|
|
+ { id: 0, name: '禁用' }
|
|
|
|
+ ],
|
|
|
|
+ formstatusList: [
|
|
|
|
+ { id: '', name: '全部' },
|
|
|
|
+ { id: 1, name: '启用' },
|
|
|
|
+ { id: 0, name: '禁用' }
|
|
|
|
+ ],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: config.pageSize,
|
|
pageSize: config.pageSize,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageSizeArr: config.pageSizeArr,
|
|
@@ -125,13 +175,14 @@ export default {
|
|
data: {}
|
|
data: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- components:{
|
|
|
|
|
|
+ components: {
|
|
LtModal
|
|
LtModal
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
const { data } = this.$route.params;
|
|
const { data } = this.$route.params;
|
|
- this.hospitaiName = (data && data.name) || '';
|
|
|
|
- this.hospitalId = data && data.hospitalId;
|
|
|
|
|
|
+ this.hospitaiName = (data && data.name) || localStorage.getItem('name');
|
|
|
|
+ this.hospitalId =
|
|
|
|
+ (data && data.hospitalId) || localStorage.getItem('hospitalId');
|
|
const that = this;
|
|
const that = this;
|
|
//返回时避免参数未赋值就获取列表
|
|
//返回时避免参数未赋值就获取列表
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
@@ -166,6 +217,11 @@ export default {
|
|
// 导入数据
|
|
// 导入数据
|
|
uploadFileMatch(e) {
|
|
uploadFileMatch(e) {
|
|
let fileInfo = e.target.files[0];
|
|
let fileInfo = e.target.files[0];
|
|
|
|
+ let extend = fileInfo.name.substring(fileInfo.name.lastIndexOf('.') + 1);
|
|
|
|
+ if (extend != 'xls' && extend != 'xlsx') {
|
|
|
|
+ this.$message({ message: '请根据模板进行导入', type: 'error' });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
let formData = new FormData();
|
|
let formData = new FormData();
|
|
formData.append('file', fileInfo);
|
|
formData.append('file', fileInfo);
|
|
@@ -182,7 +238,7 @@ export default {
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
});
|
|
api.dataDrugVerify(formData, header).then(res => {
|
|
api.dataDrugVerify(formData, header).then(res => {
|
|
- if ((res.data.code === '00020007' || res.data.code === '00020004')) {
|
|
|
|
|
|
+ if (res.data.code === '00020007' || res.data.code === '00020004') {
|
|
loading.close();
|
|
loading.close();
|
|
this.$alert(`${res.data.msg}`, '提示', {
|
|
this.$alert(`${res.data.msg}`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -255,9 +311,12 @@ export default {
|
|
hisName: this.filter.hisName.trim(),
|
|
hisName: this.filter.hisName.trim(),
|
|
uniqueName: this.filter.uniqueName.trim(),
|
|
uniqueName: this.filter.uniqueName.trim(),
|
|
uniqueCode: '',
|
|
uniqueCode: '',
|
|
- hospitalId: data && data.hospitalId,
|
|
|
|
|
|
+ hospitalId:
|
|
|
|
+ (data && data.hospitalId) || localStorage.getItem('hospitalId'),
|
|
type: 5,
|
|
type: 5,
|
|
- isMatch:this.filter.match
|
|
|
|
|
|
+ isMatch: this.filter.match,
|
|
|
|
+ status: this.filter.status,
|
|
|
|
+ formStatus: this.filter.formStatus
|
|
};
|
|
};
|
|
return param;
|
|
return param;
|
|
},
|
|
},
|
|
@@ -282,8 +341,8 @@ export default {
|
|
// hospitaiName: this.hospitaiName
|
|
// hospitaiName: this.hospitaiName
|
|
// })
|
|
// })
|
|
// });
|
|
// });
|
|
- this.data={}
|
|
|
|
- this.showModal()
|
|
|
|
|
|
+ this.data = {};
|
|
|
|
+ this.showModal();
|
|
},
|
|
},
|
|
// 修改诊断关联-跳转至编辑页面
|
|
// 修改诊断关联-跳转至编辑页面
|
|
modifyRelation(row) {
|
|
modifyRelation(row) {
|
|
@@ -303,8 +362,8 @@ export default {
|
|
// hospitaiName: this.hospitaiName
|
|
// hospitaiName: this.hospitaiName
|
|
// })
|
|
// })
|
|
// });
|
|
// });
|
|
- this.data = item
|
|
|
|
- this.showModal()
|
|
|
|
|
|
+ this.data = item;
|
|
|
|
+ this.showModal();
|
|
},
|
|
},
|
|
currentChange(next) {
|
|
currentChange(next) {
|
|
this.currentPage = next;
|
|
this.currentPage = next;
|
|
@@ -407,12 +466,18 @@ export default {
|
|
// }
|
|
// }
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- api.exportDrugRecord({ hospitalId: this.hospitalId,type:5,isMatch:this.filter.match }).then(res => {
|
|
|
|
- if (res.status === 200) {
|
|
|
|
- this.$message({ message: '导出成功', type: 'success' });
|
|
|
|
- utils.downloadExportedData(res.data, '药品关联数据.xls');
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ api
|
|
|
|
+ .exportDrugRecord({
|
|
|
|
+ hospitalId: this.hospitalId,
|
|
|
|
+ type: 5,
|
|
|
|
+ isMatch: this.filter.match
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.status === 200) {
|
|
|
|
+ this.$message({ message: '导出成功', type: 'success' });
|
|
|
|
+ utils.downloadExportedData(res.data, '药品关联数据.xls');
|
|
|
|
+ }
|
|
|
|
+ });
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
// this.$message({ message: '导出失败', type: 'waring' });
|
|
// this.$message({ message: '导出失败', type: 'waring' });
|
|
@@ -421,7 +486,7 @@ export default {
|
|
|
|
|
|
// 导入模板
|
|
// 导入模板
|
|
exportModule() {
|
|
exportModule() {
|
|
- api.exportDrugModule({type:5}).then(res => {
|
|
|
|
|
|
+ api.exportDrugModule({ type: 5 }).then(res => {
|
|
if (res.status === 200) {
|
|
if (res.status === 200) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
utils.downloadExportedData(res.data, '药品导入模板.xls');
|
|
utils.downloadExportedData(res.data, '药品导入模板.xls');
|
|
@@ -438,6 +503,11 @@ export default {
|
|
// 导入数据
|
|
// 导入数据
|
|
uploadFile(e) {
|
|
uploadFile(e) {
|
|
let fileInfo = e.target.files[0];
|
|
let fileInfo = e.target.files[0];
|
|
|
|
+ let extend = fileInfo.name.substring(fileInfo.name.lastIndexOf('.') + 1);
|
|
|
|
+ if (extend != 'xls' && extend != 'xlsx') {
|
|
|
|
+ this.$message({ message: '请根据模板进行导入', type: 'error' });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
let formData = new FormData();
|
|
let formData = new FormData();
|
|
formData.append('file', fileInfo);
|
|
formData.append('file', fileInfo);
|
|
@@ -449,60 +519,145 @@ export default {
|
|
'Content-Type': 'multipart/form-data'
|
|
'Content-Type': 'multipart/form-data'
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- this.uploadInfo = '导入中...';
|
|
|
|
- api.importDrugRecord(formData, header).then(res => {
|
|
|
|
- // console.log(res, '======================res导入结果');
|
|
|
|
- if (res.data.code === '00000001') {
|
|
|
|
- this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- // cancelButtonText: '取消',
|
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
|
- // customClass: 'exportConfirm',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
- this.getDataList(); // 重新获取列表
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.uploadInfo = '导入';
|
|
|
|
- }, 300);
|
|
|
|
- } else if ((res.data.data === true && res.status === 200)) {
|
|
|
|
- this.$alert(`导入成功`, '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- // cancelButtonText: '取消',
|
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
|
- // customClass: 'exportConfirm',
|
|
|
|
- type: 'success'
|
|
|
|
- })
|
|
|
|
- .then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
- this.getDataList(); // 重新获取列表
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.uploadInfo = '导入';
|
|
|
|
- }, 300);
|
|
|
|
- } else {
|
|
|
|
- this.$alert(`${res.data.msg}`, '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- // // cancelButtonText: '取消',
|
|
|
|
- // cancelButtonClass: 'cancelSure',
|
|
|
|
- // confirmButtonClass: 'sure',
|
|
|
|
- // customClass: 'exportConfirm',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ // this.uploadInfo = '导入中...';
|
|
|
|
+ // api.importExcelDataVerify(formData, header).then(res => {
|
|
|
|
+ // if (res.data.code === '00020001') {
|
|
|
|
+ // this.$confirm(`${res.data.msg}`, '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {
|
|
|
|
+ // this.importDrugRecord(formData, header)
|
|
|
|
+ // })
|
|
|
|
+ // .catch(() => {
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.uploadInfo = '导入';
|
|
|
|
+ // }, 300);
|
|
|
|
+ // });
|
|
|
|
+ // } else if (res.data.data === true) {
|
|
|
|
+ // this.importDrugRecord(formData, header)
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$alert(`${res.data.msg}`, '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // // cancelButtonText: '取消',
|
|
|
|
+ // // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // // confirmButtonClass: 'sure',
|
|
|
|
+ // // customClass: 'exportConfirm',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {})
|
|
|
|
+ // .catch(() => {});
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.uploadInfo = '导入';
|
|
|
|
- }, 300);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.uploadInfo = '导入';
|
|
|
|
+ // }, 300);
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ this.importDrugRecord(formData, header);
|
|
//解决上传相同文件不触发change
|
|
//解决上传相同文件不触发change
|
|
let inp = document.getElementById('upFile');
|
|
let inp = document.getElementById('upFile');
|
|
inp.value = '';
|
|
inp.value = '';
|
|
},
|
|
},
|
|
|
|
+ importDrugRecord(formData, header) {
|
|
|
|
+ let that = this;
|
|
|
|
+ api.importDrugRecord(formData, header).then(res => {
|
|
|
|
+ if (res.headers['content-disposition']) {
|
|
|
|
+ this.downloadUrl(res);
|
|
|
|
+ this.getDataList();
|
|
|
|
+ } else {
|
|
|
|
+ let r = new FileReader();
|
|
|
|
+ r.onload = function() {
|
|
|
|
+ console.log(this.result);
|
|
|
|
+ if (this.result) {
|
|
|
|
+ const code = JSON.parse(this.result);
|
|
|
|
+ if (code.code === '00020007') {
|
|
|
|
+ that
|
|
|
|
+ .$alert(`${code.msg}`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ .then(() => {})
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ that.$alert(`导入成功`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
+ // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // confirmButtonClass: 'sure',
|
|
|
|
+ // customClass: 'exportConfirm',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ that.getDataList();
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+ r.readAsText(res.data);
|
|
|
|
+ }
|
|
|
|
+ // if ((res.data.code === '00020007')) {
|
|
|
|
+ // this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // // cancelButtonText: '取消',
|
|
|
|
+ // // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // // confirmButtonClass: 'sure',
|
|
|
|
+ // // customClass: 'exportConfirm',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {})
|
|
|
|
+ // .catch(() => {});
|
|
|
|
+ // this.getDataList(); // 重新获取列表
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.uploadInfo = '导入';
|
|
|
|
+ // }, 300);
|
|
|
|
+ // } else if (res.data.data === true && res.status === 200) {
|
|
|
|
+ // this.$alert(`导入成功`, '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // // cancelButtonText: '取消',
|
|
|
|
+ // // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // // confirmButtonClass: 'sure',
|
|
|
|
+ // // customClass: 'exportConfirm',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {})
|
|
|
|
+ // .catch(() => {});
|
|
|
|
+ // this.getDataList(); // 重新获取列表
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.uploadInfo = '导入';
|
|
|
|
+ // }, 300);
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$alert(`${res.data.msg}`, '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // // // cancelButtonText: '取消',
|
|
|
|
+ // // cancelButtonClass: 'cancelSure',
|
|
|
|
+ // // confirmButtonClass: 'sure',
|
|
|
|
+ // // customClass: 'exportConfirm',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {})
|
|
|
|
+ // .catch(() => {});
|
|
|
|
+
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.uploadInfo = '导入';
|
|
|
|
+ // }, 300);
|
|
|
|
+ // }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ downloadUrl(res) {
|
|
|
|
+ var disposition = res.headers['content-disposition'];
|
|
|
|
+ var fileName = decodeURI(
|
|
|
|
+ disposition.split('filename=')[1].split(';filename*=')[0]
|
|
|
|
+ );
|
|
|
|
+ let blob = new Blob([res.data], { type: 'application/.xls' }); //.xls是我和后台约定好的文件格式
|
|
|
|
+ let link = document.createElement('a');
|
|
|
|
+ link.href = window.URL.createObjectURL(blob);
|
|
|
|
+ link.download = fileName;
|
|
|
|
+ link.click();
|
|
|
|
+ link.remove();
|
|
|
|
+ },
|
|
/********新增编辑弹窗**********/
|
|
/********新增编辑弹窗**********/
|
|
showModal() {
|
|
showModal() {
|
|
this.modalVisiable = true;
|
|
this.modalVisiable = true;
|
|
@@ -570,7 +725,7 @@ export default {
|
|
}
|
|
}
|
|
.searchBar {
|
|
.searchBar {
|
|
min-width: 980px;
|
|
min-width: 980px;
|
|
- height: 60px;
|
|
|
|
|
|
+ height: 120px;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -578,12 +733,13 @@ export default {
|
|
z-index: 9999;
|
|
z-index: 9999;
|
|
padding: 40px 20px 0;
|
|
padding: 40px 20px 0;
|
|
.searchContent {
|
|
.searchContent {
|
|
- height: 40px;
|
|
|
|
|
|
+ height: 80px;
|
|
flex: 1;
|
|
flex: 1;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
- display: flex;
|
|
|
|
- justify-content: flex-end;
|
|
|
|
- float: right;
|
|
|
|
|
|
+ .demo-form-inline {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.contentsOther {
|
|
.contentsOther {
|