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,16 +55,18 @@
@size-change="handleSizeChange"
/>
<edit ref="edit" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAddBatch" @fetch-data="fetchData" />
</div>
</template>
<script>
import { doDelete, getList, toggleEnable, doMoveUp, doMoveDown } from '@/api/spring/avatar/decor'
import Edit from './components/AppManagementEdit'
import BatchImageAdd from '@/components/BatchImageAdd'
export default {
name: 'AvatarDecor',
components: { Edit },
components: { Edit, BatchImageAdd },
data() {
return {
list: null,
@@ -98,6 +101,15 @@
this.$refs['edit'].showEdit()
}
},
handleBatchAdd() {
this.$refs['batchAdd'].show()
},
async doAddBatch(fileList) {
console.log(11111, fileList)
// const { msg } = await this.$refs['batchAdd'].doAdd(fileList)
// this.$baseMessage(msg, 'success')
// this.fetchData()
},
handleDelete(row) {
if (row.id) {
this.$baseConfirm('你确定要删除当前项吗', null, async () => {

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 () => {

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'
import { doDelete, getList, toggleEnable, doMoveUp, doMoveDown, doAdd } from '@/api/spring/avatar'
import Edit from './components/AppManagementEdit'
import BatchImageAdd from '@/components/BatchImageAdd'
export default {
name: 'SystemAvatar',
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 () => {