更新后台细节

This commit is contained in:
yaooo 2023-11-27 15:22:18 +08:00
parent 7df61d7920
commit 03eec6bb0d
3 changed files with 28 additions and 10 deletions

View File

@ -30,12 +30,6 @@
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
<export-data
class="ml-2.5"
:fetch-fun="getUserList"
:params="queryParams"
:page-size="pager.size"
/>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
@ -54,8 +48,20 @@
</el-table-column> </el-table-column>
<el-table-column label="注册来源" prop="channel" min-width="100" /> <el-table-column label="注册来源" prop="channel" min-width="100" />
<el-table-column label="注册时间" prop="create_time" min-width="120" /> <el-table-column label="注册时间" prop="create_time" min-width="120" />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="200" align="center" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button v-perms="['land.land/lists']" type="primary" link>
<router-link
:to="{
path: getRoutePath('land.land/lists'),
query: {
user_id: row.id
}
}"
>
土地信息
</router-link>
</el-button>
<el-button v-perms="['user.user/detail']" type="primary" link> <el-button v-perms="['user.user/detail']" type="primary" link>
<router-link <router-link
:to="{ :to="{

View File

@ -26,13 +26,19 @@
</el-form> </el-form>
</el-card> </el-card>
<el-card class="!border-none" v-loading="pager.loading" shadow="never"> <el-card class="!border-none" v-loading="pager.loading" shadow="never">
<!-- <el-button <el-button v-perms="['land.land/add']" type="primary" @click="handleAdd">
<template #icon>
<icon name="el-icon-Plus" />
</template>
新增
</el-button>
<el-button
v-perms="['land.land/delete']" v-perms="['land.land/delete']"
:disabled="!selectData.length" :disabled="!selectData.length"
@click="handleDelete(selectData)" @click="handleDelete(selectData)"
> >
删除 删除
</el-button> --> </el-button>
<div class="mt-4"> <div class="mt-4">
<el-table :data="pager.lists" @selection-change="handleSelectionChange"> <el-table :data="pager.lists" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
@ -119,14 +125,19 @@ 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: user_id,
title: '', title: '',
master_name: '', master_name: '',
master_phone: '', master_phone: '',

View File

@ -105,6 +105,7 @@ class ProductLogic extends BaseLogic
*/ */
public static function delete(array $params): bool public static function delete(array $params): bool
{ {
Db::name('land_product')->where('product_id', $params['id'])->delete();
return Product::destroy($params['id']); return Product::destroy($params['id']);
} }