Merge pull request '- FormDisplay size props eklendi' (#1) from piyango-Id-geliştirmesi into main
Reviewed-on: #1
This commit is contained in:
@ -14,7 +14,9 @@
|
||||
</span>
|
||||
<template v-if="modelText !== undefined && modelText !== ''">
|
||||
<template v-if="typeof modelText === 'string'">
|
||||
<span>{{ price ? globalStore.toTrLocale(modelText) : modelText }}</span>
|
||||
<span :class="[size ? 'form-item-size form-item-size-' + size : '']">
|
||||
{{ price ? globalStore.toTrLocale(modelText) : modelText }}
|
||||
</span>
|
||||
</template>
|
||||
<template v-if="typeof modelText === 'object'">
|
||||
<ul>
|
||||
@ -25,7 +27,9 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span>{{ price ? globalStore.toTrLocale(localValue) : localValue }}</span>
|
||||
<span :class="[size ? 'form-item-size form-item-size-' + size : '']">
|
||||
{{ price ? globalStore.toTrLocale(localValue) : localValue }}
|
||||
</span>
|
||||
</template>
|
||||
<span
|
||||
class="form-item-alert"
|
||||
@ -64,6 +68,7 @@
|
||||
modelText?: any
|
||||
invalidText?: string
|
||||
price?: boolean
|
||||
size?: number | string
|
||||
}
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
half: false,
|
||||
@ -71,13 +76,23 @@
|
||||
})
|
||||
const localValue = ref<any>(props.modelValue)
|
||||
|
||||
if (props.type === 'date' && props.modelValue !== null && props.modelValue !== undefined && props.modelValue !== '')
|
||||
if (
|
||||
props.type === 'date' &&
|
||||
props.modelValue !== null &&
|
||||
props.modelValue !== undefined &&
|
||||
props.modelValue !== ''
|
||||
)
|
||||
localValue.value = dateStore.dateFormat({
|
||||
date: props.modelValue as Date,
|
||||
pattern: 'dd-mm-yy'
|
||||
})
|
||||
|
||||
if (props.type === 'datetime' && props.modelValue !== null && props.modelValue !== undefined && props.modelValue !== '')
|
||||
if (
|
||||
props.type === 'datetime' &&
|
||||
props.modelValue !== null &&
|
||||
props.modelValue !== undefined &&
|
||||
props.modelValue !== ''
|
||||
)
|
||||
localValue.value = dateStore.dateFormat({
|
||||
date: props.modelValue as Date,
|
||||
pattern: 'dd-mm-yy-t'
|
||||
@ -108,3 +123,14 @@
|
||||
}
|
||||
)
|
||||
</script>
|
||||
<style scoped>
|
||||
.form-item-size {
|
||||
font-weight: 600;
|
||||
}
|
||||
.form-item-size-1 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.form-item-size-2 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -3,6 +3,10 @@
|
||||
<lottery-states
|
||||
:piyangoAmac="piyangoStore.lotteryData.amacpiyangoId"
|
||||
v-if="!isPreview" />
|
||||
<form-display
|
||||
v-model="piyangoStore.lotteryData.piyangoId"
|
||||
label="Piyango ID"
|
||||
size="1" />
|
||||
<template
|
||||
v-if="
|
||||
usersStore.isPanelUser &&
|
||||
|
||||
@ -23,6 +23,13 @@
|
||||
<strong style="font-size: 10pt; margin-bottom: 12px">
|
||||
PİYANGO İLE İLGİLİ BİLGİLER
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<strong style="font-size: 10pt; margin-bottom: 12px">
|
||||
PİYANGO ID: {{ piyangoStore.lotteryData.piyangoId }}
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<table
|
||||
cellspacing="0"
|
||||
class="table-no-line"
|
||||
|
||||
@ -12,6 +12,12 @@
|
||||
Bahisler ve Oyunlar Dairesi Başkanlığına
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<strong style="font-size: 10pt; margin-bottom: 12px">
|
||||
PİYANGO ID: {{ piyangoStore.lotteryData.piyangoId }}
|
||||
</strong>
|
||||
<br />
|
||||
<br />
|
||||
<table
|
||||
cellspacing="0"
|
||||
class="table-no-line"
|
||||
|
||||
@ -31,7 +31,17 @@
|
||||
</div>
|
||||
<div class="form-part-content" v-if="loaded">
|
||||
<lottery-states :piyangoAmac="piyangoStore.lotteryData.amacpiyangoId" />
|
||||
|
||||
<template
|
||||
v-if="
|
||||
!piyangoStore.isNew &&
|
||||
piyangoStore.lotteryData.piyangoId !== undefined &&
|
||||
piyangoStore.lotteryData.piyangoId !== null
|
||||
">
|
||||
<form-display
|
||||
v-model="piyangoStore.lotteryData.piyangoId"
|
||||
label="Piyango ID"
|
||||
size="1" />
|
||||
</template>
|
||||
<form-input
|
||||
modelKey="cekilisBaslik"
|
||||
v-model="piyangoStore.lotteryData.baslik"
|
||||
@ -602,7 +612,7 @@
|
||||
|
||||
let list = await dataStore.dataGet('Auth/userbyuserChildList/' + id)
|
||||
|
||||
childUsers.value = list.data.filter((p:Record<string,any>) => {
|
||||
childUsers.value = list.data.filter((p: Record<string, any>) => {
|
||||
return p.islemTipId === 4 || p.islemTipi === 'Üyelik Onaylandı'
|
||||
})
|
||||
|
||||
|
||||
@ -80,6 +80,12 @@
|
||||
}
|
||||
|
||||
header.push(
|
||||
{
|
||||
name: 'piyangoId',
|
||||
title: 'Piyango ID',
|
||||
sort: true,
|
||||
style: { width: '10%' }
|
||||
},
|
||||
{
|
||||
name: 'baslik',
|
||||
title: 'Başlık',
|
||||
@ -109,7 +115,8 @@
|
||||
type: 'date',
|
||||
range: true
|
||||
}
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
if (usersStore.isVakifDernek || usersStore.isPanelUser) {
|
||||
header.push({
|
||||
|
||||
@ -54,6 +54,12 @@
|
||||
}
|
||||
|
||||
header.push(
|
||||
{
|
||||
name: 'piyangoId',
|
||||
title: 'Piyango ID',
|
||||
sort: true,
|
||||
style: { width: '10%' }
|
||||
},
|
||||
{
|
||||
name: 'baslik',
|
||||
title: 'Başlık',
|
||||
|
||||
Reference in New Issue
Block a user