优化
This commit is contained in:
parent
b99c2f252a
commit
4948d51014
@ -70,9 +70,11 @@
|
||||
label="姓名"
|
||||
width="55px"
|
||||
><template slot-scope="scope">
|
||||
<div class="header">
|
||||
<InfoHeader :isShow='false' :obj="{
|
||||
src:scope.row.avatar
|
||||
}"/>
|
||||
</div>
|
||||
</template></el-table-column>
|
||||
<el-table-column>
|
||||
<template slot-scope="scope">
|
||||
@ -234,7 +236,7 @@ export default {
|
||||
// 确认删除 选中用户 删除成功页面刷新
|
||||
let removeStaffIds = []
|
||||
this.popupData.selectedList.forEach(item => {
|
||||
removeStaffIds.push(item.id)
|
||||
removeStaffIds.push(item.staffId)
|
||||
})
|
||||
let dicPara = {
|
||||
changeType: 1,
|
||||
@ -401,6 +403,10 @@ export default {
|
||||
}
|
||||
|
||||
.popup {
|
||||
.header{
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
}
|
||||
max-width: 440px;
|
||||
.el-button {
|
||||
max-width: 104px;
|
||||
@ -430,8 +436,8 @@ export default {
|
||||
width: 100%;
|
||||
}
|
||||
&-img {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,6 +63,7 @@ export default {
|
||||
this.isLoading = false
|
||||
this.$loadingStart()
|
||||
let res = await apiAssessManagerChange(parmas)
|
||||
console.log('res: ', res)
|
||||
this.isLoading = true
|
||||
if (res.code === 503) {
|
||||
this.$confirm(res.msg, '提示', {
|
||||
@ -72,15 +73,25 @@ export default {
|
||||
}).then(async () => {
|
||||
parmas.confirm = 1
|
||||
let res1 = await apiAssessManagerChange(parmas)
|
||||
this.isLoading = false
|
||||
this.$loadingEnd()
|
||||
if (res1.code !== 200) return this.$message.error(res1.msg)
|
||||
history.go(-1)
|
||||
}).catch(() => {
|
||||
this.isLoading = false
|
||||
this.$loadingEnd()
|
||||
})
|
||||
} else if (res.code !== 200) {
|
||||
this.isLoading = false
|
||||
this.$loadingEnd()
|
||||
return this.$message.error(res.msg)
|
||||
} else {
|
||||
history.go(-1)
|
||||
parmas.confirm = 1
|
||||
let res1 = await apiAssessManagerChange(parmas)
|
||||
this.isLoading = false
|
||||
this.$loadingEnd()
|
||||
if (res1.code !== 200) return this.$message.error(res1.msg)
|
||||
// history.go(-1)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -330,7 +330,7 @@ export default {
|
||||
this.tableData = res.data.list
|
||||
this.params.totalCount = res.data.totalCount
|
||||
this.params.currPage = res.data.currPage
|
||||
console.log('res: ', res)
|
||||
console.log('this.params: ', this.params)
|
||||
},
|
||||
// 为了不分页直接传999
|
||||
async handleStartsReq (type, handleNode) {
|
||||
@ -433,7 +433,7 @@ export default {
|
||||
// 删除人员成功 页面刷新
|
||||
this.showPopupMange = false
|
||||
this.showPopupPerson = false
|
||||
this.handleGetListContent()
|
||||
this.handleGetChartList()
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user