|
|
@ -28,6 +28,17 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</m-list-box> |
|
|
|
</m-list-box> |
|
|
|
<template v-if="!sqlType && showType.length"> |
|
|
|
<template v-if="!sqlType && showType.length"> |
|
|
|
|
|
|
|
<m-list-box> |
|
|
|
|
|
|
|
<div slot="text">{{$t('Title')}}</div> |
|
|
|
|
|
|
|
<div slot="content"> |
|
|
|
|
|
|
|
<x-input |
|
|
|
|
|
|
|
type="input" |
|
|
|
|
|
|
|
v-model="title" |
|
|
|
|
|
|
|
:placeholder="$t('Please enter the title of email')" |
|
|
|
|
|
|
|
autocomplete="off"> |
|
|
|
|
|
|
|
</x-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</m-list-box> |
|
|
|
<m-list-box> |
|
|
|
<m-list-box> |
|
|
|
<div slot="text">{{$t('Recipient')}}</div> |
|
|
|
<div slot="text">{{$t('Recipient')}}</div> |
|
|
|
<div slot="content"> |
|
|
|
<div slot="content"> |
|
|
@ -141,6 +152,8 @@ |
|
|
|
udfs: '', |
|
|
|
udfs: '', |
|
|
|
// Sql type |
|
|
|
// Sql type |
|
|
|
sqlType: 0, |
|
|
|
sqlType: 0, |
|
|
|
|
|
|
|
// Email title |
|
|
|
|
|
|
|
title: '', |
|
|
|
// Form/attachment |
|
|
|
// Form/attachment |
|
|
|
showType: ['TABLE'], |
|
|
|
showType: ['TABLE'], |
|
|
|
// Sql parameter |
|
|
|
// Sql parameter |
|
|
@ -241,6 +254,7 @@ |
|
|
|
sql: editor.getValue(), |
|
|
|
sql: editor.getValue(), |
|
|
|
udfs: this.udfs, |
|
|
|
udfs: this.udfs, |
|
|
|
sqlType: this.sqlType, |
|
|
|
sqlType: this.sqlType, |
|
|
|
|
|
|
|
title: this.title, |
|
|
|
receivers: this.receivers.join(','), |
|
|
|
receivers: this.receivers.join(','), |
|
|
|
receiversCc: this.receiversCc.join(','), |
|
|
|
receiversCc: this.receiversCc.join(','), |
|
|
|
showType: (() => { |
|
|
|
showType: (() => { |
|
|
@ -308,6 +322,7 @@ |
|
|
|
this.showType = [] |
|
|
|
this.showType = [] |
|
|
|
} |
|
|
|
} |
|
|
|
if (val !== 0) { |
|
|
|
if (val !== 0) { |
|
|
|
|
|
|
|
this.title = '' |
|
|
|
this.receivers = [] |
|
|
|
this.receivers = [] |
|
|
|
this.receiversCc = [] |
|
|
|
this.receiversCc = [] |
|
|
|
} |
|
|
|
} |
|
|
@ -321,6 +336,7 @@ |
|
|
|
// |
|
|
|
// |
|
|
|
showType (val) { |
|
|
|
showType (val) { |
|
|
|
if (!val.length) { |
|
|
|
if (!val.length) { |
|
|
|
|
|
|
|
this.title = '' |
|
|
|
this.receivers = [] |
|
|
|
this.receivers = [] |
|
|
|
this.receiversCc = [] |
|
|
|
this.receiversCc = [] |
|
|
|
} |
|
|
|
} |
|
|
@ -342,6 +358,7 @@ |
|
|
|
this.showType = o.params.showType.split(',') || [] |
|
|
|
this.showType = o.params.showType.split(',') || [] |
|
|
|
this.preStatements = o.params.preStatements || [] |
|
|
|
this.preStatements = o.params.preStatements || [] |
|
|
|
this.postStatements = o.params.postStatements || [] |
|
|
|
this.postStatements = o.params.postStatements || [] |
|
|
|
|
|
|
|
this.title = o.params.title || '' |
|
|
|
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(',') || [] |
|
|
|
} |
|
|
|
} |
|
|
|