1. 定时任务修改

main
赵培友 3 years ago
parent ea97d36d6c
commit f46cded2e7
  1. 2
      src/api/plugin/workflow/workorder.js
  2. 13
      src/const/workflow/crontab.js
  3. 2
      src/views/maintenance/database1.vue
  4. 4
      src/views/plugin/workflow/mixins/ex-form.js
  5. 4
      src/views/plugin/workflow/process/components/form.vue
  6. 3
      src/views/plugin/workflow/process/crontab.vue

@ -46,7 +46,7 @@ export const taskList = (query) => {
export const taskRemove = (query) => { export const taskRemove = (query) => {
return request({ return request({
url: `${prefix2}/remove`, url: `${prefix2}/remove`,
method: 'get', method: 'post',
params:query params:query
}) })
} }

@ -17,7 +17,6 @@ export const tableOption = {
searchMenuSpan: 3, //控制搜索按钮 searchMenuSpan: 3, //控制搜索按钮
columnBtn: false, columnBtn: false,
refreshBtn: false, refreshBtn: false,
// dialogCustomClass: "custom",
header: false, header: false,
menuWidth:200, menuWidth:200,
column: [ column: [
@ -42,7 +41,6 @@ export const tableOption = {
align: "left", align: "left",
overHidden: true, overHidden: true,
}, },
// 改
{ {
type: "input", type: "input",
label: "操作对象", label: "操作对象",
@ -50,13 +48,6 @@ export const tableOption = {
align: "left", align: "left",
overHidden: true, overHidden: true,
}, },
// {
// type: "input",
// label: "当前责任人",
// prop: "currentResponsiblePerson",
// align: "left",
// overHidden: true,
// },
{ {
type: "input", type: "input",
label: "管理部门", label: "管理部门",
@ -87,7 +78,6 @@ export const tableOption = {
format: "yyyy-MM-dd HH:mm", format: "yyyy-MM-dd HH:mm",
valueFormat: "yyyy-MM-dd HH:mm:ss", valueFormat: "yyyy-MM-dd HH:mm:ss",
}, },
// 改
{ {
type: "input", type: "input",
label: "重复模式", label: "重复模式",
@ -95,12 +85,11 @@ export const tableOption = {
align: "left", align: "left",
overHidden: true, overHidden: true,
}, },
// 改
{ {
label: "终止日期", label: "终止日期",
type: "datetime", type: "datetime",
overHidden: true, overHidden: true,
prop: "expectedCompletionTime", prop: "breakTime",
format: "yyyy-MM-dd HH:mm", format: "yyyy-MM-dd HH:mm",
valueFormat: "yyyy-MM-dd HH:mm:ss", valueFormat: "yyyy-MM-dd HH:mm:ss",
}, },

@ -5,7 +5,7 @@
<div > <div >
<el-select <el-select
v-model="searchForm.dataBaseName" v-model="searchForm.dataBaseName"
placeholder="数据库实例" placeholder="数据库实例"
class="search-select" class="search-select"
> >
<el-option <el-option

@ -243,7 +243,7 @@ export default {
if (typeof form.uploadrecord == "string") { if (typeof form.uploadrecord == "string") {
form.uploadrecord = form.uploadrecord.split(""); form.uploadrecord = form.uploadrecord.split("");
} }
startProcess({...form,forcestart: 0,isauto:0}) startProcess({...form,forcestart: "0",isauto:"0"})
.then((res) => { .then((res) => {
if (res.data.data === "类似任务已经发起过,是否要强制发起") { if (res.data.data === "类似任务已经发起过,是否要强制发起") {
this.$confirm(res.data.data + "?", "提示", { this.$confirm(res.data.data + "?", "提示", {
@ -253,7 +253,7 @@ export default {
}) })
.then(() => { .then(() => {
// 强制发起重复任务 // 强制发起重复任务
startProcess({ ...form, forcestart: 1,isauto:0 }) startProcess({ ...form, forcestart: "1",isauto:"0" })
.then((res) => { .then((res) => {
if (isExForm === true) { if (isExForm === true) {
resolve(done); resolve(done);

@ -251,9 +251,6 @@ export default {
this.companyChange(id); this.companyChange(id);
} }
}); });
// getTaskLevel().then(res=> {
// this.taskLevelList = res.data.data
// })
getTaskParent().then((res) => { getTaskParent().then((res) => {
this.taskParentList = res.data.data; this.taskParentList = res.data.data;
if (this.$route.query.parent) { if (this.$route.query.parent) {
@ -280,6 +277,7 @@ export default {
// //
taskParentChange(id) { taskParentChange(id) {
getTaskTypeData({ parentId: id }).then((res) => { getTaskTypeData({ parentId: id }).then((res) => {
console.log(this.option.column)
const renwuzhonglei = this.findObject( const renwuzhonglei = this.findObject(
this.option.column, this.option.column,
"renwuzhonglei" "renwuzhonglei"

@ -109,6 +109,7 @@
>详情</el-button >详情</el-button
> >
<el-button <el-button
v-if="row.isBreak === 0"
type="danger" type="danger"
@click="stopHandle(row)" @click="stopHandle(row)"
>终止</el-button >终止</el-button
@ -216,7 +217,7 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
taskRemove(row.id).then((res) => { taskRemove({ids: row.id}).then((res) => {
this.$message.success("任务终止成功!"); this.$message.success("任务终止成功!");
this.onLoad(); this.onLoad();
}); });

Loading…
Cancel
Save