|
@@ -85,12 +85,13 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<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>
|
|
@@ -100,6 +101,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import api from '@api/icss.js';
|
|
import api from '@api/icss.js';
|
|
|
|
+ import config from '@api/config.js';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'TemplateMaintenance',
|
|
name: 'TemplateMaintenance',
|
|
@@ -117,7 +119,9 @@
|
|
tagAdscription: '', //标签归属
|
|
tagAdscription: '', //标签归属
|
|
},
|
|
},
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
- pageSize: 10,
|
|
|
|
|
|
+ pageSize: config.pageSize,
|
|
|
|
+ pageSizeArr:config.pageSizeArr,
|
|
|
|
+ pageLayout:config.pageLayout,
|
|
total: 0,
|
|
total: 0,
|
|
deptAndDisInfo:{},
|
|
deptAndDisInfo:{},
|
|
}
|
|
}
|
|
@@ -178,6 +182,7 @@
|
|
//const pm = to.param;
|
|
//const pm = to.param;
|
|
const flt = to.params.filter;
|
|
const flt = to.params.filter;
|
|
vm.currentPage = to.params.currentPage||1;
|
|
vm.currentPage = to.params.currentPage||1;
|
|
|
|
+ vm.pageSize = to.params.pageSize;
|
|
vm.deptAndDisInfo = JSON.parse(localStorage.getItem('deptDis')||null);
|
|
vm.deptAndDisInfo = JSON.parse(localStorage.getItem('deptDis')||null);
|
|
if(flt){
|
|
if(flt){
|
|
vm.filter.templateType = flt.templateType;
|
|
vm.filter.templateType = flt.templateType;
|
|
@@ -189,6 +194,10 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleSizeChange(val){
|
|
|
|
+ this.pageSize = val;
|
|
|
|
+ this.getDataList();
|
|
|
|
+ },
|
|
getSubTemplate() {
|
|
getSubTemplate() {
|
|
api.getAllDeptAndDisInfo({}).then((res) => {
|
|
api.getAllDeptAndDisInfo({}).then((res) => {
|
|
if (res.data.code === '0') {//获取科室和疾病所有信息
|
|
if (res.data.code === '0') {//获取科室和疾病所有信息
|
|
@@ -234,8 +243,10 @@
|
|
addIndeptTag() {
|
|
addIndeptTag() {
|
|
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: 'TemplateMaintenanceWrap', params: pam})
|
|
this.$router.push({name: 'TemplateMaintenanceWrap', params: pam})
|
|
},
|
|
},
|
|
modifyIndeptTag(row) {
|
|
modifyIndeptTag(row) {
|