Commit af04d754 authored by tianhongyang's avatar tianhongyang

查业主 深度搜索

parent 8140b78c
......@@ -100,10 +100,13 @@
</div>
</div>
<div class="table-item-jf table-item-jf1" v-if="tableData.length==0&& !isSkeleton">
<div class="table-item-jf table-item-jf1 empty-table" v-if="tableData.length==0&& !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">抱歉,没找到相关数据!</div>
<div class="item-jf-text">建议调整关键词或筛选条件,重新搜索!</div>
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
<div class="depth-search-box" v-if="onlySearchEname">
<div class="depth-search" @click="$router.push({path : `/enterpriseData/SearchEnterprise?keyword=${keys}`})">深度搜索企业</div>
</div>
</div>
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
......@@ -299,7 +302,7 @@ export default {
// 业主标签
ownerLabels: [],
// 当前选中的业主标签
currentOwnerLabels: ["5.1.1."],
currentOwnerLabels: [],
// 业主全选状态
checkOwnerLabel: false,
// 选中两个及两个以上业主标签 添加选中条件 or任意均可 and同时具备
......@@ -355,7 +358,32 @@ export default {
};
},
computed: {
// 仅搜索企业名
onlySearchEname() {
let that = this;
const keys = {
ename: that.keys,
tagCode: that.currentOwnerLabels,
...that.jskBidQueryDto
};
const temp = [];
for (const key in keys) {
const type = Object.prototype.toString.call(keys[key]);
if (keys[key]) {
switch (type) {
case "[object String]":
temp.push(key);
break;
case "[object Array]":
keys[key].length > 0 ? temp.push(key) : null;
break;
default:
break;
}
}
}
return temp.length == 1 && temp.includes("ename") ? true : false;
}
},
created() {
this.init();
......@@ -520,7 +548,7 @@ export default {
this.checkOwnerLabel = false;
} else if (val.length == 0) {
this.checkOwnerLabel = true;
this.currentOwnerLabels = [this.ownerLabels[0].dictValue];
this.currentOwnerLabels = [];
}
if (val.length >= 2) {
this.tagCodeQueryType = "or";
......@@ -653,7 +681,7 @@ export default {
// 搜索关键词处理
if (this.keys) {
params.aptitudeQueryDto['ename'] = this.keys.split(' ');
params.aptitudeQueryDto['ename'] = this.keys;
}
// 处理地区选择
......@@ -668,7 +696,7 @@ export default {
}
// 业主标签选中处理
if (this.ownerLabels.length > 0) {
if (this.currentOwnerLabels.length > 0) {
params.aptitudeQueryDto["tagCode"] = this.currentOwnerLabels.join(",");
}
......@@ -1014,6 +1042,31 @@ export default {
}
::v-deep .table-item-jf {
&.empty-table {
padding: 0px;
padding-bottom: 48px;
.item-jf-text {
padding: 0px;
}
.depth-search-box {
display: flex;
align-items: center;
justify-content: center;
margin-top: 24px;
}
.depth-search {
width: 116px;
height: 36px;
line-height: 36px;
text-align: center;
cursor: pointer;
color: #fff;
background: #0081ff;
border-radius: 4px;
font-size: 14px;
}
}
.el-table {
th,
td {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment