All files / src/components/u-process-myprocess.vue index.designer.vue

75% Statements 9/12
25% Branches 1/4
0% Functions 0/1
75% Lines 9/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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      1x   1x     1x                                                                                                      
<template>
    <u-process-myprocess-real v-if="$env.VUE_APP_DESIGNER" ref="myprocess" :initial-load="false"></u-process-myprocess-real>
    <component
        v-else
        is="u-process-myprocess-real"
        v-bind="[$attrs, $props]"
        v-on="$listeners">
    </component>
</template>
<script>
import UProcessMyprocessReal from './index.vue';
 
export default {
    component: {
        UProcessMyprocessReal,
    },
    mounted() {
        if (this.$refs.myprocess) {
            this.timer = setTimeout(() => {
                this.$refs.myprocess.$refs.tableview.currentDataSource.arrangedData = [
                    {
                        taskId: '2759bf13-9fd4-11ee-8735-8a36b3181f25',
                        currentNode: '审批任务',
                        processTitle: '流程1',
                        currentAssignee: '章三',
                        currentCandidateUsers: [],
                        startBy: '张三',
                        taskCreateTime: '2023-12-21 08:10:10',
                    },
                    {
                        taskId: '275c0907-9fd4-11ee-8735-8a36b3181f25',
                        currentNode: '审批任务',
                        processTitle: '流程1',
                        currentAssignee: '章三',
                        currentCandidateUsers: [
                            'xb1',
                            'zzz zz',
                            'yyy yy',
                            'xxx xx',
                        ],
                        startBy: '张三',
                        taskCreateTime: '2023-12-21 08:10:10',
                    },
                    {
                        taskId: '2759bf13-9fd4-11ee-8735-8a36b3181f25',
                        currentNode: '审批任务',
                        processTitle: '流程1',
                        currentAssignee: '章三',
                        currentCandidateUsers: [],
                        startBy: '张三',
                        taskCreateTime: '2023-12-21 08:10:10',
                    },
                ];
                clearTimeout(this.timer);
            });
        }
    },
};
</script>