fix: safari浏览器流程图时间显示错误的问题

saber
ssc 4 years ago
parent 478ef0f62d
commit bf3cccfb7d
  1. 10
      src/views/plugin/workflow/mixins/ex-form.js
  2. 2
      src/views/plugin/workflow/process/components/flow.vue

@ -372,10 +372,16 @@ export default {
const flows = []
flow.forEach(f => {
const { assigneeName, createTime, endTime, comments } = f
let { assigneeName, createTime, endTime, comments } = f
if ((/Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent))) { // safari
createTime = createTime.replace(/-/g, '/')
endTime = endTime.replace(/-/g, '/')
}
const ff = {
id: f.historyActivityId,
class: (!endTime && f.historyActivityType != 'candidate') ? 'nodePrimary': ''
class: (!endTime && f.historyActivityType != 'candidate') ? 'nodePrimary' : ''
}
let tooltip = ''
if (assigneeName) {

@ -15,7 +15,7 @@
<template v-if="index < 1">
<span v-if="commentMap[comment.type]">{{commentMap[comment.type]}}: [{{comment.fullMessage}}]</span>
<span style="color: #1989fa; float: right;"
v-if="item.comments.length > 1"
v-if="item.comments.filter(c => c.action === 'AddComment').length > 1"
@click="handleClick">{{toggleText}} <i :class="[isFlag ? 'el-icon-arrow-up' : 'el-icon-arrow-down']"></i> </span>
<p style="color: gray; font-size: 12px;"
v-if="comment.time">{{comment.time}}</p>

Loading…
Cancel
Save