提交修改

This commit is contained in:
quyixiao 2020-08-31 14:34:41 +08:00
parent e6495341bf
commit e3a1be9756

View File

@ -3,8 +3,10 @@
:title="'' "
:close-on-click-modal="false"
:visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="80px">
<el-form-item label="驳回到" v-if="status === 5 " >
<!-- <el-form-item label="驳回到" v-if="status === 5 " >
<el-select v-model="dataForm.rollbackFlowId" placeholder="请选择">
<el-option
v-for="item in rollbackData"
@ -13,7 +15,8 @@
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-form-item>-->
<el-form-item label="意见" prop="resultComment">
<div id="resultCommentEditorElem" class="editor"></div>
</el-form-item>
@ -90,16 +93,11 @@ export default {
})
},
commitRecord (status) {
if(status === 5 && this.dataForm.rollbackFlowId === ''){
this.alertInfo("请选择驳回目标")
return;
}
commitApproval({
'recordResultId': this.recordResultId,
'resultComment': Base64.encode(this.resultCommentEditor.txt.html()),
'status': status,
'resultCommitId': this.resultCommitId,
'rollbackFlowId': this.dataForm.rollbackFlowId
'resultCommitId': this.resultCommitId
}).then(data => {
if (data && data.code === 0) {
this.$emit('refreshDataList', this.recordResultId)