Browse Source

update verifyResourceName

pull/2/head
lgcareer 5 years ago
parent
commit
be804b5a63
  1. 15
      escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue

15
escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue

@ -47,7 +47,7 @@
</div> </div>
<div class="clearfix list"> <div class="clearfix list">
<div class="text">{{$t('previewTime')}}</div> <div class="text">{{$t('previewTime')}}</div>
<x-input v-model="previewResult" style="width: 360px;"></x-input> <x-input v-model="previewTime" style="width: 360px;" readonly :value="123"></x-input>
</div> </div>
<div class="clearfix list"> <div class="clearfix list">
<div class="text"> <div class="text">
@ -168,7 +168,8 @@
receiversCc: [], receiversCc: [],
i18n: i18n.globalScope.LOCALE, i18n: i18n.globalScope.LOCALE,
processInstancePriority: 'MEDIUM', processInstancePriority: 'MEDIUM',
workerGroupId: -1 workerGroupId: -1,
previewTime: 12345
} }
}, },
props: { props: {
@ -244,10 +245,12 @@
let msg = '' let msg = ''
this.store.dispatch(api, searchParams).then(res => { this.store.dispatch(api, searchParams).then(res => {
this.$message.success(msg) this.previewTime = res
this.$emit('onUpdate') if (this.previewTime.length) {
}).catch(e => { resolve()
this.$message.error(e.msg || '') } else {
reject(new Error(0))
}
}) })
} }
}, },

Loading…
Cancel
Save