|
@@ -1,21 +1,37 @@
|
|
-var matchTypeListForComputed = [
|
|
|
|
|
|
+var winnerMatchTypeList = [
|
|
{
|
|
{
|
|
- label: '项目名称/标的物',
|
|
|
|
- value: 'purchasing'
|
|
|
|
|
|
+ label: '项目名称/标的物',
|
|
|
|
+ value: 'purchasing'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '中标企业',
|
|
|
|
- value: 'winner'
|
|
|
|
|
|
+ label: '采购单位',
|
|
|
|
+ value: 'buyer'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '招标代理机构',
|
|
|
|
+ value: 'agency'
|
|
|
|
+ }
|
|
|
|
+]
|
|
|
|
+var buyerMatchTypeList = [
|
|
|
|
+ {
|
|
|
|
+ label: '项目名称/标的物',
|
|
|
|
+ value: 'purchasing'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '采购单位',
|
|
|
|
- value: 'buyer'
|
|
|
|
|
|
+ label: '中标企业',
|
|
|
|
+ value: 'winner'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label: '招标代理机构',
|
|
|
|
- value: 'agency'
|
|
|
|
|
|
+ label: '招标代理机构',
|
|
|
|
+ value: 'agency'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
+var matchTypeList = []
|
|
|
|
+if (utils.getParam('header').indexOf('采购单位') > -1) {
|
|
|
|
+ matchTypeList = buyerMatchTypeList
|
|
|
|
+} else {
|
|
|
|
+ matchTypeList = winnerMatchTypeList
|
|
|
|
+}
|
|
var highSet = new Vue({
|
|
var highSet = new Vue({
|
|
delimiters: ['${', '}'],
|
|
delimiters: ['${', '}'],
|
|
el: '#high-set',
|
|
el: '#high-set',
|
|
@@ -30,11 +46,11 @@ var highSet = new Vue({
|
|
return {
|
|
return {
|
|
conf: {
|
|
conf: {
|
|
keywords: '',
|
|
keywords: '',
|
|
- scope: '',
|
|
|
|
- area: '',
|
|
|
|
- industry: '',
|
|
|
|
- start: '',
|
|
|
|
- end: '',
|
|
|
|
|
|
+ scope: '项目名称/标的物',
|
|
|
|
+ area: '全国',
|
|
|
|
+ industry: '全部',
|
|
|
|
+ start: new Date().getFullYear() - 2 + '年',
|
|
|
|
+ end: new Date().getFullYear() + '年',
|
|
match: 1
|
|
match: 1
|
|
},
|
|
},
|
|
popInfo: {
|
|
popInfo: {
|
|
@@ -43,7 +59,8 @@ var highSet = new Vue({
|
|
type: ''
|
|
type: ''
|
|
},
|
|
},
|
|
entInfo: {
|
|
entInfo: {
|
|
- eid: ''
|
|
|
|
|
|
+ eid: '',
|
|
|
|
+ entName: ''
|
|
},
|
|
},
|
|
reqSign: 'bigmember',
|
|
reqSign: 'bigmember',
|
|
filterInitData: {
|
|
filterInitData: {
|
|
@@ -52,8 +69,10 @@ var highSet = new Vue({
|
|
timeRange: [],
|
|
timeRange: [],
|
|
industry: []
|
|
industry: []
|
|
},
|
|
},
|
|
|
|
+ selectAreaList: ['全国'],
|
|
selectIndustryList: [],
|
|
selectIndustryList: [],
|
|
- matchTypeList: matchTypeListForComputed,
|
|
|
|
|
|
+ selectScopeList: ['purchasing'],
|
|
|
|
+ matchTypeList: matchTypeList,
|
|
startRange: [],
|
|
startRange: [],
|
|
endRange: []
|
|
endRange: []
|
|
}
|
|
}
|
|
@@ -66,16 +85,22 @@ var highSet = new Vue({
|
|
var industry = this.conf.industry
|
|
var industry = this.conf.industry
|
|
var start = this.conf.start
|
|
var start = this.conf.start
|
|
var end = this.conf.end
|
|
var end = this.conf.end
|
|
- return !(key && scope && area && industry && start && end)
|
|
|
|
|
|
+ return !(key || scope || area || industry || start || end)
|
|
},
|
|
},
|
|
hasSpace () {
|
|
hasSpace () {
|
|
var key = this.conf.keywords
|
|
var key = this.conf.keywords
|
|
return key.length > 1 && key.replace(/^\s\s*/,'').indexOf(' ') > -1
|
|
return key.length > 1 && key.replace(/^\s\s*/,'').indexOf(' ') > -1
|
|
},
|
|
},
|
|
filterInfoUrl: function () {
|
|
filterInfoUrl: function () {
|
|
|
|
+ var path = ''
|
|
|
|
+ if (this.entInfo.eid) {
|
|
|
|
+ path = 'winner/selects'
|
|
|
|
+ } else if (this.entInfo.entName) {
|
|
|
|
+ path = 'buyer/selects'
|
|
|
|
+ }
|
|
var urlMap = {
|
|
var urlMap = {
|
|
- bigmember: '/bigmember/portrait/winner/getNewMsgSelects', // 大会员
|
|
|
|
- svip: '/bigmember/portrait/subVipPortrait/getNewMsgSelects' // 超级订阅
|
|
|
|
|
|
+ bigmember: '/bigmember/portrait/' + path, // 大会员
|
|
|
|
+ svip: '/bigmember/portrait/subVipPortrait/selects' // 超级订阅
|
|
}
|
|
}
|
|
var url = urlMap.bigmember
|
|
var url = urlMap.bigmember
|
|
if (urlMap[this.reqSign]) {
|
|
if (urlMap[this.reqSign]) {
|
|
@@ -87,17 +112,63 @@ var highSet = new Vue({
|
|
created () {
|
|
created () {
|
|
var eid = utils.getParam('eid')
|
|
var eid = utils.getParam('eid')
|
|
var reqSign = utils.getParam('reqSign')
|
|
var reqSign = utils.getParam('reqSign')
|
|
|
|
+ var entName = decodeURIComponent(utils.getParam('entName'))
|
|
|
|
+ var winnerStorage = JSON.parse(sessionStorage.getItem('winner_high_set'))
|
|
|
|
+ var buyerStorage = JSON.parse(sessionStorage.getItem('buyer_high_set'))
|
|
if (eid) {
|
|
if (eid) {
|
|
this.entInfo.eid = decodeURIComponent(eid)
|
|
this.entInfo.eid = decodeURIComponent(eid)
|
|
|
|
+ if (winnerStorage) {
|
|
|
|
+ this.formatterStorage(winnerStorage)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (entName) {
|
|
|
|
+ this.entInfo.entName = entName
|
|
|
|
+ if (buyerStorage) {
|
|
|
|
+ this.formatterStorage(buyerStorage)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (reqSign) {
|
|
if (reqSign) {
|
|
this.reqSign = reqSign
|
|
this.reqSign = reqSign
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
|
|
+ var header = decodeURIComponent(utils.getParam('header'))
|
|
|
|
+ this.setHeaderTitle(header)
|
|
this.getFilterApi()
|
|
this.getFilterApi()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 设置title
|
|
|
|
+ setHeaderTitle: function setHeaderTitle (header) {
|
|
|
|
+ document.title = header || document.title
|
|
|
|
+ },
|
|
|
|
+ // 将缓存中的项目搜索范围英文字段转换为中文用于在输入框展示
|
|
|
|
+ formatterLabel: function(data) {
|
|
|
|
+ var arr = []
|
|
|
|
+ var list = this.matchTypeList
|
|
|
|
+ var sArr = data.split(',')
|
|
|
|
+ list.forEach(function(item){
|
|
|
|
+ sArr.forEach(function(v){
|
|
|
|
+ if(item.value == v) {
|
|
|
|
+ arr.push(item.label)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ return arr.join(',')
|
|
|
|
+ },
|
|
|
|
+ // 回显缓存中的数据
|
|
|
|
+ formatterStorage: function (data) {
|
|
|
|
+ var timeRange = data.timeRange.split('_')
|
|
|
|
+ this.conf.keywords = data.match
|
|
|
|
+ this.conf.area = data.area ? data.area : '全国'
|
|
|
|
+ this.conf.scope = this.formatterLabel(data.matchRange)
|
|
|
|
+ this.conf.industry = data.scopeClass ? data.scopeClass : '全部'
|
|
|
|
+ this.conf.start = timeRange[0]
|
|
|
|
+ this.conf.end = timeRange[1]
|
|
|
|
+ this.conf.match = data.exactMatch
|
|
|
|
+ this.selectAreaList = data.area ? data.area.split(',') : ['全国']
|
|
|
|
+ this.selectScopeList = data.matchRange.split(',')
|
|
|
|
+ this.selectIndustryList = data.scopeClass.split(',')
|
|
|
|
+ },
|
|
// 取近四年的年份
|
|
// 取近四年的年份
|
|
getCurFourYears: function () {
|
|
getCurFourYears: function () {
|
|
var endYear = new Date().getFullYear()
|
|
var endYear = new Date().getFullYear()
|
|
@@ -108,12 +179,12 @@ var highSet = new Vue({
|
|
}
|
|
}
|
|
return years
|
|
return years
|
|
},
|
|
},
|
|
|
|
+ // 处理截止日期
|
|
getEndRangeYears: function () {
|
|
getEndRangeYears: function () {
|
|
var endArr = []
|
|
var endArr = []
|
|
var years = this.getCurFourYears()
|
|
var years = this.getCurFourYears()
|
|
var start = this.conf.start
|
|
var start = this.conf.start
|
|
if (start) {
|
|
if (start) {
|
|
- // end = years.slice()
|
|
|
|
endArr = years.filter(function (v) {
|
|
endArr = years.filter(function (v) {
|
|
return v.replace('年', '') >= start.replace('年', '')
|
|
return v.replace('年', '') >= start.replace('年', '')
|
|
})
|
|
})
|
|
@@ -122,6 +193,13 @@ var highSet = new Vue({
|
|
}
|
|
}
|
|
return endArr
|
|
return endArr
|
|
},
|
|
},
|
|
|
|
+ showToast: function (message) {
|
|
|
|
+ this.$toast({
|
|
|
|
+ duration: 1500,
|
|
|
|
+ forbidClick: true,
|
|
|
|
+ message: message,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
showLoading: function () {
|
|
showLoading: function () {
|
|
var loading = this.$toast.loading({
|
|
var loading = this.$toast.loading({
|
|
duration: 0,
|
|
duration: 0,
|
|
@@ -130,15 +208,19 @@ var highSet = new Vue({
|
|
})
|
|
})
|
|
return loading
|
|
return loading
|
|
},
|
|
},
|
|
|
|
+ // 获取筛选条件
|
|
getFilterApi () {
|
|
getFilterApi () {
|
|
var _this = this
|
|
var _this = this
|
|
var loading = this.showLoading()
|
|
var loading = this.showLoading()
|
|
|
|
+ var data = this.entInfo.eid ? {
|
|
|
|
+ entId: _this.entInfo.eid
|
|
|
|
+ } : {
|
|
|
|
+ buyer: _this.entInfo.entName
|
|
|
|
+ }
|
|
$.ajax({
|
|
$.ajax({
|
|
type: 'POST',
|
|
type: 'POST',
|
|
url: this.filterInfoUrl,
|
|
url: this.filterInfoUrl,
|
|
- data: {
|
|
|
|
- entId: _this.entInfo.eid
|
|
|
|
- },
|
|
|
|
|
|
+ data: data,
|
|
success: function (res) {
|
|
success: function (res) {
|
|
if (res.error_code == 0) {
|
|
if (res.error_code == 0) {
|
|
loading.clear()
|
|
loading.clear()
|
|
@@ -154,6 +236,37 @@ var highSet = new Vue({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 选择器
|
|
|
|
+ popClick: function (type) {
|
|
|
|
+ this.popInfo.type = type
|
|
|
|
+ switch (type) {
|
|
|
|
+ case 'scope':
|
|
|
|
+ this.popInfo.show = true
|
|
|
|
+ this.initSelector()
|
|
|
|
+ this.popInfo.title = '请选择项目搜索范围'
|
|
|
|
+ break;
|
|
|
|
+ case 'area':
|
|
|
|
+ this.popInfo.show = true
|
|
|
|
+ this.initSelector(this.filterInitData)
|
|
|
|
+ this.popInfo.title = '请选择项目地区'
|
|
|
|
+ break;
|
|
|
|
+ case 'industry':
|
|
|
|
+ this.popInfo.show = true
|
|
|
|
+ this.initSelector(this.filterInitData)
|
|
|
|
+ this.popInfo.title = '请选择行业'
|
|
|
|
+ break;
|
|
|
|
+ case 'start':
|
|
|
|
+ this.popInfo.show = true
|
|
|
|
+ this.initSelector()
|
|
|
|
+ this.popInfo.title = '请选择开始年份'
|
|
|
|
+ break;
|
|
|
|
+ case 'end':
|
|
|
|
+ this.popInfo.show = true
|
|
|
|
+ this.initSelector()
|
|
|
|
+ this.popInfo.title = '请选择结束年份'
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
initSelector: function (data) {
|
|
initSelector: function (data) {
|
|
var _this = this
|
|
var _this = this
|
|
this.$nextTick(function() {
|
|
this.$nextTick(function() {
|
|
@@ -162,10 +275,12 @@ var highSet = new Vue({
|
|
_this.initMatchTypeSelector()
|
|
_this.initMatchTypeSelector()
|
|
break;
|
|
break;
|
|
case 'area':
|
|
case 'area':
|
|
|
|
+ _this.filterInitData.areaArr = data.areaArr
|
|
_this.initProjectAreaSelector(data.areaArr)
|
|
_this.initProjectAreaSelector(data.areaArr)
|
|
break;
|
|
break;
|
|
case 'industry':
|
|
case 'industry':
|
|
- _this.selectIndustryList = ['建筑工程_勘察设计']
|
|
|
|
|
|
+ _this.filterInitData.industry = data.scopeArr
|
|
|
|
+ _this.initProjectIndustrySelector(data.scopeArr)
|
|
break;
|
|
break;
|
|
case 'start':
|
|
case 'start':
|
|
_this.startRange = _this.getCurFourYears()
|
|
_this.startRange = _this.getCurFourYears()
|
|
@@ -176,9 +291,11 @@ var highSet = new Vue({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 项目搜索范围
|
|
initMatchTypeSelector: function () {
|
|
initMatchTypeSelector: function () {
|
|
- // this.$refs.matchTypeSelector.setState(this.searchFilters.matchType)
|
|
|
|
|
|
+ this.$refs.matchTypeSelector.setState(this.selectScopeList)
|
|
},
|
|
},
|
|
|
|
+ // 过滤地区
|
|
initProjectAreaSelector: function (areaArr) {
|
|
initProjectAreaSelector: function (areaArr) {
|
|
if (!Array.isArray(areaArr)) return
|
|
if (!Array.isArray(areaArr)) return
|
|
if (areaArr.indexOf('全国') === -1) {
|
|
if (areaArr.indexOf('全国') === -1) {
|
|
@@ -198,67 +315,87 @@ var highSet = new Vue({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$refs.projectAreaSelector.arrangeListMap(map)
|
|
this.$refs.projectAreaSelector.arrangeListMap(map)
|
|
|
|
+ console.log(this.selectAreaList, '111')
|
|
|
|
+ this.$refs.projectAreaSelector.setState(this.selectAreaList)
|
|
|
|
+ },
|
|
|
|
+ // 过滤行业数据
|
|
|
|
+ initProjectIndustrySelector: function (data) {
|
|
|
|
+ var arr = []
|
|
|
|
+ data.forEach(function(s) {
|
|
|
|
+ var key = s.substring(0, s.indexOf('_'))
|
|
|
|
+ var value = s.substring(s.indexOf('_') + 1)
|
|
|
|
+ arr.push({
|
|
|
|
+ name: key,
|
|
|
|
+ value: value
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ var newArr = []
|
|
|
|
+ arr.forEach(function(item, index) {
|
|
|
|
+ let newItem = newArr.find(function(i) {
|
|
|
|
+ return i.name == item.name
|
|
|
|
+ })
|
|
|
|
+ if (!newItem) {
|
|
|
|
+ newArr.push({
|
|
|
|
+ name: item.name,
|
|
|
|
+ value: [item.value]
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ newItem.value.push(item.value)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ var resArr = []
|
|
|
|
+ newArr.forEach(function(s) {
|
|
|
|
+ var obj = {}
|
|
|
|
+ obj[s.name] = s.value
|
|
|
|
+ resArr.push(obj)
|
|
|
|
+ })
|
|
|
|
+ console.log(resArr, '过滤好的行业数据')
|
|
|
|
+ this.$refs.industryCom.formatIndustryData(resArr)
|
|
|
|
+ this.$refs.industryCom.setState(this.selectIndustryList)
|
|
},
|
|
},
|
|
|
|
+ // 分析方式
|
|
checkMatch: function (item) {
|
|
checkMatch: function (item) {
|
|
this.conf.match = item
|
|
this.conf.match = item
|
|
},
|
|
},
|
|
onKeywords: function (val) {
|
|
onKeywords: function (val) {
|
|
|
|
+ // 过滤首个空格
|
|
this.conf.keywords = val.replace(/^\s\s*/,'')
|
|
this.conf.keywords = val.replace(/^\s\s*/,'')
|
|
},
|
|
},
|
|
- popClick: function (type) {
|
|
|
|
- this.popInfo.type = type
|
|
|
|
- switch (type) {
|
|
|
|
- case 'scope':
|
|
|
|
- this.popInfo.show = true
|
|
|
|
- this.initSelector(this.filterInitData)
|
|
|
|
- this.popInfo.title = '请选择项目搜索范围'
|
|
|
|
- break;
|
|
|
|
- case 'area':
|
|
|
|
- this.popInfo.show = true
|
|
|
|
- this.initSelector(this.filterInitData)
|
|
|
|
- this.popInfo.title = '请选择项目地区'
|
|
|
|
- break;
|
|
|
|
- case 'industry':
|
|
|
|
- this.popInfo.show = true
|
|
|
|
- this.popInfo.title = '请选择行业'
|
|
|
|
- break;
|
|
|
|
- case 'start':
|
|
|
|
- this.popInfo.show = true
|
|
|
|
- this.initSelector()
|
|
|
|
- this.popInfo.title = '请选择开始年份'
|
|
|
|
- break;
|
|
|
|
- case 'end':
|
|
|
|
- this.popInfo.show = true
|
|
|
|
- this.initSelector()
|
|
|
|
- this.popInfo.title = '请选择结束年份'
|
|
|
|
- break;
|
|
|
|
|
|
+ onCancel: function (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)
|
|
}
|
|
}
|
|
- },
|
|
|
|
- onCancel: function () {
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
onConfirm: function (data) {
|
|
onConfirm: function (data) {
|
|
- console.log(data, 'data')
|
|
|
|
|
|
+ console.log(data)
|
|
if (data.name === 'areaItem') {
|
|
if (data.name === 'areaItem') {
|
|
if (data.data.length === 0) {
|
|
if (data.data.length === 0) {
|
|
this.conf.area = '全国'
|
|
this.conf.area = '全国'
|
|
|
|
+ this.selectAreaList = ['全国']
|
|
} else {
|
|
} else {
|
|
this.conf.area = data.data.join(',')
|
|
this.conf.area = data.data.join(',')
|
|
|
|
+ this.selectAreaList = data.data
|
|
}
|
|
}
|
|
} else if (data.name === 'scopeItem') {
|
|
} else if (data.name === 'scopeItem') {
|
|
if (data.data.length === 0) {
|
|
if (data.data.length === 0) {
|
|
- this.conf.scope = '全部'
|
|
|
|
|
|
+ this.conf.scope = ''
|
|
} else {
|
|
} else {
|
|
this.conf.scope = data.checkedList.map(function(v) {
|
|
this.conf.scope = data.checkedList.map(function(v) {
|
|
return v.label
|
|
return v.label
|
|
}).join(',')
|
|
}).join(',')
|
|
|
|
+ this.selectScopeList = data.data
|
|
}
|
|
}
|
|
-
|
|
|
|
} else if (data.name === 'industryItem') {
|
|
} else if (data.name === 'industryItem') {
|
|
if (data.data.length === 0) {
|
|
if (data.data.length === 0) {
|
|
this.conf.industry = '全部'
|
|
this.conf.industry = '全部'
|
|
} else {
|
|
} else {
|
|
this.conf.industry = data.data.join(',')
|
|
this.conf.industry = data.data.join(',')
|
|
|
|
+ this.selectIndustryList = data.data
|
|
}
|
|
}
|
|
} else if (data.name === 'yearsItem') {
|
|
} else if (data.name === 'yearsItem') {
|
|
if (data.type === 'start') {
|
|
if (data.type === 'start') {
|
|
@@ -273,6 +410,49 @@ var highSet = new Vue({
|
|
},
|
|
},
|
|
setToggle: function() {
|
|
setToggle: function() {
|
|
this.popInfo.show = false
|
|
this.popInfo.show = false
|
|
|
|
+ },
|
|
|
|
+ // 开始分析
|
|
|
|
+ startStatistic: function() {
|
|
|
|
+ var conf = this.conf
|
|
|
|
+ var list = this.matchTypeList
|
|
|
|
+ var arr = []
|
|
|
|
+ var sArr = conf.scope.split(',')
|
|
|
|
+ list.forEach(function(item){
|
|
|
|
+ sArr.forEach(function(v){
|
|
|
|
+ if(item.label == v) {
|
|
|
|
+ arr.push(item.value)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ var obj = {
|
|
|
|
+ match: conf.keywords,
|
|
|
|
+ exactMatch: conf.match,
|
|
|
|
+ matchRange: arr.join(','),
|
|
|
|
+ area: conf.area.indexOf('全国') > -1 ? '' : conf.area,
|
|
|
|
+ scopeClass: conf.industry.indexOf('全部') > -1 ? '' : conf.industry,
|
|
|
|
+ timeRange: conf.start.replace('年', '') + '_' + conf.end.replace('年', '')
|
|
|
|
+ }
|
|
|
|
+ if (this.entInfo.entName) {
|
|
|
|
+ window.sessionStorage.setItem('buyer_high_set', JSON.stringify(obj))
|
|
|
|
+ window.sessionStorage.setItem('buyer_high_name', encodeURIComponent(this.entInfo.entName))
|
|
|
|
+ } else if (this.entInfo.eid) {
|
|
|
|
+ window.sessionStorage.setItem('winner_high_set', JSON.stringify(obj))
|
|
|
|
+ window.sessionStorage.setItem('winner_high_eid', this.entInfo.eid)
|
|
|
|
+ }
|
|
|
|
+ window.history.back()
|
|
|
|
+ },
|
|
|
|
+ // 重置
|
|
|
|
+ onReset: function () {
|
|
|
|
+ this.conf.keywords = ''
|
|
|
|
+ this.conf.scope = '项目名称/标的物'
|
|
|
|
+ this.conf.area = '全国'
|
|
|
|
+ this.conf.industry = '全部'
|
|
|
|
+ this.conf.start = new Date().getFullYear() - 2 + '年'
|
|
|
|
+ this.conf.end = new Date().getFullYear() + '年'
|
|
|
|
+ this.conf.match = 1
|
|
|
|
+ this.filterInitData.area = []
|
|
|
|
+ this.selectIndustryList = []
|
|
|
|
+ this.selectScopeList = ['purchasing']
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|