优化
This commit is contained in:
parent
b99c2f252a
commit
4948d51014
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user