更新
This commit is contained in:
@@ -34,7 +34,9 @@ const newFormInline = ref(
|
||||
renew_coin: "",
|
||||
day: "",
|
||||
nick_name_color: "",
|
||||
power_ids: ""
|
||||
power_ids: "",
|
||||
nick_name_color_name: "",
|
||||
play_image: ""
|
||||
}
|
||||
);
|
||||
function getRef() {
|
||||
@@ -46,6 +48,9 @@ function handleFileSuccess(list) {
|
||||
function handleBgSuccess(list) {
|
||||
newFormInline.value.images = list.join(',')
|
||||
}
|
||||
function handlePlayImageSuccess(list) {
|
||||
newFormInline.value.play_image = list.join(',')
|
||||
}
|
||||
const getList = async () => {
|
||||
const { data, code } = await queryPowerList({
|
||||
page: 1,
|
||||
@@ -80,6 +85,7 @@ const handleCheckedCitiesChange = (value) => {
|
||||
newFormInline.value.power_ids = ''
|
||||
}
|
||||
}
|
||||
|
||||
onBeforeMount(() => {
|
||||
getList()
|
||||
})
|
||||
@@ -129,5 +135,8 @@ defineExpose({ getRef });
|
||||
</div>
|
||||
|
||||
</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>
|
||||
</template>
|
||||
|
||||
@@ -127,7 +127,9 @@ export function useData() {
|
||||
renew_coin: rowData?.renew_coin ?? "",
|
||||
day: rowData?.day ?? "",
|
||||
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%",
|
||||
|
||||
Reference in New Issue
Block a user