You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

145 lines
2.8 KiB

import request from '@/utils/request'
export default {
// 分页列表
pagerList: function(params) {
return request({
url: '/portal/v1/regions/pagerList',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 新增保存
save: function(regionDto) {
return request({
url: '/portal/v1/regions/save',
method: 'post',
data: regionDto,
headers: {
'Content-Type': 'application/json'
}
})
},
// // 根据省sid获取该省的所有市
// getCity: function (sid) {
// return request({
// url: '/portal/v1/regions/getCity',
// method: 'get',
// params: {
// sid
// }
// })
// },
//
// // 根据市sid获取该省的所有县区
// getCounty: function (sid) {
// return request({
// url: '/portal/v1/regions/getCounty',
// method: 'get',
// params: {
// sid
// }
// })
// },
// 删除
delete: function(sid) {
return request({
url: '/portal/v1/regions/delete/' + sid,
method: 'delete',
data: sid
})
},
//点击修改回显数据
updateEcho: function(sid) {
return request({
url: '/portal/v1/regions/getOne/' + sid,
method: 'post',
params: {
sid
}
})
},
// 区域修改保存
// system/region/update/{sid}
update: function(params, sid) {
return request({
url: '/portal/v1/regions/update/' + sid,
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 自主学姐计划
// 分页列表
selectSysPlan: function(params) {
return request({
url: '/v1/sysPlan/selectSysPlan',
method: 'post',
params: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 新增保存
saveSysPlan: function(data) {
return request({
url: '/v1/sysPlan/saveSysPlan',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
// 删除
deleteSysPlan: function(sid) {
return request({
url: '/v1/sysPlan/deleteSysPlan/' + sid,
method: 'delete'
})
},
//点击修改回显数据
alterSysPlant: function(data) {
return request({
url: '/v1/sysPlan/alterSysPlan',
method: 'POST',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
//提交数据
upSysPlan: function(data) {
return request({
url: 'v1/sysPlan/upSysPlan',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
}