劳务管理(人员管理):重复数据导入问题

This commit is contained in:
骆乐 2022-09-29 17:35:28 +08:00
parent 7d21a6787f
commit 850e040cc0
2 changed files with 19 additions and 12 deletions

View File

@ -115,7 +115,7 @@
> >
</div> --> </div> -->
</div> </div>
<div class="right2" style="width: 100%; margin-left: 0"> <div class="right2" style="width: 100%; margin-left: 0" v-if="refreshPage" >
<div class="title whiteBlock flex"> <div class="title whiteBlock flex">
<span>{{ $t('message.laborMange.crewInfo') }}</span> <span>{{ $t('message.laborMange.crewInfo') }}</span>
<div class="team_number flex2"> <div class="team_number flex2">
@ -436,7 +436,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" width="280px"> <el-table-column prop="address" width="300px">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="tableBtns"> <div class="tableBtns">
<el-button <el-button
@ -1773,6 +1773,7 @@ export default {
}, },
data() { data() {
return { return {
refreshPage:true,
key: false, key: false,
isCheckeedData: true, // isCheckeedData: true, //
COMPANY: COMPANY, COMPANY: COMPANY,
@ -1919,7 +1920,7 @@ export default {
if (item2.actionCode == 'akey_issued') { if (item2.actionCode == 'akey_issued') {
this.key = true this.key = true
} }
console.log('this.key', this.key) // console.log('this.key', this.key)
}) })
} }
}) })
@ -2055,9 +2056,15 @@ export default {
} }
} }
}, },
handleSuccessE() { handleSuccessE(file) {
this.$message.success(this.$t('message.laborMange.hint6')) // this.refreshPage = false
if(file.code == 200){
this.$message.success(file.message) //
this.refreshBtn() this.refreshBtn()
}
this.$nextTick(()=>{
this.refreshPage = true
})
}, },
handleErrorE() { handleErrorE() {
this.$message.error(this.$t('message.laborMange.hint7')) // this.$message.error(this.$t('message.laborMange.hint7')) //

View File

@ -392,7 +392,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" width="270px"> <el-table-column prop="address" width="300px">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="tableBtns"> <div class="tableBtns">
<!-- 退场 --> <!-- 退场 -->
@ -2206,7 +2206,7 @@ export default {
if (item2.actionCode == 'akey_issued') { if (item2.actionCode == 'akey_issued') {
this.key = true this.key = true
} }
console.log('this.key', this.key) // console.log('this.key', this.key)
}) })
} }
}) })
@ -2331,13 +2331,13 @@ export default {
this.refreshPage = false this.refreshPage = false
console.log('==========',file) console.log('==========',file)
if(file.code == 200){ if(file.code == 200){
this.$message.success(this.$t('message.laborMange.hint6')) // this.$message.success(file.message) //
this.refreshBtn() this.refreshBtn()
this.getTeamList() this.getTeamList()
setTimeout(()=>{
this.refreshPage = true
},100)
} }
this.$nextTick(()=>{
this.refreshPage = true
})
}, },
handleErrorE() { handleErrorE() {
this.$message.error(this.$t('message.laborMange.hint7')) this.$message.error(this.$t('message.laborMange.hint7'))