修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-12 13:51:38 +08:00
parent ad3c8eb66a
commit 5efbe70ddf
4 changed files with 103 additions and 22 deletions
@@ -115,6 +115,7 @@
}, },
handleCancel() { handleCancel() {
this.visible = false this.visible = false
this.$emit('classificationMaintenanceModelForm')
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
this.pageNo = page this.pageNo = page
@@ -6,7 +6,7 @@
<span style="line-height: 66px;display: inline-block;float: left"> <span style="line-height: 66px;display: inline-block;float: left">
<a-icon type="arrow-left" style="margin-right: 6px;"/> <a-icon type="arrow-left" style="margin-right: 6px;"/>
</span> </span>
{{$t('See')}} {{header_text}}
</div> </div>
</div> </div>
<div style="padding-top: 68px;background: #fff"> <div style="padding-top: 68px;background: #fff">
@@ -107,6 +107,7 @@
queryCountryList: [], queryCountryList: [],
countryCardViewList: [], countryCardViewList: [],
applyMarkets: '', applyMarkets: '',
header_text: '',
url: { url: {
list: '/problemKnowledgeBase/countryCardTempEO/list', list: '/problemKnowledgeBase/countryCardTempEO/list',
deleteOne: '' deleteOne: ''
@@ -151,6 +152,9 @@
this.displayList.forEach(val => { this.displayList.forEach(val => {
val.showOrNot = true val.showOrNot = true
}) })
this.$nextTick(() => {
this.$refs.displayInformationModelRef.dataListOne = JSON.parse(JSON.stringify(this.displayList))
})
this.consolidateData() this.consolidateData()
this.loading = false this.loading = false
} else { } else {
@@ -230,6 +234,11 @@
this.clientWidth = 340 * (this.queryCountryList.length + 1) + 'px' this.clientWidth = 340 * (this.queryCountryList.length + 1) + 'px'
this.isTrue = true this.isTrue = true
}) })
let content = []
this.queryCountryList.forEach(val => {
content.push(val.applyMarket_dictText)
})
this.header_text = content.join('-')
callback && callback() callback && callback()
if (!callback) { if (!callback) {
this.consolidateData() this.consolidateData()
@@ -9,6 +9,27 @@
@close="handleCancel" @close="handleCancel"
:visible="visible" :visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :md="12" :sm="8" style="line-height: 48px">
<div class="box-title-text">
<div class="title-text" :title="$t('LabelName')">
<span>{{$t('LabelName')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('LabelName')"
v-model="queryParam.labelName"></a-input>
</div>
</a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24">
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<div style="margin-bottom: 60px"> <div style="margin-bottom: 60px">
<a-table <a-table
v-if="this.visible" v-if="this.visible"
@@ -42,9 +63,11 @@
list: '/problemKnowledgeBase/countryCardTempEO/list', list: '/problemKnowledgeBase/countryCardTempEO/list',
deleteOne: '' deleteOne: ''
}, },
queryParam: {},
visible: false, visible: false,
selectedRowKeys: [], selectedRowKeys: [],
dataList: [], dataList: [],
dataListOne: [],
loading: false, loading: false,
confirmLoading: false, confirmLoading: false,
columns: [ columns: [
@@ -67,10 +90,24 @@
mounted() { mounted() {
}, },
methods: { methods: {
searchQuery() {
if (this.queryParam.labelName) {
this.dataList = this.dataList.filter(res => {
return res.lableName.includes(this.queryParam.labelName)
})
this.dataList = [...this.dataList]
}
},
searchReset() {
this.queryParam = {}
this.dataList = JSON.parse(JSON.stringify(this.dataListOne))
this.dataList = [...this.dataList]
},
getData(data) { getData(data) {
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.dataList = data this.queryParam = {}
this.dataList = JSON.parse(JSON.stringify(data))
this.dataList = [...this.dataList] this.dataList = [...this.dataList]
}) })
}, },
@@ -78,11 +115,16 @@
this.visible = false this.visible = false
}, },
handleSubmit() { handleSubmit() {
this.$emit('displayInformationModelForm', this.dataList) this.$emit('displayInformationModelForm', this.dataListOne)
this.visible = false this.visible = false
}, },
onCheckAllChange(index) { onCheckAllChange(index) {
this.dataList[index].showOrNot = !this.dataList[index].showOrNot this.dataList[index].showOrNot = !this.dataList[index].showOrNot
this.dataListOne.forEach(res => {
if (res.id == this.dataList[index].id) {
res.showOrNot = !res.showOrNot
}
})
} }
} }
} }
@@ -107,18 +149,41 @@
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
} }
.box-title { .box-title-text {
width: 100%; line-height: 1.4;
text-align: right; display: flex;
margin-bottom: 20px; align-items: center;
margin-bottom: 10px;
} }
.operator-text { .title-text {
cursor: pointer; width: 20%;
margin-right: 13px; min-width: 110px;
font-size: 14px; color: #000F16;
font-weight: 400;
color: #040B29;
display: inline-block; display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-button {
height: 38px;
/*margin-top: 2px;*/
}
.text-operation {
margin-right: 8px;
} }
</style> </style>
@@ -1,15 +1,17 @@
<template> <template>
<div class="box"> <div class="box">
<div class="search-detail-wrap"> <div class="search-detail-wrap">
<div class="box-title-text"> <a-form layout="inline" @keyup.enter.native="onSearch">
<div class="title-text" :title="$t('searchContent')"> <div class="box-title-text">
<span>{{$t('searchContent')}}</span> <div class="title-text" :title="$t('searchContent')">
<span>{{$t('searchContent')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('searchContent')"
v-model="searchStr"></a-input>
<a-button class="box-button" type="primary" @click="onSearch">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="ResetSearch">{{$t('reset')}}</a-button>
</div> </div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('searchContent')" </a-form>
v-model="searchStr"></a-input>
<a-button class="box-button" type="primary" @click="onSearch">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="ResetSearch">{{$t('reset')}}</a-button>
</div>
</div> </div>
<div class="box-content"> <div class="box-content">
<div class="box-content-left"> <div class="box-content-left">
@@ -75,7 +77,8 @@
/> />
</div> </div>
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading> <JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
<classificationMaintenanceModel ref="classificationMaintenanceModelRef"/> <classificationMaintenanceModel @classificationMaintenanceModelForm="classificationMaintenanceModelForm"
ref="classificationMaintenanceModelRef"/>
</div> </div>
</template> </template>
@@ -120,6 +123,9 @@
} }
}) })
}, },
classificationMaintenanceModelForm(){
this.replacePage()
},
onSearch() { onSearch() {
this.pageNo = 1 this.pageNo = 1
this.getList() this.getList()