|
|
|
|
@ -55,6 +55,7 @@ |
|
|
|
|
<template slot="xitongmingchengshujuku"> |
|
|
|
|
<el-select |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
v-model="form.xitongmingchengshujuku" |
|
|
|
|
placeholder="请选择系统名称/数据库" |
|
|
|
|
@change="systemChange" |
|
|
|
|
@ -173,6 +174,7 @@ import WfExamineForm from "./examForm.vue"; |
|
|
|
|
import WfUserSelect from "./user-select"; |
|
|
|
|
import exForm from "../../mixins/ex-form"; |
|
|
|
|
import draft from "../../mixins/draft"; |
|
|
|
|
import { dateFormat } from "@/util/date" |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
@ -254,8 +256,8 @@ export default { |
|
|
|
|
// const guanlibumen = this.findObject(this.option.column, "guanlibumen"); |
|
|
|
|
const guanlibumen = this.option.column[1]; |
|
|
|
|
guanlibumen.dicData = res.data.data; |
|
|
|
|
if(res.data.data.length === 1) { |
|
|
|
|
this.form.guanlibumen = guanlibumen.dicData[0].id |
|
|
|
|
if (res.data.data.length === 1) { |
|
|
|
|
this.form.guanlibumen = guanlibumen.dicData[0].id; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
getTaskAndDataBase({ id }).then((res) => { |
|
|
|
|
@ -371,11 +373,16 @@ export default { |
|
|
|
|
this.option.column, |
|
|
|
|
"qiwangwanchengshijian" |
|
|
|
|
); |
|
|
|
|
// 期望完成时间限制 |
|
|
|
|
time.pickerOptions = { |
|
|
|
|
disabledDate(time) { |
|
|
|
|
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
// 重复模式默认值 |
|
|
|
|
let addHour = new Date().setHours(new Date().getHours() + 48); |
|
|
|
|
time.value = dateFormat(new Date(addHour)); |
|
|
|
|
this.form.chongfumoshi = "1627589799957266433"; |
|
|
|
|
if (this.permission.wf_process_draft) { |
|
|
|
|
// 查询是否有草稿箱 |
|
|
|
|
this.initDraft(process.id).then((data) => { |
|
|
|
|
@ -383,12 +390,13 @@ export default { |
|
|
|
|
.then(() => { |
|
|
|
|
const form = JSON.parse(data); |
|
|
|
|
this.systemChange(form.xitongmingchengshujuku, 1); |
|
|
|
|
this.form = form |
|
|
|
|
this.form = form; |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.waiting = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|