| | |
| | | containLabel: true |
| | | }, |
| | | legend:{ |
| | | //设置默认不显示 |
| | | selected:{ |
| | | "曲线":false, |
| | | }, |
| | |
| | | |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="resumeJob(record)" v-if="record.status==-1">启动</a> |
| | | <a @click="pauseJob(record)" v-if="record.status==0">停止</a> |
| | | <a @click="executeImmediately(record)">立即执行</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a @click="handlequartzLog(record)">日志</a> |
| | |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item><a @click="executeImmediately(record)">立即执行</a></a-menu-item> |
| | | <a-menu-item> |
| | | <a @click="resumeJob(record)" v-if="record.status==-1">启动</a> |
| | | <a @click="pauseJob(record)" v-if="record.status==0">停止</a> |
| | | |
| | | </a-menu-item> |
| | | <a-menu-item><a @click="handleEdit(record)">编辑</a></a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | |
| | | } |
| | | }, |
| | | { |
| | | title: '任务类名', |
| | | title: '任务名称', |
| | | align:"center", |
| | | dataIndex: 'jobClassName', |
| | | dataIndex: 'jobName', |
| | | sorter: true, |
| | | /* customRender:function (text) { |
| | | return "*"+text.substring(9,text.length); |
| | |
| | | scopedSlots: {customRender: 'parameterRender'}, |
| | | }, |
| | | { |
| | | title: '描述', |
| | | title: '说明', |
| | | align:"center", |
| | | width: 250, |
| | | dataIndex: 'description', |
| | | scopedSlots: {customRender: 'description'}, |
| | | }, |
| | |
| | | |
| | | <a-col :md="6" :sm="6"> |
| | | <a-form-item label="任务名称"> |
| | | <a-input placeholder="请输入任务名称" v-model="queryParam.jobClassName"></a-input> |
| | | <a-input placeholder="请输入任务名称" v-model="queryParam.jobName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | |
| | | <a-range-picker show-time @change="dateParamChange" :disabledDate="disabledDate" format="YYYY-MM-DD HH:mm:ss" v-model="dates"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="2" :sm="2"> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | |
| | | </a-col> |
| | | <a-col :md="2" :sm="2"> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('执行日志导出')">导出</a-button> |
| | |
| | | superQueryParams: '', |
| | | /** 高级查询拼接方式 */ |
| | | superQueryMatchType: 'and', |
| | | |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | // { |
| | | // title: '任务名称', |
| | | // align: 'center', |
| | | // dataIndex: 'jobClassName', |
| | | // }, |
| | | // { |
| | | // title: 'cron表达式', |
| | | // align: 'center', |
| | | // dataIndex: 'cronExpression', |
| | | // }, |
| | | { |
| | | |
| | | title: '任务名称', |
| | | align: 'center', |
| | | dataIndex: 'jobClassName', |
| | | }, |
| | | { |
| | | title: 'cron表达式', |
| | | align: 'center', |
| | | dataIndex: 'cronExpression', |
| | | dataIndex: 'jobName' |
| | | }, |
| | | { |
| | | title: '参数', |
| | | align: 'center', |
| | | dataIndex: 'parameter' |
| | | }, |
| | | { |
| | | title: '描述', |
| | | align: 'center', |
| | | dataIndex: 'description' |
| | | }, |
| | | |
| | | { |
| | | title: '报错信息', |
| | | dataIndex: 'action', |
| | |
| | | |
| | | }, |
| | | { |
| | | title: '创建时间', |
| | | title: '任务执行时间', |
| | | align: 'center', |
| | | dataIndex: 'createTime' |
| | | }, |