fix:优化
This commit is contained in:
parent
725267388e
commit
475c327116
@ -1,61 +0,0 @@
|
|||||||
import request from '@/utils/axios';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Title: 列表
|
|
||||||
*/
|
|
||||||
export function GetEntityList(params = {}) {
|
|
||||||
return request('/land-resource/annualManage/page', {
|
|
||||||
method: 'GET',
|
|
||||||
params,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Title: 新增
|
|
||||||
*/
|
|
||||||
export function AddEntity(data = {}) {
|
|
||||||
return request('/land-resource/annualManage/save', {
|
|
||||||
method: 'POST',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Title: 修改
|
|
||||||
*/
|
|
||||||
export function UpdateEntity(data = {}) {
|
|
||||||
return request('/land-resource/annualManage/edit', {
|
|
||||||
method: 'PUT',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Title: 审核
|
|
||||||
*/
|
|
||||||
export function AuditEntity(data = {}) {
|
|
||||||
return request('/land-resource/annualManage/exam', {
|
|
||||||
method: 'PUT',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Title: 删除
|
|
||||||
*/
|
|
||||||
export function DeleteEntity(params = {}) {
|
|
||||||
return request(`/land-resource/annualManage/delete/${params.id}`, {
|
|
||||||
method: 'DELETE',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Title: 导出
|
|
||||||
*/
|
|
||||||
export function ExportEntity(params = {}) {
|
|
||||||
return request('/land-resource/annualManage/export', {
|
|
||||||
method: 'GET',
|
|
||||||
params,
|
|
||||||
responseType: 'blob',
|
|
||||||
});
|
|
||||||
}
|
|
@ -35,7 +35,7 @@ import { CRUD_OPTIONS } from '@/config';
|
|||||||
import { isEmpty, downloadFile } from '@/utils';
|
import { isEmpty, downloadFile } from '@/utils';
|
||||||
import { useUserStore } from '@/store/modules/user';
|
import { useUserStore } from '@/store/modules/user';
|
||||||
import { compact } from 'lodash';
|
import { compact } from 'lodash';
|
||||||
import { GetEntityList, AddEntity, UpdateEntity, DeleteEntity, ExportEntity } from '@/apis/grid';
|
import { GetEntityList, AddEntity, UpdateEntity, DeleteEntity, ExportEntity } from '@/apis/resource/grid';
|
||||||
|
|
||||||
const { VITE_APP_BASE_API } = import.meta.env;
|
const { VITE_APP_BASE_API } = import.meta.env;
|
||||||
const app = useApp();
|
const app = useApp();
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { useApp } from '@/hooks';
|
import { useApp } from '@/hooks';
|
||||||
import { GetCropData, GetLandData } from '@/apis/statisticAnalysis';
|
import { GetCropData, GetLandData } from '@/apis/resource/statisticAnalysis';
|
||||||
|
|
||||||
const app = useApp();
|
const app = useApp();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user