fix: 修复BUG

This commit is contained in:
zhangyanduan
2022-10-26 11:13:46 +08:00
parent af7103ffd2
commit 48a6a89193
3 changed files with 8 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 144 KiB

+1 -1
View File
@@ -4,7 +4,7 @@
<div class="search-top">
<div class="top-title">
</div>
<h3 class="home-title"> S P R S</h3>
<h3 class="home-title"> S P R S</h3>
</div>
<div class="search-head">
<van-search
@@ -744,6 +744,7 @@
</div>
</el-upload>
</el-dialog>
<loading :loading="importDataLoading">{{导入数据中}}</loading>
</div>
</template>
<script>
@@ -947,6 +948,7 @@ export default {
drawerTotal: 0, // 数据搜索table总条数
dataLoading: false, // 数据搜索 table 查询loading
exportTestItemNameFlag: false, // 导出模态框
importDataLoading: false,// 导入数据loading
exportName: '', // 导出名称
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=', // 导入接口
// importExcelUrls: '/api/sarLawsDetailedList/sar-laws-detailed-list/importData', // 导入接口
@@ -1048,6 +1050,8 @@ export default {
importFileStand (res, file, fileList) {
let files = {}
if (res.ok) {
this.importModalshowflag = false
this.importDataLoading = true
files.attId = res.data.attId
files.fileName = res.data.name
if (res.data.standNum != null && res.data.standNum !== '') {
@@ -1066,6 +1070,7 @@ export default {
_this: this
}, res => {
if(res.ok){
this.importDataLoading = false
if(res.data.length){
res.data.forEach(item => {
// 适用认证转换
@@ -1142,6 +1147,7 @@ export default {
this.$message.warning('请勿上传为空的文件')
}
}else{
this.importDataLoading = false
const arr = res.data.split('')
let newDatas = [],h = this.$createElement;
for (const i in arr) {
@@ -1158,7 +1164,7 @@ export default {
});
}
})
this.importModalshowflag = false
this.$nextTick(() => {
this.$refs.importFileAboutStand.clearFiles()
})