Merge remote-tracking branch 'origin/main'
This commit is contained in:
@ -314,6 +314,7 @@ table.table-colored tbody tr:hover {
|
|||||||
|
|
||||||
.table-cell-image {
|
.table-cell-image {
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
|
border: 1px solid #ececec;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-cell-flx-row {
|
.table-cell-flx-row {
|
||||||
|
|||||||
@ -6,7 +6,9 @@
|
|||||||
{{ title }}
|
{{ title }}
|
||||||
<i v-if="required" class="form-item-alert">*</i>
|
<i v-if="required" class="form-item-alert">*</i>
|
||||||
</span>
|
</span>
|
||||||
<label :class="['label-radio', disabled ? 'disabled' : '']" v-for="(item, i) in listData">
|
<label
|
||||||
|
:class="['label-radio', disabled ? 'disabled' : '']"
|
||||||
|
v-for="(item, i) in listData">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
v-model="localValue"
|
v-model="localValue"
|
||||||
@ -72,7 +74,7 @@
|
|||||||
val?: number | string | boolean
|
val?: number | string | boolean
|
||||||
label?: string
|
label?: string
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
modelValue: (string | number)[] | boolean | string | number | null
|
modelValue: (string | number)[] | boolean | string | number | null | undefined
|
||||||
half?: boolean
|
half?: boolean
|
||||||
title?: string
|
title?: string
|
||||||
invalidText?: string
|
invalidText?: string
|
||||||
@ -89,7 +91,7 @@
|
|||||||
|
|
||||||
const emit = defineEmits(['update:modelValue', 'change', 'click'])
|
const emit = defineEmits(['update:modelValue', 'change', 'click'])
|
||||||
|
|
||||||
const localValue = ref<(string | number)[] | boolean | null | string | number>(
|
const localValue = ref<(string | number)[] | boolean | null | string | number|undefined>(
|
||||||
props.modelValue
|
props.modelValue
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
:tableData='popups'
|
:tableData='popups'
|
||||||
apiText='Popup Listesi'
|
apiText='Popup Listesi'
|
||||||
apiList='Popup'
|
apiList='Popup'
|
||||||
v-model:refresh='refresh'
|
v-model:refresh="refresh"
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
<panel-wrapper
|
<panel-wrapper
|
||||||
@ -46,7 +46,7 @@
|
|||||||
v-model="panelPopup.durum" >
|
v-model="panelPopup.durum" >
|
||||||
<template #checktext0>
|
<template #checktext0>
|
||||||
<span>
|
<span>
|
||||||
Durum
|
Aktif
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</form-checkbox>
|
</form-checkbox>
|
||||||
@ -66,6 +66,9 @@
|
|||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
import { useDataStore } from '@/stores/dataStore'
|
import { useDataStore } from '@/stores/dataStore'
|
||||||
import PanelWrapper from '@/components/PanelWrapper.vue'
|
import PanelWrapper from '@/components/PanelWrapper.vue'
|
||||||
|
import { useGlobalStore } from '@/stores/globalStore'
|
||||||
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
const Checker = ref([
|
const Checker = ref([
|
||||||
{
|
{
|
||||||
label: '',
|
label: '',
|
||||||
@ -88,7 +91,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'resimUrl',
|
name: 'resimUrl',
|
||||||
title: 'Resim Url'
|
title: 'Resim Url',
|
||||||
|
computeHtml: (v: Record<string, any>) => {
|
||||||
|
if (v.resimUrl !== null && v.resimUrl !== undefined) {
|
||||||
|
return globalStore.TableCellDocument(v.resimUrl)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'url',
|
name: 'url',
|
||||||
@ -96,7 +104,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'durum',
|
name: 'durum',
|
||||||
title: 'Durum'
|
title: 'Durum',
|
||||||
|
computeHtml: (v: Record<string, any>): string => {
|
||||||
|
if (v.durum) {
|
||||||
|
return `<span class="back-grad back-grad-ok">
|
||||||
|
Aktif
|
||||||
|
</strong>`
|
||||||
|
} else {
|
||||||
|
return ``
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
const resimPreview = computed(() => {
|
const resimPreview = computed(() => {
|
||||||
@ -130,12 +147,6 @@
|
|||||||
panel.value = true
|
panel.value = true
|
||||||
isUpdate.value = true
|
isUpdate.value = true
|
||||||
}
|
}
|
||||||
const load = async () => {
|
|
||||||
const data = await dataStore.dataGet('Popup')
|
|
||||||
console.log('apidata', data)
|
|
||||||
popups.value = data
|
|
||||||
console.log(popups.value)
|
|
||||||
}
|
|
||||||
|
|
||||||
const save = async () => {
|
const save = async () => {
|
||||||
if (isUpdate.value)
|
if (isUpdate.value)
|
||||||
@ -170,10 +181,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
load()
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.image-preview-wrapper {
|
.image-preview-wrapper {
|
||||||
|
|||||||
Reference in New Issue
Block a user