考核管理删除考核人
This commit is contained in:
parent
f2ecd0690d
commit
5bafcfdf2e
@ -79,3 +79,12 @@ export function apiGet375 (query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 考核管理组管理变更
|
||||||
|
export function apiAssessManagerChange (query) {
|
||||||
|
return request({
|
||||||
|
url: '/lz_management/performance/assess/manager/change',
|
||||||
|
method: 'post',
|
||||||
|
data: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -85,17 +85,11 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</popup-right>
|
</popup-right>
|
||||||
<popupRemovePerson
|
|
||||||
:showPopup.sync='showPerson'
|
|
||||||
:startId='startId'
|
|
||||||
@cb="handlePopupRemoveList"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import PopupRight from '@/components/PopupRight'
|
import PopupRight from '@/components/PopupRight'
|
||||||
import popupRemovePerson from '@/components/popupPerson'
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
showPopup: {
|
showPopup: {
|
||||||
@ -114,14 +108,12 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
showPerson: false,
|
|
||||||
permissionsRadio: '0', // 部门主管选项
|
permissionsRadio: '0', // 部门主管选项
|
||||||
permissionsPrompt: '被考核人的目标完成确认后,管理员和部门主管都可以调整目标'
|
permissionsPrompt: '被考核人的目标完成确认后,管理员和部门主管都可以调整目标'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
PopupRight,
|
PopupRight
|
||||||
popupRemovePerson
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'showPopup': function (newVal) {
|
'showPopup': function (newVal) {
|
||||||
@ -136,11 +128,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleAdd () { },
|
handleAdd () { },
|
||||||
handleDelete () {
|
handleDelete () {
|
||||||
this.showPerson = true
|
this.$emit('remove')
|
||||||
},
|
|
||||||
handlePopupRemoveList () {
|
|
||||||
console.log('要删除的人员')
|
|
||||||
this.$emit('update:showPopup', false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// handlePermissionsRadio () {
|
// handlePermissionsRadio () {
|
||||||
|
|||||||
@ -124,12 +124,15 @@
|
|||||||
@cb="handleDeptSubmit"
|
@cb="handleDeptSubmit"
|
||||||
/>
|
/>
|
||||||
<el-dialog title="删除确认" :visible.sync="visibleRemovePerson" width="440px">
|
<el-dialog title="删除确认" :visible.sync="visibleRemovePerson" width="440px">
|
||||||
<div class="commonFont line-space">确认将选中的{{popupData.selectedList.length}}人,从考核中删除,删除后,绩效考核数据将被清空,数据无法恢复,请确认是否删除</div>
|
<div v-if="popupData.selectedList.length>1">
|
||||||
<div class="commonFont line-space">请在下方输入框中输入<span style="color: red;">“删除”</span>二字,确认您已知晓删除将导致数据无法恢复</div>
|
<div class="commonFont line-space">确认将选中的{{popupData.selectedList.length}}人,从考核中删除,删除后,绩效考核数据将被清空,数据无法恢复,请确认是否删除</div>
|
||||||
<div><el-input v-model="removeConfirmInput" placeholder="请输入“删除二字”" size="small"></el-input></div>
|
<div class="commonFont line-space">请在下方输入框中输入<span style="color: red;">“删除”</span>二字,确认您已知晓删除将导致数据无法恢复</div>
|
||||||
|
<div><el-input v-model="removeConfirmInput" placeholder="请输入“删除二字”" size="small"></el-input></div>
|
||||||
|
</div>
|
||||||
|
<div v-else class="commonFont">被考核人删除后,本次考核相关数据数据将被清空,数据无法恢复,请确认是否删除</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<el-button @click="visibleRemovePerson = false" size="small">取 消</el-button>
|
<el-button @click="visibleRemovePerson = false" size="small">取 消</el-button>
|
||||||
<el-button @click="handleConfirmRemovePerson" type="primary" size="small" :disabled="removeConfirmInput!=='删除'">确 定</el-button>
|
<el-button @click="handleConfirmRemovePerson" type="primary" size="small" :disabled="removeConfirmInput!=='删除'&&popupData.selectedList.length>1">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@ -140,8 +143,7 @@
|
|||||||
import PopupRight from '@/components/PopupRight'
|
import PopupRight from '@/components/PopupRight'
|
||||||
import EvaluationTeamFilter from '@/components/EvaluationTeamFilter'
|
import EvaluationTeamFilter from '@/components/EvaluationTeamFilter'
|
||||||
import dialogDepart from '@/components/getDepart'
|
import dialogDepart from '@/components/getDepart'
|
||||||
|
import { apiManagerDetail, apiAssessManagerChange } from '@/api/assessment'
|
||||||
import { apiManagerDetail } from '@/api/assessment'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@ -221,17 +223,34 @@ export default {
|
|||||||
this.popupData.selectedList = val
|
this.popupData.selectedList = val
|
||||||
},
|
},
|
||||||
handleSubmitPopup () {
|
handleSubmitPopup () {
|
||||||
// 确定选择
|
// 确定选择 显示二次删除去人
|
||||||
|
if (this.popupData.selectedList.length <= 0) {
|
||||||
|
this.$message.error('请选择删除的人员')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.visibleRemovePerson = true
|
this.visibleRemovePerson = true
|
||||||
// const list = this.popupData.selectedList
|
|
||||||
// this.$emit('update:showPopup', false)
|
|
||||||
},
|
},
|
||||||
handleConfirmRemovePerson () {
|
handleConfirmRemovePerson () {
|
||||||
// 确认删除 选中用户 删除成功页面刷新
|
// 确认删除 选中用户 删除成功页面刷新
|
||||||
console.log('删除')
|
let removeStaffIds = []
|
||||||
this.visibleRemovePerson = false
|
this.popupData.selectedList.forEach(item => {
|
||||||
this.$emit('update:showPopup', false)
|
removeStaffIds.push(item.id)
|
||||||
this.$emit('cb')
|
})
|
||||||
|
let dicPara = {
|
||||||
|
changeType: 1,
|
||||||
|
confirm: 0,
|
||||||
|
staffIds: removeStaffIds.join(),
|
||||||
|
startId: this.startId
|
||||||
|
}
|
||||||
|
console.log('删除数据===', dicPara)
|
||||||
|
apiAssessManagerChange(dicPara).then(res => {
|
||||||
|
if (res.code !== 200) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// 删除成功
|
||||||
|
this.visibleRemovePerson = false
|
||||||
|
this.$emit('cb')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
hundlePopupHide () {
|
hundlePopupHide () {
|
||||||
this.$emit('update:showPopup', false)
|
this.$emit('update:showPopup', false)
|
||||||
@ -350,8 +369,8 @@ export default {
|
|||||||
'showPopup': function (newVal, oldVal) {
|
'showPopup': function (newVal, oldVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.handleGainAssessmentGroupList()
|
this.handleGainAssessmentGroupList()
|
||||||
console.log('显示人员选择---------')
|
|
||||||
} else {
|
} else {
|
||||||
|
this.removeConfirmInput = ''
|
||||||
this.rqAssessmentParameter.startId = null
|
this.rqAssessmentParameter.startId = null
|
||||||
this.rqAssessmentParameter.staffIds = ''
|
this.rqAssessmentParameter.staffIds = ''
|
||||||
this.rqAssessmentParameter.evaluationIds = ''
|
this.rqAssessmentParameter.evaluationIds = ''
|
||||||
@ -362,6 +381,12 @@ export default {
|
|||||||
this.staffIds = ''
|
this.staffIds = ''
|
||||||
this.popupData.tableList = []
|
this.popupData.tableList = []
|
||||||
this.popupData.selectedList = []
|
this.popupData.selectedList = []
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (this.$refs.popupMultipleTable) {
|
||||||
|
console.log('lllllllllllllllllllllllllllllllll')
|
||||||
|
this.$refs.popupMultipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -178,11 +178,13 @@
|
|||||||
popupRightTitle="管理绩效考核"
|
popupRightTitle="管理绩效考核"
|
||||||
:startId='options.startId'
|
:startId='options.startId'
|
||||||
@cb="handlePopupMangeSubmit"
|
@cb="handlePopupMangeSubmit"
|
||||||
|
@remove="showPopupPerson=true"
|
||||||
|
/>
|
||||||
|
<popupRemovePerson
|
||||||
|
:showPopup.sync='showPopupPerson'
|
||||||
|
:startId='options.startId'
|
||||||
|
@cb="handlePopupRemoveListSuccessful"
|
||||||
/>
|
/>
|
||||||
<popupRemovePerson
|
|
||||||
:showPopup="showPopupPerson"
|
|
||||||
title="删除被考核人员"
|
|
||||||
></popupRemovePerson>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -205,7 +207,7 @@ export default {
|
|||||||
startId: this.$route.query.id || ''
|
startId: this.$route.query.id || ''
|
||||||
},
|
},
|
||||||
showPopupMange: false, // 显示管理
|
showPopupMange: false, // 显示管理
|
||||||
showPopupPerson: false,
|
showPopupPerson: false, // 删除人员
|
||||||
showChooseList: false,
|
showChooseList: false,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
form: {
|
form: {
|
||||||
@ -400,6 +402,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handlePopupMangeSubmit () {
|
handlePopupMangeSubmit () {
|
||||||
this.showPopupMange = false
|
this.showPopupMange = false
|
||||||
|
},
|
||||||
|
handlePopupRemoveListSuccessful () {
|
||||||
|
// 删除人员成功 页面刷新
|
||||||
|
this.showPopupMange = false
|
||||||
|
this.showPopupPerson = false
|
||||||
|
this.handleGetListContent()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user