Skip to content

Commit 9461aea

Browse files
committed
集成table双击行事件
1 parent 8c67738 commit 9461aea

File tree

6 files changed

+1134
-1010
lines changed

6 files changed

+1134
-1010
lines changed

Vol.Vue/src/components/basic/ViewGrid.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@
244244
@loadAfter="loadTableAfter"
245245
@rowChange="rowOnChange"
246246
@rowClick="rowOnClick"
247+
@row-dbclick="rowOnDbClick"
247248
:tableData="[]"
248249
:linkView="linkData"
249250
:columns="columns"

Vol.Vue/src/components/basic/ViewGridConfig/methods.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ let methods = {
11371137
this.initColumns(this.columns, this.dicKeys, keys);
11381138
//2021.05.23默认开启查询页面所有字段排序,如果不需要排序,在onInited遍历columns设置sort=false
11391139
this.columns.forEach(x => {
1140-
x.sort =x.render?false:true;
1140+
x.sort = x.render ? false : true;
11411141
})
11421142
if (this.detailOptions && this.detailOptions.columns) {
11431143
this.initColumns(this.detailOptions.columns, this.dicKeys, keys);
@@ -1261,6 +1261,12 @@ let methods = {
12611261
rowClick({ row, column, event }) {
12621262
// 点击行事件(2020.11.07)
12631263
},
1264+
rowOnDbClick({ row, column, event }) {
1265+
this.rowDbClick({ row, column, event });
1266+
},
1267+
rowDbClick({ row, column, event }) {
1268+
// 双击击行事件(2021.05.23)
1269+
},
12641270
$error(message) {
12651271
this.$Message.error({
12661272
content: message,

0 commit comments

Comments
 (0)