This commit is contained in:
chenbo 2024-01-15 09:42:59 +08:00
parent 511e22e2d8
commit 261344d831
3 changed files with 11 additions and 4 deletions

View File

@ -54,13 +54,13 @@
<el-button type="primary" link>
<router-link
:to="{
path: getRoutePath('land.land/lists'),
path: getRoutePath('farm.farm/lists'),
query: {
user_id: row.id
}
}"
>
地信息
地信息
</router-link>
</el-button>
<el-button v-perms="['user.user/detail']" type="primary" link>

View File

@ -121,14 +121,21 @@ import { apiFarmLists, apiFarmDelete } from '@/api/farm'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
const { query } = useRoute()
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
//
const showEdit = ref(false)
let user_id = query.user_id
if (typeof user_id == 'undefined') {
user_id = ''
}
//
const queryParams = reactive({
user_id: user_id,
farm_name: '',
})

View File

@ -38,7 +38,7 @@ class FarmLists extends BaseAdminDataLists implements ListsSearchInterface
public function setSearch(): array
{
return [
'=' => ['farm_name'],
'=' => ['farm_name', 'user_id'],
];
}