修改文档库传参
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="box-title-text">
|
||||
<!-- <div class="title-text">-->
|
||||
<!-- <span class="Required">*</span>-->
|
||||
<!-- <span :class="{'title-text-text':false}">{{query.enName}}</span><br>-->
|
||||
<!-- <span :class="{'title-text-text':false}">{{query.name}}</span>-->
|
||||
<!-- </div>-->
|
||||
<a-input class="box-input" :value="value" @input="indexclick($event)"
|
||||
:placeholder="$t('PleaseEnterOrSelect')+query.db_field_txt"/>
|
||||
<a-button type="primary" class="button-box" @click="standardClick">
|
||||
:disabled="isDisabled"
|
||||
:placeholder="!isDisabled?$t('PleaseEnterOrSelect')+query.db_field_txt:query.db_field_txt"/>
|
||||
<a-button v-if="!isDisabled" type="primary" class="button-box" @click="standardClick">
|
||||
{{this.$t('standardSelection')}}
|
||||
</a-button>
|
||||
</div>
|
||||
@@ -65,6 +61,14 @@
|
||||
currencySearch
|
||||
},
|
||||
props: ['query', 'value', 'replace_standard_id'],
|
||||
computed: {
|
||||
isDisabled() {
|
||||
if (this.query.db_field_name === 'replaced_standard') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
@@ -238,4 +242,9 @@
|
||||
text-align: right;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
/*.ant-input-disabled{*/
|
||||
/* background-color: #f5f5f5!important;*/
|
||||
/*}*/
|
||||
</style>
|
||||
Reference in New Issue
Block a user