| | |
| | | v-hasPermi="['monitor:job:query']"
|
| | | >日志</el-button>
|
| | | </el-col>
|
| | | <div class="top-right-btn">
|
| | | <el-tooltip class="item" effect="dark" content="刷新" placement="top">
|
| | | <el-button size="mini" circle icon="el-icon-refresh" @click="handleQuery" />
|
| | | </el-tooltip>
|
| | | <el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top">
|
| | | <el-button size="mini" circle icon="el-icon-search" @click="showSearch=!showSearch" />
|
| | | </el-tooltip>
|
| | | </div>
|
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
| | | </el-row>
|
| | |
|
| | | <el-table v-loading="loading" :data="jobList" @selection-change="handleSelectionChange">
|
| | |
| | | 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"
|
| | |
| | | return runJob(row.jobId, row.jobGroup);
|
| | | }).then(() => {
|
| | | this.msgSuccess("执行成功");
|
| | | }).catch(function() {});
|
| | | })
|
| | | },
|
| | | /** 任务详细信息 */
|
| | | handleView(row) {
|
| | |
| | | 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();
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | }).then(() => {
|
| | | this.getList();
|
| | | this.msgSuccess("删除成功");
|
| | | }).catch(function() {});
|
| | | })
|
| | | },
|
| | | /** 导出按钮操作 */
|
| | | handleExport() {
|
| | |
| | | return exportJob(queryParams);
|
| | | }).then(response => {
|
| | | this.download(response.msg);
|
| | | }).catch(function() {});
|
| | | })
|
| | | }
|
| | | }
|
| | | };
|