This commit is contained in:
yziiy
2025-11-08 18:31:37 +08:00
parent 06985bb15e
commit c0d7f5cbaf
2 changed files with 13 additions and 2 deletions

View File

@@ -34,7 +34,9 @@ const newFormInline = ref(
renew_coin: "", renew_coin: "",
day: "", day: "",
nick_name_color: "", nick_name_color: "",
power_ids: "" power_ids: "",
nick_name_color_name: "",
play_image: ""
} }
); );
function getRef() { function getRef() {
@@ -46,6 +48,9 @@ function handleFileSuccess(list) {
function handleBgSuccess(list) { function handleBgSuccess(list) {
newFormInline.value.images = list.join(',') newFormInline.value.images = list.join(',')
} }
function handlePlayImageSuccess(list) {
newFormInline.value.play_image = list.join(',')
}
const getList = async () => { const getList = async () => {
const { data, code } = await queryPowerList({ const { data, code } = await queryPowerList({
page: 1, page: 1,
@@ -80,6 +85,7 @@ const handleCheckedCitiesChange = (value) => {
newFormInline.value.power_ids = '' newFormInline.value.power_ids = ''
} }
} }
onBeforeMount(() => { onBeforeMount(() => {
getList() getList()
}) })
@@ -129,5 +135,8 @@ defineExpose({ getRef });
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="专属徽章" v-if="checkedCities.includes(1)" prop="play_image">
<uploadImage @handleSuccess="handlePlayImageSuccess" :limit="1" :echoUrl="newFormInline.play_image" />
</el-form-item>
</el-form> </el-form>
</template> </template>

View File

@@ -127,7 +127,9 @@ export function useData() {
renew_coin: rowData?.renew_coin ?? "", renew_coin: rowData?.renew_coin ?? "",
day: rowData?.day ?? "", day: rowData?.day ?? "",
nick_name_color: rowData?.nick_name_color ?? "", nick_name_color: rowData?.nick_name_color ?? "",
power_ids: rowData?.power_ids ?? '' power_ids: rowData?.power_ids ?? '',
nick_name_color_name: rowData?.nick_name_color_name ?? '',
play_image: rowData?.play_image ?? '',
} }
}, },
width: "40%", width: "40%",