修改禅道已知bug

This commit is contained in:
qq787203167
2022-06-21 11:47:20 +08:00
parent db0b993e06
commit 0d5a58df39
2 changed files with 40 additions and 15 deletions
@@ -185,7 +185,7 @@
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
@ok="modalOk" @ok="modalOk"
@cancel="batSetCancel" @cancel="batSetCancel"
style="width: 1000px" style="width: 1000px;height: auto"
> >
<split-bat-form <split-bat-form
ref="fileForm" ref="fileForm"
@@ -1306,6 +1306,14 @@
min-width: 700px; min-width: 700px;
} }
.ant-select-dropdown--multiple {
max-height: 39vh !important;
}
.ant-modal-body {
overflow-y: visible !important;
}
.ant-modal-footer { .ant-modal-footer {
text-align: center; text-align: center;
} }
@@ -9,10 +9,14 @@
@close="handleCancel" @close="handleCancel"
:visible="visible"> :visible="visible">
<div class="button-box"> <div class="button-box">
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('comment')" <a-input-search class="box-input box-input-search" allowClear
v-model="commentContent"></j-input> @search="allowClearChange"
:placeholder="$t('PleaseEnter')+$t('comment')"
v-model="commentContent"></a-input-search>
<a-button @click="submitQuery" style="margin-right: 8px;" type="primary">{{$t('query')}}</a-button> <a-button @click="submitQuery" style="margin-right: 8px;" type="primary">{{$t('query')}}</a-button>
<a-button @click="handleSubmit" class="button-text" :title="$t('publishComment')" type="primary">{{$t('publishComment')}}</a-button> <a-button @click="handleSubmit" class="button-text" :title="$t('publishComment')" type="primary">
{{$t('publishComment')}}
</a-button>
</div> </div>
<div class="comment-box" v-if="dataList && dataList.length > 0"> <div class="comment-box" v-if="dataList && dataList.length > 0">
<div class="comment-box-top-box" v-for="(item,index) in dataList" :key="index"> <div class="comment-box-top-box" v-for="(item,index) in dataList" :key="index">
@@ -102,7 +106,7 @@
visible: false, visible: false,
dataList: [], dataList: [],
formInline: {}, formInline: {},
commentContent:'', commentContent: '',
loading: false, loading: false,
title: this.$t('comment'), title: this.$t('comment'),
confirmLoading: false, confirmLoading: false,
@@ -148,12 +152,18 @@
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
}, },
submitQuery(){ allowClearChange() {
this.getList()
},
submitQuery() {
this.getList()
}, },
getList() { getList() {
this.loading = true this.loading = true
getAction(this.url.list, { projectLibraryId: this.$route.query.id,commentContent:this.commentContent }).then((res) => { getAction(this.url.list, {
projectLibraryId: this.$route.query.id,
commentContent: this.commentContent
}).then((res) => {
if (res.success) { if (res.success) {
this.loading = false this.loading = false
this.dataList = res.result || [] this.dataList = res.result || []
@@ -315,7 +325,7 @@
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
z-index:100; z-index: 100;
border-top: 1px solid #e8e8e8; border-top: 1px solid #e8e8e8;
padding: 10px 16px; padding: 10px 16px;
text-align: right; text-align: right;
@@ -363,14 +373,21 @@
text-align: center; text-align: center;
margin-top: 40px; margin-top: 40px;
} }
.box-input{
width: calc(100% - 168px); .box-input {
margin-right: 8px; width: calc(100% - 168px);
margin-right: 8px;
} }
.button-text{
width: 80px; .button-text {
width: 73px;
overflow: hidden; overflow: hidden;
padding:0 10px; padding: 0 8px;
box-sizing: border-box; box-sizing: border-box;
} }
</style>
<style>
.box-input-search .ant-input-suffix .ant-input-search-icon{
display: none;
}
</style> </style>