fix: fortune type

This commit is contained in:
zzc
2026-01-24 10:29:34 +08:00
parent cba8e32719
commit 0551f2047c
4 changed files with 150 additions and 5 deletions

View File

@@ -3,6 +3,7 @@
<vab-query-form>
<vab-query-form-left-panel :span="12">
<el-button icon="el-icon-plus" type="primary" @click="handleEdit">添加</el-button>
<el-button icon="el-icon-plus" type="primary" @click="handleBatchAdd">批量添加</el-button>
</vab-query-form-left-panel>
<vab-query-form-right-panel :span="12">
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
@@ -54,18 +55,21 @@
@size-change="handleSizeChange"
/>
<edit ref="edit" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" @fetch-data="fetchData" />
</div>
</template>
<script>
import { doDelete, getList, toggleEnable, doMoveUp, doMoveDown } from '@/api/spring/avatar/frame'
import { doDelete, getList, toggleEnable, doMoveUp, doMoveDown, doAdd } from '@/api/spring/avatar/frame'
import Edit from './components/AppManagementEdit'
import BatchImageAdd from '@/components/BatchImageAdd'
export default {
name: 'AvatarFrame',
components: { Edit },
components: { Edit, BatchImageAdd },
data() {
return {
doAdd: doAdd,
list: null,
listLoading: true,
layout: 'total, sizes, prev, pager, next, jumper',
@@ -98,6 +102,9 @@
this.$refs['edit'].showEdit()
}
},
handleBatchAdd() {
this.$refs['batchAdd'].show()
},
handleDelete(row) {
if (row.id) {
this.$baseConfirm('你确定要删除当前项吗', null, async () => {