6/22完善引入,
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="p-2 h-full flex flex-col">
|
||||
<Pageheader title="访客信息"></Pageheader>
|
||||
<PageHeader title="访客信息"></PageHeader>
|
||||
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
||||
<div v-show="showSearch" class="mb-[10px]">
|
||||
<el-card shadow="hover">
|
||||
@@ -45,18 +45,21 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" @click="handleMain(scope.row)" v-hasPermi="['visitor:visitor:query']">访客详情</el-button>
|
||||
<el-button link type="primary" @click="handleMain(scope.row)" v-has-permi="['visitor:visitor:query']">访客详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
<Pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Visitor" lang="ts">
|
||||
import { listVisitor } from '@/api/system/Visitor/index';
|
||||
import Pagination from '@/components/Pagination/index.vue';
|
||||
import DictTag from '@/components/DictTag/index.vue';
|
||||
import PageHeader from '@/components/Pageheader/index.vue';
|
||||
import { listVisitor } from '@/api/system/Visitor';
|
||||
import { VisitorVO, VisitorQuery, VisitorForm } from '@/api/system/Visitor/type';
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
@@ -64,9 +67,7 @@ const { sys_user_sex } = toRefs<any>(proxy?.useDict('sys_user_sex'));
|
||||
const { com_visitor_status } = toRefs<any>(proxy?.useDict('com_visitor_status'));
|
||||
const router = useRouter();
|
||||
|
||||
// com_visitor_status
|
||||
const visitorList = ref<VisitorVO[]>([]);
|
||||
const buttonLoading = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref<Array<string | number>>([]);
|
||||
@@ -74,7 +75,6 @@ const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const queryFormRef = ref<ElFormInstance>();
|
||||
const visitorFormRef = ref<ElFormInstance>();
|
||||
|
||||
const initFormData: VisitorForm = {
|
||||
id: undefined,
|
||||
@@ -113,7 +113,7 @@ const data = reactive<PageData<VisitorForm, VisitorQuery>>({
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
const { queryParams } = toRefs(data);
|
||||
|
||||
/** 查询访客管理列表 */
|
||||
const getList = async () => {
|
||||
@@ -144,7 +144,7 @@ const handleSelectionChange = (selection: VisitorVO[]) => {
|
||||
};
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleMain = async (row?: VisitorVO) => {
|
||||
const handleMain = (row?: VisitorVO) => {
|
||||
router.push({
|
||||
path: '/repair/visitorMain',
|
||||
query: {
|
||||
|
||||
Reference in New Issue
Block a user