operate.vue 1.91 KB
<!-- 操作记录 -->
<template>
  <div class="oparete-wrap">
    <div class="title">
      操作记录
    </div>
    <div class="content">
      <div v-for="(item, index) in logs"
           :key="index"
           class="item">
        <div class="item-type">
          {{ operationType[item.operationType] }}
        </div>
        <div class="item-operate">
          操作人:{{ item.createdBy }}
        </div>
        <div class="item-time">
          操作时间:{{ item.createdDate }}
        </div>
        <div v-if="item.operationRemark" class="item-remark">
          {{ item.operationRemark }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
	props: {
		logs: {
			type: Array,
			default: () => [],
		},
	},
	data() {
		return {
			// 1-创建 2-人事确认 3-驳回 4-新增简历 5-编辑简历 6-新增入职 7-完成 ,
			operationType: {
				1: "创建",
				2: "人事确认",
				3: "驳回",
				4: "新增简历",
				5: "编辑简历",
				6: "新增入职",
				7: "完成",
				8: "处理",
				9: "督导确认",
				10: "试岗开账号通过",
				11: "试岗开账号驳回",
			},
		};
	},
};
</script>

<style lang="scss" scoped>
.oparete-wrap {
	background: #ffffff;
	margin: 20px 20px 0;
	.title {
		color: #333333;
		font-size: 16px;
		font-weight: bold;
		padding: 13.5px 20px;
		border-bottom: 1px solid #e5e5e5;
		line-height: 23px;
		box-sizing: border-box;
	}
	.content {
		padding: 20px;
	}
	.item {
		display: flex;
		align-items: center;
		margin-bottom: 20px;
		.item-type {
			color: #333333;
			font-size: 14px;
			font-weight: 600;
			width: 120px;
			margin-right: 40px;
		}
		.item-operate {
			width: 200px;
			color: #333333;
			font-size: 14px;
			margin-right: 40px;
		}
		.item-time {
			color: #333333;
			font-size: 14px;
			margin-right: 40px;
		}
		.item-remark {
			color: #333333;
			font-size: 14px;
			margin-right: 40px;
		}
	}
}
</style>