mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 22:57:08 +08:00
fix 新增类型回车键发送两次请求
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<div class="action-btn">
|
<div class="action-btn">
|
||||||
<a-button @click="handleCreate" type="primary" style="margin-bottom: 15px">新增关系类型</a-button>
|
<a-button @click="handleCreate" type="primary" style="margin-bottom: 15px;">新增关系类型</a-button>
|
||||||
</div>
|
</div>
|
||||||
<vxe-table
|
<vxe-table
|
||||||
ref="relationTypeTable"
|
ref="relationTypeTable"
|
||||||
@@ -10,9 +10,6 @@
|
|||||||
highlight-hover-row
|
highlight-hover-row
|
||||||
:edit-config="{ trigger: 'manual', mode: 'row' }"
|
:edit-config="{ trigger: 'manual', mode: 'row' }"
|
||||||
@edit-closed="handleEditClose"
|
@edit-closed="handleEditClose"
|
||||||
stripe
|
|
||||||
class="ops-stripe-table"
|
|
||||||
bordered
|
|
||||||
>
|
>
|
||||||
<vxe-table-column
|
<vxe-table-column
|
||||||
field="name"
|
field="name"
|
||||||
@@ -122,7 +119,6 @@ export default {
|
|||||||
if ($event.keyCode === 13) {
|
if ($event.keyCode === 13) {
|
||||||
const $table = this.$refs.relationTypeTable
|
const $table = this.$refs.relationTypeTable
|
||||||
$table.clearActived()
|
$table.clearActived()
|
||||||
this.handleEditClose({ row: value.row })
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user