zhuzhuanzhuan
2023-08-16 f156d473fb0c4ba31671b169bdb5c3a61f933ebf
定时任务的界面调整和日志界面调整
已修改3个文件
50 ■■■■ 文件已修改
src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/QuartzJobList.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/modules/QuartzJobListModal.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
@@ -230,7 +230,6 @@
              containLabel: true
            },
          legend:{
            //设置默认不显示
            selected:{
                "曲线":false,
            },
src/views/system/QuartzJobList.vue
@@ -76,8 +76,7 @@
        <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>
@@ -85,7 +84,11 @@
          <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)">
@@ -146,9 +149,9 @@
            }
          },
          {
            title: '任务类名',
            title: '任务名称',
            align:"center",
            dataIndex: 'jobClassName',
            dataIndex: 'jobName',
            sorter: true,
/*            customRender:function (text) {
              return "*"+text.substring(9,text.length);
@@ -167,9 +170,8 @@
            scopedSlots: {customRender: 'parameterRender'},
          },
          {
            title: '描述',
            title: '说明',
            align:"center",
            width: 250,
            dataIndex: 'description',
            scopedSlots: {customRender: 'description'},
          },
src/views/system/modules/QuartzJobListModal.vue
@@ -10,7 +10,7 @@
            <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>
@@ -19,8 +19,10 @@
                <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>
@@ -137,6 +139,7 @@
        superQueryParams: '',
        /** 高级查询拼接方式 */
        superQueryMatchType: 'and',
        columns: [
          {
            title: '#',
@@ -148,27 +151,27 @@
              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',
@@ -193,7 +196,7 @@
          },
          {
            title: '创建时间',
            title: '任务执行时间',
            align: 'center',
            dataIndex: 'createTime'
          },