更新
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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%",
|
||||||
|
|||||||
Reference in New Issue
Block a user