|
|
|
|
@ -47,6 +47,7 @@ type Venue = {
|
|
|
|
|
booking_qr_media?: Array<{ type: 'image'; url: string }>
|
|
|
|
|
address?: string
|
|
|
|
|
contact_phone?: string | null
|
|
|
|
|
vr_url?: string | null
|
|
|
|
|
/** 后端 decimal 序列化可能为字符串 */
|
|
|
|
|
lat?: number | string | null
|
|
|
|
|
lng?: number | string | null
|
|
|
|
|
@ -353,6 +354,7 @@ const form = reactive({
|
|
|
|
|
booking_qr_media: [] as Array<{ type: 'image'; url: string }>,
|
|
|
|
|
address: '',
|
|
|
|
|
contact_phone: '',
|
|
|
|
|
vr_url: '',
|
|
|
|
|
lat: undefined as number | undefined,
|
|
|
|
|
lng: undefined as number | undefined,
|
|
|
|
|
cover_image: '',
|
|
|
|
|
@ -657,6 +659,7 @@ function openCreate() {
|
|
|
|
|
form.booking_qr_media = []
|
|
|
|
|
form.address = ''
|
|
|
|
|
form.contact_phone = ''
|
|
|
|
|
form.vr_url = ''
|
|
|
|
|
form.lat = undefined
|
|
|
|
|
form.lng = undefined
|
|
|
|
|
form.cover_image = ''
|
|
|
|
|
@ -704,6 +707,7 @@ function openEdit(row: Venue) {
|
|
|
|
|
}
|
|
|
|
|
form.address = row.address ?? ''
|
|
|
|
|
form.contact_phone = row.contact_phone ?? ''
|
|
|
|
|
form.vr_url = row.vr_url ?? ''
|
|
|
|
|
form.lat = parseCoord(row.lat)
|
|
|
|
|
form.lng = parseCoord(row.lng)
|
|
|
|
|
form.cover_image = row.cover_image ?? ''
|
|
|
|
|
@ -1302,6 +1306,10 @@ onMounted(async () => {
|
|
|
|
|
<div class="venue-audit-value-box" :class="{ 'venue-audit-value-box--changed': venueAuditShowChanged('contact_phone') }">{{ venueAuditPendingDisplay('contact_phone') }}</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
|
|
<a-form-item label="VR链接">
|
|
|
|
|
<div class="venue-audit-value-box" :class="{ 'venue-audit-value-box--changed': venueAuditShowChanged('vr_url') }">{{ venueAuditPendingDisplay('vr_url') }}</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
|
|
<a-form-item label="排序">
|
|
|
|
|
<div class="venue-audit-value-box" :class="{ 'venue-audit-value-box--changed': venueAuditShowChanged('sort') }">{{ venueAuditPendingDisplay('sort') }}</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
@ -1515,6 +1523,9 @@ onMounted(async () => {
|
|
|
|
|
<span style="color: #f53f3f;">{{ formErrors.contact_phone }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item label="VR链接">
|
|
|
|
|
<a-input v-model="form.vr_url" placeholder="https://" allow-clear />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item label="排序">
|
|
|
|
|
<a-input-number v-model="form.sort" :min="0" :disabled="!isSuperAdmin()" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|