编写一个基于Java的springboot +vue信息管理系统前端网页布局代码
时间: 2023-12-29 19:02:31 浏览: 83
java基于springboot+vue的博客网站论文
5星 · 资源好评率100%
以下是一个简单的基于Java的SpringBoot和Vue.js的信息管理系统前端网页布局代码:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>信息管理系统</title>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
<el-container>
<el-header>
<h1>信息管理系统</h1>
</el-header>
<el-main>
<el-tabs>
<el-tab-pane label="用户管理">
<el-row>
<el-col :span="12">
<el-input placeholder="请输入用户名" v-model="userSearch"></el-input>
</el-col>
<el-col :span="12">
<el-button type="primary" icon="el-icon-search">搜索</el-button>
</el-col>
</el-row>
<el-table :data="users" style="width: 100%">
<el-table-column prop="id" label="ID"></el-table-column>
<el-table-column prop="name" label="姓名"></el-table-column>
<el-table-column prop="age" label="年龄"></el-table-column>
<el-table-column prop="email" label="邮箱"></el-table-column>
<el-table-column prop="phone" label="电话"></el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="文章管理">
<el-row>
<el-col :span="12">
<el-input placeholder="请输入文章标题" v-model="articleSearch"></el-input>
</el-col>
<el-col :span="12">
<el-button type="primary" icon="el-icon-search">搜索</el-button>
</el-col>
</el-row>
<el-table :data="articles" style="width: 100%">
<el-table-column prop="id" label="ID"></el-table-column>
<el-table-column prop="title" label="标题"></el-table-column>
<el-table-column prop="author" label="作者"></el-table-column>
<el-table-column prop="date" label="日期"></el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
</el-main>
<el-footer>
© 2022 信息管理系统
</el-footer>
</el-container>
</div>
<script>
new Vue({
el: '#app',
data: {
userSearch: '',
articleSearch: '',
users: [
{id: 1, name: '张三', age: 20, email: 'zhangsan@example.com', phone: '12345678901'},
{id: 2, name: '李四', age: 25, email: 'lisi@example.com', phone: '12345678902'},
{id: 3, name: '王五', age: 30, email: 'wangwu@example.com', phone: '12345678903'}
],
articles: [
{id: 1, title: 'Vue.js 入门教程', author: '张三', date: '2022-01-01'},
{id: 2, title: 'SpringBoot 实战', author: '李四', date: '2022-01-02'},
{id: 3, title: 'Java 编程思想', author: '王五', date: '2022-01-03'}
]
}
});
</script>
</body>
</html>
```
这段代码使用了Vue.js的组件和Element UI组件库,实现了一个简单的信息管理系统前端网页布局。其中,包括了用户管理和文章管理两个标签页,分别展示了用户列表和文章列表,并提供搜索功能。
阅读全文