fix: fortune type
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
zzc
2026-01-24 19:26:30 +08:00
parent f6ae86557e
commit db2dcaf64e
7 changed files with 36 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
<template>
<el-dialog :title="title" :visible.sync="dialogFormVisible" width="500px" @close="close">
<el-form ref="form" label-width="80px" :model="form" :rules="rules">
<el-form-item label="类型" prop="type">
<el-input v-model.trim="form.type" placeholder="请输入类型" />
</el-form-item>
<el-form-item label="挂饰图片" prop="imageUrl">
<single-upload
v-model="form.imageUrl"
@@ -33,6 +36,7 @@
id: '',
form: {
imageUrl: '',
type: '',
isEnabled: true,
},
rules: {
@@ -60,6 +64,7 @@
this.title = '编辑'
this.form = {
imageUrl: row.imageUrl,
type: row.type,
isEnabled: row.isEnabled,
}
this.id = row.id

View File

@@ -19,6 +19,7 @@
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" label="排序" prop="sort" show-overflow-tooltip />
<el-table-column align="center" label="类型" prop="type" show-overflow-tooltip />
<el-table-column align="center" label="挂饰" width="100">
<template slot-scope="scope">
@@ -55,7 +56,7 @@
@size-change="handleSizeChange"
/>
<edit ref="edit" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" has-type @fetch-data="fetchData" />
</div>
</template>

View File

@@ -1,6 +1,9 @@
<template>
<el-dialog :title="title" :visible.sync="dialogFormVisible" width="500px" @close="close">
<el-form ref="form" label-width="80px" :model="form" :rules="rules">
<el-form-item label="类型" prop="type">
<el-input v-model.trim="form.type" placeholder="请输入类型" />
</el-form-item>
<el-form-item label="头像框" prop="imageUrl">
<single-upload
v-model="form.imageUrl"
@@ -33,6 +36,7 @@
id: '',
form: {
imageUrl: '',
type: '',
isEnabled: true,
},
rules: {
@@ -60,6 +64,7 @@
this.title = '编辑'
this.form = {
imageUrl: row.imageUrl,
type: row.type,
isEnabled: row.isEnabled,
}
this.id = row.id

View File

@@ -19,6 +19,7 @@
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" label="排序" prop="sort" show-overflow-tooltip />
<el-table-column align="center" label="类型" prop="type" show-overflow-tooltip />
<el-table-column align="center" label="头像框" width="100">
<template slot-scope="scope">
@@ -55,7 +56,7 @@
@size-change="handleSizeChange"
/>
<edit ref="edit" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" has-type @fetch-data="fetchData" />
</div>
</template>

View File

@@ -9,6 +9,9 @@
@upload-success="handleUploadSuccess"
/>
</el-form-item>
<el-form-item label="类型" prop="type">
<el-input v-model.trim="form.type" placeholder="请输入类型" />
</el-form-item>
<el-form-item label="是否启用" prop="isEnabled">
<el-switch v-model="form.isEnabled" active-text="启用" :active-value="true" inactive-text="禁用" :inactive-value="false" />
</el-form-item>
@@ -33,6 +36,7 @@
id: '',
form: {
imageUrl: '',
type: '',
isEnabled: true,
},
rules: {
@@ -60,6 +64,7 @@
this.title = '编辑'
this.form = {
imageUrl: row.imageUrl,
type: row.type,
isEnabled: row.isEnabled,
}
this.id = row.id

View File

@@ -20,6 +20,7 @@
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" label="排序" prop="sort" show-overflow-tooltip />
<el-table-column align="center" label="类型" prop="type" show-overflow-tooltip />
<el-table-column align="center" label="头像" width="100">
<template slot-scope="scope">
<el-tooltip class="item" :content="scope.row.id" effect="dark" placement="top">
@@ -55,7 +56,7 @@
@size-change="handleSizeChange"
/>
<edit ref="edit" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" @fetch-data="fetchData" />
<batch-image-add ref="batchAdd" :do-add="doAdd" has-type @fetch-data="fetchData" />
</div>
</template>