93 lines
1.9 KiB
JavaScript
93 lines
1.9 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询职业卫生技术服务机构管理列表
|
|
export function jcjgList(query) {
|
|
return request({
|
|
url: '/dzzyb/a/zyb/logon/jcjgList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
// 所属市
|
|
export function queryAreaList() {
|
|
return request({
|
|
url: '/dzzyb/a/zyb/logon/queryAreaList',
|
|
method: 'post',
|
|
})
|
|
}
|
|
// 删除
|
|
// /dzzyb/a/zyb/logon/deletejcjg
|
|
export function deletejcjg(id) {
|
|
return request({
|
|
url: `/dzzyb/a/zyb/logon/deletejcjg?id=${id}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
// 批量删除
|
|
export function jcjgdel(ids) {
|
|
return request({
|
|
url: `/dzzyb/a/zyb/logon/jcjgdel?ids=${ids}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
// 提交
|
|
export function add(data) {
|
|
return request({
|
|
url: '/dzzyb/a/zyb/logon/jcjg/add',
|
|
method: 'post',
|
|
data: data,
|
|
header: {
|
|
"content-type": "application/x-www-form-urlencoded"
|
|
},
|
|
})
|
|
}
|
|
// 修改提交
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: `/dzzyb/a/zyb/logon/jcjg/edit`,
|
|
method: 'post',
|
|
data: data,
|
|
header: {
|
|
"content-type": "application/x-www-form-urlencoded"
|
|
},
|
|
})
|
|
}
|
|
// 修改按钮
|
|
|
|
export function editReNew(id) {
|
|
return request({
|
|
|
|
url: `/dzzyb/a/zyb/logon/jcjg/editReNew?id=${id}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// // 查询体检机构详细
|
|
// export function getTjjg(id) {
|
|
// return request({
|
|
// url: '/system/tjjg/' + id,
|
|
// method: 'get'
|
|
// })
|
|
// }
|
|
|
|
// // 新增体检机构
|
|
// export function addTjjg(data) {
|
|
// return request({
|
|
// url: '/system/tjjg',
|
|
// method: 'post',
|
|
// data: data
|
|
// })
|
|
// }
|
|
|
|
// // 修改体检机构
|
|
// export function updateTjjg(data) {
|
|
// return request({
|
|
// url: '/system/tjjg',
|
|
// method: 'put',
|
|
// data: data
|
|
// })
|
|
// }
|
|
|
|
|