|
@@ -41,18 +41,25 @@ var vm = new Vue({
|
|
|
noticeText: '公告类型'
|
|
|
},
|
|
|
selectCateList: [], // 选择的采购单位类型列表
|
|
|
- selectAreaList: [], // 选择的采购单位类型列表
|
|
|
+ selectAreaList: [], // 选择的地区列表
|
|
|
selectIndustryList: [], // 选择的行业列表
|
|
|
- selectKeyWordList: [], // 选择的行业列表
|
|
|
+ selectKeyWordList: [], // 选择的关键词列表
|
|
|
selectNoticeList: [] // 选择的公告类型列表
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
+ created () {
|
|
|
var recover = this.recover()
|
|
|
if (!recover) {
|
|
|
this.getUserRoot()
|
|
|
}
|
|
|
},
|
|
|
+ mounted () {
|
|
|
+ setTimeout(() => {
|
|
|
+ if(this.time !== '') {
|
|
|
+ this.setPushTime(this.time)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
recover: function () {
|
|
|
let _this = this
|
|
@@ -112,6 +119,17 @@ var vm = new Vue({
|
|
|
}
|
|
|
return !!$data
|
|
|
},
|
|
|
+ // 订阅推送消息展示数据
|
|
|
+ setPushTime: function(time) {
|
|
|
+ let pushtime = {
|
|
|
+ start: parseInt(time.split('_')[0]),
|
|
|
+ end: parseInt(time.split('_')[0]),
|
|
|
+ }
|
|
|
+ this.tagText.timeText = new Date(pushtime.start).pattern('yyyy.MM.dd') + '~' + new Date(pushtime.end).pattern('yyyy.MM.dd')
|
|
|
+ this.selectDate.startDate = pushtime.start
|
|
|
+ this.selectDate.endDate= pushtime.end
|
|
|
+ this.selectDate.exact = 'exact'
|
|
|
+ },
|
|
|
// 判断是否是有筛选条件
|
|
|
getUserRoot: function() {
|
|
|
let _this = this
|
|
@@ -209,18 +227,28 @@ var vm = new Vue({
|
|
|
this.time = ''
|
|
|
} else if(data.name === 'areaItem'){
|
|
|
this.area = ''
|
|
|
+ this.selectAreaList = []
|
|
|
+ this.$refs.areaItem.setState()
|
|
|
$('.areaText').html('地区')
|
|
|
} else if(data.name === 'industryItem'){
|
|
|
this.subscopeclass = ''
|
|
|
+ this.selectIndustryList = []
|
|
|
+ this.$refs.industryCom.setState()
|
|
|
$('.industryText').html('行业')
|
|
|
} else if(data.name === 'cateItem'){
|
|
|
this.buyerclass = ''
|
|
|
+ this.selectCateList = []
|
|
|
+ this.$refs.cateItem.setState()
|
|
|
$('.cateText').html('采购单位')
|
|
|
} else if(data.name === 'keywordItem'){
|
|
|
this.key = ''
|
|
|
+ this.selectKeyWordList = []
|
|
|
+ this.$refs.keywordItem.setState()
|
|
|
$('.keywordText').html('关键词')
|
|
|
} else if(data.name === 'noticeItem'){
|
|
|
this.subtype = ''
|
|
|
+ this.selectNoticeList = []
|
|
|
+ this.$refs.noticeItem.setState()
|
|
|
$('.noticeText').html('公告类型')
|
|
|
}
|
|
|
this.setToggle()
|