|
@@ -292,19 +292,14 @@ export default {
|
292
|
292
|
},
|
293
|
293
|
// 点击保存按钮
|
294
|
294
|
async onClickSave() {
|
295
|
|
- console.log('onClickSave this.groupForm => ', JSON.parse(JSON.stringify(this.groupForm)))
|
296
|
295
|
try {
|
297
|
296
|
// 表单判空校验
|
298
|
297
|
await this.handleFormValidate()
|
299
|
298
|
// 获取请求地址 & 参数
|
300
|
299
|
const { url, params } = this.handleGetParams()
|
301
|
300
|
|
302
|
|
- console.log('params => ', JSON.parse(JSON.stringify(params)))
|
303
|
|
- console.log('url => ', url)
|
304
|
|
-
|
305
|
301
|
this.loading = true
|
306
|
302
|
const { data: res } = await this.$axios.post(url, params)
|
307
|
|
- console.log('res => ', res)
|
308
|
303
|
if (res && res.errno == 0) {
|
309
|
304
|
this.$message.success('保存成功')
|
310
|
305
|
this.$router.go(-1)
|
|
@@ -442,7 +437,6 @@ export default {
|
442
|
437
|
if (isFoundChat) newChats.splice(idx, 1, isFoundChat)
|
443
|
438
|
})
|
444
|
439
|
this.groupForm.chat_id_list = [...newChats]
|
445
|
|
- console.log('this.groupForm.chat_id_list => ', this.groupForm.chat_id_list)
|
446
|
440
|
},
|
447
|
441
|
},
|
448
|
442
|
}
|