更新后台管理系统

This commit is contained in:
yaooo 2023-11-30 16:02:33 +08:00
parent de35413527
commit e989a2178f
6 changed files with 6 additions and 11 deletions

View File

@ -12,7 +12,6 @@ export function apiProductLists(params: any) {
// 土地表列表 // 土地表列表
export function apiLandLists(params: any) { export function apiLandLists(params: any) {
console.log(params)
return request.get({ url: '/land.land/lists', params }) return request.get({ url: '/land.land/lists', params })
} }

View File

@ -7,7 +7,6 @@ export function getUserList(params: any) {
// 土地表列表 // 土地表列表
export function apiLandLists(params: any) { export function apiLandLists(params: any) {
console.log(params)
return request.get({ url: '/land.land/lists', params }) return request.get({ url: '/land.land/lists', params })
} }

View File

@ -7,7 +7,6 @@ export function getUserList(params: any) {
// 土地表列表 // 土地表列表
export function apiLandLists(params: any) { export function apiLandLists(params: any) {
console.log(params)
return request.get({ url: '/land.land/lists', params }) return request.get({ url: '/land.land/lists', params })
} }

View File

@ -46,12 +46,6 @@
<dict-value :options="dictData.device_online_status" :value="deviceData.device.is_online" /> <dict-value :options="dictData.device_online_status" :value="deviceData.device.is_online" />
</div> </div>
</div> </div>
<div class="w-1/2 md:w-1/6 mb-4">
<div class="leading-10">是否绑定产品</div>
<div class="text-3xl text-tx-secondary">
<dict-value :options="dictData.device_bind_status" :value="deviceData.device.is_bind" />
</div>
</div>
</div> </div>
</el-card> </el-card>

View File

@ -81,7 +81,6 @@ const formRules = reactive<any>({
}], }],
}) })
// //
const setFormData = async (data: Record<any, any>) => { const setFormData = async (data: Record<any, any>) => {
for (const key in formData) { for (const key in formData) {
@ -139,9 +138,13 @@ const handleClose = () => {
emit('close') emit('close')
} }
const setProduct = async (data: Record<any, any>) => {
console.log(data)
}
defineExpose({ defineExpose({
open, open,
setFormData setFormData,
setProduct
}) })
</script> </script>

View File

@ -229,6 +229,7 @@ const handleBind = async (data: any) => {
await nextTick() await nextTick()
bindRef.value?.open('bind') bindRef.value?.open('bind')
bindRef.value?.setFormData(data) bindRef.value?.setFormData(data)
bindRef.value?.setProduct(data)
} }
// //