|
@@ -126,24 +126,24 @@
|
|
|
<div v-show="currtype==2">
|
|
|
<div class="typetitle">2.请选择您的载体类型</div>
|
|
|
<div class="fwhy" id="ztlx">
|
|
|
- <div class="list" :class="getClassztlx(item.name)" :key="index" v-for="(item,index) in ztlxList"
|
|
|
- :data-tab-target="item.name">{{item.name}}</div>
|
|
|
+ <div class="list" :class="getClassztlx(item.name)" :key="index"
|
|
|
+ v-for="(item,index) in ztlxList" :data-tab-target="item.name">{{item.name}}</div>
|
|
|
<div class="list ztlxbx" data-tab-target="不限">不限</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="currtype==3">
|
|
|
<div class="typetitle">3.请选择您的租赁情况</div>
|
|
|
<div class="fwhy" id="zlqk">
|
|
|
- <div class="list" :class="getClasszlqk(item.name)" :key="index" v-for="(item,index) in zlqklist"
|
|
|
- :data-tab-target="item.name">{{item.name}}</div>
|
|
|
+ <div class="list" :class="getClasszlqk(item.name)" :key="index"
|
|
|
+ v-for="(item,index) in zlqklist" :data-tab-target="item.name">{{item.name}}</div>
|
|
|
<div class="list zlqkbx" data-tab-target="不限">不限</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="currtype==4">
|
|
|
<div class="typetitle">4.请选择您的所属园区</div>
|
|
|
<div class="fwhy" id="ssyq">
|
|
|
- <div class="list" :class="getClassssyq(item.title)" :key="index" v-for="(item,index) in titleList" :data-tab-target="item.id"
|
|
|
- :data-title="item.title">
|
|
|
+ <div class="list" :class="getClassssyq(item.title)" :key="index"
|
|
|
+ v-for="(item,index) in titleList" :data-tab-target="item.id" :data-title="item.title">
|
|
|
{{item.title}}</div>
|
|
|
<div class="list ssyqbx" data-tab-target="不限" data-title="不限">不限</div>
|
|
|
</div>
|
|
@@ -297,13 +297,25 @@
|
|
|
selectTabs = this.currfwhy
|
|
|
}
|
|
|
if (this.currztlx && this.currztlx != "不限") {
|
|
|
- selectTabs = selectTabs + ',' + this.currztlx
|
|
|
+ if (selectTabs) {
|
|
|
+ selectTabs = selectTabs + ',' + this.currztlx
|
|
|
+ }else{
|
|
|
+ selectTabs = this.currztlx;
|
|
|
+ }
|
|
|
}
|
|
|
if (this.currzlqk && this.currzlqk != "不限") {
|
|
|
- selectTabs = selectTabs + ',' + this.currzlqk
|
|
|
+ if (selectTabs) {
|
|
|
+ selectTabs = selectTabs + ',' + this.currzlqk
|
|
|
+ }else{
|
|
|
+ selectTabs = this.currzlqk;
|
|
|
+ }
|
|
|
}
|
|
|
if (this.currssyq && this.currssyq != "不限") {
|
|
|
- selectTabs = selectTabs + ',' + this.currssyqtitle
|
|
|
+ if (selectTabs) {
|
|
|
+ selectTabs = selectTabs + ',' + this.currssyqtitle
|
|
|
+ }else{
|
|
|
+ selectTabs = this.currssyqtitle;
|
|
|
+ }
|
|
|
}
|
|
|
const znxzString = JSON.stringify(znxz);
|
|
|
sessionStorage.setItem('znxztabs', selectTabs);
|
|
@@ -318,8 +330,8 @@
|
|
|
if (this.currfwhy) {
|
|
|
var currfwhy = this.currfwhy.split(',');
|
|
|
for (var i = 0; i < currfwhy; i++) {
|
|
|
- if(currfwhy[i]==name){
|
|
|
- flag =true;
|
|
|
+ if (currfwhy[i] == name) {
|
|
|
+ flag = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -330,8 +342,8 @@
|
|
|
if (this.currztlx) {
|
|
|
var currztlx = this.currztlx.split(',');
|
|
|
for (var i = 0; i < currztlx; i++) {
|
|
|
- if(currztlx[i]==name){
|
|
|
- flag =true;
|
|
|
+ if (currztlx[i] == name) {
|
|
|
+ flag = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -342,8 +354,8 @@
|
|
|
if (this.currssyqtitle) {
|
|
|
var currssyqtitle = this.currssyqtitle.split(',');
|
|
|
for (var i = 0; i < currssyqtitle; i++) {
|
|
|
- if(currssyqtitle[i]==name){
|
|
|
- flag =true;
|
|
|
+ if (currssyqtitle[i] == name) {
|
|
|
+ flag = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -354,8 +366,8 @@
|
|
|
if (this.currzlqk) {
|
|
|
var currzlqk = this.currzlqk.split(',');
|
|
|
for (var i = 0; i < currzlqk; i++) {
|
|
|
- if(currzlqk[i]==name){
|
|
|
- flag =true;
|
|
|
+ if (currzlqk[i] == name) {
|
|
|
+ flag = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -453,7 +465,7 @@
|
|
|
// 更新界面以反映当前选中的Tab
|
|
|
// 输出选中的Tab数组
|
|
|
if (fwhyselectedTabs[0] == "不限") {
|
|
|
- fwhyselectedTabs=[];
|
|
|
+ fwhyselectedTabs = [];
|
|
|
that.nowDiv.currfwhy = '';
|
|
|
} else {
|
|
|
that.nowDiv.currfwhy = fwhyselectedTabs.join(',');
|
|
@@ -485,7 +497,7 @@
|
|
|
}
|
|
|
}
|
|
|
if (ztlxselectedTabs[0] == "不限") {
|
|
|
- ztlxselectedTabs=[];
|
|
|
+ ztlxselectedTabs = [];
|
|
|
that.nowDiv.currztlx = '';
|
|
|
} else {
|
|
|
that.nowDiv.currztlx = ztlxselectedTabs.join(',');
|
|
@@ -516,7 +528,7 @@
|
|
|
}
|
|
|
}
|
|
|
if (zlqkselectedTabs[0] == "不限") {
|
|
|
- zlqkselectedTabs=[];
|
|
|
+ zlqkselectedTabs = [];
|
|
|
that.nowDiv.currzlqk = '';
|
|
|
} else {
|
|
|
that.nowDiv.currzlqk = zlqkselectedTabs.join(',');
|
|
@@ -550,16 +562,14 @@
|
|
|
ssyqtitle = ['不限'];
|
|
|
}
|
|
|
}
|
|
|
- console.log(ssyqselectedTabs)
|
|
|
if (ssyqselectedTabs[0] == "不限") {
|
|
|
- ssyqselectedTabs=[];
|
|
|
+ ssyqselectedTabs = [];
|
|
|
that.nowDiv.currssyq = '';
|
|
|
that.nowDiv.currssyqtitle = '';
|
|
|
} else {
|
|
|
that.nowDiv.currssyq = ssyqselectedTabs.join(',');
|
|
|
that.nowDiv.currssyqtitle = ssyqtitle.join(',');
|
|
|
}
|
|
|
- console.log(that.nowDiv.currssyq)
|
|
|
}
|
|
|
});
|
|
|
});
|