|
|
@ -29,15 +29,15 @@ |
|
|
|
</m-list-box> |
|
|
|
</m-list-box> |
|
|
|
<template v-if="!sqlType && showType.length"> |
|
|
|
<template v-if="!sqlType && showType.length"> |
|
|
|
<m-list-box> |
|
|
|
<m-list-box> |
|
|
|
<div slot="text">收件人</div> |
|
|
|
<div slot="text">{{$t('Recipient')}}</div> |
|
|
|
<div slot="content"> |
|
|
|
<div slot="content"> |
|
|
|
<m-email v-model="receivers" :repeat-data="receiversCc"></m-email> |
|
|
|
<m-email v-model="receivers" :disabled="isDetails" :repeat-data="receiversCc"></m-email> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</m-list-box> |
|
|
|
</m-list-box> |
|
|
|
<m-list-box> |
|
|
|
<m-list-box> |
|
|
|
<div slot="text">抄送人</div> |
|
|
|
<div slot="text">{{$t('Cc')}}</div> |
|
|
|
<div slot="content"> |
|
|
|
<div slot="content"> |
|
|
|
<m-email v-model="receiversCc" :repeat-data="receivers"></m-email> |
|
|
|
<m-email v-model="receiversCc" :disabled="isDetails" :repeat-data="receivers"></m-email> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</m-list-box> |
|
|
|
</m-list-box> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -132,7 +132,8 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
mixins: [disabledState], |
|
|
|
mixins: [disabledState], |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
backfillItem: Object |
|
|
|
backfillItem: Object, |
|
|
|
|
|
|
|
createNodeId: Number |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
/** |
|
|
|
/** |
|
|
@ -238,7 +239,14 @@ |
|
|
|
return editor |
|
|
|
return editor |
|
|
|
}, |
|
|
|
}, |
|
|
|
_getReceiver () { |
|
|
|
_getReceiver () { |
|
|
|
this.store.dispatch('dag/getReceiver', { processDefinitionId: this.item.id }).then(res => { |
|
|
|
let param = {} |
|
|
|
|
|
|
|
let current = this.router.history.current |
|
|
|
|
|
|
|
if (current.name === 'projects-definition-details') { |
|
|
|
|
|
|
|
param.processDefinitionId = current.params.id |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
param.processInstanceId = current.params.id |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.store.dispatch('dag/getReceiver', param).then(res => { |
|
|
|
this.receivers = res.receivers && res.receivers.split(',') || [] |
|
|
|
this.receivers = res.receivers && res.receivers.split(',') || [] |
|
|
|
this.receiversCc = res.receiversCc && res.receiversCc.split(',') || [] |
|
|
|
this.receiversCc = res.receiversCc && res.receiversCc.split(',') || [] |
|
|
|
}) |
|
|
|
}) |
|
|
@ -286,8 +294,8 @@ |
|
|
|
this.receivers = o.params.receivers && o.params.receivers.split(',') || [] |
|
|
|
this.receivers = o.params.receivers && o.params.receivers.split(',') || [] |
|
|
|
this.receiversCc = o.params.receiversCc && o.params.receiversCc.split(',') || [] |
|
|
|
this.receiversCc = o.params.receiversCc && o.params.receiversCc.split(',') || [] |
|
|
|
} |
|
|
|
} |
|
|
|
// |
|
|
|
if (!_.some(this.store.state.dag.tasks, { id: this.createNodeId }) && |
|
|
|
if (this.router.history.current.name === 'definition-create') { |
|
|
|
this.router.history.current.name !== 'definition-create') { |
|
|
|
this._getReceiver() |
|
|
|
this._getReceiver() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|