update
This commit is contained in:
parent
511e22e2d8
commit
261344d831
|
@ -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>
|
||||||
|
|
|
@ -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: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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'],
|
||||||
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue