|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="rule-type">
|
|
|
<DialogCom
|
|
|
- @colse="onHide"
|
|
|
+ @closed="onClose"
|
|
|
:title="id ? '编辑履职任务' : '新增履职任务'"
|
|
|
:visible.sync="isShow"
|
|
|
width="1500px"
|
|
|
@@ -408,10 +408,9 @@ export default {
|
|
|
// this.id == undefined ||
|
|
|
// (this.defbuildTaskNow && this.formData.planStatus == 0)
|
|
|
// )
|
|
|
- if (
|
|
|
- this.id == null ||
|
|
|
- this.id == undefined ||
|
|
|
- ( this.formData.planStatus == 0)
|
|
|
+ if (this.isShow && (
|
|
|
+ !this.id ||
|
|
|
+ ( this.formData.planStatus == 0))
|
|
|
)
|
|
|
return true;
|
|
|
else return false;
|
|
|
@@ -778,7 +777,9 @@ export default {
|
|
|
},
|
|
|
// 事件
|
|
|
onHide() {
|
|
|
- this.isShow = false;
|
|
|
+ this.isShow = false;
|
|
|
+ },
|
|
|
+ onClose(){
|
|
|
this.formData = this.reset();
|
|
|
this.$refs.form.resetFields();
|
|
|
},
|
|
|
@@ -802,7 +803,7 @@ export default {
|
|
|
},
|
|
|
onSubmit() {
|
|
|
this.$refs.form.validate(async (isValidate) => {
|
|
|
- this.formData.planStatus = 0;
|
|
|
+ // this.formData.planStatus = 0;
|
|
|
this.isSubmitting = true;
|
|
|
// this.formData.note = this.formData.description;
|
|
|
this.formData.planCreateOrgId = this.orgId;
|