From 00a2a8e080d0822529c8b09fc5029ac6519fda16 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 01 Jun 2022 18:14:43 +0800
Subject: [PATCH] 新增溯源码二维码下载
---
src/api/land/land.js | 83 +++++++++++++++++++++++++----------------
1 files changed, 50 insertions(+), 33 deletions(-)
diff --git a/src/api/land/land.js b/src/api/land/land.js
index 56f8216..3621dc3 100644
--- a/src/api/land/land.js
+++ b/src/api/land/land.js
@@ -1,50 +1,67 @@
import request from '@/router/axios';
export const getList = (current, size, params) => {
- return request({
- url: '/api/land/land/list',
- method: 'get',
- params: {
- ...params,
- current,
- size,
- }
- })
+ return request({
+ url: '/api/land/land/page',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
}
export const getDetail = (id) => {
- return request({
- url: '/api/land/land/detail',
- method: 'get',
- params: {
- id
- }
- })
+ return request({
+ url: '/api/land/land/details',
+ method: 'get',
+ params: {
+ id
+ }
+ })
}
export const remove = (ids) => {
- return request({
- url: '/api/land/land/remove',
- method: 'post',
- params: {
- ids,
- }
- })
+ return request({
+ url: '/api/land/land/remove',
+ method: 'post',
+ params: {
+ ids,
+ }
+ })
}
export const add = (row) => {
- return request({
- url: '/api/land/land/submit',
- method: 'post',
- data: row
- })
+ return request({
+ url: '/api/land/land/save',
+ method: 'post',
+ data: row
+ })
}
export const update = (row) => {
- return request({
- url: '/api/land/land/submit',
- method: 'post',
- data: row
- })
+ return request({
+ url: '/api/land/land/submit',
+ method: 'post',
+ data: row
+ })
}
+export const getLandList = (userid) => {
+ return request({
+ url: '/api/land/land/selectLandList',
+ method: 'get',
+ params: {
+ userid
+ }
+ })
+}
+
+export const selectCount = () => {
+ return request({
+ url: '/api/land/land/selectCount',
+ method: 'get',
+ params: {}
+ })
+}
--
Gitblit v1.9.3