葛瑞士
2020-12-09 cf7f51a6337fb97525c7fcfb5d6b1afb7e10ac9f
ruoyi-ui/src/views/monitor/job/index.vue
@@ -84,7 +84,7 @@
          v-hasPermi="['monitor:job:query']"
        >日志</el-button>
      </el-col>
      <table-tools-ext :showSearch.sync="showSearch" @queryTable="getList"></table-tools-ext>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <el-table v-loading="loading" :data="jobList" @selection-change="handleSelectionChange">
@@ -111,7 +111,7 @@
            type="text"
            icon="el-icon-caret-right"
            @click="handleRun(scope.row)"
            v-hasPermi="['monitor:job:edit']"
            v-hasPermi="['monitor:job:changeStatus']"
          >执行一次</el-button>
          <el-button
            size="mini"
@@ -402,7 +402,7 @@
          return runJob(row.jobId, row.jobGroup);
        }).then(() => {
          this.msgSuccess("执行成功");
        }).catch(function() {});
        })
    },
    /** 任务详细信息 */
    handleView(row) {
@@ -437,19 +437,15 @@
        if (valid) {
          if (this.form.jobId != undefined) {
            updateJob(this.form).then(response => {
              if (response.code === 200) {
                this.msgSuccess("修改成功");
                this.open = false;
                this.getList();
              }
              this.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addJob(this.form).then(response => {
              if (response.code === 200) {
                this.msgSuccess("新增成功");
                this.open = false;
                this.getList();
              }
              this.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
@@ -467,7 +463,7 @@
        }).then(() => {
          this.getList();
          this.msgSuccess("删除成功");
        }).catch(function() {});
        })
    },
    /** 导出按钮操作 */
    handleExport() {
@@ -480,7 +476,7 @@
          return exportJob(queryParams);
        }).then(response => {
          this.download(response.msg);
        }).catch(function() {});
        })
    }
  }
};