Explorar el Código

流程结果翻译bug

yusheng hace 11 meses
padre
commit
faf30d76c2

+ 3 - 2
src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue

@@ -303,9 +303,10 @@ export default {
           if (!task) {
             return;
           }
+
           html = `<p>审批人:${task.assigneeUser.nickname}</p>
                   <p>部门:${task.assigneeUser.deptName}</p>
-                  <p>结果:${this.getDictValue('流程实例的结果', task.result)}</p>
+                  <p>结果:${this.getDictValue('流程实例的结果', task.result+'')}</p>
                   <p>创建时间:${task.createTime}</p>`;
           if (task.endTime) {
             html += `<p>结束时间:${task.endTime}</p>`
@@ -322,7 +323,7 @@ export default {
           }
           console.log(html)
         } else if (element.type === 'bpmn:EndEvent' && this.processInstance) {
-          html = `<p>结果:${this.getDictValue('流程实例的结果', this.processInstance.result)}</p>`;
+          html = `<p>结果:${this.getDictValue('流程实例的结果', this.processInstance.result+'')}</p>`;
           if (this.processInstance.endTime) {
             html += `<p>结束时间:${this.processInstance.endTime}</p>`
           }

+ 1 - 1
src/enum/dict.js

@@ -42,7 +42,7 @@ export default {
   机构类型: 'group_type',
   工作流任务分配规则的类型: 'bpm_task_assign_rule_type',
   工作流任务分配自定义脚本: 'bpm_task_assign_script',
-  流程实例的结果: ' bpm_process_instance_result',
+  流程实例的结果: 'bpm_process_instance_result',
   角色数据权限字典: 'role_data_authority_dic',
   区域等级: 'main_area_level',
   区域类型: 'main_area_type',