Commit 34bd673b by 匡雅琴

操作记录表单

1 parent 1a776880
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
class="logo" class="logo"
/> />
<div class="wrap-right"> <div class="wrap-right">
<div class="right-menu" @click="goConfigPage">公共配置项</div> <div class="right-menu" @click="goConfigPage">公共配置</div>
<span class="right-menu">|</span> <div class="right-menu" @click="goEnvironmentPage">环境配置</div>
<div class="right-menu" @click="goModelPage">公共模板</div>
<el-dropdown> <el-dropdown>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
{{ userName }} {{ userName }}
...@@ -93,9 +92,9 @@ const goConfigPage = () => { ...@@ -93,9 +92,9 @@ const goConfigPage = () => {
router.replace({ name: "publickconfig" }); router.replace({ name: "publickconfig" });
} }
// 跳往公共模板页面 // 跳转环境配置
const goModelPage = () => { const goEnvironmentPage = () => {
router.replace({ name: "model" }); router.replace({ name: "project" });
} }
// 注销账号 // 注销账号
......
<script setup lang="ts"> <script setup lang="ts">
import {ref} from "vue" import { ref } from "vue";
const tableData = [
{
model: "2016-05-03",
operator: "Tom",
time: "No. 189, Grove St, Los Angeles",
type: "",
content: "",
},
{
model: "2016-05-02",
operator: "Tom",
time: "No. 189, Grove St, Los Angeles",
type: "",
content: "",
},
{
model: "2016-05-04",
operator: "Tom",
time: "No. 189, Grove St, Los Angeles",
type: "",
content: "",
},
{
model: "2016-05-01",
operator: "Tom",
time: "No. 189, Grove St, Los Angeles",
type: "",
content: "",
},
];
const currentPage = ref(4);
const pageSize = ref(100);
const handleSizeChange = (val: number) => {
console.log(val);
};
const handleCurrentChange = (val: number) => {
console.log(val);
};
</script> </script>
<template> <template>
<div>caozuojil</div> <div class="title">操作记录</div>
<el-table :data="tableData" stripe style="width: 100%">
<el-table-column label="操作模块" prop="model" width="180" />
<el-table-column label="操作人" prop="operator" width="180" />
<el-table-column label="操作时间" prop="time" />
<el-table-column label="操作类型" prop="type" />
<el-table-column label="操作内容" prop="content" />
</el-table>
<el-pagination
class="pagination"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="[100, 200, 300, 400]"
layout="total, sizes, prev, pager, next, jumper"
:total="400"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
</template> </template>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.title {
font-size: 20px;
font-weight: 500;
text-align: center;
margin-bottom: 20px;
}
.pagination {
margin-top: 20px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!