提交修改

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