empDetail.vue 1.61 KB
<!--
 * @Author: yangming yangming@didihu.com.cn
 * @Date: 2023-09-08 11:02:19
 * @LastEditors: yangming yangming@didihu.com.cn
 * @LastEditTime: 2023-09-08 11:13:18
 * @FilePath: \scrm-micro-journey\src\views\journeyConfig\components\empDetail.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <GLDialog title="查看详情" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="empVisible">
    <div class="dialog-body">
      <div class="task-wrap">
        <div class="task-item" v-for="(item, index) in taskInfo" :key="index">
          <span>{{ item.label }}</span>
        </div>
      </div>
    </div>
  </GLDialog>
</template>
<script>
export default {
  props: {
    empVisible: Boolean
  },
  data() {
    return {
      taskInfo: [
        {
          label: '需执行客户数量'
        },
        {
          label: '已下达任务数量'
        },
        {
          label: '需执行任务员工数'
        }
      ]
    }
  },
  methods: {
    //获取活动信息
    getActivity() {
      console.log(this.addForm.activityId)
    },
    init() {
      this.empVisible = true
      this.getActivityList()
    },
    //关联活动
    handleSure() {
      this.$refs.addForm.validate(valid => {
        if (valid) {
          this.handleClose()
          this.$emit('setProcess')
        }
      })
    },
    handleClose() {
      this.empVisible = false
    }
  }
}
</script>
<style lang="scss" scoped>
.dialog-body {
  padding: 16px;
}
</style>