|
@@ -102,6 +102,7 @@ var analysisTemp = `
|
|
|
></van-field>
|
|
|
<van-field
|
|
|
is-link
|
|
|
+ class='time-cell'
|
|
|
readonly
|
|
|
@click="setOpenPopup('time')"
|
|
|
v-model="filters.limitTime"
|
|
@@ -266,24 +267,31 @@ var analysisComponent = {
|
|
|
if(this.buyerContent.length !== 0) {
|
|
|
return true
|
|
|
} else {
|
|
|
- return false
|
|
|
+ if(this.filters.keys !== '') {
|
|
|
+ return true
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
startValidate (data) {
|
|
|
console.log(data)
|
|
|
},
|
|
|
onSubmit: function () {
|
|
|
- const {pname, buyer, area} = this.filters
|
|
|
- this.ajaxFilters.pname = pname
|
|
|
- this.ajaxFilters.buyer = buyer
|
|
|
- this.ajaxFilters.area = area
|
|
|
- this.ajaxFilters.keys = this.buyerContent
|
|
|
- const params = {
|
|
|
- filters: this.filters,
|
|
|
- buyerContent: this.buyerContent
|
|
|
- }
|
|
|
- sessionStorage.setItem('analysis-filter-data', JSON.stringify(params))
|
|
|
- this.$emit('click', this.ajaxFilters)
|
|
|
+ this.addKeys()
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const {pname, buyer, area} = this.filters
|
|
|
+ this.ajaxFilters.pname = pname
|
|
|
+ this.ajaxFilters.buyer = buyer
|
|
|
+ this.ajaxFilters.area = area
|
|
|
+ this.ajaxFilters.keys = this.buyerContent
|
|
|
+ const params = {
|
|
|
+ filters: this.filters,
|
|
|
+ buyerContent: this.buyerContent
|
|
|
+ }
|
|
|
+ sessionStorage.setItem('analysis-filter-data', JSON.stringify(params))
|
|
|
+ this.$emit('click', this.ajaxFilters)
|
|
|
+ })
|
|
|
},
|
|
|
setProName (data) {
|
|
|
this.filters.pname = data
|
|
@@ -428,7 +436,8 @@ var analysisComponent = {
|
|
|
addKeys () {
|
|
|
if(this.filters.keys !== '') {
|
|
|
const keys = {
|
|
|
- key: [this.filters.keys]
|
|
|
+ key: [this.filters.keys],
|
|
|
+ matchway: 1
|
|
|
}
|
|
|
this.buyerContent.push(keys)
|
|
|
this.filters.keys = ''
|
|
@@ -459,7 +468,7 @@ var analysisComponent = {
|
|
|
onAreaConfirm: function () {
|
|
|
const picker = this.$refs.picker;
|
|
|
const selectedValue = picker.getValues()
|
|
|
- this.filters.area = selectedValue[0].text
|
|
|
+ this.filters.area = selectedValue[0].value
|
|
|
this.filtersPopup.area = false
|
|
|
},
|
|
|
// 打开弹出框
|