|
@@ -55,18 +55,6 @@
|
|
|
</el-input>
|
|
|
</div>
|
|
|
</m-list-box>
|
|
|
- <m-list-box>
|
|
|
- <div slot="text"><strong class='requiredIcon'>*</strong>{{$t('Recipient')}}</div>
|
|
|
- <div slot="content">
|
|
|
- <m-email ref="refEmail" v-model="receivers" :disabled="isDetails" :repeat-data="receiversCc"></m-email>
|
|
|
- </div>
|
|
|
- </m-list-box>
|
|
|
- <m-list-box>
|
|
|
- <div slot="text">{{$t('Cc')}}</div>
|
|
|
- <div slot="content">
|
|
|
- <m-email ref="refCc" v-model="receiversCc" :disabled="isDetails" :repeat-data="receivers"></m-email>
|
|
|
- </div>
|
|
|
- </m-list-box>
|
|
|
</template>
|
|
|
<m-list-box v-show="type === 'HIVE'">
|
|
|
<div slot="text">{{$t('SQL Parameter')}}</div>
|
|
@@ -155,7 +143,6 @@
|
|
|
import mLocalParams from './_source/localParams'
|
|
|
import mStatementList from './_source/statementList'
|
|
|
import disabledState from '@/module/mixin/disabledState'
|
|
|
- import mEmail from '@/conf/home/pages/projects/pages/definition/pages/list/_source/email'
|
|
|
import codemirror from '@/conf/home/pages/resource/pages/file/pages/_source/codemirror'
|
|
|
|
|
|
let editor
|
|
@@ -188,10 +175,6 @@
|
|
|
preStatements: [],
|
|
|
// Post statements
|
|
|
postStatements: [],
|
|
|
- // recipients
|
|
|
- receivers: [],
|
|
|
- // copy to
|
|
|
- receiversCc: [],
|
|
|
item: '',
|
|
|
scriptBoxDialog: false
|
|
|
}
|
|
@@ -274,14 +257,6 @@
|
|
|
this.$message.warning(`${i18n.$t('Recipient required')}`)
|
|
|
return false
|
|
|
}
|
|
|
- // receivers Subcomponent verification
|
|
|
- if (this.sqlType === 0 && !this.$refs.refEmail._manualEmail()) {
|
|
|
- return false
|
|
|
- }
|
|
|
- // receiversCc Subcomponent verification
|
|
|
- if (this.sqlType === 0 && !this.$refs.refCc._manualEmail()) {
|
|
|
- return false
|
|
|
- }
|
|
|
// udfs Subcomponent verification Verification only if the data type is HIVE
|
|
|
if (this.type === 'HIVE') {
|
|
|
if (!this.$refs.refUdfs._verifUdfs()) {
|
|
@@ -312,8 +287,6 @@
|
|
|
udfs: this.udfs,
|
|
|
sqlType: this.sqlType,
|
|
|
title: this.title,
|
|
|
- receivers: this.receivers.join(','),
|
|
|
- receiversCc: this.receiversCc.join(','),
|
|
|
showType: (() => {
|
|
|
/**
|
|
|
* Special processing return order TABLE,ATTACHMENT
|
|
@@ -366,19 +339,6 @@
|
|
|
|
|
|
return editor
|
|
|
},
|
|
|
- _getReceiver () {
|
|
|
- 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.receiversCc = res.receiversCc && res.receiversCc.split(',') || []
|
|
|
- })
|
|
|
- },
|
|
|
_cacheParams () {
|
|
|
this.$emit('on-cache-params', {
|
|
|
type: this.type,
|
|
@@ -387,8 +347,6 @@
|
|
|
udfs: this.udfs,
|
|
|
sqlType: this.sqlType,
|
|
|
title: this.title,
|
|
|
- receivers: this.receivers.join(','),
|
|
|
- receiversCc: this.receiversCc.join(','),
|
|
|
showType: (() => {
|
|
|
let showType = this.showType
|
|
|
if (showType.length === 2 && showType[0] === 'ATTACHMENT') {
|
|
@@ -419,8 +377,6 @@
|
|
|
}
|
|
|
if (val !== 0) {
|
|
|
this.title = ''
|
|
|
- this.receivers = []
|
|
|
- this.receiversCc = []
|
|
|
}
|
|
|
},
|
|
|
// Listening data source
|
|
@@ -455,13 +411,6 @@
|
|
|
this.preStatements = o.params.preStatements || []
|
|
|
this.postStatements = o.params.postStatements || []
|
|
|
this.title = o.params.title || ''
|
|
|
- this.receivers = o.params.receivers && o.params.receivers.split(',') || []
|
|
|
- this.receiversCc = o.params.receiversCc && o.params.receiversCc.split(',') || []
|
|
|
- }
|
|
|
- // read tasks from cache
|
|
|
- if (!_.some(this.store.state.dag.cacheTasks, { id: this.createNodeId }) &&
|
|
|
- this.router.history.current.name !== 'definition-create') {
|
|
|
- this._getReceiver()
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
@@ -487,8 +436,6 @@
|
|
|
udfs: this.udfs,
|
|
|
sqlType: this.sqlType,
|
|
|
title: this.title,
|
|
|
- receivers: this.receivers.join(','),
|
|
|
- receiversCc: this.receiversCc.join(','),
|
|
|
showType: (() => {
|
|
|
let showType = this.showType
|
|
|
if (showType.length === 2 && showType[0] === 'ATTACHMENT') {
|
|
@@ -504,6 +451,6 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- components: { mListBox, mDatasource, mLocalParams, mUdfs, mSqlType, mStatementList, mEmail, mScriptBox }
|
|
|
+ components: { mListBox, mDatasource, mLocalParams, mUdfs, mSqlType, mStatementList, mScriptBox }
|
|
|
}
|
|
|
</script>
|