model.js 385 B

123456789101112131415161718192021
  1. import { commServer } from './server.js';
  2. export default {
  3. namespaced: true,
  4. state: {
  5. // 查核列表
  6. checkList: [],
  7. detailList:[],//查核项集合
  8. ifUpdate:false,
  9. },
  10. mutations: {
  11. comChangeState(state, {key, data}) {
  12. state[key] = data;
  13. },
  14. },
  15. actions: {
  16. commActions({ commit, state }, { key, data }) {
  17. return commServer(key, data);
  18. },
  19. }
  20. }