表格双击、展开行事件区分
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
|
<el-input v-model="searchData.Name" clearable
|
||||||
:placeholder="$t('trials:trials-workbench:auditDocument:placeholder:search')"></el-input>
|
:placeholder="$t('trials:trials-workbench:auditDocument:placeholder:search')"></el-input>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
{{ $t('common:button:search') }}
|
{{ $t('common:button:search') }}
|
||||||
|
@ -714,6 +718,9 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
let res = await updateAuditDocument(data);
|
let res = await updateAuditDocument(data);
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.getList()
|
this.getList()
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
@ -949,10 +956,10 @@ export default {
|
||||||
this.$refs.contextmenu.init(e, row, 'file')
|
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');
|
const isExpandButton = event.target.closest('.el-table__expand-icon');
|
||||||
// if (isExpandButton) return; // 阻止触发
|
if (isExpandButton) return; // 阻止触发
|
||||||
if (!row.AuditDocumentTypeEnum) {
|
if (!row.AuditDocumentTypeEnum) {
|
||||||
this.Id = row.Id
|
this.Id = row.Id
|
||||||
this.resetOpt()
|
this.resetOpt()
|
||||||
|
|
Loading…
Reference in New Issue