diff --git a/flowable-engine-web/src/views/common/process/nodes/CcNode.vue b/flowable-engine-web/src/views/common/process/nodes/CcNode.vue index fd63a57..21a5b8c 100644 --- a/flowable-engine-web/src/views/common/process/nodes/CcNode.vue +++ b/flowable-engine-web/src/views/common/process/nodes/CcNode.vue @@ -1,5 +1,6 @@ @@ -9,8 +10,8 @@ import Node from './Node' export default { name: "CcNode", - props:{ - config:{ + props: { + config: { type: Object, default: () => { return {} @@ -24,30 +25,30 @@ export default { errorInfo: '', } }, - computed:{ - selectUser(){ + computed: { + selectUser() { return { show: this.config.props.assignedType !== 'ASSIGN_USER', multiple: true }; }, - viewer(){ + viewer() { return this.$store.state.diagramMode === 'viewer' }, - preview(){ + preview() { return this.$store.state.preview; }, headerBgc() { - if (this.preview || !this.viewer){ + if (this.preview || !this.viewer) { return '#3296fa' - }else { + } else { return this.config.props.headerBgc } }, content() { - if (this.config.props.shouldAdd){ + if (this.config.props.shouldAdd) { return '由发起人指定' - }else if (this.config.props.assignedUser.length > 0) { + } else if (this.config.props.assignedUser.length > 0) { let texts = [] this.config.props.assignedUser.forEach(org => texts.push(org.name)) return String(texts).replaceAll(',', '、') @@ -58,15 +59,15 @@ export default { }, methods: { //校验数据配置的合法性 - validate(err){ + validate(err) { this.showError = false - if(this.config.props.shouldAdd){ + if (this.config.props.shouldAdd) { this.showError = false - }else if(this.config.props.assignedUser.length === 0){ + } else if (this.config.props.assignedUser.length === 0) { this.showError = true this.errorInfo = '请选择需要抄送的人员' } - if (this.showError){ + if (this.showError) { err.push(`抄送节点 ${this.config.name} 未设置抄送人`) } return !this.showError