工种类型配置页面完善
This commit is contained in:
parent
7a8388a681
commit
d9fc560c09
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
export const formLabel = [
|
||||
{
|
||||
f_label: '关键词',
|
||||
f_model: 'keyword',
|
||||
f_model: 'postName',
|
||||
f_type: 'ipt',
|
||||
isShow: false, // 是否展示label
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 特殊工种设置
|
||||
|
|
|
|||
Loading…
Reference in New Issue