|
@@ -534,7 +534,7 @@ var vm = new Vue({
|
|
this.selectName = arr1
|
|
this.selectName = arr1
|
|
this.selectIndustry = arr2
|
|
this.selectIndustry = arr2
|
|
this.selectId = arr3
|
|
this.selectId = arr3
|
|
- console.info(this.selectName, this.claimcheckName)
|
|
|
|
|
|
+ // console.info(this.attentionName, this.claimcheckName)
|
|
var tempArray1 = this.arrDefault(this.selectName, this.attentionName)
|
|
var tempArray1 = this.arrDefault(this.selectName, this.attentionName)
|
|
var tempArray2 = this.arrDefault(this.selectName, this.claimcheckName)
|
|
var tempArray2 = this.arrDefault(this.selectName, this.claimcheckName)
|
|
if (tempArray1.length == 0) {
|
|
if (tempArray1.length == 0) {
|
|
@@ -586,12 +586,14 @@ var vm = new Vue({
|
|
contentType:'application/json;charset=utf-8',
|
|
contentType:'application/json;charset=utf-8',
|
|
success: function (res) {
|
|
success: function (res) {
|
|
if (res.data.names) {
|
|
if (res.data.names) {
|
|
- // this.claimcheckName = res.data.names
|
|
|
|
|
|
+ this.claimcheckName = []
|
|
|
|
+ res.data.names.forEach(s => {
|
|
|
|
+ this.claimcheckName.push(s.split(',')[0])
|
|
|
|
+ })
|
|
}
|
|
}
|
|
arrs.forEach(v => {
|
|
arrs.forEach(v => {
|
|
let renName = res.data.names.join(',')
|
|
let renName = res.data.names.join(',')
|
|
res.data.names.forEach(s => {
|
|
res.data.names.forEach(s => {
|
|
- this.claimcheckName.push(s.split(',')[0])
|
|
|
|
if (renName.indexOf(v.Buyer) > -1) {
|
|
if (renName.indexOf(v.Buyer) > -1) {
|
|
v.claim1 = true
|
|
v.claim1 = true
|
|
if (s.split(',')[0] == v.Buyer) {
|
|
if (s.split(',')[0] == v.Buyer) {
|
|
@@ -628,7 +630,7 @@ var vm = new Vue({
|
|
D: per ? str : item.claim1,
|
|
D: per ? str : item.claim1,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.info(obj)
|
|
|
|
|
|
+ // console.info(obj)
|
|
$.ajax({
|
|
$.ajax({
|
|
url: '/entnicheNew/customer/attention',
|
|
url: '/entnicheNew/customer/attention',
|
|
method: 'POST',
|
|
method: 'POST',
|
|
@@ -662,6 +664,7 @@ var vm = new Vue({
|
|
this.follow = false
|
|
this.follow = false
|
|
this.claim = false
|
|
this.claim = false
|
|
$('.custom-checkbox').prop('checked', false)
|
|
$('.custom-checkbox').prop('checked', false)
|
|
|
|
+ _this.selectName = []
|
|
_this.getList(_this.listState.pageNum)
|
|
_this.getList(_this.listState.pageNum)
|
|
}
|
|
}
|
|
}.bind(this)
|
|
}.bind(this)
|
|
@@ -992,6 +995,7 @@ var vm = new Vue({
|
|
$('.tag-labels').empty()
|
|
$('.tag-labels').empty()
|
|
$('.clear-input').val('')
|
|
$('.clear-input').val('')
|
|
$('.tags-list').find('.tags-item').removeClass('tags-active')
|
|
$('.tags-list').find('.tags-item').removeClass('tags-active')
|
|
|
|
+ $('.tags-list').find('.disabled').removeClass('disabled')
|
|
$('.tag-placeholder').show()
|
|
$('.tag-placeholder').show()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -1083,11 +1087,13 @@ var vm = new Vue({
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
success: function (r) {
|
|
success: function (r) {
|
|
if (r.error_code == 0 && r.data) {
|
|
if (r.error_code == 0 && r.data) {
|
|
- // $('.tags-box').slideToggle()
|
|
|
|
- _this.getList(_this.listState.pageNum)
|
|
|
|
_this.follow = false
|
|
_this.follow = false
|
|
_this.claim = false
|
|
_this.claim = false
|
|
$('.custom-checkbox').prop('checked', false)
|
|
$('.custom-checkbox').prop('checked', false)
|
|
|
|
+ _this.selectName = []
|
|
|
|
+ _this.claimcheckName = []
|
|
|
|
+ _this.getList(_this.listState.pageNum)
|
|
|
|
+ $('.tags-list').find('.disabled').removeClass('disabled')
|
|
toastFn('认领成功!', 1000)
|
|
toastFn('认领成功!', 1000)
|
|
_this.$emit('updatelist', true)
|
|
_this.$emit('updatelist', true)
|
|
callback && callback()
|
|
callback && callback()
|