|
@@ -126,8 +126,8 @@
|
|
|
<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)" :key="index" v-for="(item,index) in ztlxList"
|
|
|
+ :data-tab-target="item">{{item}}</div>
|
|
|
<div class="list ztlxbx" data-tab-target="不限">不限</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -212,36 +212,7 @@
|
|
|
name: "医疗器械"
|
|
|
}
|
|
|
],
|
|
|
- ztlxList: [
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- name: "办公楼宇"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- name: "厂房"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
- name: "底商"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 4,
|
|
|
- name: "商业"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 5,
|
|
|
- name: "医药库房"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 6,
|
|
|
- name: "库房"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 7,
|
|
|
- name: "宿舍"
|
|
|
- }
|
|
|
- ],
|
|
|
+ ztlxList: [],
|
|
|
zlqklist: [
|
|
|
{
|
|
|
id: 1,
|
|
@@ -274,6 +245,7 @@
|
|
|
url: conpath + "/parkData/",
|
|
|
type: "get",
|
|
|
dataType: "json",
|
|
|
+ async: false,
|
|
|
success: function (data) {
|
|
|
that.titleList = data;
|
|
|
}
|
|
@@ -284,68 +256,78 @@
|
|
|
},
|
|
|
nextChoice() {
|
|
|
var znxz = {
|
|
|
- "productModule": this.currfwhy,
|
|
|
- "application": this.currztlx,
|
|
|
- "rent": this.currzlqk,
|
|
|
- "belong": this.currssyq,
|
|
|
- "currentPage": 1,
|
|
|
- "pageSize": 100000
|
|
|
- }
|
|
|
+ "productModule": this.currfwhy,
|
|
|
+ "application": this.currztlx,
|
|
|
+ "rent": this.currzlqk,
|
|
|
+ "belong": this.currssyq,
|
|
|
+ "currentPage": 1,
|
|
|
+ "pageSize": 100000
|
|
|
+ }
|
|
|
if (this.currtype == 4) {
|
|
|
- var data = this.getListData(znxz);
|
|
|
- if (data.length) {
|
|
|
- var selectTabs = '';
|
|
|
- if (this.currfwhy && this.currfwhy != "不限") {
|
|
|
- selectTabs = this.currfwhy
|
|
|
- }
|
|
|
- if (this.currztlx && this.currztlx != "不限") {
|
|
|
- if (selectTabs) {
|
|
|
- selectTabs = selectTabs + ',' + this.currztlx
|
|
|
- } else {
|
|
|
- selectTabs = this.currztlx;
|
|
|
- }
|
|
|
+ var selectTabs = '';
|
|
|
+ if (this.currfwhy && this.currfwhy != "不限") {
|
|
|
+ selectTabs = this.currfwhy
|
|
|
+ }
|
|
|
+ if (this.currztlx && this.currztlx != "不限") {
|
|
|
+ if (selectTabs) {
|
|
|
+ selectTabs = selectTabs + ',' + this.currztlx
|
|
|
+ } else {
|
|
|
+ selectTabs = this.currztlx;
|
|
|
}
|
|
|
- if (this.currzlqk && this.currzlqk != "不限") {
|
|
|
- if (selectTabs) {
|
|
|
- selectTabs = selectTabs + ',' + this.currzlqk
|
|
|
- } else {
|
|
|
- selectTabs = this.currzlqk;
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (this.currzlqk && this.currzlqk != "不限") {
|
|
|
+ if (selectTabs) {
|
|
|
+ selectTabs = selectTabs + ',' + this.currzlqk
|
|
|
+ } else {
|
|
|
+ selectTabs = this.currzlqk;
|
|
|
}
|
|
|
- if (this.currssyq && this.currssyq != "不限") {
|
|
|
- if (selectTabs) {
|
|
|
- selectTabs = selectTabs + ',' + this.currssyqtitle
|
|
|
- } else {
|
|
|
- selectTabs = this.currssyqtitle;
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (this.currssyq && this.currssyq != "不限") {
|
|
|
+ if (selectTabs) {
|
|
|
+ selectTabs = selectTabs + ',' + this.currssyqtitle
|
|
|
+ } else {
|
|
|
+ selectTabs = this.currssyqtitle;
|
|
|
}
|
|
|
- const znxzString = JSON.stringify(znxz);
|
|
|
- sessionStorage.setItem('znxztabs', selectTabs);
|
|
|
- sessionStorage.setItem('znxz', znxzString);
|
|
|
- window.location.href = "znxz.html"
|
|
|
- } else {
|
|
|
- this.$message.error('当前条件下暂无载体数据,请重新选择!');
|
|
|
}
|
|
|
+ const znxzString = JSON.stringify(znxz);
|
|
|
+ sessionStorage.setItem('znxztabs', selectTabs);
|
|
|
+ sessionStorage.setItem('znxz', znxzString);
|
|
|
+ window.location.href = "znxz.html"
|
|
|
} else {
|
|
|
- var data = this.getListData(znxz);
|
|
|
- if (data.length) {
|
|
|
- this.currtype = this.currtype + 1
|
|
|
- } else {
|
|
|
- this.$message.error('当前条件下暂无载体数据,请重新选择!');
|
|
|
+ var znxz = {
|
|
|
+ "productModule": this.currfwhy,
|
|
|
+ "application": this.currztlx,
|
|
|
+ "rent": this.currzlqk,
|
|
|
+ "belong": this.currssyq
|
|
|
}
|
|
|
+ this.getListData(znxz);
|
|
|
+ this.currtype = this.currtype + 1;
|
|
|
}
|
|
|
},
|
|
|
getListData(json) {
|
|
|
+ let that = this;
|
|
|
let dataList;
|
|
|
+ that.getParkData();
|
|
|
$.ajax({
|
|
|
- url: conpath + "/sellBuild/queryPageByAddr",
|
|
|
+ url: "http://192.168.0.28:8443/sellBuild/newQueryOne",
|
|
|
type: "post",
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify(json),
|
|
|
dataType: "json",
|
|
|
async: false,
|
|
|
success: function (data) {
|
|
|
- dataList = data.list;
|
|
|
+ that.ztlxList = data.data.applications;
|
|
|
+ var alltitle = that.titleList;
|
|
|
+ var parkdata=data.data.parkId;
|
|
|
+ var nowtitle = [];
|
|
|
+ for (var i = 0; i < alltitle.length; i++) {
|
|
|
+ for (var j = 0; j < parkdata.length; j++) {
|
|
|
+ if (alltitle[i].id == parkdata[j]) {
|
|
|
+ nowtitle.push(alltitle[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ that.titleList = nowtitle;
|
|
|
}
|
|
|
});
|
|
|
return dataList;
|
|
@@ -449,9 +431,7 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- const url = new URL(window.location.href);
|
|
|
- const id = url.searchParams.get('id');
|
|
|
- this.getParkData(id);
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
</script>
|