@ -55,18 +55,6 @@
< / e l - i n p u t >
< / div >
< / m - l i s t - b o x >
< 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 - l i s t - b o x >
< 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 - l i s t - b o x >
< / 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
@ -278,10 +265,6 @@
if ( this . sqlType === 0 && ! this . $refs . refEmail . _manualEmail ( ) ) {
return false
}
/ / r e c e i v e r s C c S u b c o m p o n e n t v e r i f i c a t i o n
if ( this . sqlType === 0 && ! this . $refs . refCc . _manualEmail ( ) ) {
return false
}
/ / u d f s S u b c o m p o n e n t v e r i f i c a t i o n V e r i f i c a t i o n o n l y i f t h e d a t a t y p e i s H I V E
if ( this . type === 'HIVE' ) {
if ( ! this . $refs . refUdfs . _verifUdfs ( ) ) {
@ -366,19 +349,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 ,
@ -419,8 +389,6 @@
}
if ( val !== 0 ) {
this . title = ''
this . receivers = [ ]
this . receiversCc = [ ]
}
} ,
/ / L i s t e n i n g d a t a s o u r c e
@ -455,13 +423,10 @@
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 ( ',' ) || [ ]
}
/ / r e a d t a s k s f r o m c a c h e
if ( ! _ . some ( this . store . state . dag . cacheTasks , { id : this . createNodeId } ) &&
this . router . history . current . name !== 'definition-create' ) {
this . _getReceiver ( )
}
} ,
mounted ( ) {
@ -504,6 +469,6 @@
}
}
} ,
components : { mListBox , mDatasource , mLocalParams , mUdfs , mSqlType , mStatementList , mEmail , m ScriptBox }
components : { mListBox , mDatasource , mLocalParams , mUdfs , mSqlType , mStatementList , mScriptBox }
}
< / script >