This commit is contained in:
熊成强 2020-11-11 10:54:24 +08:00
parent b99c2f252a
commit 4948d51014
3 changed files with 24 additions and 7 deletions

View File

@ -70,9 +70,11 @@
label="姓名" label="姓名"
width="55px" width="55px"
><template slot-scope="scope"> ><template slot-scope="scope">
<InfoHeader :isShow='false' :obj="{ <div class="header">
<InfoHeader :isShow='false' :obj="{
src:scope.row.avatar src:scope.row.avatar
}"/> }"/>
</div>
</template></el-table-column> </template></el-table-column>
<el-table-column> <el-table-column>
<template slot-scope="scope"> <template slot-scope="scope">
@ -234,7 +236,7 @@ export default {
// //
let removeStaffIds = [] let removeStaffIds = []
this.popupData.selectedList.forEach(item => { this.popupData.selectedList.forEach(item => {
removeStaffIds.push(item.id) removeStaffIds.push(item.staffId)
}) })
let dicPara = { let dicPara = {
changeType: 1, changeType: 1,
@ -401,6 +403,10 @@ export default {
} }
.popup { .popup {
.header{
height: 50px;
width: 50px;
}
max-width: 440px; max-width: 440px;
.el-button { .el-button {
max-width: 104px; max-width: 104px;
@ -430,8 +436,8 @@ export default {
width: 100%; width: 100%;
} }
&-img { &-img {
width: 34px; width: 50px;
height: 34px; height: 50px;
border-radius: 17px; border-radius: 17px;
} }
} }

View File

@ -63,6 +63,7 @@ export default {
this.isLoading = false this.isLoading = false
this.$loadingStart() this.$loadingStart()
let res = await apiAssessManagerChange(parmas) let res = await apiAssessManagerChange(parmas)
console.log('res: ', res)
this.isLoading = true this.isLoading = true
if (res.code === 503) { if (res.code === 503) {
this.$confirm(res.msg, '提示', { this.$confirm(res.msg, '提示', {
@ -72,15 +73,25 @@ export default {
}).then(async () => { }).then(async () => {
parmas.confirm = 1 parmas.confirm = 1
let res1 = await apiAssessManagerChange(parmas) let res1 = await apiAssessManagerChange(parmas)
this.isLoading = false
this.$loadingEnd() this.$loadingEnd()
if (res1.code !== 200) return this.$message.error(res1.msg) if (res1.code !== 200) return this.$message.error(res1.msg)
history.go(-1) history.go(-1)
}).catch(() => { }).catch(() => {
this.isLoading = false
this.$loadingEnd()
}) })
} else if (res.code !== 200) { } else if (res.code !== 200) {
this.isLoading = false
this.$loadingEnd()
return this.$message.error(res.msg) return this.$message.error(res.msg)
} else { } 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)
} }
} }
}, },

View File

@ -330,7 +330,7 @@ export default {
this.tableData = res.data.list this.tableData = res.data.list
this.params.totalCount = res.data.totalCount this.params.totalCount = res.data.totalCount
this.params.currPage = res.data.currPage this.params.currPage = res.data.currPage
console.log('res: ', res) console.log('this.params: ', this.params)
}, },
// 999 // 999
async handleStartsReq (type, handleNode) { async handleStartsReq (type, handleNode) {
@ -433,7 +433,7 @@ export default {
// //
this.showPopupMange = false this.showPopupMange = false
this.showPopupPerson = false this.showPopupPerson = false
this.handleGetListContent() this.handleGetChartList()
} }
}, },
watch: { watch: {