Commit fc10b125 by xinla

--no commit message

1 parent 1d2c82e4
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
formMsg: {}, formMsg: {},
dialogVisibleHistoryMsg: false, dialogVisibleHistoryMsg: false,
dialogVisibleSendMsg: false, dialogVisibleSendMsg: false,
disabled: false, disabledMsg: false,
} }
}, },
watch: {}, watch: {},
...@@ -119,8 +119,8 @@ export default { ...@@ -119,8 +119,8 @@ export default {
// 发送消息确认按钮 // 发送消息确认按钮
submitSendMsg(form) { submitSendMsg(form) {
form && if (form) {
(form.id ? appMsg.update : appMsg.add)(form) ;(form.id ? appMsg.update : appMsg.add)(form)
.then(() => { .then(() => {
this.msgSuccess('操作成功') this.msgSuccess('操作成功')
this.dialogVisibleSendMsg = false this.dialogVisibleSendMsg = false
...@@ -133,6 +133,9 @@ export default { ...@@ -133,6 +133,9 @@ export default {
.catch(() => { .catch(() => {
this.dialogVisibleSendMsg = false this.dialogVisibleSendMsg = false
}) })
} else {
this.dialogVisibleSendMsg = false
}
}, },
}, },
} }
...@@ -279,7 +282,11 @@ export default { ...@@ -279,7 +282,11 @@ export default {
</el-dialog> </el-dialog>
<!-- 历史消息 弹窗 --> <!-- 历史消息 弹窗 -->
<el-dialog title="历史消息" :visible.sync="dialogVisibleHistoryMsg" :close-on-click-modal="false"> <el-dialog
title="历史消息"
:visible.sync="dialogVisibleHistoryMsg"
:close-on-click-modal="false"
@close="disabledMsg = false">
<HistoryMsg <HistoryMsg
ref="historyMsg" ref="historyMsg"
:id="formMsg.agentId" :id="formMsg.agentId"
...@@ -287,7 +294,7 @@ export default { ...@@ -287,7 +294,7 @@ export default {
@edit=" @edit="
(data, type) => { (data, type) => {
dialogVisibleSendMsg = true dialogVisibleSendMsg = true
disabled = type === 'detail' disabledMsg = type === 'detail'
formMsg = Object.assign({ agentId: formMsg.agentId, agentName: formMsg.agentName }, data) formMsg = Object.assign({ agentId: formMsg.agentId, agentName: formMsg.agentName }, data)
} }
" /> " />
...@@ -304,7 +311,7 @@ export default { ...@@ -304,7 +311,7 @@ export default {
<!-- 编辑/详情发送消息 弹窗 --> <!-- 编辑/详情发送消息 弹窗 -->
<el-dialog title="发送消息" :visible.sync="dialogVisibleSendMsg" :close-on-click-modal="false"> <el-dialog title="发送消息" :visible.sync="dialogVisibleSendMsg" :close-on-click-modal="false">
<MsgForm v-if="dialogVisibleSendMsg" :data="formMsg" :disabled="disabled" @submit="submitSendMsg" /> <MsgForm v-if="dialogVisibleSendMsg" :data="formMsg" :disabled="disabledMsg" @submit="submitSendMsg" />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!