Initial import
This commit is contained in:
40
one-ui/agreement/one-md-packet/store.js
Normal file
40
one-ui/agreement/one-md-packet/store.js
Normal file
@@ -0,0 +1,40 @@
|
||||
// State
|
||||
// data ...
|
||||
// Mutations
|
||||
//
|
||||
//
|
||||
// Actions
|
||||
import packet from "./modules/packet.js";
|
||||
import packet_new from "./modules/packet_new.js";
|
||||
import packet_copy from "./modules/packet_copy.js";
|
||||
import test from "./modules/test.js";
|
||||
import px from "./modules/px.js";
|
||||
import system from "../../apps/modules/system/system.js";
|
||||
export const store = new Vuex.Store({
|
||||
modules: {
|
||||
packet: packet,
|
||||
packet_new: packet_new,
|
||||
packet_copy: packet_copy,
|
||||
test: test,
|
||||
px: px,
|
||||
system: system
|
||||
},
|
||||
state: {
|
||||
tab_selected: 'pasien-dokter',
|
||||
dialog_confirm: false
|
||||
},
|
||||
mutations: {
|
||||
change_tab(state, ntab) {
|
||||
state.tab_selected = ntab
|
||||
},
|
||||
|
||||
update_dialog_confirm(state, v) {
|
||||
state.dialog_confirm = v
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
change_tab(context, ntab) {
|
||||
context.commit('change_tab', ntab)
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user