美文网首页
getInfoById

getInfoById

作者: 盗生一 | 来源:发表于2020-11-20 17:21 被阅读0次

    2.第二种

    
    /*获取企业Vo信息*/
    export function getInfoById(id) {
        return request({
            url: `/unit/company/getInfo/${id}`,
            method: 'get',
        })
    }
    
    image.png
     getCompanyInfo(this.$route.query.companyId).then((res) => {
            // 分页总数
            // this.total = res.data.total;
            }
    
    image.png
    1. 第一种
    export function getPersonInfoVo(params) {
        return request({
            url: '/person/queryPersonInfoVo',
            method: 'get',
            params
        })
    }
    
    
    image.png
    • {personId: this.$route.query.personId} key:value
            methods: {
                // unitID 路由过来
    
                getInfo() {
                    this.loading = true;
                    // 参数:this.$route.query.unitID
                    getPersonInfoVo({personId: this.$route.query.personId}).then((res)=>{
                        console.log(res.data, "ceshi ");
                    });
                },
            }
    
    image.png

    相关文章

      网友评论

          本文标题:getInfoById

          本文链接:https://www.haomeiwen.com/subject/eyfjiktx.html