1405/02/09-dev configuration

This commit is contained in:
2026-04-29 16:24:50 +03:30
parent 1ab7ed3a91
commit a958c8c64a
7 changed files with 11069 additions and 162 deletions
@@ -7,24 +7,24 @@
<div class="flex">
<a-switch
checked-children="فعال"
un-checked-children="غیرفعال"
v-model:checked="value"
@change="ok"
checked-children="فعال"
un-checked-children="غیرفعال"
v-model:checked="value"
@change="ok"
/>
</div>
</div>
</template>
<script setup lang="ts">
import type { Order } from '@/model/order'
import { loading } from '@/utils'
import { setConfiguration } from '@/api/configuration'
import { message } from 'ant-design-vue'
import { onMounted } from 'vue'
import {loading} from '@/utils'
import {setConfiguration} from '@/api/configuration'
import {message} from 'ant-design-vue'
import {onMounted} from 'vue'
import type {TagItem} from "@/components/BasicTags/model";
interface Prop {
item: Order
item: TagItem
}
const props = defineProps<Prop>()
@@ -34,8 +34,11 @@ async function ok() {
let obj = {
id: props.item.id,
key: props.item.key,
value: value.value,
description: props.item.description
value: `${value.value}`,
type:props.item.type,
title_fa:props.item.name,
description: props.item.description,
is_active: props.item.is_active,
}
try {
loading.value = true
@@ -48,5 +51,7 @@ async function ok() {
}
}
onMounted(() => (value.value = props.item.value === 'true'))
onMounted(() => {
value.value = props.item.value === 'true'
})
</script>