diff --git a/components/Master/CardList.vue b/components/Master/CardList.vue index 7529570..d31f2f3 100644 --- a/components/Master/CardList.vue +++ b/components/Master/CardList.vue @@ -12,7 +12,7 @@ const state = ref(false) \ No newline at end of file diff --git a/components/Master/DialogModal.vue b/components/Master/DialogModal.vue index 180036f..6b14176 100644 --- a/components/Master/DialogModal.vue +++ b/components/Master/DialogModal.vue @@ -2,7 +2,7 @@ import { ref, watch, defineProps } from 'vue'; const props = defineProps({ - stateValue: { type: Boolean, required: true } + stateValue: { type: Boolean, required: true }, }); const isActive = ref(props.stateValue); diff --git a/components/Master/formDetail.vue b/components/Master/formDetail.vue new file mode 100644 index 0000000..6d423a4 --- /dev/null +++ b/components/Master/formDetail.vue @@ -0,0 +1,67 @@ + + + diff --git a/components/Master/formDetail1.vue b/components/Master/formDetail1.vue new file mode 100644 index 0000000..c45692d --- /dev/null +++ b/components/Master/formDetail1.vue @@ -0,0 +1,177 @@ + + + diff --git a/components/Master/formTypeUser.vue b/components/Master/formTypeUser.vue index ed77b66..1803f45 100644 --- a/components/Master/formTypeUser.vue +++ b/components/Master/formTypeUser.vue @@ -6,7 +6,7 @@ const {getTypeUser} = useTypeUser() const onSubmit = async() => { // console.log("ini disimpan:",data.value?.data.typeUser); // console.log("ini disimpan:",data.value?.form$.data); - await getTypeUser(data.value?.form$.data) + // await getTypeUser(data.value?.form$.data) } diff --git a/data/dummy/keuangan.role_menu.json b/data/dummy/keuangan.role_menu.json index be99ea3..10544f6 100644 --- a/data/dummy/keuangan.role_menu.json +++ b/data/dummy/keuangan.role_menu.json @@ -2,20 +2,24 @@ "_id": { "$oid": "683da37c1b8c132fda4b32f7" }, - "type_user_id": "683d57b2bccc67d467a9e10f", - "menu_id": "683d582ebccc67d467a9e114", + "type_user_id": { + "$oid": "683d57b2bccc67d467a9e10f" + }, + "menu_id": { + "$oid": "683d582ebccc67d467a9e114" + }, "access": [ { - "add": 0 + "add": 1 }, { - "update": 0 + "update": 1 }, { - "read": 0 + "read": 1 }, { - "delete": 0 + "delete": 1 } ] }, @@ -123,4 +127,25 @@ "delete": 0 } ] +}, +{ + "_id": { + "$oid": "683f35251b8c132fda4b3338" + }, + "type_user_id": "683d5805bccc67d467a9e110", + "menu_id": "683d582ebccc67d467a9e114", + "access": [ + { + "add": 1 + }, + { + "update": 1 + }, + { + "read": 1 + }, + { + "delete": 1 + } + ] }] \ No newline at end of file diff --git a/pages/Setting/typeUser/index.vue b/pages/Setting/typeUser/index.vue index b57d390..aa9ac77 100644 --- a/pages/Setting/typeUser/index.vue +++ b/pages/Setting/typeUser/index.vue @@ -1,31 +1,44 @@