From 49c0bbe837859f28aac27033e89ee937a76c9488 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 23 Nov 2023 17:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9C=9F=E5=9C=B0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/land_plant.ts | 1 - admin/src/api/land_plant_action.ts | 31 +++ admin/src/views/land/edit.vue | 2 +- admin/src/views/land_plant/edit.vue | 2 +- admin/src/views/land_plant/index.vue | 15 +- admin/src/views/land_plant_action/edit.vue | 178 ++++++++++++++++++ admin/src/views/land_plant_action/index.vue | 140 ++++++++++++++ .../land/LandPlantActionController.php | 108 +++++++++++ .../controller/land/LandPlantController.php | 6 +- .../lists/land/LandPlantActionLists.php | 77 ++++++++ app/adminapi/lists/land/LandPlantLists.php | 21 ++- .../logic/land/LandPlantActionLogic.php | 112 +++++++++++ .../validate/land/LandPlantActionValidate.php | 98 ++++++++++ app/common/model/land/LandPlantAction.php | 45 +++++ 14 files changed, 826 insertions(+), 10 deletions(-) create mode 100644 admin/src/api/land_plant_action.ts create mode 100644 admin/src/views/land_plant_action/edit.vue create mode 100644 admin/src/views/land_plant_action/index.vue create mode 100644 app/adminapi/controller/land/LandPlantActionController.php create mode 100644 app/adminapi/lists/land/LandPlantActionLists.php create mode 100644 app/adminapi/logic/land/LandPlantActionLogic.php create mode 100644 app/adminapi/validate/land/LandPlantActionValidate.php create mode 100644 app/common/model/land/LandPlantAction.php diff --git a/admin/src/api/land_plant.ts b/admin/src/api/land_plant.ts index 7e9138b6..725ec941 100644 --- a/admin/src/api/land_plant.ts +++ b/admin/src/api/land_plant.ts @@ -6,7 +6,6 @@ export function apiLandLists(params: any) { return request.get({ url: '/land.land/lists', params }) } - // 土地种植表列表 export function apiLandPlantLists(params: any) { return request.get({ url: '/land.land_plant/lists', params }) diff --git a/admin/src/api/land_plant_action.ts b/admin/src/api/land_plant_action.ts new file mode 100644 index 00000000..67721338 --- /dev/null +++ b/admin/src/api/land_plant_action.ts @@ -0,0 +1,31 @@ +import request from '@/utils/request' + +// 土地种植表列表 +export function apiLandPlantLists(params: any) { + return request.get({ url: '/land.land_plant/lists', params }) +} + +// 土地种植作物操作表列表 +export function apiLandPlantActionLists(params: any) { + return request.get({ url: '/land.land_plant_action/lists', params }) +} + +// 添加土地种植作物操作表 +export function apiLandPlantActionAdd(params: any) { + return request.post({ url: '/land.land_plant_action/add', params }) +} + +// 编辑土地种植作物操作表 +export function apiLandPlantActionEdit(params: any) { + return request.post({ url: '/land.land_plant_action/edit', params }) +} + +// 删除土地种植作物操作表 +export function apiLandPlantActionDelete(params: any) { + return request.post({ url: '/land.land_plant_action/delete', params }) +} + +// 土地种植作物操作表详情 +export function apiLandPlantActionDetail(params: any) { + return request.get({ url: '/land.land_plant_action/detail', params }) +} \ No newline at end of file diff --git a/admin/src/views/land/edit.vue b/admin/src/views/land/edit.vue index b31fc414..b0961914 100644 --- a/admin/src/views/land/edit.vue +++ b/admin/src/views/land/edit.vue @@ -111,7 +111,7 @@ const mode = ref('add') // 弹窗标题 const popupTitle = computed(() => { - return mode.value == 'edit' ? '编辑土地表' : '新增土地表' + return mode.value == 'edit' ? '编辑土地' : '新增土地' }) // 表单数据 diff --git a/admin/src/views/land_plant/edit.vue b/admin/src/views/land_plant/edit.vue index 2256112e..138b15f4 100644 --- a/admin/src/views/land_plant/edit.vue +++ b/admin/src/views/land_plant/edit.vue @@ -97,7 +97,7 @@ const mode = ref('add') // 弹窗标题 const popupTitle = computed(() => { - return mode.value == 'edit' ? '编辑土地种植表' : '新增土地种植表' + return mode.value == 'edit' ? '编辑土地种植' : '新增土地种植' }) // 表单数据 diff --git a/admin/src/views/land_plant/index.vue b/admin/src/views/land_plant/index.vue index 47181aca..18697da0 100644 --- a/admin/src/views/land_plant/index.vue +++ b/admin/src/views/land_plant/index.vue @@ -73,8 +73,20 @@ {{ row.plant_date ? timeFormat(row.plant_date, 'yyyy-mm-dd hh:MM:ss') : '' }} - +