|
@@ -345,10 +345,10 @@ export default {
|
|
|
param.FloorLocalName = this.form.locationVal[1];
|
|
|
}
|
|
|
if (this.form.locationVal.length > 2) {
|
|
|
- param.RoomLocalName = this.form.locationVal[2];
|
|
|
+ param.SpaceType = this.form.locationVal[2];
|
|
|
}
|
|
|
if (this.form.locationVal.length > 3) {
|
|
|
- param.SpaceType = this.form.locationVal[3];
|
|
|
+ param.RoomLocalName = this.form.locationVal[3];
|
|
|
}
|
|
|
this.rTableLoading = true;
|
|
|
dynamicPendingobjs(param, res => {
|
|
@@ -421,18 +421,19 @@ export default {
|
|
|
//先清空,返回结果后赋值
|
|
|
this.rightRecoList = [];
|
|
|
clearTimeout(this.timer);
|
|
|
- if(this.isSwitch&&n.length){
|
|
|
+ if (this.isSwitch && n.length) {
|
|
|
this.timer = setTimeout(() => {
|
|
|
- let param = [{}]
|
|
|
- param[0].Objs = n
|
|
|
+ let param = []
|
|
|
+ n.map(item => {
|
|
|
+ param.push({ Points: [item] })
|
|
|
+ })
|
|
|
dynamicQueryAI(param, res => {
|
|
|
this.rightRecoList = res.Content[0].Objs;
|
|
|
this.leftAI = !this.rightRecoList.length
|
|
|
- console.log(this.rightRecoList)
|
|
|
})
|
|
|
}, 800)
|
|
|
- }else{
|
|
|
- this,rightRecoList = []
|
|
|
+ } else {
|
|
|
+ this.rightRecoList = []
|
|
|
this.leftAI = true;
|
|
|
}
|
|
|
},
|
|
@@ -440,16 +441,18 @@ export default {
|
|
|
rArray(n, o) {
|
|
|
this.leftRecoList = [];
|
|
|
clearTimeout(this.timer);
|
|
|
- if(this.isSwitch&&n.length){
|
|
|
+ if (this.isSwitch && n.length) {
|
|
|
this.timer = setTimeout(() => {
|
|
|
- let param = [{}]
|
|
|
- param[0].Points = n
|
|
|
+ let param = []
|
|
|
+ n.map(item => {
|
|
|
+ param.push({ Objs: [item] })
|
|
|
+ })
|
|
|
dynamicQueryAI(param, res => {
|
|
|
this.leftRecoList = res.Content[0].Points;
|
|
|
this.leftAI = !!this.leftRecoList.length
|
|
|
})
|
|
|
}, 800)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.leftRecoList = []
|
|
|
this.leftAI = false
|
|
|
}
|
|
@@ -466,7 +469,7 @@ export default {
|
|
|
text-align: right;
|
|
|
}
|
|
|
/deep/ .table-container {
|
|
|
- height: calc(100% - 250px);
|
|
|
+ height: calc(100% - 160px);
|
|
|
& > div {
|
|
|
width: 49.5%;
|
|
|
float: left;
|