更新拖拽

This commit is contained in:
gyq
2024-06-27 10:08:40 +08:00
parent d53314b523
commit 5110bd6d57
4 changed files with 231 additions and 186 deletions

View File

@@ -18,7 +18,7 @@
</el-table-column>
<el-table-column label="操作" width="240">
<template v-slot="scope">
<el-button type="text" icon="el-icon-rank">排序</el-button>
<el-button type="text" icon="el-icon-rank" v-if="isPcBowser">排序</el-button>
<el-button type="text" size="mini" round icon="el-icon-edit" @click="$refs.addGroupRef.show(scope.row)"
style="margin-left: 20px !important;">编辑</el-button>
<el-popconfirm title="确定删除吗?" @confirm="delHandle([scope.row.id])">
@@ -56,9 +56,11 @@ export default {
},
mounted() {
this.getTableData()
this.$nextTick(() => {
this.tableDrag()
})
if (this.isPcBowser) {
this.$nextTick(() => {
this.tableDrag()
})
}
},
methods: {
//表格拖拽