diff --git a/admin/src/api/land.ts b/admin/src/api/land.ts index 1d2a0c1f..91a62335 100644 --- a/admin/src/api/land.ts +++ b/admin/src/api/land.ts @@ -12,7 +12,6 @@ export function apiProductLists(params: any) { // 土地表列表 export function apiLandLists(params: any) { - console.log(params) return request.get({ url: '/land.land/lists', params }) } diff --git a/admin/src/api/land_plant.ts b/admin/src/api/land_plant.ts index 20f361c1..38c4455d 100644 --- a/admin/src/api/land_plant.ts +++ b/admin/src/api/land_plant.ts @@ -7,7 +7,6 @@ export function getUserList(params: any) { // 土地表列表 export function apiLandLists(params: any) { - console.log(params) return request.get({ url: '/land.land/lists', params }) } diff --git a/admin/src/api/product.ts b/admin/src/api/product.ts index 5502ace3..b197a598 100644 --- a/admin/src/api/product.ts +++ b/admin/src/api/product.ts @@ -7,7 +7,6 @@ export function getUserList(params: any) { // 土地表列表 export function apiLandLists(params: any) { - console.log(params) return request.get({ url: '/land.land/lists', params }) } diff --git a/admin/src/views/device/detail.vue b/admin/src/views/device/detail.vue index 0d0159d5..88c83570 100644 --- a/admin/src/views/device/detail.vue +++ b/admin/src/views/device/detail.vue @@ -46,12 +46,6 @@ -
-
是否绑定产品:
-
- -
-
diff --git a/admin/src/views/land/bind.vue b/admin/src/views/land/bind.vue index 381fdefb..19bcad94 100644 --- a/admin/src/views/land/bind.vue +++ b/admin/src/views/land/bind.vue @@ -81,7 +81,6 @@ const formRules = reactive({ }], }) - // 获取详情 const setFormData = async (data: Record) => { for (const key in formData) { @@ -139,9 +138,13 @@ const handleClose = () => { emit('close') } +const setProduct = async (data: Record) => { + console.log(data) +} defineExpose({ open, - setFormData + setFormData, + setProduct }) diff --git a/admin/src/views/land/index.vue b/admin/src/views/land/index.vue index 62b3e9a7..5118aede 100644 --- a/admin/src/views/land/index.vue +++ b/admin/src/views/land/index.vue @@ -229,6 +229,7 @@ const handleBind = async (data: any) => { await nextTick() bindRef.value?.open('bind') bindRef.value?.setFormData(data) + bindRef.value?.setProduct(data) } // 删除