12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import request from '@/utils/request'
- import qs from 'qs'
- export const getBaseProjectIntentions = (params) => {
- return new request({
- url: './project/baseProjectIntentions/',
- method: 'get',
- params: params
- });
- }
- export const getBaseProjectIntentionsByPortal = (params) => {
- return new request({
- url: './project/baseProjectIntentions/getByPortal',
- method: 'get',
- params: params
- });
- }
- export const get = (id) => {
- return new request({
- url: './project/baseProjectIntentions/' + id,
- method: 'get',
- });
- }
- export function saveOrUpdate(baseProjectIntention, token) {
- return new request({
- url: './project/baseProjectIntentions',
- method: (baseProjectIntention.id ? 'put' : 'post'),
- headers: {
- token
- },
- data: {
- baseProjectIntention
- }
- });
- }
- export function saveOrUpdateByPortal(baseProjectIntention, token,language) {
- return new request({
- url: './project/baseProjectIntentions/saveByPortal?language='+language,
- method: (baseProjectIntention.id ? 'put' : 'post'),
- headers: {
- token
- },
- data: {
- baseProjectIntention
- }
- });
- }
- export function del(id) {
- return new request({
- url: './project/baseProjectIntentions/' + id,
- method: 'delete',
- });
- }
|