|
|
@@ -1,6 +1,10 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <!-- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
|
|
|
+ <el-form-item label="版本号" prop="versionCode">
|
|
|
+ <el-input v-model="queryParams.versionCode" type="number" placeholder="请输入版本号" clearable size="small"
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="版本名称" prop="versionName">
|
|
|
<el-input v-model="queryParams.versionName" placeholder="请输入版本名称" clearable size="small"
|
|
|
@keyup.enter.native="handleQuery" />
|
|
|
@@ -9,7 +13,7 @@
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
- </el-form> -->
|
|
|
+ </el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
@@ -31,6 +35,11 @@
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
+
|
|
|
+ <!-- 分页 -->
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.limit"
|
|
|
+ @pagination="getList" />
|
|
|
+
|
|
|
<!-- 添加或修改机构对话框 -->
|
|
|
<el-dialog :beforeClose="cancel" :title="title" :visible.sync="open" width="700px" append-to-body destroy-on-close>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
@@ -73,8 +82,12 @@ export default {
|
|
|
listData: [],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
+ page: 1,
|
|
|
+ limit: 10,
|
|
|
},
|
|
|
form:{},
|
|
|
rules:{},
|
|
|
@@ -95,7 +108,7 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listData(this.queryParams).then(response => {
|
|
|
- this.listData = response.data
|
|
|
+ this.listData = response.data.records
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
@@ -116,6 +129,11 @@ export default {
|
|
|
handleQuery() {
|
|
|
this.getList();
|
|
|
},
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
handelAdd(){
|
|
|
this.form={}
|
|
|
this.title='添加',
|