55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
|
|
// const URL = "/westone-api/v1/system/auth";
|
|
// const URL = "https://devcpone.aplikasi.web.id/westone-api/v1/system/auth/";
|
|
|
|
const store = {
|
|
namespaced: true,
|
|
state() {
|
|
return {
|
|
date: new Date(),
|
|
patients: [
|
|
{
|
|
id: 1,
|
|
name: "Tn. COCOBA",
|
|
noreg: "055000035LA",
|
|
orderdate: "01-08-2024 15:02"
|
|
},
|
|
{
|
|
id: 2,
|
|
name: "Ny. LINA MARLINA",
|
|
noreg: "055000034LA",
|
|
orderdate: "01-08-2024 14:32"
|
|
},
|
|
{
|
|
id: 3,
|
|
name: "Ny. LINA MARLINA",
|
|
noreg: "055000034LA",
|
|
orderdate: "01-08-2024 14:32"
|
|
},
|
|
],
|
|
selected_patient: {},
|
|
};
|
|
},
|
|
mutations: {
|
|
setDate(state, data) {
|
|
state.date = data
|
|
},
|
|
setPatients(state, data) {
|
|
state.patients = data
|
|
},
|
|
setSelectedPatient(state, data) {
|
|
state.selected_patient = data
|
|
},
|
|
setDetails(state, data) {
|
|
state.details = data
|
|
},
|
|
setSelectedDetail(state, data) {
|
|
state.selected_detail = data
|
|
}
|
|
},
|
|
actions: {
|
|
|
|
}
|
|
};
|
|
|
|
export default store |