修改禅道已知bug

This commit is contained in:
qq787203167
2022-03-30 16:59:06 +08:00
parent d3696b6567
commit 687d9ab1e0
3 changed files with 39 additions and 10 deletions
@@ -529,6 +529,22 @@
this.getParagraphInfoList(2) this.getParagraphInfoList(2)
} }
}, },
ResetSearch() {
this.queryParam = {}
this.queryParamOne = {}
this.searchQueryOne = {}
this.checkboxText = []
this.selectedRowKeys = []
this.selectModel = ''
this.selectModelName = ''
this.ParamSeach()
this.pageNo = 1
if (this.isTrue) {
this.getInfoList(1)
} else {
this.getParagraphInfoList(1)
}
},
changeQuery(val, name) { changeQuery(val, name) {
this.queryParamOne[name + '_name'] = val this.queryParamOne[name + '_name'] = val
}, },
@@ -5,7 +5,7 @@
<span>{{ queryParam.selectValue }}</span> <span>{{ queryParam.selectValue }}</span>
</div> </div>
<a-checkbox-group v-model="checkboxText" v-if="conList.length > 0"> <a-checkbox-group v-model="checkboxText" v-if="conList.length > 0">
<li v-for="(item,index) in conList" :key="index"> <li v-for="(item,index) in conList" :key="item.id">
<div style="margin-bottom: 10px;position: relative"> <div style="margin-bottom: 10px;position: relative">
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox> <a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
<div class="text-text-right" <div class="text-text-right"
@@ -103,7 +103,6 @@
total: 0, total: 0,
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
loading: false,
queryParam: {} queryParam: {}
} }
}, },
@@ -137,6 +136,12 @@
this.checkboxText.push(item.id) this.checkboxText.push(item.id)
} }
}, },
ResetSearch() {
this.pageNo = 1
this.checkboxText = []
this.queryParam = {}
this.getList()
},
fileClick(fileQuery) { fileClick(fileQuery) {
let fileName = fileQuery.file_name let fileName = fileQuery.file_name
let index1 = fileName.lastIndexOf('.') let index1 = fileName.lastIndexOf('.')
@@ -179,7 +184,6 @@
queryParam[val] = queryParam[val].join(',') queryParam[val] = queryParam[val].join(',')
} }
}) })
this.loading = true
let checkboxText = JSON.parse(JSON.stringify(this.checkboxText)) let checkboxText = JSON.parse(JSON.stringify(this.checkboxText))
let query = { let query = {
pageNo: this.pageNo, pageNo: this.pageNo,
@@ -191,9 +195,8 @@
if (res.success) { if (res.success) {
this.conList = res.result.records this.conList = res.result.records
this.total = res.result.total this.total = res.result.total
this.loading = false
} else { } else {
this.loading = false this.conList = []
} }
}) })
}, },
@@ -29,6 +29,8 @@
></a-input-search> ></a-input-search>
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch" <span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
@click="wholeTextSearch(selectValueTwo)">结果中检索</span> @click="wholeTextSearch(selectValueTwo)">结果中检索</span>
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
@click="ResetSearch()">重置</span>
</div> </div>
</div> </div>
<div class="search-center-content"> <div class="search-center-content">
@@ -84,6 +86,14 @@
this.active = key this.active = key
this.selectValueTwo = '' this.selectValueTwo = ''
}, },
ResetSearch() {
this.selectValueTwo = ''
if (this.$refs.wholeRef) {
this.$refs.wholeRef.ResetSearch()
} else if (this.$refs.DocumentLibraryRef) {
this.$refs.DocumentLibraryRef.ResetSearch()
}
},
onSearch(event) { onSearch(event) {
this.queryParam[this.selectModel] = event this.queryParam[this.selectModel] = event
if (this.$refs.DocumentLibraryRef) { if (this.$refs.DocumentLibraryRef) {