<template> <div class="content"> <div class="header"> <div class="tip"></div> <div class="title">工作信息</div> </div> <div class="box"> <div class="item"> <span>派遣公司</span> <label>{{this.query.spFullName}}</label> </div> <div class="item"> <span>用工单位</span> <label>{{this.obj.workUnit}}</label> </div> <div class="item"> <span>工作地点</span> <label>{{this.query.workAddress}}</label> </div> <div class="item"> <span>工作职位</span> <label>{{this.obj.position}}</label> </div> <div class="item"> <span>入职时间</span> <label>{{this.obj.workStartDate}}</label> </div> </div> </div> </template> <script lang="ts"> import Vue from "vue"; import { Icon } from "vant"; import { Component, Prop } from "vue-property-decorator"; @Component({ components: { [Icon.name]: Icon } }) export default class workInfo extends Vue { @Prop({ type: Object, required: true, default: "" }) obj!: string; @Prop({ type: Object, required: true, default: "" }) query!: string; } </script> <style lang="less" scoped> .content { margin-top: 10px; background: white; .header { height: 50px; display: flex; align-items: center; .tip { width: 3px; height: 16px; background: rgba(34, 189, 122, 1); } .title { margin-left: 17px; font-size: 16px; font-weight: 500; color: rgba(61, 64, 71, 1); } i { margin: 0 20px 0 auto; } } .box { margin: 0 20px; padding: 12px 0; border-top: 1px solid #eaeef5; .item { display: flex; align-items: center; span { min-width: 98px; display: block; font-size: 14px; color: rgba(149, 152, 158, 1); line-height: 30px; text-align: right; margin-bottom: auto; } label { font-size: 14px; color: rgba(61, 64, 71, 1); line-height: 30px; margin-left: 20px; } } } } </style>