Merge branch 'master' of http://192.168.0.75:3000/liux/nxdt-web
This commit is contained in:
commit
ff18473509
|
|
@ -171,3 +171,15 @@ export function addAnnotations(data) {
|
|||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 删除监理人员
|
||||
* @param data
|
||||
* @returns {AxiosPromise}
|
||||
*/
|
||||
export function delPersonByIdCardAndPhone(data) {
|
||||
return request({
|
||||
url: '/project/SupervisionUnit/delSupervisoryPersonApply',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@
|
|||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDel(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -658,7 +659,7 @@ import bnsFileListTabs from '@/components/pro-tabs/bns-file-list-tabs.vue'
|
|||
|
||||
import { addSupervisoryApply, addSupervisoryPersonApply } from '@/api/pro/supervisory'
|
||||
import { dictTableOption, getTemplateLink, selectFile, downloadFile } from '@/api/tool/select'
|
||||
import { listSupervisorPersonById, listSupervisor, listSupervisorPerson } from '@/api/pro/outsourcingPro'
|
||||
import { listSupervisorPersonById, listSupervisor, listSupervisorPerson ,delPersonByIdCardAndPhone } from '@/api/pro/outsourcingPro'
|
||||
|
||||
import numberUtils from '@/utils/validate'
|
||||
import bnsKkFilePreview from '@/components/pro-tabs/bns-kkFile-preview.vue'
|
||||
|
|
@ -1224,6 +1225,28 @@ export default {
|
|||
}
|
||||
this.supervisorOpen = true
|
||||
},
|
||||
delPerson(row) {
|
||||
this.$confirm('是否确认删除?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}).then(() => {
|
||||
const params = {
|
||||
idCard: row.idCard,
|
||||
phone: row.phone
|
||||
}
|
||||
delPersonByIdCardAndPhone(params).then(response => {
|
||||
if (response.code === 200){
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
this.getSupervisorPersonList()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
//删除
|
||||
handleDel(row, type) {
|
||||
this.delPerson(row)
|
||||
},
|
||||
//获取详情
|
||||
getDetails(row) {
|
||||
this.loading = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue