|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="qpage">
|
|
|
<el-form :inline="true" :model="formInline" class="query-form-inline">
|
|
|
- <el-form-item label="用户名">
|
|
|
+ <el-form-item label="">
|
|
|
<el-input v-model="formInline.user" placeholder="请输入用户名关键字" />
|
|
|
</el-form-item>
|
|
|
|
|
@@ -11,29 +11,50 @@
|
|
|
</el-form>
|
|
|
|
|
|
<div class="qpage-body">
|
|
|
- <el-table :data="tableData" style="width: 100%;height:100%;" border stripe>
|
|
|
- <el-table-column fixed prop="date" label="Date" width="150" />
|
|
|
- <el-table-column prop="name" label="Name" width="120" />
|
|
|
- <el-table-column prop="state" label="State" width="120" />
|
|
|
- <el-table-column prop="city" label="City" width="320" />
|
|
|
- <el-table-column prop="address" label="Address" width="600" />
|
|
|
- <el-table-column prop="zip" label="Zip" width="120" />
|
|
|
- </el-table>
|
|
|
+ <div class="qpage-toolbar">
|
|
|
+ <div class="tool-group">
|
|
|
+ <el-button-group>
|
|
|
+ <el-button type="primary" icon="plus">新增</el-button>
|
|
|
+ <el-button type="success" icon="document">导出</el-button>
|
|
|
+ <el-button type="warning" icon="delete">批量删除</el-button>
|
|
|
+ </el-button-group>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <el-pagination
|
|
|
+ v-model:current-page="currentPage4"
|
|
|
+ v-model:page-size="pageSize4"
|
|
|
+ :page-sizes="[100, 200, 300, 400]"
|
|
|
+ :small="false"
|
|
|
+ :disabled="false"
|
|
|
+ :background="false"
|
|
|
+ layout="total, prev, pager, next,sizes"
|
|
|
+ :total="400"
|
|
|
+
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="qpage-table">
|
|
|
+ <el-table :data="tableData" style="width: 100%;height:100%;" border stripe highlight-current-row>
|
|
|
+ <el-table-column fixed prop="date" label="Date" width="150" />
|
|
|
+ <el-table-column prop="name" label="Name" width="120" />
|
|
|
+ <el-table-column prop="state" label="State" width="120" />
|
|
|
+ <el-table-column prop="city" label="City" width="320" />
|
|
|
+ <el-table-column prop="address" label="Address" width="600" />
|
|
|
+ <el-table-column prop="zip" label="Zip" width="160" fixed="right">
|
|
|
+ <template #default="scope">
|
|
|
+ <div class="tool-column">
|
|
|
+ <el-button type="primary" icon="edit" size="small">编辑</el-button>
|
|
|
+
|
|
|
+ <el-button type="warning" icon="delete" size="small">删除</el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
- <div class="qpage-foot">
|
|
|
- <el-pagination
|
|
|
- v-model:current-page="currentPage4"
|
|
|
- v-model:page-size="pageSize4"
|
|
|
- :page-sizes="[100, 200, 300, 400]"
|
|
|
- :small="false"
|
|
|
- :disabled="false"
|
|
|
- :background="false"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="400"
|
|
|
-
|
|
|
- />
|
|
|
- </div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
@@ -174,9 +195,26 @@ const tableData = [
|
|
|
}
|
|
|
|
|
|
.qpage-body{
|
|
|
- height: calc(100% - 100px);
|
|
|
+ height: calc(100% - 50px);
|
|
|
+ }
|
|
|
+
|
|
|
+ .qpage-toolbar{
|
|
|
+ height: 50px;
|
|
|
+ padding:10px 10px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background-color: #f4f4f4;
|
|
|
+ display: flex;
|
|
|
+ justify-content:space-between;
|
|
|
+ border:1px solid #e9e9e9;
|
|
|
+ }
|
|
|
+ .qpage-table{
|
|
|
+ height: calc(100% - 50px);
|
|
|
}
|
|
|
- .qpage-foot{
|
|
|
- padding:10px 0;
|
|
|
+
|
|
|
+ .tool-column{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
</style>
|