yangys
2025-08-26 428e6d08629efa80a31e50e27e3c5c38b36bbc67
修复重新指派下拉框无人的问题
已修改1个文件
27 ■■■■■ 文件已修改
src/views/flow/todolist.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flow/todolist.vue
@@ -48,7 +48,7 @@
        </el-drawer>
    </basic-container>
    <div>
        <top-todo ref="topTodoComponent" />
        <!--<top-todo ref="topTodoComponent" />-->
    </div>
</template>
<script>
@@ -325,24 +325,9 @@
        };
    },
    watch: {
        // 'form.category'() {
        //     const category = func.toInt(this.form.category);
        //     this.$refs.crud.option.column.filter(item => {
        //         if (item.prop === 'path') {
        //             item.rules[0].required = category === 1;
        //         }
        //         if (item.prop === 'isOpen') {
        //             item.disabled = category === 2;
        //         }
        //     });
        // },
        'formApprove.approve'(val) {
            this.setAssignee(this.row, val);
            // if(val === 'Y' && ['confirmIsUseableTask'].includes(this.row.taskDefinitionKey) && this.row.variables.isProcessEditionSame=='N') {
            //     // this.optionApprove.column[2].display = true; // 显示工序版次
            // } else {
            //     this.optionApprove.column[2].display = false; // 隐藏工序版次
            // }
            
        },
        'reassignForm.approve'(val) {
@@ -372,6 +357,13 @@
    },
    mounted() {
        //this.setApproveBtn(row)
        getAssignee({
                taskId: 0,
             }).then(res => {
                //if(row.taskDefinitionKey === '')
                this.assigneeData = res.data.data;
                this.reassignOption.column[1].dicData = this.assigneeData;
             });
    },
    methods: {
        // 设置审批结果的状态
@@ -510,6 +502,7 @@
            this.transferTaskSelection = list;
        },
        reassign(val) {// 重新指派
            this.reassignType = val;
            if (this.transferTaskSelection.length === 0) {
                this.$message.warning('请选择需要操作的任务');