|
@@ -97,7 +97,7 @@ var highSet = new Vue({
|
|
|
},
|
|
|
hasSpace () {
|
|
|
var key = this.conf.keywords
|
|
|
- return key.length > 1 && key.replace(/^\s\s*/,'').indexOf(' ') > -1
|
|
|
+ return key && key.length > 1 && key.replace(/^\s\s*/,'').indexOf(' ') > -1
|
|
|
},
|
|
|
filterInfoUrl: function () {
|
|
|
var path = ''
|
|
@@ -323,7 +323,6 @@ var highSet = new Vue({
|
|
|
}
|
|
|
}
|
|
|
this.$refs.projectAreaSelector.arrangeListMap(map)
|
|
|
- console.log(this.selectAreaList, '111')
|
|
|
this.$refs.projectAreaSelector.setState(this.selectAreaList)
|
|
|
},
|
|
|
// 过滤行业数据
|
|
@@ -359,7 +358,7 @@ var highSet = new Vue({
|
|
|
})
|
|
|
console.log(resArr, '过滤好的行业数据')
|
|
|
this.$refs.industryCom.formatIndustryData(resArr)
|
|
|
- this.$refs.industryCom.setState(this.selectIndustryList)
|
|
|
+ // this.$refs.industryCom.setState(this.selectIndustryList)
|
|
|
},
|
|
|
// 分析方式
|
|
|
checkMatch: function (item) {
|
|
@@ -370,20 +369,18 @@ var highSet = new Vue({
|
|
|
this.conf.keywords = val.replace(/^\s\s*/,'')
|
|
|
},
|
|
|
onCancel: function (data) {
|
|
|
- console.log(data)
|
|
|
if (!data) {
|
|
|
this.selectScopeList = ['purchasing']
|
|
|
this.$refs.matchTypeSelector.setState(this.selectScopeList)
|
|
|
} else if (data.name == 'areaItem') {
|
|
|
this.$refs.projectAreaSelector.setState(this.selectAreaList)
|
|
|
} else if (data.name == 'industryItem') {
|
|
|
- this.$refs.industryCom.setState(this.selectIndustryList)
|
|
|
+ this.$refs.industryCom.setState([])
|
|
|
} else if (data.name == 'dateItem') {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
onConfirm: function (data) {
|
|
|
- console.log(data)
|
|
|
if (data.name === 'areaItem') {
|
|
|
if (data.data.length === 0) {
|
|
|
this.conf.area = '全国'
|