|
@@ -171,7 +171,7 @@
|
171
|
171
|
import selfCustomerservice from '@/components/assembly/screen/customerService.vue'
|
172
|
172
|
import _lodash from 'lodash'
|
173
|
173
|
import Sortable from 'sortablejs'
|
174
|
|
-import { getIntegerNumber, isJSON } from '@/assets/js/common'
|
|
174
|
+import { getIntegerNumber, getNot0IntegerNumber, isJSON } from '@/assets/js/common'
|
175
|
175
|
import chatGroupOptions from './chatGroupOptions.vue'
|
176
|
176
|
import datePicker from '@/components/assembly/screen/datePicker.vue'
|
177
|
177
|
|
|
@@ -239,7 +239,8 @@ export default {
|
239
|
239
|
},
|
240
|
240
|
// 监听输入"人数上限"
|
241
|
241
|
onInputUserLimit(inputVal, idx) {
|
242
|
|
- this.main_msg_data.chat_group_config[idx].user_limit = getIntegerNumber(inputVal)
|
|
242
|
+ // this.main_msg_data.chat_group_config[idx].user_limit = getIntegerNumber(inputVal)
|
|
243
|
+ this.main_msg_data.chat_group_config[idx].user_limit = getNot0IntegerNumber(inputVal)
|
243
|
244
|
},
|
244
|
245
|
// 渠道群管理列表 - 删除
|
245
|
246
|
onClickDelChat(row, idx) {
|
|
@@ -277,7 +278,7 @@ export default {
|
277
|
278
|
const newChats = selectedChat.map(s => ({
|
278
|
279
|
chat_id: s.chat_id,
|
279
|
280
|
name: s.name,
|
280
|
|
- user_limit: 0,
|
|
281
|
+ user_limit: '',
|
281
|
282
|
enable: 1,
|
282
|
283
|
status: 1,
|
283
|
284
|
}))
|
|
@@ -413,6 +414,13 @@ export default {
|
413
|
414
|
return
|
414
|
415
|
}
|
415
|
416
|
|
|
417
|
+ if (this.main_msg_data.is_limit == 1) {
|
|
418
|
+ const isEmpty = this.main_msg_data.chat_group_config.some(config => {
|
|
419
|
+ return !config.user_limit || config.user_limit == 0
|
|
420
|
+ })
|
|
421
|
+ if (isEmpty) return this.$message.warning('请输入群聊人数上限(不能为0)')
|
|
422
|
+ }
|
|
423
|
+
|
416
|
424
|
this.$loading(this.$loadingConfig)
|
417
|
425
|
let params = {
|
418
|
426
|
rule_id: this.rule_id ? this.rule_id : '',
|