view.js 3.16 KB
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92

export default {
  data() {
    const that = this
    return {
      formData: [
        {
          split: 2,
          data: [{
            key: 'id',
            title: '实例ID',
            component: {
              name: 'readable'
            }
          },
          {
            key: 'name',
            title: '实例名称',
            component: {
              name: 'readable'
            }
          },
          {
            key: 'status',
            title: '状态',
            component: {
              name: 'readable'
            }
          },
          {
            key: 'taskName',
            title: '当前任务',
            component: {
              name: 'readable'
            }
          },
          {
            key: 'assignName',
            title: '处理人',
            component: {
              name: 'readable'
            }
          },
          {
            key: 'gmtCreate',
            title: '流程启动时间',
            component: {
              name: 'readable'
            }
          },
          {
            key: 'gmtFinished',
            title: '流程结束时间',
            component: {
              name: 'readable'
            }
          }]
        }
      ],
      tableColums: [
        { title: '节点序号', key: 'taskIndex', align: 'center', width: 100 },
        { title: '节点', key: 'taskName', align: 'center', minWidth: 70 },
        { title: '参与者类型', key: 'pluginName', align: 'center', formatter(row, column) {
          const pluginName = []
          row.dxWfParticipantInfoVOList.forEach(el => {
            pluginName.push(that.allTypeObj[el.participantInfoExtVO.pluginName])
          })
          return pluginName.join(',')
        } },
        {
          title: '参与者', key: 'pluginShowContent', align: 'center' },
        { title: '处理人', key: 'assignName', align: 'center' }
      ],
      taskTableColums: [
        { title: '节点', key: 'taskName', align: 'center', minWidth: 70 },
        { title: '节点序号', key: 'taskIndex', align: 'center', width: 100, formatter(row, column) {
          return that.tasksIndexObj[row.taskDefinitionKey]
        } },
        { title: '参与者类型', key: 'pluginName', align: 'center', formatter(row, column) {
          const pluginName = []
          if (row.pluginName && row.pluginName.length) {
            row.pluginName.forEach(el => {
              pluginName.push(that.allTypeObj[el])
            })
          }
          return pluginName.join(',')
        } },
        { title: '参与者', key: 'pluginShowContent', align: 'center' },
        { title: '处理人', key: 'assigneeName', align: 'center' },
        { title: '任务接收时间', key: 'startTime', align: 'center' },
        { title: '任务处理时间', key: 'endTime', align: 'center' },
        { title: '处理结果', key: 'result', align: 'center' },
wangdanlei's avatar
wangdanlei committed
93 94 95 96 97 98
        { title: '备注', key: 'comments', align: 'center' },
        { title: '任务来源', key: 'source', align: 'center',
          formatter: (row) => {
            return (row.source || []).join(',')
          }
        }
wangdanlei's avatar
wangdanlei committed
99 100 101 102 103 104 105 106 107 108 109 110 111
      ]
    }
  },
  computed: {},
  watch: {

  },
  mounted() {},
  methods: {

  }
}