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