|
|
@ -137,11 +137,19 @@ export default { |
|
|
|
putDFMaintenancePlan(this.ruleForm).then(() => { |
|
|
|
this.getTableData() |
|
|
|
this.dialogVisible = false |
|
|
|
this.$message({ |
|
|
|
message: '保存成功', |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
postDFMaintenancePlan(this.ruleForm).then(() => { |
|
|
|
this.getTableData() |
|
|
|
this.dialogVisible = false |
|
|
|
this.$message({ |
|
|
|
message: '保存成功', |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
@ -272,7 +280,7 @@ export default { |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label-width="120px" label="计划时间" prop="planTime"> |
|
|
|
<el-date-picker v-model="ruleForm.planTime" type="month" placeholder="选择月" :disabled="prohibitEditing" |
|
|
|
value-format="yy-MM-dd"> |
|
|
|
value-format="yy-MM-dd"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
@ -300,7 +308,7 @@ export default { |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button size="mini" @click="resetForm('ruleForm')">取 消</el-button> |
|
|
|
<el-button size="mini" type="primary" @click="submitForm('ruleForm')">保存</el-button> |
|
|
|
<el-button v-if="!prohibitEditing" size="mini" type="primary" @click="submitForm('ruleForm')">保存</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|