12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import Vue from "vue";
- import Vuex from "vuex";
- import user from "@/store/modules/user";
- Vue.use(Vuex);
- const myPlugin = (store) => {
-
- let vuexStorage = uni.getStorageSync("vuexStorage");
- if (vuexStorage) {
- console.log(vuexStorage)
- store.replaceState(vuexStorage);
- }
- store.subscribe((mutation, state) => {
- uni.setStorageSync("vuexStorage", state);
- });
- };
- export default new Vuex.Store({
- state: {
- isShowSeiminModel: false,
- qucikCreateOrderType: '',
- qucikCreateOrderTypeId: '',
- deptDisplay: 1,
- updateTipsForNurses: '',
- specimenButton: '',
-
-
-
-
- nurseDeptSwitchTip: 0,
-
- searchDeptResult: {},
-
- searchDeptResultList: {},
-
- searchDeptParams: {},
- },
- mutations: {
-
- changeSeiminModel(state, args) {
- state.isShowSeiminModel = args;
- },
-
- changeQucikCreateOrderType(state, args = {}) {
- state.qucikCreateOrderType = args.type;
- state.qucikCreateOrderTypeId = args.taskTypeId;
- },
-
- changeDeptDisplay(state, args) {
- state.deptDisplay = args;
- },
-
- changeUpdateTipsForNurses(state, args) {
- state.updateTipsForNurses = args;
- },
-
- changeSpecimenButton(state, args) {
- state.specimenButton = args;
- },
-
- changeNurseDeptSwitchTip(state, args) {
- state.nurseDeptSwitchTip = args;
- },
-
- changeSearchDeptResult(state, args) {
- state.searchDeptResult = args;
- },
-
- changeSearchDeptResultList(state, args) {
- state.searchDeptResultList = args;
- },
-
- changeSearchDeptParams(state, args) {
- state.searchDeptParams = args;
- },
- },
- modules: {
- user,
- },
- plugins: [myPlugin],
- });
|