修改已知bug
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
</a-select>
|
||||
<a-input-search
|
||||
allowClear
|
||||
style="width: 70%"
|
||||
v-model="selectValueTwo"
|
||||
style="width: calc(100% - 88px)"
|
||||
placeholder="请输入搜索内容"
|
||||
@search="onSearch"
|
||||
></a-input-search>
|
||||
@@ -26,7 +27,8 @@
|
||||
placeholder="请输入搜索内容"
|
||||
@search="wholeOnSearch"
|
||||
></a-input-search>
|
||||
<span v-if="active === $t('whole')" class="textSearch" @click="wholeTextSearch(selectValueTwo)">结果中检索</span>
|
||||
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
|
||||
@click="wholeTextSearch(selectValueTwo)">结果中检索</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-center-content">
|
||||
@@ -70,7 +72,7 @@
|
||||
},
|
||||
selectModel: '',
|
||||
queryParam: {},
|
||||
selectValueTwo:'',
|
||||
selectValueTwo: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -82,19 +84,20 @@
|
||||
},
|
||||
onSearch(event) {
|
||||
this.queryParam[this.selectModel] = event
|
||||
if (this.$refs.DocumentLibraryRef){
|
||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam,this.selectModel)
|
||||
if (this.$refs.DocumentLibraryRef) {
|
||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel)
|
||||
}
|
||||
},
|
||||
wholeOnSearch(event){
|
||||
if (this.$refs.wholeRef){
|
||||
wholeOnSearch(event) {
|
||||
if (this.$refs.wholeRef) {
|
||||
this.$refs.wholeRef.searchData(event)
|
||||
}
|
||||
},
|
||||
wholeTextSearch(event){
|
||||
console.log(event)
|
||||
if (this.$refs.wholeRef){
|
||||
wholeTextSearch(event) {
|
||||
if (this.$refs.wholeRef) {
|
||||
this.$refs.wholeRef.searchDataTwo(event)
|
||||
} else if (this.$refs.DocumentLibraryRef) {
|
||||
this.$refs.DocumentLibraryRef.searchDataTwo(event)
|
||||
}
|
||||
},
|
||||
getCondition() {
|
||||
@@ -203,7 +206,8 @@
|
||||
.input-group .ant-select {
|
||||
background: #F6F7FA;
|
||||
}
|
||||
.textSearch{
|
||||
|
||||
.textSearch {
|
||||
line-height: 40px;
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
|
||||
Reference in New Issue
Block a user