Merge remote-tracking branch 'origin/dev_20230829_change' into dev_20231201_feizhi

This commit is contained in:
zyn
2023-12-05 15:07:12 +08:00
4 changed files with 24 additions and 8 deletions
@@ -32,7 +32,8 @@
</el-button> </el-button>
</div> </div>
</div> </div>
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件"> <el-dialog width='400px' :visible.sync="fileMadel" title="上传文件" v-dragDialogWidth
:close-on-click-modal="false">
<el-upload <el-upload
multiple multiple
drag drag
@@ -137,7 +137,7 @@
> >
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination style="position: relative" :page="searchForm.page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination> <pagination style="position: relative" :auto-size="true" :page-size="searchForm.pageSize" :page="searchForm.page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
<loading :loading="loading">数据获取中...</loading> <loading :loading="loading">数据获取中...</loading>
</div> </div>
<div slot="footer"> <div slot="footer">
@@ -163,7 +163,10 @@ export default {
] ]
return { return {
show: false, show: false,
searchForm: {}, searchForm: {
pageSize:20,
page:1
},
api: { api: {
page: 'lawss/sarLawsTopic/page' page: 'lawss/sarLawsTopic/page'
}, },
@@ -177,7 +180,7 @@ export default {
}, },
methods: { methods: {
async getData () { async getData () {
this.searchForm.pageSize = this.searchForm.pageSize || this.$store.getters.userInfo.configContent this.searchForm.pageSize = this.searchForm.pageSize
this.searchForm.page = this.searchForm.page || 1 this.searchForm.page = this.searchForm.page || 1
let params = { ...this.searchForm } let params = { ...this.searchForm }
const res = await this.$http._getData(this.api.page, params, {_this:this,loading: 'loading'}) const res = await this.$http._getData(this.api.page, params, {_this:this,loading: 'loading'})
@@ -187,7 +190,10 @@ export default {
} }
}, },
open () { open () {
this.$set(this, 'searchForm', {}) this.$set(this, 'searchForm', {
pageSize:20,
page:1
})
this.getData() this.getData()
this.show = true this.show = true
}, },
@@ -80,7 +80,11 @@
label="序号" label="序号"
width="55" width="55"
align="center" align="center"
></el-table-column> >
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (SearchForm.page - 1) * SearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
label="政策文号" label="政策文号"
@@ -125,6 +129,8 @@
</el-table> </el-table>
</div> </div>
<pagination <pagination
:auto-size="true"
:page-size="SearchForm.pageSize"
:page="SearchForm.page" :page="SearchForm.page"
:total="SearchForm.total" :total="SearchForm.total"
@pageChange="pageChange" @pageChange="pageChange"
@@ -165,7 +171,7 @@ export default {
standardDrawer: false, standardDrawer: false,
SearchForm: { SearchForm: {
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
// standType: 'INLAND', // standType: 'INLAND',
lawsNumber: '', lawsNumber: '',
@@ -351,6 +351,7 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
fixed="left"
type="index" type="index"
width="55" width="55"
label="序号" label="序号"
@@ -749,6 +750,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="handleSelectForm.pageSize"
:page="handleSelectForm.page" :page="handleSelectForm.page"
:total="handleSelectForm.total" :total="handleSelectForm.total"
@pageChange="handleSelectPageChange" @pageChange="handleSelectPageChange"
@@ -784,7 +787,7 @@ export default {
lawNumber: '', // 标准编号/政策编号 lawNumber: '', // 标准编号/政策编号
lawName: '', // 标准名称/政策名称 lawName: '', // 标准名称/政策名称
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
standType: '', standType: '',
quoteIdList: '', quoteIdList: '',