Commit b6ec03f1 by xinla

--no commit message

1 parent 9946002a
<script>
export default {
name: 'ButtonSync',
emits: ['click'],
props: {
customeBtn: {
type: Boolean,
......
......@@ -246,7 +246,7 @@ export default {
},
//表格拖动排序
dragSort() {
const el = this.$refs.singleTable.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0]
const el = this.$refs.singleTable.$el.querySelectorAll('.el-table__body-wrapper table > tbody')[0]
this.sortable = Sortable.create(el, {
ghostClass: 'sortable-ghost',
......
......@@ -222,7 +222,7 @@ export default {
multiField(this.list)
},
dragSort() {
const el = this.$refs.table.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0]
const el = this.$refs.table.$el.querySelectorAll('.el-table__body-wrapper table > tbody')[0]
this.sortable = Sortable.create(el, {
ghostClass: 'sortable-ghost',
setData: function (dataTransfer) {
......
......@@ -105,6 +105,8 @@ export default {
const operIds = id || this.ids + ''
this.$confirm('是否确认删除吗?', '警告', {
type: 'warning',
confirmButtonText: '确定',
cancelButtonText: '取消',
})
.then(function () {
return api.remove(operIds)
......
......@@ -164,7 +164,7 @@ export default {
updateField(this.list)
},
dragSort() {
const el = this.$refs.table.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0]
const el = this.$refs.table.$el.querySelectorAll('.el-table__body-wrapper table > tbody')[0]
this.sortable = Sortable.create(el, {
draggable: '.item',
ghostClass: 'sortable-ghost',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!