|
@@ -25,7 +25,6 @@ function toastFn (text, duration = 1000) {
|
|
|
},duration)
|
|
|
}
|
|
|
function formatKeywordsList (res) {
|
|
|
- console.info(res)
|
|
|
// if (!res || !res.a_items) return
|
|
|
// const data = res.a_items
|
|
|
const newArr = []
|
|
@@ -175,7 +174,7 @@ var vm = new Vue({
|
|
|
},
|
|
|
methods: {
|
|
|
updatescope(data) {
|
|
|
- console.log(data)
|
|
|
+ // console.log(data)
|
|
|
},
|
|
|
// 采购单位模糊搜索
|
|
|
getPreSearchList: utils.debounce(function () {
|
|
@@ -404,6 +403,7 @@ var vm = new Vue({
|
|
|
return tempArr
|
|
|
},
|
|
|
doSearch: function () {
|
|
|
+ $('.tags-box').slideToggle()
|
|
|
this.listState.pageNum = 1
|
|
|
this.getList(1, 'search')
|
|
|
},
|
|
@@ -437,7 +437,6 @@ var vm = new Vue({
|
|
|
arrs.forEach(v => {
|
|
|
arr1.push(v.Buyer)
|
|
|
})
|
|
|
- console.info(arrs)
|
|
|
if (arrs.length == 0) {
|
|
|
this.listState.list = []
|
|
|
} else {
|
|
@@ -459,6 +458,7 @@ var vm = new Vue({
|
|
|
})
|
|
|
},
|
|
|
onPageChange: function (p) {
|
|
|
+ $('.tags-box').slideToggle()
|
|
|
this.listState.pageNum = p
|
|
|
this.getList(p)
|
|
|
},
|
|
@@ -496,26 +496,24 @@ var vm = new Vue({
|
|
|
$('.check-all').prop('checked', false)
|
|
|
}
|
|
|
this.selectName = arr1
|
|
|
- var tempArray1 = this.arrDefault(this.selectName, this.attentionName)
|
|
|
- var tempArray2 = this.arrDefault(this.selectName, this.claimcheckName)
|
|
|
- console.info(tempArray1)
|
|
|
- console.info(tempArray2)
|
|
|
- if (tempArray1.length == 0) {
|
|
|
- this.follow = true
|
|
|
- if (this.selectName.length == 0) {
|
|
|
- this.follow = false
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.follow = false
|
|
|
- }
|
|
|
- if (tempArray2.length == 0) {
|
|
|
- this.claim = true
|
|
|
- if (this.selectName.length == 0) {
|
|
|
- this.claim = false
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.claim = false
|
|
|
- }
|
|
|
+ // var tempArray1 = this.arrDefault(this.selectName, this.attentionName)
|
|
|
+ // var tempArray2 = this.arrDefault(this.selectName, this.claimcheckName)
|
|
|
+ // if (tempArray1.length == 0) {
|
|
|
+ // this.follow = true
|
|
|
+ // if (this.selectName.length == 0) {
|
|
|
+ // this.follow = false
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.follow = false
|
|
|
+ // }
|
|
|
+ // if (tempArray2.length == 0) {
|
|
|
+ // this.claim = true
|
|
|
+ // if (this.selectName.length == 0) {
|
|
|
+ // this.claim = false
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.claim = false
|
|
|
+ // }
|
|
|
},
|
|
|
// 是否关注企业
|
|
|
attentionCheck(arrs, item) {
|
|
@@ -582,7 +580,6 @@ var vm = new Vue({
|
|
|
D: per ? str : item.claim1
|
|
|
}
|
|
|
}
|
|
|
- console.info(obj)
|
|
|
$.ajax({
|
|
|
url: '/entnicheNew/customer/attention',
|
|
|
method: 'POST',
|
|
@@ -632,24 +629,23 @@ var vm = new Vue({
|
|
|
var tempArray2 = this.arrDefault(this.selectName, this.claimcheckName)
|
|
|
if (type == 0) {
|
|
|
if (tempArray1.length == 0) {// 批量取关
|
|
|
- this.follow = true
|
|
|
+ // this.follow = true
|
|
|
this.attention(String(this.selectName), type, true, 'pi')
|
|
|
} else if (tempArray1.length == this.selectName.length) {// 批量关注
|
|
|
- this.follow = false
|
|
|
+ // this.follow = false
|
|
|
this.attention(String(this.selectName), type, false, 'pi')
|
|
|
} else {
|
|
|
- toastFn('关注和取消关注不能同时进行!', 2000)
|
|
|
+ toastFn('关注和取消不能同时进行!', 2000)
|
|
|
}
|
|
|
} else {
|
|
|
- console.info(this.selectName)
|
|
|
if (tempArray2.length == 0) {// 批量取认领
|
|
|
- this.claim = true
|
|
|
+ // this.claim = true
|
|
|
this.attention(String(this.selectName), type, true, 'pi')
|
|
|
} else if (tempArray2.length == this.selectName.length) {// 批量认领
|
|
|
- this.claim = false
|
|
|
+ // this.claim = false
|
|
|
this.attention(String(this.selectName), type, false, 'pi')
|
|
|
} else {
|
|
|
- toastFn('认领和取消认领不能同时进行!', 2000)
|
|
|
+ toastFn('认领和取消不能同时进行!', 2000)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -900,7 +896,6 @@ var vm = new Vue({
|
|
|
D: false,
|
|
|
label: lids
|
|
|
}
|
|
|
- console.log(params)
|
|
|
// 执行保存绑定标签操作
|
|
|
// if (params.label !== '') {
|
|
|
saveChooseTags(params, function () {
|
|
@@ -977,7 +972,6 @@ var vm = new Vue({
|
|
|
return item.lid != id
|
|
|
})
|
|
|
activeTags = newArr
|
|
|
- console.log(activeTags, newArr, 'quxiao')
|
|
|
inputTagList()
|
|
|
}
|
|
|
})
|
|
@@ -1009,6 +1003,8 @@ var vm = new Vue({
|
|
|
dataType: 'json',
|
|
|
success: function (r) {
|
|
|
if (r.error_code == 0 && r.data) {
|
|
|
+ $('.tags-box').slideToggle()
|
|
|
+ _this.getList(_this.listState.pageNum)
|
|
|
_this.$toast('认领成功!')
|
|
|
_this.$emit('updatelist', true)
|
|
|
callback && callback()
|