| | |
| | | <div class="header-content"> |
| | | <div class="search"> |
| | | <span style="padding-right: 20px">筛选条件:</span> |
| | | <el-input |
| | | v-model="context" |
| | | placeholder="请输入" |
| | | |
| | | ></el-input> |
| | | <el-input v-model="context" placeholder="请输入"></el-input> |
| | | </div> |
| | | |
| | | <div class="main-title"> |
| | | <el-button type="primary" icon="el-icon-search" @click="getBayonetListData">查询 |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | @click="getBayonetListData" |
| | | >查询 |
| | | </el-button> |
| | | <el-button |
| | | class="el-icon-plus button-addition" |
| | |
| | | >添加</el-button |
| | | > |
| | | |
| | | <el-button @click="handleExport" |
| | | type="primary">导出卡口</el-button> |
| | | <el-button @click="handleExport" type="primary">导出卡口</el-button> |
| | | </div> |
| | | </div> |
| | | </header> |
| | |
| | | :tableOption="tableOption" |
| | | :get-table-list="getBayonetListData" |
| | | :tableData="list" |
| | | :pageShow="true" |
| | | > |
| | | <template #operation="info"> |
| | | <el-link |
| | |
| | | > |
| | | </template> |
| | | </MyTable> |
| | | |
| | | <div class="tools"> |
| | | <div class="funs"> |
| | | <div class="funsItem funs-sp"></div> |
| | | <div class="funsItem funs-sp"></div> |
| | | <div class="funsItem"></div> |
| | | </div> |
| | | <div class="pagination"> |
| | | <el-pagination |
| | | background |
| | | :current-page="current" |
| | | layout="prev, pager, next" |
| | | :total="total" |
| | | :page-size="size" |
| | | @current-change="changeCurrentPage" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </main> |
| | | <footer> |
| | |
| | | list: [], |
| | | current: 1, |
| | | size: 10, |
| | | total: 0, |
| | | tableOption: { |
| | | group: [ |
| | | { |
| | |
| | | current: this.current, |
| | | size: this.size, |
| | | }) |
| | | .then(({ records }) => { |
| | | .then(({ records, total }) => { |
| | | this.list = records; |
| | | this.total = total; |
| | | }) |
| | | .catch((err) => { |
| | | this.$message({ type: "error", message: err }); |
| | | }); |
| | | }, |
| | | // 当前页改变触发事件 |
| | | changeCurrentPage(page) { |
| | | this.current = page; |
| | | this.getBayonetListData(); |
| | | }, |
| | | // 弹窗关闭 |
| | | handleClose(done) { |
| | | this.$confirm("确认关闭?").then((_) => { |