文档资料,培训文档模块
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="contentWrap">
|
||||
<div class="itemWrap">
|
||||
<div class="itemWrap" v-for="(item,index) in pageList" :key="index">
|
||||
<div class="info flexBetween common">
|
||||
<div class="title">会记回家和</div>
|
||||
<div class="time">2023-08-24 13:14:00</div>
|
||||
@ -47,6 +47,7 @@
|
||||
|
||||
<script>
|
||||
import {myMixins} from "@/utils/myMixins"
|
||||
import {pageList} from "@/api/mine";
|
||||
export default {
|
||||
name: "trainDocment",
|
||||
mixins:[myMixins],
|
||||
@ -54,16 +55,40 @@ export default {
|
||||
return{
|
||||
tabArr: [{name: '中道制度', status: 1}, {name: '技术参数', status: 2},],
|
||||
activeIndex: 0,
|
||||
orderList: [],
|
||||
pageList:[],
|
||||
pageNum:1,
|
||||
pageSize:10,
|
||||
keyword:'',
|
||||
trainingType:1
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList()
|
||||
},
|
||||
methods:{
|
||||
changeTab(index) {
|
||||
async changeTab(index) {
|
||||
this.activeIndex = index
|
||||
// this.total = 0;
|
||||
this.pageNum = 1
|
||||
this.orderList = [];
|
||||
this.pageList = [];
|
||||
if(this.trainingType === 1){
|
||||
this.trainingType =1
|
||||
}else{
|
||||
this.trainingType=2
|
||||
}
|
||||
await this.getList()
|
||||
},
|
||||
async getList(){
|
||||
let res= await pageList({
|
||||
pageNum:this.pageNum,
|
||||
pageSize:this.pageSize,
|
||||
docType:2,
|
||||
trainingType:this.trainingType
|
||||
})
|
||||
this.pageList=res.data;
|
||||
console.log(res)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user