Commit 5abf43cd authored by 邓春圆's avatar 邓春圆

app版本分页bug修改

parent 7f3cc2ac
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item :label="$t('系统类型')" prop="appType"> <el-form-item :label="$t('系统类型')" prop="appType">
<el-select v-model="queryParams.appType" :placeholder="$t('请选择系统类型')" clearable=""> <el-select v-model="queryParams.appType" :placeholder="$t('请选择系统类型')" clearable="">
<el-option v-for="type in this.getDictDatas(DICT_TYPE.ECW_DATA_SOURCE)" :key="type.value" :label="$l(type, 'label')" :value="type.value"></el-option> <el-option v-for="type in this.getDictDatas(DICT_TYPE.ECW_DATA_SOURCE)" :key="type.value" :label="$l(type, 'label')" :value="type.value"></el-option>
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
<el-form-item :label="$t('强制更新')"> <el-form-item :label="$t('强制更新')">
<el-select v-model="queryParams.forceUpdate" :placeholder="$t('请选择更新条件')" clearable=""> <el-select v-model="queryParams.forceUpdate" :placeholder="$t('请选择更新条件')" clearable="">
<el-option v-for="item in forceUpdateArray" :key="item.type" :label="$l(item, 'value')" :value="item.type"></el-option> <el-option v-for="item in forceUpdateArray" :key="item.type" :label="$l(item, 'value')" :value="item.type"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('内部版本')" prop="versionCode"> <el-form-item :label="$t('内部版本')" prop="versionCode">
<el-input v-model.number="queryParams.versionCode" :placeholder="$t('请输入内部版本')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model.number="queryParams.versionCode" :placeholder="$t('请输入内部版本')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<el-table-column label="系统类型" align="center" prop="appType"> <el-table-column label="系统类型" align="center" prop="appType">
<template slot-scope="{row}"> <template slot-scope="{row}">
<dict-tag :type="DICT_TYPE.ECW_DATA_SOURCE" :value="row.appType" /> <dict-tag :type="DICT_TYPE.ECW_DATA_SOURCE" :value="row.appType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="版本号" align="center" prop="appVersion"> <el-table-column label="版本号" align="center" prop="appVersion">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -74,13 +74,13 @@ ...@@ -74,13 +74,13 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
@pagination="getList"/> @pagination="getList"/>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item :label="$t('系统')" prop="appType"> <el-form-item :label="$t('系统')" prop="appType">
<el-select v-model="form.appType" :placeholder="$t('请选择系统类型')"> <el-select v-model="form.appType" :placeholder="$t('请选择系统类型')">
<el-option v-for="type in this.getDictDatas(DICT_TYPE.ECW_DATA_SOURCE)" :key="type.value" :label="type.label" :value="type.value" /> <el-option v-for="type in this.getDictDatas(DICT_TYPE.ECW_DATA_SOURCE)" :key="type.value" :label="type.label" :value="type.value" />
...@@ -101,14 +101,14 @@ ...@@ -101,14 +101,14 @@
</el-form-item> </el-form-item>
<el-form-item v-if="linkType==2"> <el-form-item v-if="linkType==2">
<el-upload <el-upload
ref="upload" ref="upload"
:limit="1" :limit="1"
:headers="upload.headers" :headers="upload.headers"
:action="upload.url" :action="upload.url"
:data="upload.data" :data="upload.data"
:disabled="upload.isUploading" :disabled="upload.isUploading"
:show-file-list="true" :show-file-list="true"
:on-change="handleFileChange" :on-change="handleFileChange"
:on-progress="uploadProcess" :on-progress="uploadProcess"
:on-success="handleFileSuccess" :on-success="handleFileSuccess"
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<el-button size="small">{{ $t('上传') }}<i class="el-icon-upload el-icon--right"></i> <el-button size="small">{{ $t('上传') }}<i class="el-icon-upload el-icon--right"></i>
</el-button> </el-button>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item :label="$t('版本链接')" prop="appUrl"> <el-form-item :label="$t('版本链接')" prop="appUrl">
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<el-form-item :label="$t('强制更新')" prop="forceUpdate"> <el-form-item :label="$t('强制更新')" prop="forceUpdate">
<el-select v-model="form.forceUpdate" :placeholder="$t('请选择更新条件')"> <el-select v-model="form.forceUpdate" :placeholder="$t('请选择更新条件')">
<el-option v-for="item in forceUpdateArray" :key="item.type" :label="$l(item, 'value')" :value="item.type"></el-option> <el-option v-for="item in forceUpdateArray" :key="item.type" :label="$l(item, 'value')" :value="item.type"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('说明')" prop="desp"> <el-form-item :label="$t('说明')" prop="desp">
<el-input type="textarea" v-model="form.desp" :placeholder="$t('请输入说明')" /> <el-input type="textarea" v-model="form.desp" :placeholder="$t('请输入说明')" />
...@@ -177,8 +177,8 @@ export default { ...@@ -177,8 +177,8 @@ export default {
dateRangeCreateTime: [], dateRangeCreateTime: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNo: 1, page: 1,
pageSize: 10, rows: 10,
appUrl: null, appUrl: null,
appType: null, appType: null,
appVersion: null, appVersion: null,
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNo = 1; this.queryParams.page = 1;
this.getList(); this.getList();
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment