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

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

上级 9d2ba5a5
...@@ -70,8 +70,6 @@ function getLocaleResourceBase(){ ...@@ -70,8 +70,6 @@ function getLocaleResourceBase(){
cron: commonLogic.appcommonhandle("任务执行CRON",null), cron: commonLogic.appcommonhandle("任务执行CRON",null),
last_run: commonLogic.appcommonhandle("上次执行时间",null), last_run: commonLogic.appcommonhandle("上次执行时间",null),
next_run: commonLogic.appcommonhandle("下次执行时间",null), next_run: commonLogic.appcommonhandle("下次执行时间",null),
last_time: commonLogic.appcommonhandle("上次调度时间",null),
next_time: commonLogic.appcommonhandle("下次调度时间",null),
status: commonLogic.appcommonhandle("状态",null), status: commonLogic.appcommonhandle("状态",null),
timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null), timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null),
update_time: commonLogic.appcommonhandle("更新时间",null), update_time: commonLogic.appcommonhandle("更新时间",null),
......
...@@ -70,8 +70,6 @@ function getLocaleResourceBase(){ ...@@ -70,8 +70,6 @@ function getLocaleResourceBase(){
cron: commonLogic.appcommonhandle("任务执行CRON",null), cron: commonLogic.appcommonhandle("任务执行CRON",null),
last_run: commonLogic.appcommonhandle("上次执行时间",null), last_run: commonLogic.appcommonhandle("上次执行时间",null),
next_run: commonLogic.appcommonhandle("下次执行时间",null), next_run: commonLogic.appcommonhandle("下次执行时间",null),
last_time: commonLogic.appcommonhandle("上次调度时间",null),
next_time: commonLogic.appcommonhandle("下次调度时间",null),
status: commonLogic.appcommonhandle("状态",null), status: commonLogic.appcommonhandle("状态",null),
timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null), timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null),
update_time: commonLogic.appcommonhandle("更新时间",null), update_time: commonLogic.appcommonhandle("更新时间",null),
......
...@@ -70,8 +70,6 @@ function getLocaleResourceBase(){ ...@@ -70,8 +70,6 @@ function getLocaleResourceBase(){
cron: commonLogic.appcommonhandle("任务执行CRON",null), cron: commonLogic.appcommonhandle("任务执行CRON",null),
last_run: commonLogic.appcommonhandle("上次执行时间",null), last_run: commonLogic.appcommonhandle("上次执行时间",null),
next_run: commonLogic.appcommonhandle("下次执行时间",null), next_run: commonLogic.appcommonhandle("下次执行时间",null),
last_time: commonLogic.appcommonhandle("上次调度时间",null),
next_time: commonLogic.appcommonhandle("下次调度时间",null),
status: commonLogic.appcommonhandle("状态",null), status: commonLogic.appcommonhandle("状态",null),
timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null), timeout: commonLogic.appcommonhandle("任务执行超时时间(秒)",null),
update_time: commonLogic.appcommonhandle("更新时间",null), update_time: commonLogic.appcommonhandle("更新时间",null),
......
...@@ -107,30 +107,6 @@ ...@@ -107,30 +107,6 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('last_time')">
<el-table-column show-overflow-tooltip :prop="'last_time'" :label="$t('entities.jobsinfo.main_grid.columns.last_time')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.jobsinfo.main_grid.columns.last_time')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.last_time}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('next_time')">
<el-table-column show-overflow-tooltip :prop="'next_time'" :label="$t('entities.jobsinfo.main_grid.columns.next_time')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.jobsinfo.main_grid.columns.next_time')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.next_time}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('status')"> <template v-if="getColumnState('status')">
<el-table-column show-overflow-tooltip :prop="'status'" :label="$t('entities.jobsinfo.main_grid.columns.status')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'status'" :label="$t('entities.jobsinfo.main_grid.columns.status')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
...@@ -791,24 +767,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -791,24 +767,6 @@ export default class MainBase extends Vue implements ControlInterface {
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
{
name: 'last_time',
label: '上次调度时间',
langtag: 'entities.jobsinfo.main_grid.columns.last_time',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'next_time',
label: '下次调度时间',
langtag: 'entities.jobsinfo.main_grid.columns.next_time',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{ {
name: 'status', name: 'status',
label: '状态', label: '状态',
...@@ -1551,7 +1509,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1551,7 +1509,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase * @memberof MainBase
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['id','app','remark','handler','cron','last_run','next_run','last_time','next_time','status','timeout','update_time']; let allColumns:Array<any> = ['id','app','remark','handler','cron','last_run','next_run','status','timeout','update_time'];
if(row && row.children) { if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1638,8 +1596,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1638,8 +1596,6 @@ export default class MainBase extends Vue implements ControlInterface {
cron:'', cron:'',
last_run:'', last_run:'',
next_run:'', next_run:'',
last_time:'',
next_time:'',
status:'', status:'',
timeout:'', timeout:'',
update_time:'', update_time:'',
...@@ -1676,8 +1632,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1676,8 +1632,6 @@ export default class MainBase extends Vue implements ControlInterface {
cron:'', cron:'',
last_run:'', last_run:'',
next_run:'', next_run:'',
last_time:'',
next_time:'',
status:'', status:'',
timeout:'', timeout:'',
update_time:'', update_time:'',
...@@ -1734,8 +1688,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1734,8 +1688,6 @@ export default class MainBase extends Vue implements ControlInterface {
cron:'', cron:'',
last_run:'', last_run:'',
next_run:'', next_run:'',
last_time:'',
next_time:'',
status:'', status:'',
timeout:'', timeout:'',
update_time:'', update_time:'',
......
...@@ -61,16 +61,6 @@ export default class MainModel { ...@@ -61,16 +61,6 @@ export default class MainModel {
prop: 'next_run', prop: 'next_run',
dataType: 'DATETIME', dataType: 'DATETIME',
}, },
{
name: 'last_time',
prop: 'last_time',
dataType: 'BIGINT',
},
{
name: 'next_time',
prop: 'next_time',
dataType: 'BIGINT',
},
{ {
name: 'status', name: 'status',
prop: 'status', prop: 'status',
...@@ -86,6 +76,16 @@ export default class MainModel { ...@@ -86,6 +76,16 @@ export default class MainModel {
prop: 'update_time', prop: 'update_time',
dataType: 'DATETIME', dataType: 'DATETIME',
}, },
{
name: 'last_time',
prop: 'last_time',
dataType: 'BIGINT',
},
{
name: 'next_time',
prop: 'next_time',
dataType: 'BIGINT',
},
{ {
name: 'srfkey', name: 'srfkey',
prop: 'id', prop: 'id',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册