Compare commits
2 Commits
016c0b09d4
...
ae583a7dc5
| Author | SHA1 | Date | |
|---|---|---|---|
| ae583a7dc5 | |||
| de5f129bda |
@ -13,7 +13,7 @@
|
|||||||
@click="OpenPreviewPanel"
|
@click="OpenPreviewPanel"
|
||||||
v-if="
|
v-if="
|
||||||
(route.name === 'Profil' && !usersStore.isPanelUser) ||
|
(route.name === 'Profil' && !usersStore.isPanelUser) ||
|
||||||
route.name === 'UyeYetkiliDetay' && loaded
|
(route.name === 'UyeYetkiliDetay'|| usersStore.selectedUserApproveId === 3) && loaded
|
||||||
">
|
">
|
||||||
Önizleme
|
Önizleme
|
||||||
</button>
|
</button>
|
||||||
@ -21,9 +21,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-part-content" v-if="loaded">
|
<div class="form-part-content" v-if="loaded">
|
||||||
<user-approve-states v-if="!isPreview && route.name !== 'UyeYetkiliYeni'" />
|
<user-approve-states v-if="!isPreview && route.name !== 'UyeYetkiliYeni'" />
|
||||||
|
|
||||||
<form-select
|
<form-select
|
||||||
v-if="route.name === 'UyeYetkiliYeni'"
|
v-if="route.name === 'UyeYetkiliYeni' || usersStore.selectedUserApproveId === 3"
|
||||||
label="Kullanıcı Tipi"
|
label="Kullanıcı Tipi"
|
||||||
:listData="yetkiliTipList"
|
:listData="yetkiliTipList"
|
||||||
listText="baslik"
|
listText="baslik"
|
||||||
@ -36,7 +35,6 @@
|
|||||||
<div class="form-item back-grad back-grad-grey" v-else>
|
<div class="form-item back-grad back-grad-grey" v-else>
|
||||||
{{ uyeBilgileriStore.formData.basvuruTipi }}
|
{{ uyeBilgileriStore.formData.basvuruTipi }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form-input
|
<form-input
|
||||||
type="email"
|
type="email"
|
||||||
half
|
half
|
||||||
@ -430,8 +428,8 @@
|
|||||||
const SetYetkiliTipList = () => {
|
const SetYetkiliTipList = () => {
|
||||||
Object.assign(yetkiliTipList.value, globalDataStore.customerTips)
|
Object.assign(yetkiliTipList.value, globalDataStore.customerTips)
|
||||||
|
|
||||||
let araciInd = yetkiliTipList.value.findIndex((p) => p.id === 23)
|
// let araciInd = yetkiliTipList.value.findIndex((p) => p.id === 23)
|
||||||
yetkiliTipList.value.splice(araciInd, 1)
|
// yetkiliTipList.value.splice(araciInd, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ilceDisabled = computed<boolean>(() => {
|
const ilceDisabled = computed<boolean>(() => {
|
||||||
|
|||||||
@ -1,21 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="form-part form-title">
|
<div class='form-part form-title'>
|
||||||
<div class="form-title-buttons">
|
<div class='form-title-buttons'>
|
||||||
<div class="button-c button-save" @click="SendForApprove">Onaya Gönder</div>
|
<div class='button-c button-save' @click='SendForApprove'>Onaya Gönder</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang='ts'>
|
||||||
import { ref, reactive, onBeforeMount, computed } from 'vue'
|
import { ref, reactive, onBeforeMount, computed } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
import { useDataStore } from '@/stores/dataStore'
|
import { useDataStore } from '@/stores/dataStore'
|
||||||
|
|
||||||
const dataStore = useDataStore()
|
const dataStore = useDataStore()
|
||||||
import { useGlobalStore } from '@/stores/globalStore'
|
import { useGlobalStore } from '@/stores/globalStore'
|
||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
import { useUsersStore } from '@/stores/usersStore'
|
import { useUsersStore } from '@/stores/usersStore'
|
||||||
|
|
||||||
const usersStore = useUsersStore()
|
const usersStore = useUsersStore()
|
||||||
import { useCustomerStore } from '../../stores/customerStore'
|
import { useCustomerStore } from '../../stores/customerStore'
|
||||||
|
|
||||||
const customerStore = useCustomerStore()
|
const customerStore = useCustomerStore()
|
||||||
|
|
||||||
const formData = reactive<Record<string, any>>({
|
const formData = reactive<Record<string, any>>({
|
||||||
@ -39,9 +44,9 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (form !== 'errorfalse') {
|
if (form !== 'errorfalse') {
|
||||||
if (route.name === 'UyeDetay')
|
if (route.name === 'UyeDetay' || route.name === 'Profil') {
|
||||||
usersStore.userApproveId = formData.onayDurumuIslemTipiId
|
usersStore.userApproveId = formData.onayDurumuIslemTipiId
|
||||||
else usersStore.userSubApproveId = formData.onayDurumuIslemTipiId
|
} else usersStore.userSubApproveId = formData.onayDurumuIslemTipiId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,30 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="form-part">
|
<div class='form-part'>
|
||||||
<div class="form-part-title">
|
<div class='form-part-title'>
|
||||||
<h4>Profil Resmi</h4>
|
<h4>Profil Resmi</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-part-content">
|
<div class='form-part-content'>
|
||||||
<template v-if="file.filePath !== '' && file.filePath !== null">
|
<template v-if="file.filePath !== '' && file.filePath !== null">
|
||||||
<file-list-item
|
<file-list-item
|
||||||
:data="file"
|
:data='file'
|
||||||
@click="ReplaceImage"
|
@click='ReplaceImage'
|
||||||
onlyPreview
|
onlyPreview
|
||||||
:filePath="file.filePath" />
|
:filePath='file.filePath' />
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<template v-if="route.name === 'Profil' || (route.name === 'Profil' && !usersStore.isPanelUser)">
|
<template v-if="route.name === 'Profil' || (route.name === 'Profil' && !usersStore.isPanelUser)">
|
||||||
<div class="form-item form-item-picture clickable" @click="picturePanel = true">
|
<div class='form-item form-item-picture clickable' @click='picturePanel = true'>
|
||||||
<div class="image-c">
|
<div class='image-c'>
|
||||||
<i class="ico-c">
|
<i class='ico-c'>
|
||||||
<svg>
|
<svg>
|
||||||
<use href="@/assets/images/icons.svg#plus"></use>
|
<use href='@/assets/images/icons.svg#plus'></use>
|
||||||
</svg>
|
</svg>
|
||||||
</i>
|
</i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="form-inner-comment">
|
<div class='form-inner-comment'>
|
||||||
Eklenmiş resim bulunamadı.
|
Eklenmiş resim bulunamadı.
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -32,39 +32,45 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<panel-wrapper
|
<panel-wrapper
|
||||||
v-if="picturePanel"
|
v-if='picturePanel'
|
||||||
v-model="picturePanel"
|
v-model='picturePanel'
|
||||||
panel-title="Profil Resmi Ekle">
|
panel-title='Profil Resmi Ekle'>
|
||||||
<template #panelContent>
|
<template #panelContent>
|
||||||
<panel-user-picture />
|
<panel-user-picture />
|
||||||
</template>
|
</template>
|
||||||
<template #footerButton>
|
<template #footerButton>
|
||||||
<div class="button-c button-save" @click="FileUpload">Ekle</div>
|
<div class='button-c button-save' @click='FileUpload'>Ekle</div>
|
||||||
</template>
|
</template>
|
||||||
</panel-wrapper>
|
</panel-wrapper>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang='ts'>
|
||||||
import { ref, reactive, onBeforeMount } from 'vue'
|
import { ref, reactive, onBeforeMount } from 'vue'
|
||||||
import PanelUserPicture from '../panel/PanelUserPicture.vue'
|
import PanelUserPicture from '../panel/PanelUserPicture.vue'
|
||||||
import PanelWrapper from '@/components/PanelWrapper.vue'
|
import PanelWrapper from '@/components/PanelWrapper.vue'
|
||||||
|
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
import { useDataStore } from '@/stores/dataStore'
|
import { useDataStore } from '@/stores/dataStore'
|
||||||
|
|
||||||
const dataStore = useDataStore()
|
const dataStore = useDataStore()
|
||||||
import { useGlobalStore } from '@/stores/globalStore'
|
import { useGlobalStore } from '@/stores/globalStore'
|
||||||
|
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
import { useValidationStore } from '@/stores/validationStore'
|
import { useValidationStore } from '@/stores/validationStore'
|
||||||
|
|
||||||
const validationStore = useValidationStore()
|
const validationStore = useValidationStore()
|
||||||
import { useUsersStore } from '@/stores/usersStore'
|
import { useUsersStore } from '@/stores/usersStore'
|
||||||
|
|
||||||
const usersStore = useUsersStore()
|
const usersStore = useUsersStore()
|
||||||
import { useCustomerStore } from '@/module/uyeler/stores/customerStore'
|
import { useCustomerStore } from '@/module/uyeler/stores/customerStore'
|
||||||
|
|
||||||
const customerStore = useCustomerStore()
|
const customerStore = useCustomerStore()
|
||||||
|
|
||||||
const picturePanel = ref<boolean>(false)
|
const picturePanel = ref<boolean>(false)
|
||||||
const isUpdate = ref<boolean>(false)
|
const isUpdate = ref<boolean>(false)
|
||||||
|
|
||||||
const file = reactive<Record<string,any>>({
|
const file = reactive<Record<string, any>>({
|
||||||
title: '',
|
title: '',
|
||||||
filePath: ''
|
filePath: ''
|
||||||
})
|
})
|
||||||
@ -75,7 +81,7 @@
|
|||||||
picturePanel.value = true
|
picturePanel.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
const GetData = async () => {
|
const GetData = async () => {
|
||||||
let dt = await dataStore.dataGet('AppUserResim/AppUserId/' + usersStore.selectedUserId())
|
let dt = await dataStore.dataGet('AppUserResim/AppUserId/' + usersStore.selectedUserId())
|
||||||
if (dt !== 'errorfalse') {
|
if (dt !== 'errorfalse') {
|
||||||
Object.assign(file, dt)
|
Object.assign(file, dt)
|
||||||
|
|||||||
@ -119,6 +119,7 @@ export const useUyeBilgileriStore = defineStore('uyeBilgileriStore', () => {
|
|||||||
delete formData[key]
|
delete formData[key]
|
||||||
})
|
})
|
||||||
}*/
|
}*/
|
||||||
|
ResetFormItems();
|
||||||
formChanged.value = true
|
formChanged.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user