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="search-top">
|
||||||
<div class="top-title">
|
<div class="top-title">
|
||||||
</div>
|
</div>
|
||||||
<h3 class="home-title">标 准 法 规 管 理 系 统 S P R S</h3>
|
<h3 class="home-title">标 准 与 政 策 法 规 管 理 系 统 S P R S</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-head">
|
<div class="search-head">
|
||||||
<van-search
|
<van-search
|
||||||
|
|||||||
@@ -744,6 +744,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<loading :loading="importDataLoading">{{导入数据中}}</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -947,6 +948,7 @@ export default {
|
|||||||
drawerTotal: 0, // 数据搜索table总条数
|
drawerTotal: 0, // 数据搜索table总条数
|
||||||
dataLoading: false, // 数据搜索 table 查询loading
|
dataLoading: false, // 数据搜索 table 查询loading
|
||||||
exportTestItemNameFlag: false, // 导出模态框
|
exportTestItemNameFlag: false, // 导出模态框
|
||||||
|
importDataLoading: false,// 导入数据loading
|
||||||
exportName: '', // 导出名称
|
exportName: '', // 导出名称
|
||||||
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=', // 导入接口
|
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=', // 导入接口
|
||||||
// importExcelUrls: '/api/sarLawsDetailedList/sar-laws-detailed-list/importData', // 导入接口
|
// importExcelUrls: '/api/sarLawsDetailedList/sar-laws-detailed-list/importData', // 导入接口
|
||||||
@@ -1048,6 +1050,8 @@ export default {
|
|||||||
importFileStand (res, file, fileList) {
|
importFileStand (res, file, fileList) {
|
||||||
let files = {}
|
let files = {}
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
|
this.importModalshowflag = false
|
||||||
|
this.importDataLoading = true
|
||||||
files.attId = res.data.attId
|
files.attId = res.data.attId
|
||||||
files.fileName = res.data.name
|
files.fileName = res.data.name
|
||||||
if (res.data.standNum != null && res.data.standNum !== '') {
|
if (res.data.standNum != null && res.data.standNum !== '') {
|
||||||
@@ -1066,6 +1070,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res.ok){
|
if(res.ok){
|
||||||
|
this.importDataLoading = false
|
||||||
if(res.data.length){
|
if(res.data.length){
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
// 适用认证转换
|
// 适用认证转换
|
||||||
@@ -1142,6 +1147,7 @@ export default {
|
|||||||
this.$message.warning('请勿上传为空的文件')
|
this.$message.warning('请勿上传为空的文件')
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
this.importDataLoading = 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) {
|
||||||
@@ -1158,7 +1164,7 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.importModalshowflag = false
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.importFileAboutStand.clearFiles()
|
this.$refs.importFileAboutStand.clearFiles()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user