Commit dd326a69 by 李伟康

修复BUG

1 parent e81620b8
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
filterable filterable
placeholder="请选择" placeholder="请选择"
:popper-append-to-body="false" :popper-append-to-body="false"
ref="select"
> >
<template v-if="addState || editState"> <template v-if="addState || editState">
<div class="input-box"> <div class="input-box">
...@@ -220,7 +221,6 @@ export default { ...@@ -220,7 +221,6 @@ export default {
const { editGroupText, addState, $message } = this const { editGroupText, addState, $message } = this
try { try {
if (!editGroupText.newGroup) throw '请输入话术组!' if (!editGroupText.newGroup) throw '请输入话术组!'
if (addState) { if (addState) {
this.chatGroup.map(e => { this.chatGroup.map(e => {
if (e.value == editGroupText.newGroup) throw '该话术组已存在!' if (e.value == editGroupText.newGroup) throw '该话术组已存在!'
...@@ -255,12 +255,17 @@ export default { ...@@ -255,12 +255,17 @@ export default {
}) })
} }
this.showEditGroupInput('') this.showEditGroupInput('')
} catch (error) { } catch (error) {
$message({ $message({
message: error, message: error,
type: 'error' type: 'error'
}) })
} }
this.$refs.select.blur()
},
filterMethod(e){
console.log(e)
}, },
/**删除 */ /**删除 */
delChatLibrary ({ delChatLibrary ({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!