|
|
@@ -72,7 +72,7 @@
|
|
|
</router-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="item.name" :key="item.name" v-if="item.show" v-for="item in showcolumn" :width="item.columnwidth"
|
|
|
+ <el-table-column :label="item.name" :key="item" v-if="item.show" v-for="item in showcolumn" :width="item.columnwidth"
|
|
|
align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<template v-if="item.filed === 'SourceName'">
|
|
|
@@ -240,7 +240,7 @@
|
|
|
<el-dialog title="选中显示列(拖拽可以实现排序)" :visible.sync="columndialogVisible" top="5vh">
|
|
|
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange" style="margin-left:15px;">全选</el-checkbox>
|
|
|
<div style="margin: 10px 0;"></div>
|
|
|
- <draggable v-model="showcolumn">
|
|
|
+ <draggable v-model="showcolumn" @node-drag-end="handleDragEnd">
|
|
|
<transition-group class="sampshowfiledsort_ul sampshowfiledsort_ul_tags" tag="ul">
|
|
|
<li v-for="item in showcolumn" :key="item.filed">
|
|
|
<el-checkbox v-model="item.show" :label="item.filed" @change="checkedshowall()">{{item.name}}</el-checkbox>
|
|
|
@@ -946,7 +946,7 @@
|
|
|
type: 'success',
|
|
|
message: '自定义显示列设置成功'
|
|
|
})
|
|
|
- this.initData()
|
|
|
+ this.showcolumn = JSON.parse(JSON.stringify(this.showcolumn))
|
|
|
},
|
|
|
header_dragend (newWidth, oldWidth, column, event) {
|
|
|
for (var i = 0; i < this.showcolumn.length; i++) {
|
|
|
@@ -956,6 +956,9 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ handleDragEnd () {
|
|
|
+
|
|
|
},
|
|
|
// ----------------------------------------------------------------
|
|
|
// 自定义查询
|