This commit is contained in:
yziiy
2025-11-26 10:10:22 +08:00
parent 7d00311721
commit ca26009e5b
3 changed files with 12 additions and 4 deletions

View File

@@ -4,7 +4,8 @@ import uploadImage from '@/components/UploadImage/index.vue';
import { queryClassifyList } from '@/api/modules/decorate';
const ruleFormRef = ref();
const formRules = ref({
title: [{ required: true, message: "请输入道具标题", trigger: "blur" }],
title: [{ required: true, message: "请输入道具标题", trigger: "change" }],
ext_value: [{ required: true, message: "请输入降身比例", trigger: "blur" }],
type: [{ required: true, message: "请选择道具类型", trigger: "change" }],
show_status: [{ required: true, message: "请选择状态", trigger: "change" }],
is_buy: [{ required: true, message: "请选择状态", trigger: "change" }],
@@ -24,7 +25,8 @@ const newFormInline = ref(
base_image: "",
file_type: "",
play_image: "",
special_num: ""
special_num: "",
ext_value: ""
}
);
function handleFileSuccess(list) {
@@ -63,6 +65,9 @@ defineExpose({ getRef });
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="newFormInline.type === 12" label="降身比例" prop="ext_value">
<el-input-number v-model="newFormInline.ext_value" :min="0"></el-input-number>
</el-form-item>
<el-form-item label="是否显示" prop="show_status">
<el-radio-group v-model="newFormInline.show_status">
<el-radio :label="1">正常</el-radio>
@@ -91,6 +96,7 @@ defineExpose({ getRef });
:limit="1" :echoUrl="newFormInline.play_image" />
</el-form-item>
</template>
<template v-if="[10, 11].includes(newFormInline.type)">
<el-form-item label="播放图像" prop="play_image">
<uploadImage @handleSuccess="handlePlayFileSuccess" :acceptType="'.mp4'" :limit="1"

View File

@@ -145,7 +145,8 @@ export function useData() {
base_image: rowData?.base_image ?? "",
file_type: rowData?.file_type ?? "",
play_image: rowData?.play_image ?? "",
special_num: rowData?.special_num ?? ""
special_num: rowData?.special_num ?? "",
ext_value: rowData?.ext_value ?? "",
}
},
width: "40%",

View File

@@ -21,7 +21,8 @@ const basicLable = ref([
{ label: '标签', prop: 'tag' },
{ label: '生日', prop: 'birthday' },
{ label: '注册时间', prop: 'createtime' },
{ label: '用户来源', prop: 'system' }
{ label: '用户来源', prop: 'system' },
{ label: '师傅(关系)', prop: 'teacher_nickname' }
])
const statisticsLable = ref([
{ label: '充值金额', prop: 'user_recharge_all_money' },