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> <el-button type="primary" link>
<router-link <router-link
:to="{ :to="{
path: getRoutePath('land.land/lists'), path: getRoutePath('farm.farm/lists'),
query: { query: {
user_id: row.id user_id: row.id
} }
}" }"
> >
地信息 地信息
</router-link> </router-link>
</el-button> </el-button>
<el-button v-perms="['user.user/detail']" type="primary" link> <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 { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback' import feedback from '@/utils/feedback'
import EditPopup from './edit.vue' import EditPopup from './edit.vue'
const { query } = useRoute()
const editRef = shallowRef<InstanceType<typeof EditPopup>>() const editRef = shallowRef<InstanceType<typeof EditPopup>>()
// //
const showEdit = ref(false) const showEdit = ref(false)
let user_id = query.user_id
if (typeof user_id == 'undefined') {
user_id = ''
}
// //
const queryParams = reactive({ const queryParams = reactive({
user_id: user_id,
farm_name: '', farm_name: '',
}) })

View File

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