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) => {
return request({
url: `${prefix2}/remove`,
method: 'get',
method: 'post',
params:query
})
}

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

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

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

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

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

Loading…
Cancel
Save