修改禅道已知bug

This commit is contained in:
范强强
2022-08-25 13:52:52 +08:00
parent 20d6f05dcb
commit 9e23f0a687
2 changed files with 23 additions and 2 deletions
@@ -178,6 +178,7 @@
v-model="item.val" v-model="item.val"
:options="item.options" :options="item.options"
allowClear allowClear
class="item-input"
:placeholder="$t('pleaseSelect')" :placeholder="$t('pleaseSelect')"
:mode="allowMultiple(item)?'multiple':''" :mode="allowMultiple(item)?'multiple':''"
/> />
@@ -191,12 +192,14 @@
<a-time-picker v-else-if="item.type==='time'" <a-time-picker v-else-if="item.type==='time'"
:value="item.val ? moment(item.val,'HH:mm:ss') : null" format="HH:mm:ss" :value="item.val ? moment(item.val,'HH:mm:ss') : null" format="HH:mm:ss"
style="width: 100%;display: inline-block" @change="(time,value)=>item.val=value"/> style="width: 100%;display: inline-block" @change="(time,value)=>item.val=value"/>
<a-input-number v-else-if=" item.type=='int'||item.type=='number' " style="width: 100%" :placeholder="$t('pleaseSelect')+$t('numericalValue')" v-model="item.val"/> <a-input-number v-else-if=" item.type=='int'||item.type=='number' "
class="item-input"
style="width: 100%" :placeholder="$t('pleaseSelect')+$t('numericalValue')" v-model="item.val"/>
<a-select v-else-if="item.type=='switch'" :placeholder="$t('pleaseSelect')" v-model="item.val"> <a-select v-else-if="item.type=='switch'" :placeholder="$t('pleaseSelect')" v-model="item.val">
<a-select-option value="Y">{{$t('yes')}}</a-select-option> <a-select-option value="Y">{{$t('yes')}}</a-select-option>
<a-select-option value="N">{{$t('not')}}</a-select-option> <a-select-option value="N">{{$t('not')}}</a-select-option>
</a-select> </a-select>
<a-input v-else v-model="item.val" :placeholder="$t('EnterValue')"/> <a-input v-else v-model="item.val" class="item-input" :placeholder="$t('EnterValue')"/>
</a-col> </a-col>
<a-col :md="4" :xs="0" style="margin-bottom: 12px;"> <a-col :md="4" :xs="0" style="margin-bottom: 12px;">
@@ -748,4 +751,10 @@
::v-deep .ant-modal-body{ ::v-deep .ant-modal-body{
overflow-y: visible!important; overflow-y: visible!important;
} }
.item-input{
height: 38px;
}
::v-deep .ant-select{
height: 38px;
}
</style> </style>
@@ -79,10 +79,14 @@
<span slot="sponsorFeedback" slot-scope="text,result"> <span slot="sponsorFeedback" slot-scope="text,result">
<a-textarea :placeholder="$t('pleaseEnter')+$t('sponsorFeedback')" <a-textarea :placeholder="$t('pleaseEnter')+$t('sponsorFeedback')"
v-model.trim="result.sponsorFeedback" v-model.trim="result.sponsorFeedback"
:title="result.sponsorFeedback"
onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g, '')"
:maxLength="300" :maxLength="300"
:rows="2"/> :rows="2"/>
</span> </span>
<span slot="sponsorFeedbackIndex" :title="text" slot-scope="text,result">
{{text ? text : '--'}}
</span>
</a-table> </a-table>
</div> </div>
<uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile> <uploadFile ref="uploadFile" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
@@ -193,6 +197,14 @@
align: 'center', align: 'center',
width: 180, width: 180,
scopedSlots: { customRender: 'complianceResults' } scopedSlots: { customRender: 'complianceResults' }
},
{
title: this.$t('sponsorFeedback'),
dataIndex: 'sponsorFeedback',
align: 'center',
width: 180,
ellipsis: true,
scopedSlots: { customRender: 'sponsorFeedbackIndex' }
} }
], ],
columnsThree: [ columnsThree: [