update
This commit is contained in:
parent
511e22e2d8
commit
261344d831
|
@ -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>
|
||||
|
|
|
@ -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: '',
|
||||
})
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class FarmLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['farm_name'],
|
||||
'=' => ['farm_name', 'user_id'],
|
||||
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue