add:清单导入增加loading
This commit is contained in:
@@ -744,6 +744,7 @@
|
||||
</div>
|
||||
</el-upload>
|
||||
</el-dialog>
|
||||
<loading style="z-index: 2099;" :loading="importLoading">导入中...</loading>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -946,6 +947,7 @@ export default {
|
||||
drawerPage: 1, // 数据搜索table页码
|
||||
drawerTotal: 0, // 数据搜索table总条数
|
||||
dataLoading: false, // 数据搜索 table 查询loading
|
||||
importLoading: false, //导入loading
|
||||
exportTestItemNameFlag: false, // 导出模态框
|
||||
exportName: '', // 导出名称
|
||||
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=', // 导入接口
|
||||
@@ -1062,6 +1064,7 @@ export default {
|
||||
_formData.append('standNameSplit', files.standNameSplit)
|
||||
_formData.append('fileType', files.fileType)
|
||||
_formData.append('file', file.raw)
|
||||
this.importLoading = true
|
||||
this.$http.postData('sarLawsDetailedList/sar-laws-detailed-list/importData', _formData,{
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -1133,15 +1136,18 @@ export default {
|
||||
}else{
|
||||
this.sarAccessInfoList = res.data
|
||||
}
|
||||
this.importLoading = false
|
||||
if(repeatIndex > 0){
|
||||
this.$message.warning('请勿上传重复标准,重复标准未添加')
|
||||
}else{
|
||||
this.$message.success('导入文件成功')
|
||||
}
|
||||
}else{
|
||||
this.importLoading = false
|
||||
this.$message.warning('请勿上传为空的文件')
|
||||
}
|
||||
}else{
|
||||
this.importLoading = false
|
||||
const arr = res.data.split(';')
|
||||
let newDatas = [],h = this.$createElement;
|
||||
for (const i in arr) {
|
||||
|
||||
Reference in New Issue
Block a user