65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询保险产品列表
|
|
export function listInsuranceProduct(query) {
|
|
return request({
|
|
url: '/insurance/insuranceProduct/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询保险产品详细
|
|
export function getInsuranceProduct(id) {
|
|
return request({
|
|
url: '/insurance/insuranceProduct/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增保险产品
|
|
export function addInsuranceProduct(data) {
|
|
return request({
|
|
url: '/insurance/insuranceProduct',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改保险产品
|
|
export function updateInsuranceProduct(data) {
|
|
return request({
|
|
url: '/insurance/insuranceProduct',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除保险产品
|
|
export function delInsuranceProduct(id) {
|
|
return request({
|
|
url: '/insurance/insuranceProduct/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获取所有贷款产品简易只要id,name
|
|
export function getAllinsuranceProduct() {
|
|
return request({
|
|
url: '/insurance/insuranceProduct/getAllSimple',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 状态修改
|
|
export function changeProductEnable(id, status) {
|
|
const data = {}
|
|
data.id=id;
|
|
data.status=status;
|
|
return request({
|
|
url: '/insurance/insuranceProduct',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|