|
@@ -75,34 +75,24 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<div class="pagination">
|
|
<div class="pagination">
|
|
- <el-pagination v-if="total>pageSize"
|
|
|
|
- :current-page.sync="currentPage"
|
|
|
|
|
|
+ <el-pagination :current-page.sync="currentPage"
|
|
@current-change="currentChange"
|
|
@current-change="currentChange"
|
|
background
|
|
background
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
- layout="total,prev, pager, next, jumper"
|
|
|
|
|
|
+ :page-sizes="pageSizeArr"
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ :layout="pageLayout"
|
|
:total="total">
|
|
:total="total">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="pagination">
|
|
|
|
- <el-pagination v-if="total>pageSize"
|
|
|
|
- :current-page.sync="currentPage"
|
|
|
|
- @current-change="currentChange"
|
|
|
|
- background
|
|
|
|
- :page-size="pageSize"
|
|
|
|
- layout="total,prev, pager, next, jumper"
|
|
|
|
- :total="total">
|
|
|
|
- </el-pagination>
|
|
|
|
- </div> -->
|
|
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import api from '@api/diagBase.js';
|
|
import api from '@api/diagBase.js';
|
|
import apis from '@api/icss.js';
|
|
import apis from '@api/icss.js';
|
|
|
|
+import config from '@api/config.js';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'diagBase',
|
|
name: 'diagBase',
|
|
@@ -117,7 +107,9 @@ export default {
|
|
hasQuestion: '', //有无问题词
|
|
hasQuestion: '', //有无问题词
|
|
},
|
|
},
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
- pageSize: 10,
|
|
|
|
|
|
+ pageSize: config.pageSize,
|
|
|
|
+ pageSizeArr:config.pageSizeArr,
|
|
|
|
+ pageLayout:config.pageLayout,
|
|
total: 0,
|
|
total: 0,
|
|
modifier: '',
|
|
modifier: '',
|
|
}
|
|
}
|
|
@@ -146,6 +138,10 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleSizeChange(val){
|
|
|
|
+ this.pageSize = val;
|
|
|
|
+ this.getDataList();
|
|
|
|
+ },
|
|
getDropList() {
|
|
getDropList() {
|
|
return apis.getKnowledgeEnums().then((res) =>{
|
|
return apis.getKnowledgeEnums().then((res) =>{
|
|
if(res.data.code === '0') {
|
|
if(res.data.code === '0') {
|
|
@@ -171,8 +167,10 @@ export default {
|
|
addDiagBase() {
|
|
addDiagBase() {
|
|
const pam = this.searched ? {
|
|
const pam = this.searched ? {
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
|
|
+ pageSize:this.pageSize,
|
|
filter: this.filter
|
|
filter: this.filter
|
|
- } : {currentPage: this.currentPage};
|
|
|
|
|
|
+ } : {currentPage: this.currentPage,
|
|
|
|
+ pageSize:this.pageSize};
|
|
this.$router.push({name: 'AddDiagBase', params: pam});
|
|
this.$router.push({name: 'AddDiagBase', params: pam});
|
|
},
|
|
},
|
|
verifyAllData() {
|
|
verifyAllData() {
|
|
@@ -206,8 +204,10 @@ export default {
|
|
const item = Object.assign({},row,data);
|
|
const item = Object.assign({},row,data);
|
|
const pam = this.searched ? {
|
|
const pam = this.searched ? {
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
|
|
+ pageSize:this.pageSize,
|
|
filter: this.filter
|
|
filter: this.filter
|
|
- } : {currentPage: this.currentPage};
|
|
|
|
|
|
+ } : {currentPage: this.currentPage,
|
|
|
|
+ pageSize:this.pageSize};
|
|
if(type == 'modify') {
|
|
if(type == 'modify') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'AddDiagBase',
|
|
name: 'AddDiagBase',
|