更新DropdownTable组件
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
@rowClick="handleRowClick"
|
||||
></FBATable>
|
||||
</div>
|
||||
<el-input v-model="inputValue" :placeholder="placeholder" slot="reference"/>
|
||||
<el-input v-model="name" :placeholder="placeholder" slot="reference"/>
|
||||
</el-popover>
|
||||
</div>
|
||||
</template>
|
||||
@@ -53,17 +53,13 @@
|
||||
}
|
||||
],
|
||||
popVisible: false,
|
||||
timer: null,
|
||||
inputValue: ''
|
||||
timer: null
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.inputValue = this.name
|
||||
},
|
||||
methods: {
|
||||
handleRowClick(val) {
|
||||
this.$emit('selectedData', val)
|
||||
this.inputValue = val.name
|
||||
this.$emit('update:name', val.name)
|
||||
this.timer = setTimeout(() => {
|
||||
this.popVisible = false
|
||||
}, 200)
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<el-form-item :label="$t('License')" prop="licenseId">
|
||||
<DropdownTable
|
||||
v-model="temp.licenseId"
|
||||
:name="temp.licenseName"
|
||||
:name.sync="temp.licenseName"
|
||||
:tableData= "licenseList"
|
||||
@selectedData="selectedFeeItem"
|
||||
placeholder="请选择"
|
||||
|
||||
Reference in New Issue
Block a user