[update] 表格拖拽换j-table

This commit is contained in:
lideqin
2023-08-23 15:44:51 +08:00
parent 8e7345928e
commit 029c89e13f
17 changed files with 479 additions and 428 deletions
+8 -2
View File
@@ -48,7 +48,7 @@
:scroll="{x: '100%'}"
@change="tableOnChange">
<tempalte slot="operation" slot-scope="{text, record}">
<template slot="operation" slot-scope="{text, record}">
<a v-for="(operation, index) in operationList" :key="index" @click="operationClick(operation,record)">
<!-- v-has="operation.has"-->
<span v-if="operation.text === $t('docLibrary.cancelCollection')" class="text">
@@ -65,7 +65,7 @@
{{ operation.text }}
</span>
</a>
</tempalte>
</template>
<!-- 详情-->
<template slot="detailClick" slot-scope="{text, record}">
@@ -82,6 +82,7 @@
ref="addFormRef"
:url="url"
:flag="'1'"
@ok="libraryAddFormOk"
/>
<libraryPush
:url="url"
@@ -227,6 +228,7 @@ export default {
this.$message.warning(this.$t('selectLeastOne'))
}
},
// 表格的操作按钮点击
operationClick (operation, record) {
if (this[operation.clickEvent]) {
this[operation.clickEvent](record)
@@ -497,6 +499,10 @@ export default {
this.spinning = false
}
}
},
// 新增和编辑表单成功提交的回调
libraryAddFormOk () {
this.loadData()
}
}
}