fix: 修复BUG
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 144 KiB |
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user