工种类型配置页面完善

This commit is contained in:
BianLzhaoMin 2025-08-13 09:20:26 +08:00
parent 7a8388a681
commit d9fc560c09
3 changed files with 11 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export function addAdnEditJobTypeAPI(data) {
// 删除工种类型
export function deleteJobTypeAPI(data) {
return request({
url: '/system/dict/type/add',
url: '/bmw/postType/delPostType',
method: 'post',
data,
})

View File

@ -1,7 +1,7 @@
export const formLabel = [
{
f_label: '关键词',
f_model: 'keyword',
f_model: 'postName',
f_type: 'ipt',
isShow: false, // 是否展示label
},

View File

@ -196,7 +196,15 @@ export default {
//
onHandleDeleteJobType(data) {
console.log(data, '删除')
this.$modal.confirm('确定删除该工种吗?').then(async () => {
const res = await deleteJobTypeAPI({ id: data.id })
if (res.code === 200) {
this.$modal.msgSuccess('删除成功')
this.$refs.jobTypeTableRef.getTableList()
} else {
this.$modal.msgError(res.msg)
}
})
},
//