|
@@ -91,12 +91,13 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <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>
|
|
@@ -105,6 +106,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import api from '@api/preTreat.js';
|
|
import api from '@api/preTreat.js';
|
|
|
|
+ import config from '@api/config.js';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'simpleQuestion',
|
|
name: 'simpleQuestion',
|
|
@@ -124,7 +126,9 @@
|
|
name:'', //填写单界面名称
|
|
name:'', //填写单界面名称
|
|
},
|
|
},
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
- pageSize: 10,
|
|
|
|
|
|
+ pageSize: config.pageSize,
|
|
|
|
+ pageSizeArr:config.pageSizeArr,
|
|
|
|
+ pageLayout:config.pageLayout,
|
|
total: 0,
|
|
total: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -146,6 +150,10 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleSizeChange(val){
|
|
|
|
+ this.pageSize = val;
|
|
|
|
+ this.getDataList();
|
|
|
|
+ },
|
|
getDropList() {
|
|
getDropList() {
|
|
api.getPreTypeList().then((res) =>{
|
|
api.getPreTypeList().then((res) =>{
|
|
this.getDataList();
|
|
this.getDataList();
|
|
@@ -186,7 +194,9 @@
|
|
},
|
|
},
|
|
addIndeptTag() {
|
|
addIndeptTag() {
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
- filter:this.filter}:{currentPage:this.currentPage};
|
|
|
|
|
|
+ pageSize:this.pageSize,
|
|
|
|
+ filter:this.filter}:{currentPage:this.currentPage,
|
|
|
|
+ pageSize:this.pageSize};
|
|
this.$router.push({name:'AddSimpleQuestion',
|
|
this.$router.push({name:'AddSimpleQuestion',
|
|
params:pam})
|
|
params:pam})
|
|
},
|
|
},
|
|
@@ -196,7 +206,9 @@
|
|
if(code=='0'){
|
|
if(code=='0'){
|
|
const item = Object.assign({},row,data);
|
|
const item = Object.assign({},row,data);
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
- filter:this.filter}:{currentPage:this.currentPage};
|
|
|
|
|
|
+ pageSize:this.pageSize,
|
|
|
|
+ filter:this.filter}:{currentPage:this.currentPage,
|
|
|
|
+ pageSize:this.pageSize};
|
|
this.$router.push({name:'AddSimpleQuestion',params:Object.assign(pam,{isCopy:true,data:item})});
|
|
this.$router.push({name:'AddSimpleQuestion',params:Object.assign(pam,{isCopy:true,data:item})});
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|
|
@@ -212,7 +224,9 @@
|
|
if(code=='0'){
|
|
if(code=='0'){
|
|
const item = Object.assign({},row,data);
|
|
const item = Object.assign({},row,data);
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
- filter:this.filter}:{currentPage:this.currentPage};
|
|
|
|
|
|
+ pageSize:this.pageSize,
|
|
|
|
+ filter:this.filter}:{currentPage:this.currentPage,
|
|
|
|
+ pageSize:this.pageSize};
|
|
this.$router.push({name:'AddSimpleQuestion',params:Object.assign(pam,{isEdit:true,data:item})});
|
|
this.$router.push({name:'AddSimpleQuestion',params:Object.assign(pam,{isEdit:true,data:item})});
|
|
}else{
|
|
}else{
|
|
this.$message({
|
|
this.$message({
|