Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/satusehat
This commit is contained in:
@@ -3,6 +3,18 @@ import Block from '~/components/pub/form/block.vue'
|
||||
import FieldGroup from '~/components/pub/form/field-group.vue'
|
||||
import Field from '~/components/pub/form/field.vue'
|
||||
import Label from '~/components/pub/form/label.vue'
|
||||
|
||||
const props = defineProps<{ modelValue: any }>()
|
||||
const emit = defineEmits(['update:modelValue', 'event'])
|
||||
|
||||
const data = computed({
|
||||
get: () => props.modelValue,
|
||||
set: (val) => emit('update:modelValue', val),
|
||||
})
|
||||
|
||||
function onClick(type: string) {
|
||||
emit('event', type)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -18,7 +30,7 @@ import Label from '~/components/pub/form/label.vue'
|
||||
<FieldGroup :column="1">
|
||||
<Label>Nama dan Gelar</Label>
|
||||
<Field>
|
||||
<Input type="text" name="name" default-value="dr." />
|
||||
<Input v-model="data.name" type="text" name="name" default-value="dr." />
|
||||
</Field>
|
||||
<Field>
|
||||
<Input type="text" name="name" />
|
||||
@@ -61,7 +73,6 @@ import Label from '~/components/pub/form/label.vue'
|
||||
<Label>Fee Rajal</Label>
|
||||
<Field>
|
||||
<Input type="number" name="outPatient_rate" />
|
||||
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
<FieldGroup :column="2">
|
||||
@@ -76,8 +87,8 @@ import Label from '~/components/pub/form/label.vue'
|
||||
<Label>Status</Label>
|
||||
<Field>
|
||||
<Input type="select" name="status">
|
||||
<option value="active">Aktif</option>
|
||||
<option value="inactive">Tidak Aktif</option>
|
||||
<option value="active">Aktif</option>
|
||||
<option value="inactive">Tidak Aktif</option>
|
||||
</Input>
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
@@ -94,13 +105,12 @@ import Label from '~/components/pub/form/label.vue'
|
||||
<Field>
|
||||
<Input type="password" name="password" />
|
||||
</Field>
|
||||
|
||||
</FieldGroup>
|
||||
</Block>
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-2 flex justify-end py-2">
|
||||
<PubNavFooterCsd />
|
||||
<PubNavFooterCsd @click="onClick" />
|
||||
</div>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user