提交 bd451c9d 编写于 作者: ibizdev's avatar ibizdev

lab_xuhui 发布系统代码 [ibiz-task,任务调度]

上级 3112cf9b
...@@ -33,8 +33,11 @@ function getLocaleResourceBase(){ ...@@ -33,8 +33,11 @@ function getLocaleResourceBase(){
}, },
main_form: { main_form: {
details: { details: {
grouppanel2: commonLogic.appcommonhandle("分组面板",null),
grouppanel3: commonLogic.appcommonhandle("分组面板",null),
grouppanel4: commonLogic.appcommonhandle("分组面板",null),
druipart1: commonLogic.appcommonhandle("",null), druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("任务信息基本信息",null), grouppanel1: commonLogic.appcommonhandle("分组面板",null),
formpage1: commonLogic.appcommonhandle("基本信息",null), formpage1: commonLogic.appcommonhandle("基本信息",null),
srforikey: commonLogic.appcommonhandle("",null), srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("主键ID",null), srfkey: commonLogic.appcommonhandle("主键ID",null),
...@@ -44,19 +47,19 @@ function getLocaleResourceBase(){ ...@@ -44,19 +47,19 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null),
app: commonLogic.appcommonhandle("服务名",null), app: commonLogic.appcommonhandle("服务名",null),
handler: commonLogic.appcommonhandle("执行器任务HANDLER",null),
cron: commonLogic.appcommonhandle("任务执行CRON",null),
param: commonLogic.appcommonhandle("执行器任务参数",null),
last_time: commonLogic.appcommonhandle("上次调度时间",null), last_time: commonLogic.appcommonhandle("上次调度时间",null),
author: commonLogic.appcommonhandle("所有者",null),
create_time: commonLogic.appcommonhandle("创建时间",null),
handler: commonLogic.appcommonhandle("执行器任务HANDLER",null),
next_time: commonLogic.appcommonhandle("下次调度时间",null), next_time: commonLogic.appcommonhandle("下次调度时间",null),
status: commonLogic.appcommonhandle("状态",null),
update_time: commonLogic.appcommonhandle("更新时间",null),
cron: commonLogic.appcommonhandle("任务执行CRON",null),
timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null), timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null),
fail_retry_count: commonLogic.appcommonhandle("失败重试次数",null), fail_retry_count: commonLogic.appcommonhandle("失败重试次数",null),
author: commonLogic.appcommonhandle("所有者",null),
remark: commonLogic.appcommonhandle("备注",null),
status: commonLogic.appcommonhandle("状态",null),
tenant_id: commonLogic.appcommonhandle("租户ID",null), tenant_id: commonLogic.appcommonhandle("租户ID",null),
create_time: commonLogic.appcommonhandle("创建时间",null), remark: commonLogic.appcommonhandle("备注",null),
update_time: commonLogic.appcommonhandle("更新时间",null), param: commonLogic.appcommonhandle("执行器任务参数",null),
id: commonLogic.appcommonhandle("主键ID",null), id: commonLogic.appcommonhandle("主键ID",null),
}, },
uiactions: { uiactions: {
......
...@@ -33,8 +33,11 @@ function getLocaleResourceBase(){ ...@@ -33,8 +33,11 @@ function getLocaleResourceBase(){
}, },
main_form: { main_form: {
details: { details: {
grouppanel2: commonLogic.appcommonhandle("分组面板",null),
grouppanel3: commonLogic.appcommonhandle("分组面板",null),
grouppanel4: commonLogic.appcommonhandle("分组面板",null),
druipart1: commonLogic.appcommonhandle("",null), druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("任务信息基本信息",null), grouppanel1: commonLogic.appcommonhandle("分组面板",null),
formpage1: commonLogic.appcommonhandle("基本信息",null), formpage1: commonLogic.appcommonhandle("基本信息",null),
srforikey: commonLogic.appcommonhandle("",null), srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("主键ID",null), srfkey: commonLogic.appcommonhandle("主键ID",null),
...@@ -44,19 +47,19 @@ function getLocaleResourceBase(){ ...@@ -44,19 +47,19 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null),
app: commonLogic.appcommonhandle("服务名",null), app: commonLogic.appcommonhandle("服务名",null),
handler: commonLogic.appcommonhandle("执行器任务HANDLER",null),
cron: commonLogic.appcommonhandle("任务执行CRON",null),
param: commonLogic.appcommonhandle("执行器任务参数",null),
last_time: commonLogic.appcommonhandle("上次调度时间",null), last_time: commonLogic.appcommonhandle("上次调度时间",null),
author: commonLogic.appcommonhandle("所有者",null),
create_time: commonLogic.appcommonhandle("创建时间",null),
handler: commonLogic.appcommonhandle("执行器任务HANDLER",null),
next_time: commonLogic.appcommonhandle("下次调度时间",null), next_time: commonLogic.appcommonhandle("下次调度时间",null),
status: commonLogic.appcommonhandle("状态",null),
update_time: commonLogic.appcommonhandle("更新时间",null),
cron: commonLogic.appcommonhandle("任务执行CRON",null),
timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null), timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null),
fail_retry_count: commonLogic.appcommonhandle("失败重试次数",null), fail_retry_count: commonLogic.appcommonhandle("失败重试次数",null),
author: commonLogic.appcommonhandle("所有者",null),
remark: commonLogic.appcommonhandle("备注",null),
status: commonLogic.appcommonhandle("状态",null),
tenant_id: commonLogic.appcommonhandle("租户ID",null), tenant_id: commonLogic.appcommonhandle("租户ID",null),
create_time: commonLogic.appcommonhandle("创建时间",null), remark: commonLogic.appcommonhandle("备注",null),
update_time: commonLogic.appcommonhandle("更新时间",null), param: commonLogic.appcommonhandle("执行器任务参数",null),
id: commonLogic.appcommonhandle("主键ID",null), id: commonLogic.appcommonhandle("主键ID",null),
}, },
uiactions: { uiactions: {
......
...@@ -33,8 +33,11 @@ function getLocaleResourceBase(){ ...@@ -33,8 +33,11 @@ function getLocaleResourceBase(){
}, },
main_form: { main_form: {
details: { details: {
grouppanel2: commonLogic.appcommonhandle("分组面板",null),
grouppanel3: commonLogic.appcommonhandle("分组面板",null),
grouppanel4: commonLogic.appcommonhandle("分组面板",null),
druipart1: commonLogic.appcommonhandle("",null), druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("任务信息基本信息",null), grouppanel1: commonLogic.appcommonhandle("分组面板",null),
formpage1: commonLogic.appcommonhandle("基本信息",null), formpage1: commonLogic.appcommonhandle("基本信息",null),
srforikey: commonLogic.appcommonhandle("",null), srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("主键ID",null), srfkey: commonLogic.appcommonhandle("主键ID",null),
...@@ -44,19 +47,19 @@ function getLocaleResourceBase(){ ...@@ -44,19 +47,19 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null),
app: commonLogic.appcommonhandle("服务名",null), app: commonLogic.appcommonhandle("服务名",null),
handler: commonLogic.appcommonhandle("执行器任务HANDLER",null),
cron: commonLogic.appcommonhandle("任务执行CRON",null),
param: commonLogic.appcommonhandle("执行器任务参数",null),
last_time: commonLogic.appcommonhandle("上次调度时间",null), last_time: commonLogic.appcommonhandle("上次调度时间",null),
author: commonLogic.appcommonhandle("所有者",null),
create_time: commonLogic.appcommonhandle("创建时间",null),
handler: commonLogic.appcommonhandle("执行器任务HANDLER",null),
next_time: commonLogic.appcommonhandle("下次调度时间",null), next_time: commonLogic.appcommonhandle("下次调度时间",null),
status: commonLogic.appcommonhandle("状态",null),
update_time: commonLogic.appcommonhandle("更新时间",null),
cron: commonLogic.appcommonhandle("任务执行CRON",null),
timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null), timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null),
fail_retry_count: commonLogic.appcommonhandle("失败重试次数",null), fail_retry_count: commonLogic.appcommonhandle("失败重试次数",null),
author: commonLogic.appcommonhandle("所有者",null),
remark: commonLogic.appcommonhandle("备注",null),
status: commonLogic.appcommonhandle("状态",null),
tenant_id: commonLogic.appcommonhandle("租户ID",null), tenant_id: commonLogic.appcommonhandle("租户ID",null),
create_time: commonLogic.appcommonhandle("创建时间",null), remark: commonLogic.appcommonhandle("备注",null),
update_time: commonLogic.appcommonhandle("更新时间",null), param: commonLogic.appcommonhandle("执行器任务参数",null),
id: commonLogic.appcommonhandle("主键ID",null), id: commonLogic.appcommonhandle("主键ID",null),
}, },
uiactions: { uiactions: {
......
...@@ -2,8 +2,11 @@ ...@@ -2,8 +2,11 @@
<i-form :model="this.data" class='app-form' ref='form' id='jobsinfo_main' style="" @on-validate="formItemValidate"> <i-form :model="this.data" class='app-form' ref='form' id='jobsinfo_main' style="" @on-validate="formItemValidate">
<input style="display:none;" /> <input style="display:none;" />
<row > <row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.grouppanel1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group1.manageContainerStatus" :isManageContainer="detailsModel.group1.isManageContainer" @managecontainerclick="manageContainerClick('group1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.jobsinfo.main_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" > <app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel1.manageContainerStatus" :isManageContainer="detailsModel.grouppanel1.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.jobsinfo.main_form.details.grouppanel1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.grouppanel2.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel2.manageContainerStatus" :isManageContainer="detailsModel.grouppanel2.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel2')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.jobsinfo.main_form.details.grouppanel2')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.app.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.app.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='app' :itemRules="this.rules().app" class='' :caption="$t('entities.jobsinfo.main_form.details.app')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.app.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='app' :itemRules="this.rules().app" class='' :caption="$t('entities.jobsinfo.main_form.details.app')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.app.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -19,27 +22,27 @@ ...@@ -19,27 +22,27 @@
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.handler.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.last_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='handler' :itemRules="this.rules().handler" class='' :caption="$t('entities.jobsinfo.main_form.details.handler')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.handler.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='last_time' :itemRules="this.rules().last_time" class='' :caption="$t('entities.jobsinfo.main_form.details.last_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.last_time.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box <input-box
v-model="data.handler" v-model="data.last_time"
@enter="onEnter($event)" @enter="onEnter($event)"
unit="" unit=""
:disabled="detailsModel.handler.disabled" :disabled="detailsModel.last_time.disabled"
type='text' type='number'
style=""> style="">
</input-box> </input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.cron.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.author.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='cron' :itemRules="this.rules().cron" class='' :caption="$t('entities.jobsinfo.main_form.details.cron')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.cron.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='author' :itemRules="this.rules().author" class='' :caption="$t('entities.jobsinfo.main_form.details.author')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.author.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box <input-box
v-model="data.cron" v-model="data.author"
@enter="onEnter($event)" @enter="onEnter($event)"
unit="" unit=""
:disabled="detailsModel.cron.disabled" :disabled="detailsModel.author.disabled"
type='text' type='text'
style=""> style="">
</input-box> </input-box>
...@@ -47,21 +50,32 @@ ...@@ -47,21 +50,32 @@
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.param.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.create_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='param' :itemRules="this.rules().param" class='' :caption="$t('entities.jobsinfo.main_form.details.param')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.param.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='create_time' :itemRules="this.rules().create_time" class='' :caption="$t('entities.jobsinfo.main_form.details.create_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.create_time.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.param" :textareaId="this.$util.createUUID()" :disabled="detailsModel.param.disabled" type='textarea' textareaStyle="height:200px;" ></input-box>
<app-span name='create_time' :value="data.create_time" dataType="DATETIME" unitName="" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.last_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='last_time' :itemRules="this.rules().last_time" class='' :caption="$t('entities.jobsinfo.main_form.details.last_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.last_time.error" :isEmptyCaption="false" labelPos="LEFT"> </row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel3.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel3.manageContainerStatus" :isManageContainer="detailsModel.grouppanel3.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel3')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel3.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.jobsinfo.main_form.details.grouppanel3')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.handler.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='handler' :itemRules="this.rules().handler" class='' :caption="$t('entities.jobsinfo.main_form.details.handler')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.handler.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box <input-box
v-model="data.last_time" v-model="data.handler"
@enter="onEnter($event)" @enter="onEnter($event)"
unit="" unit=""
:disabled="detailsModel.last_time.disabled" :disabled="detailsModel.handler.disabled"
type='number' type='text'
style=""> style="">
</input-box> </input-box>
...@@ -81,6 +95,59 @@ ...@@ -81,6 +95,59 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.status.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='status' :itemRules="this.rules().status" class='' :caption="$t('entities.jobsinfo.main_form.details.status')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.status.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.status"
:data="data"
:context="context"
:viewparams="viewparams"
:formState="formState"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.status.disabled"
valueType="number"
tag='CodeListJobStatus'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.update_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='update_time' :itemRules="this.rules().update_time" class='' :caption="$t('entities.jobsinfo.main_form.details.update_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.update_time.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='update_time' :value="data.update_time" dataType="DATETIME" unitName="" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel4.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel4.manageContainerStatus" :isManageContainer="detailsModel.grouppanel4.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel4')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel4.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.jobsinfo.main_form.details.grouppanel4')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.cron.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='cron' :itemRules="this.rules().cron" class='' :caption="$t('entities.jobsinfo.main_form.details.cron')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.cron.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.cron"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.cron.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.timeout.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.timeout.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='timeout' :itemRules="this.rules().timeout" class='' :caption="$t('entities.jobsinfo.main_form.details.timeout')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.timeout.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='timeout' :itemRules="this.rules().timeout" class='' :caption="$t('entities.jobsinfo.main_form.details.timeout')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.timeout.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -110,19 +177,24 @@ ...@@ -110,19 +177,24 @@
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.author.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.tenant_id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='author' :itemRules="this.rules().author" class='' :caption="$t('entities.jobsinfo.main_form.details.author')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.author.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='tenant_id' :itemRules="this.rules().tenant_id" class='' :caption="$t('entities.jobsinfo.main_form.details.tenant_id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.tenant_id.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box <input-box
v-model="data.author" v-model="data.tenant_id"
@enter="onEnter($event)" @enter="onEnter($event)"
unit="" unit=""
:disabled="detailsModel.author.disabled" :disabled="detailsModel.tenant_id.disabled"
type='text' type='text'
style=""> style="">
</input-box> </input-box>
</app-form-item> </app-form-item>
</i-col>
</row>
</app-form-group>
</i-col> </i-col>
<i-col v-show="detailsModel.remark.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.remark.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='remark' :itemRules="this.rules().remark" class='' :caption="$t('entities.jobsinfo.main_form.details.remark')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.remark.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='remark' :itemRules="this.rules().remark" class='' :caption="$t('entities.jobsinfo.main_form.details.remark')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.remark.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -138,62 +210,14 @@ ...@@ -138,62 +210,14 @@
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.status.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.param.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='status' :itemRules="this.rules().status" class='' :caption="$t('entities.jobsinfo.main_form.details.status')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.status.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='param' :itemRules="this.rules().param" class='' :caption="$t('entities.jobsinfo.main_form.details.param')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.param.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.param" :textareaId="this.$util.createUUID()" :disabled="detailsModel.param.disabled" type='textarea' textareaStyle="height:200px;" ></input-box>
<dropdown-list
v-model="data.status"
:data="data"
:context="context"
:viewparams="viewparams"
:formState="formState"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.status.disabled"
valueType="number"
tag='CodeListJobStatus'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.tenant_id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='tenant_id' :itemRules="this.rules().tenant_id" class='' :caption="$t('entities.jobsinfo.main_form.details.tenant_id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.tenant_id.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.tenant_id"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.tenant_id.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.create_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='create_time' :itemRules="this.rules().create_time" class='' :caption="$t('entities.jobsinfo.main_form.details.create_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.create_time.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='create_time' :value="data.create_time" dataType="DATETIME" unitName="" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.update_time.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='update_time' :itemRules="this.rules().update_time" class='' :caption="$t('entities.jobsinfo.main_form.details.update_time')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.update_time.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='update_time' :value="data.update_time" dataType="DATETIME" unitName="" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.druipart1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.druipart1.visible" :style="{'height': '500px !important',}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart <app-form-druipart
:formState="formState" :formState="formState"
...@@ -215,7 +239,7 @@ ...@@ -215,7 +239,7 @@
tempMode='0' tempMode='0'
:data="JSON.stringify(this.data)" :data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)" @drdatasaved="drdatasaved($event)"
style=";overflow: auto;"> style="height:500px;overflow: auto;">
</app-form-druipart> </app-form-druipart>
</i-col> </i-col>
...@@ -628,19 +652,19 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -628,19 +652,19 @@ export default class MainBase extends Vue implements ControlInterface {
srfdeid: null, srfdeid: null,
srfsourcekey: null, srfsourcekey: null,
app: null, app: null,
handler: null,
cron: null,
param: null,
last_time: null, last_time: null,
author: null,
create_time: null,
handler: null,
next_time: null, next_time: null,
status: null,
update_time: null,
cron: null,
timeout: null, timeout: null,
fail_retry_count: null, fail_retry_count: null,
author: null,
remark: null,
status: null,
tenant_id: null, tenant_id: null,
create_time: null, remark: null,
update_time: null, param: null,
id: null, id: null,
jobsinfo:null, jobsinfo:null,
}; };
...@@ -697,26 +721,38 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -697,26 +721,38 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.app.required, type: 'string', message: '服务名 值不能为空', trigger: 'change' }, { required: this.detailsModel.app.required, type: 'string', message: '服务名 值不能为空', trigger: 'change' },
{ required: this.detailsModel.app.required, type: 'string', message: '服务名 值不能为空', trigger: 'blur' }, { required: this.detailsModel.app.required, type: 'string', message: '服务名 值不能为空', trigger: 'blur' },
], ],
handler: [
{ required: this.detailsModel.handler.required, type: 'string', message: '执行器任务HANDLER 值不能为空', trigger: 'change' },
{ required: this.detailsModel.handler.required, type: 'string', message: '执行器任务HANDLER 值不能为空', trigger: 'blur' },
],
cron: [
{ required: this.detailsModel.cron.required, type: 'string', message: '任务执行CRON 值不能为空', trigger: 'change' },
{ required: this.detailsModel.cron.required, type: 'string', message: '任务执行CRON 值不能为空', trigger: 'blur' },
],
param: [
{ required: this.detailsModel.param.required, type: 'string', message: '执行器任务参数 值不能为空', trigger: 'change' },
{ required: this.detailsModel.param.required, type: 'string', message: '执行器任务参数 值不能为空', trigger: 'blur' },
],
last_time: [ last_time: [
{ required: this.detailsModel.last_time.required, type: 'number', message: '上次调度时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.last_time.required, type: 'number', message: '上次调度时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.last_time.required, type: 'number', message: '上次调度时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.last_time.required, type: 'number', message: '上次调度时间 值不能为空', trigger: 'blur' },
], ],
author: [
{ required: this.detailsModel.author.required, type: 'string', message: '所有者 值不能为空', trigger: 'change' },
{ required: this.detailsModel.author.required, type: 'string', message: '所有者 值不能为空', trigger: 'blur' },
],
create_time: [
{ required: this.detailsModel.create_time.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.create_time.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' },
],
handler: [
{ required: this.detailsModel.handler.required, type: 'string', message: '执行器任务HANDLER 值不能为空', trigger: 'change' },
{ required: this.detailsModel.handler.required, type: 'string', message: '执行器任务HANDLER 值不能为空', trigger: 'blur' },
],
next_time: [ next_time: [
{ required: this.detailsModel.next_time.required, type: 'number', message: '下次调度时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.next_time.required, type: 'number', message: '下次调度时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.next_time.required, type: 'number', message: '下次调度时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.next_time.required, type: 'number', message: '下次调度时间 值不能为空', trigger: 'blur' },
], ],
status: [
{ required: this.detailsModel.status.required, type: 'number', message: '状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.status.required, type: 'number', message: '状态 值不能为空', trigger: 'blur' },
],
update_time: [
{ required: this.detailsModel.update_time.required, type: 'string', message: '更新时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.update_time.required, type: 'string', message: '更新时间 值不能为空', trigger: 'blur' },
],
cron: [
{ required: this.detailsModel.cron.required, type: 'string', message: '任务执行CRON 值不能为空', trigger: 'change' },
{ required: this.detailsModel.cron.required, type: 'string', message: '任务执行CRON 值不能为空', trigger: 'blur' },
],
timeout: [ timeout: [
{ required: this.detailsModel.timeout.required, type: 'number', message: '任务执行超时时间(秒) 值不能为空', trigger: 'change' }, { required: this.detailsModel.timeout.required, type: 'number', message: '任务执行超时时间(秒) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.timeout.required, type: 'number', message: '任务执行超时时间(秒) 值不能为空', trigger: 'blur' }, { required: this.detailsModel.timeout.required, type: 'number', message: '任务执行超时时间(秒) 值不能为空', trigger: 'blur' },
...@@ -725,29 +761,17 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -725,29 +761,17 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.fail_retry_count.required, type: 'number', message: '失败重试次数 值不能为空', trigger: 'change' }, { required: this.detailsModel.fail_retry_count.required, type: 'number', message: '失败重试次数 值不能为空', trigger: 'change' },
{ required: this.detailsModel.fail_retry_count.required, type: 'number', message: '失败重试次数 值不能为空', trigger: 'blur' }, { required: this.detailsModel.fail_retry_count.required, type: 'number', message: '失败重试次数 值不能为空', trigger: 'blur' },
], ],
author: [
{ required: this.detailsModel.author.required, type: 'string', message: '所有者 值不能为空', trigger: 'change' },
{ required: this.detailsModel.author.required, type: 'string', message: '所有者 值不能为空', trigger: 'blur' },
],
remark: [
{ required: this.detailsModel.remark.required, type: 'string', message: '备注 值不能为空', trigger: 'change' },
{ required: this.detailsModel.remark.required, type: 'string', message: '备注 值不能为空', trigger: 'blur' },
],
status: [
{ required: this.detailsModel.status.required, type: 'number', message: '状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.status.required, type: 'number', message: '状态 值不能为空', trigger: 'blur' },
],
tenant_id: [ tenant_id: [
{ required: this.detailsModel.tenant_id.required, type: 'string', message: '租户ID 值不能为空', trigger: 'change' }, { required: this.detailsModel.tenant_id.required, type: 'string', message: '租户ID 值不能为空', trigger: 'change' },
{ required: this.detailsModel.tenant_id.required, type: 'string', message: '租户ID 值不能为空', trigger: 'blur' }, { required: this.detailsModel.tenant_id.required, type: 'string', message: '租户ID 值不能为空', trigger: 'blur' },
], ],
create_time: [ remark: [
{ required: this.detailsModel.create_time.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.remark.required, type: 'string', message: '备注 值不能为空', trigger: 'change' },
{ required: this.detailsModel.create_time.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.remark.required, type: 'string', message: '备注 值不能为空', trigger: 'blur' },
], ],
update_time: [ param: [
{ required: this.detailsModel.update_time.required, type: 'string', message: '更新时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.param.required, type: 'string', message: '执行器任务参数 值不能为空', trigger: 'change' },
{ required: this.detailsModel.update_time.required, type: 'string', message: '更新时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.param.required, type: 'string', message: '执行器任务参数 值不能为空', trigger: 'blur' },
], ],
} }
} }
...@@ -856,9 +880,15 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -856,9 +880,15 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase * @memberof MainBase
*/ */
public detailsModel: any = { public detailsModel: any = {
grouppanel2: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.jobsinfo.main_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel3: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.jobsinfo.main_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel4: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.jobsinfo.main_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
druipart1: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart1', visible: true, isShowCaption: true, form: this, isControlledContent: false }) druipart1: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart1', visible: true, isShowCaption: true, form: this, isControlledContent: false })
, ,
group1: new FormGroupPanelModel({ caption: '任务信息基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.jobsinfo.main_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] }) grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.jobsinfo.main_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false })
, ,
...@@ -878,31 +908,31 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -878,31 +908,31 @@ export default class MainBase extends Vue implements ControlInterface {
, ,
app: new FormItemModel({ caption: '服务名', detailType: 'FORMITEM', name: 'app', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) app: new FormItemModel({ caption: '服务名', detailType: 'FORMITEM', name: 'app', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
handler: new FormItemModel({ caption: '执行器任务HANDLER', detailType: 'FORMITEM', name: 'handler', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) last_time: new FormItemModel({ caption: '上次调度时间', detailType: 'FORMITEM', name: 'last_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
cron: new FormItemModel({ caption: '任务执行CRON', detailType: 'FORMITEM', name: 'cron', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) author: new FormItemModel({ caption: '所有者', detailType: 'FORMITEM', name: 'author', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
param: new FormItemModel({ caption: '执行器任务参数', detailType: 'FORMITEM', name: 'param', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) create_time: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'create_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
last_time: new FormItemModel({ caption: '上次调度时间', detailType: 'FORMITEM', name: 'last_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) handler: new FormItemModel({ caption: '执行器任务HANDLER', detailType: 'FORMITEM', name: 'handler', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
next_time: new FormItemModel({ caption: '下次调度时间', detailType: 'FORMITEM', name: 'next_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) next_time: new FormItemModel({ caption: '下次调度时间', detailType: 'FORMITEM', name: 'next_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
timeout: new FormItemModel({ caption: '任务执行超时时间(秒)', detailType: 'FORMITEM', name: 'timeout', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) status: new FormItemModel({ caption: '状态', detailType: 'FORMITEM', name: 'status', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
fail_retry_count: new FormItemModel({ caption: '失败重试次数', detailType: 'FORMITEM', name: 'fail_retry_count', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) update_time: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'update_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
author: new FormItemModel({ caption: '所有者', detailType: 'FORMITEM', name: 'author', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) cron: new FormItemModel({ caption: '任务执行CRON', detailType: 'FORMITEM', name: 'cron', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
remark: new FormItemModel({ caption: '备注', detailType: 'FORMITEM', name: 'remark', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) timeout: new FormItemModel({ caption: '任务执行超时时间(秒)', detailType: 'FORMITEM', name: 'timeout', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
status: new FormItemModel({ caption: '状态', detailType: 'FORMITEM', name: 'status', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 }) fail_retry_count: new FormItemModel({ caption: '失败重试次数', detailType: 'FORMITEM', name: 'fail_retry_count', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
tenant_id: new FormItemModel({ caption: '租户ID', detailType: 'FORMITEM', name: 'tenant_id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) tenant_id: new FormItemModel({ caption: '租户ID', detailType: 'FORMITEM', name: 'tenant_id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
create_time: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'create_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) remark: new FormItemModel({ caption: '备注', detailType: 'FORMITEM', name: 'remark', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
update_time: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'update_time', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) param: new FormItemModel({ caption: '执行器任务参数', detailType: 'FORMITEM', name: 'param', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
id: new FormItemModel({ caption: '主键ID', detailType: 'FORMITEM', name: 'id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) id: new FormItemModel({ caption: '主键ID', detailType: 'FORMITEM', name: 'id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1005,51 +1035,51 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1005,51 +1035,51 @@ export default class MainBase extends Vue implements ControlInterface {
} }
/** /**
* 监控表单属性 handler * 监控表单属性 last_time
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.handler') @Watch('data.last_time')
onHandlerChange(newVal: any, oldVal: any) { onLast_timeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'handler', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'last_time', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 cron * 监控表单属性 author
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.cron') @Watch('data.author')
onCronChange(newVal: any, oldVal: any) { onAuthorChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'cron', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'author', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 param * 监控表单属性 create_time
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.param') @Watch('data.create_time')
onParamChange(newVal: any, oldVal: any) { onCreate_timeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'param', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'create_time', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 last_time * 监控表单属性 handler
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.last_time') @Watch('data.handler')
onLast_timeChange(newVal: any, oldVal: any) { onHandlerChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'last_time', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'handler', newVal: newVal, oldVal: oldVal });
} }
/** /**
...@@ -1065,63 +1095,63 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1065,63 +1095,63 @@ export default class MainBase extends Vue implements ControlInterface {
} }
/** /**
* 监控表单属性 timeout * 监控表单属性 status
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.timeout') @Watch('data.status')
onTimeoutChange(newVal: any, oldVal: any) { onStatusChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'timeout', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'status', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 fail_retry_count * 监控表单属性 update_time
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.fail_retry_count') @Watch('data.update_time')
onFail_retry_countChange(newVal: any, oldVal: any) { onUpdate_timeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'fail_retry_count', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'update_time', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 author * 监控表单属性 cron
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.author') @Watch('data.cron')
onAuthorChange(newVal: any, oldVal: any) { onCronChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'author', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'cron', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 remark * 监控表单属性 timeout
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.remark') @Watch('data.timeout')
onRemarkChange(newVal: any, oldVal: any) { onTimeoutChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'remark', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'timeout', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 status * 监控表单属性 fail_retry_count
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.status') @Watch('data.fail_retry_count')
onStatusChange(newVal: any, oldVal: any) { onFail_retry_countChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'status', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'fail_retry_count', newVal: newVal, oldVal: oldVal });
} }
/** /**
...@@ -1137,27 +1167,27 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1137,27 +1167,27 @@ export default class MainBase extends Vue implements ControlInterface {
} }
/** /**
* 监控表单属性 create_time * 监控表单属性 remark
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.create_time') @Watch('data.remark')
onCreate_timeChange(newVal: any, oldVal: any) { onRemarkChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'create_time', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'remark', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 update_time * 监控表单属性 param
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.update_time') @Watch('data.param')
onUpdate_timeChange(newVal: any, oldVal: any) { onParamChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'update_time', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'param', newVal: newVal, oldVal: oldVal });
} }
/** /**
...@@ -1247,6 +1277,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1247,6 +1277,9 @@ export default class MainBase extends Vue implements ControlInterface {
......
...@@ -56,30 +56,45 @@ export default class MainModel { ...@@ -56,30 +56,45 @@ export default class MainModel {
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'handler', name: 'last_time',
prop: 'handler', prop: 'last_time',
dataType: 'TEXT', dataType: 'BIGINT',
}, },
{ {
name: 'cron', name: 'author',
prop: 'cron', prop: 'author',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'param', name: 'create_time',
prop: 'param', prop: 'create_time',
dataType: 'TEXT', dataType: 'DATETIME',
}, },
{ {
name: 'last_time', name: 'handler',
prop: 'last_time', prop: 'handler',
dataType: 'BIGINT', dataType: 'TEXT',
}, },
{ {
name: 'next_time', name: 'next_time',
prop: 'next_time', prop: 'next_time',
dataType: 'BIGINT', dataType: 'BIGINT',
}, },
{
name: 'status',
prop: 'status',
dataType: 'NSCODELIST',
},
{
name: 'update_time',
prop: 'update_time',
dataType: 'DATETIME',
},
{
name: 'cron',
prop: 'cron',
dataType: 'TEXT',
},
{ {
name: 'timeout', name: 'timeout',
prop: 'timeout', prop: 'timeout',
...@@ -91,8 +106,8 @@ export default class MainModel { ...@@ -91,8 +106,8 @@ export default class MainModel {
dataType: 'INT', dataType: 'INT',
}, },
{ {
name: 'author', name: 'tenant_id',
prop: 'author', prop: 'tenant_id',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
...@@ -101,25 +116,10 @@ export default class MainModel { ...@@ -101,25 +116,10 @@ export default class MainModel {
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'status', name: 'param',
prop: 'status', prop: 'param',
dataType: 'NSCODELIST',
},
{
name: 'tenant_id',
prop: 'tenant_id',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'create_time',
prop: 'create_time',
dataType: 'DATETIME',
},
{
name: 'update_time',
prop: 'update_time',
dataType: 'DATETIME',
},
{ {
name: 'id', name: 'id',
prop: 'id', prop: 'id',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册