|
@@ -271,7 +271,6 @@ export default {
|
271
|
271
|
this.loading = false
|
272
|
272
|
this.isShowEditCon = true
|
273
|
273
|
if (res && res.errno == 0) {
|
274
|
|
- console.log('res.rst => ', res.rst)
|
275
|
274
|
// 备份接口数据
|
276
|
275
|
this.detailFromApi = Object.freeze(_lodash.cloneDeep(res.rst))
|
277
|
276
|
|
|
@@ -418,7 +417,6 @@ export default {
|
418
|
417
|
|
419
|
418
|
if (this.isCopy) {
|
420
|
419
|
const isSameParams = this.handleGetIsSameParams(params)
|
421
|
|
- console.log('isSameParams => ', isSameParams)
|
422
|
420
|
if (isSameParams) {
|
423
|
421
|
this.$message.warning('推送规则及内容重复!')
|
424
|
422
|
return
|
|
@@ -450,8 +448,6 @@ export default {
|
450
|
448
|
params.rule_id = ''
|
451
|
449
|
}
|
452
|
450
|
|
453
|
|
- console.log('params => ', JSON.parse(JSON.stringify(params)))
|
454
|
|
-
|
455
|
451
|
this.$loading(this.$loadingConfig)
|
456
|
452
|
this.$axios.post(this.URL.BASEURL + this.URL.smartPushV2_set, params).then((res) => {
|
457
|
453
|
var res = res.data
|
|
@@ -513,9 +509,6 @@ export default {
|
513
|
509
|
this.oldParams = JSON.parse(JSON.stringify(oldParams))
|
514
|
510
|
},
|
515
|
511
|
handleGetIsSameParams(newParams) {
|
516
|
|
- console.log('newParams => ', JSON.parse(JSON.stringify(newParams)))
|
517
|
|
- console.log('oldParams => ', JSON.parse(JSON.stringify(this.oldParams)))
|
518
|
|
-
|
519
|
512
|
let isSameParams = true
|
520
|
513
|
// 先比较“非多选”的属性
|
521
|
514
|
const _newParams = JSON.parse(JSON.stringify(newParams))
|
|
@@ -524,7 +517,6 @@ export default {
|
524
|
517
|
delete _newParams.tag_list
|
525
|
518
|
delete _newParams.exclude_tag_list
|
526
|
519
|
delete _newParams.multiple_senders
|
527
|
|
- console.log('_newParams => ', _newParams)
|
528
|
520
|
|
529
|
521
|
const _oldParams = JSON.parse(JSON.stringify(this.oldParams))
|
530
|
522
|
delete _oldParams.senders
|
|
@@ -532,10 +524,8 @@ export default {
|
532
|
524
|
delete _oldParams.tag_list
|
533
|
525
|
delete _oldParams.exclude_tag_list
|
534
|
526
|
delete _oldParams.multiple_senders
|
535
|
|
- console.log('_oldParams => ', _oldParams)
|
536
|
527
|
|
537
|
528
|
const isEqual = _lodash.isEqual(_newParams, _oldParams)
|
538
|
|
- console.log('isEqual => ', isEqual)
|
539
|
529
|
if (!isEqual) { // “非多选”的属性不相同 => 直接返回结果
|
540
|
530
|
isSameParams = false
|
541
|
531
|
} else { // “非多选”的属性相同 => 比较"多选项"属性
|
|
@@ -579,8 +569,6 @@ export default {
|
579
|
569
|
} else {
|
580
|
570
|
const multiple_senders = JSON.parse(newParams.multiple_senders)
|
581
|
571
|
const old_multiple_senders = JSON.parse(this.oldParams.multiple_senders)
|
582
|
|
- console.log('multiple_senders => ', multiple_senders)
|
583
|
|
- console.log('old_multiple_senders => ', old_multiple_senders)
|
584
|
572
|
|
585
|
573
|
// 判断企微主体是否相同
|
586
|
574
|
const corpids = multiple_senders.map(m => m.corpid)
|