修改禅道已知bug

This commit is contained in:
qq787203167
2022-07-08 14:40:54 +08:00
parent 6f827e8098
commit 4524f45031
3 changed files with 171 additions and 28 deletions
@@ -22,12 +22,21 @@
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="box-title-text tree-select">
<div class="title-text" :title="$t('technicalField')">
<span>{{$t('technicalField')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('technicalField')"
v-model="queryParam.technologyTerritory"></j-input>
<a-tree-select
tree-node-filter-prop="title"
v-model="queryParam.technologyTerritory"
:maxTagCount="1"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="CategoryTreeList"
tree-checkable
:placeholder="$t('PleaseSelect')+$t('technicalField')"
/>
</div>
</a-col>
<template v-if="toggleSearchStatus">
@@ -36,8 +45,19 @@
<div class="title-text" :title="$t('collectResults')">
<span>{{$t('collectResults')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('collectResults')"
v-model="queryParam.gatherResult"></j-input>
<a-select :placeholder="$t('PleaseSelect')+$t('collectResults')"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="queryParam.gatherResult">
<a-select-option v-for="(item, key) in gatherResultList"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }}
</span>
</a-select-option>
</a-select>
</div>
</a-col>
</template>
@@ -108,17 +128,28 @@
return {
//url传参严格按照当前命名
url: {
deleteBatch: '',
list: '/lawsOpinionGather/lawsOpinionGatherEO/page'
list: '/lawsOpinionGather/lawsOpinionGatherEO/page',
getSysCategoryTree: '/sys/category/getSysCategoryTree',
},
loading: false,
toggleSearchStatus: false,
dataSource: [{}],
dataSource: [],
selectedRowKeys: [],
total: 0,
pageSize: 10,
pageNo: 1,
CategoryTreeList:[],
queryParam: {},
gatherResultList:[
{
value:'Underway',
name:this.$t('inProgress'),
},
{
value:'Completed',
name:this.$t('Finished'),
}
],
columns: [
{
title: this.$t('standard'),
@@ -137,7 +168,7 @@
align: 'center',
width: 170,
ellipsis: true,
dataIndex: 'technologyTerritoryShow'
dataIndex: 'technologyTerritory'
},
{
title: this.$t('collectResults'),
@@ -172,8 +203,18 @@
},
mounted() {
this.getList()
this.getSysCategoryTree()
},
methods: {
getSysCategoryTree() {
getAction(this.url.getSysCategoryTree, {}).then((res) => {
if (res.success) {
this.CategoryTreeList = res.result
} else {
this.CategoryTreeList = []
}
})
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
@@ -196,10 +237,16 @@
this.getList()
},
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
})
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
...this.queryParam
...queryParam
}
this.loading = true
getAction(this.url.list, query).then((res) => {
@@ -241,6 +288,11 @@
}
}
</script>
<style>
.tree-select .ant-select-tree-dropdown{
height: 298px!important;
}
</style>
<style scoped>
@import '~@assets/less/common.less';