123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
-
- import * as API from '@/apis/hr/my.js'
- import ResumeItem from '@/components/hr/ResumeItem.vue'
- //loadJobManagement
- export default {
- data() {
- return {
- isReady:false,
- src: '/static/img/head/png',
- keyword: '遥看瀑布挂前川',
- list: [{
- name: '全部',
- list:[],
- status:"",
- pageIndex:1,
- recordsTotal:0,
- }, {
- name: '已投递',
- list:[],
- status:"1",
- pageIndex:1,
- recordsTotal:0,
- }, {
- name: '邀沟通',
- list:[],
- status:"2",
- pageIndex:1,
- recordsTotal:0,
- },{
- name: '邀面试',
- list:[],
- status:"3",
- pageIndex:1,
- recordsTotal:0,
- }, {
- name: '邀入职',
- list:[],
- status:"4",
- pageIndex:1,
- recordsTotal:0,
- },{
- name: '已入职',
- list:[],
- status:"5",
- pageIndex:1,
- recordsTotal:0,
- }, {
- name: '不合适',
- list:[],
- status:"6",
- pageIndex:1,
- recordsTotal:0,
- }],
- current: 0
- }
- },
- components: {
- ResumeItem
- },
- onLoad(op){
- //this.id=op.id;
- },
- methods: {
- myLoadmore(){
- var obj=this.list[this.current];
- obj.pageIndex+=1;
- this.getList()
- },
- change(index) {
- this.current = index;
- var obj=this.list[this.current];
-
- if(obj.list.length==0){
- this.getList()
- }
- },
- getList(){
- uni.showLoading({
- title:"加载中"
- })
- var obj=this.list[this.current];
- var data={
- type:obj.status,
- pageIndex:obj.pageIndex
- };
- API.loadJobManagement(data).then((res) => {
-
- obj.list=[
- ...obj.list,
- ...res.data.data
- ];
- obj.recordsTotal=res.data.recordsTotal
- uni.hideLoading()
- console.log(this.list)
- }).catch(error => {
- uni.showToast({
-
- title:error
- })
- })
- }
-
- },onReady(){
- this.getList()
- this.isReady=true;
- },onShow(){
- if(this.isReady){
-
- }
- },
- }
|