表格双击、展开行事件区分
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9775ef24c8
commit
d9d2a2169e
|
@ -19,6 +19,10 @@
|
|||
<el-input v-model="searchData.Name" clearable
|
||||
:placeholder="$t('trials:trials-workbench:auditDocument:placeholder:search')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-show="false">
|
||||
<el-input v-model="searchData.Name" clearable
|
||||
:placeholder="$t('trials:trials-workbench:auditDocument:placeholder:search')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
|
@ -714,6 +718,9 @@ export default {
|
|||
|
||||
}
|
||||
let res = await updateAuditDocument(data);
|
||||
if (res.IsSuccess) {
|
||||
this.getList()
|
||||
}
|
||||
} catch (err) {
|
||||
this.getList()
|
||||
console.log(err)
|
||||
|
@ -949,10 +956,10 @@ export default {
|
|||
this.$refs.contextmenu.init(e, row, 'file')
|
||||
},
|
||||
// 单行左键双击(进入文件夹或者预览文件)
|
||||
handleRowDblclick(row, column, cell, event) {
|
||||
handleRowDblclick(row, column, event) {
|
||||
// 判断点击目标是否为展开按钮
|
||||
// const isExpandButton = event.target.closest('.el-table__expand-icon');
|
||||
// if (isExpandButton) return; // 阻止触发
|
||||
const isExpandButton = event.target.closest('.el-table__expand-icon');
|
||||
if (isExpandButton) return; // 阻止触发
|
||||
if (!row.AuditDocumentTypeEnum) {
|
||||
this.Id = row.Id
|
||||
this.resetOpt()
|
||||
|
|
Loading…
Reference in New Issue