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') : '' }} - +