|
@@ -29,22 +29,22 @@
|
|
|
<el-image v-if="row.stepPic" style="width: 180px; height: 100px" :src="row.stepPic" fit="contain" />
|
|
<el-image v-if="row.stepPic" style="width: 180px; height: 100px" :src="row.stepPic" fit="contain" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="Drag" width="80">
|
|
|
|
|
|
|
+ <el-table-column align="center" label="Drag" width="80" class-name="drag-handler-col">
|
|
|
<template slot-scope="{}">
|
|
<template slot-scope="{}">
|
|
|
<svg-icon class="drag-handler" icon-class="drag" />
|
|
<svg-icon class="drag-handler" icon-class="drag" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding">
|
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding" width="200">
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-button size="mini" type="primary" @click="handleCreateOrUpdate('edit', row)">
|
|
<el-button size="mini" type="primary" @click="handleCreateOrUpdate('edit', row)">
|
|
|
更新
|
|
更新
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="updateSort(row, 0)">
|
|
|
|
|
|
|
+ <!-- <el-button size="mini" type="primary" @click="updateSort(row, 0)">
|
|
|
上移
|
|
上移
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button size="mini" type="primary" @click="updateSort(row, 1)">
|
|
<el-button size="mini" type="primary" @click="updateSort(row, 1)">
|
|
|
下移
|
|
下移
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ </el-button> -->
|
|
|
<el-button size="mini" type="danger" @click="handleDelete(row)">
|
|
<el-button size="mini" type="danger" @click="handleDelete(row)">
|
|
|
删除
|
|
删除
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -103,6 +103,7 @@ export default {
|
|
|
this.sortable = Sortable.create(el, {
|
|
this.sortable = Sortable.create(el, {
|
|
|
animation: 150,
|
|
animation: 150,
|
|
|
ghostClass: 'sortable-ghost',
|
|
ghostClass: 'sortable-ghost',
|
|
|
|
|
+ handle: '.drag-handler-col', // handle's class
|
|
|
// ghostClass: 'sortable-ghost', // Class name for the drop placeholder,
|
|
// ghostClass: 'sortable-ghost', // Class name for the drop placeholder,
|
|
|
setData: function(dataTransfer) {
|
|
setData: function(dataTransfer) {
|
|
|
|
|
|