lrf402788946 5 years ago
parent
commit
46abc5c0fe
3 changed files with 12 additions and 5 deletions
  1. 5 5
      components/form.vue
  2. 6 0
      store/tea-plan.js
  3. 1 0
      store/trainplan.js

+ 5 - 5
components/form.vue

@@ -82,8 +82,8 @@
           </el-form-item>
         </template>
       </template>
-      <el-form-item v-if="needSave" class="btn">
-        <el-row type="flex" align="middle" justify="space-around">
+      <el-form-item label="" v-if="needSave" class="btn">
+        <el-row type="flex" align="middle" justify="start">
           <el-col :span="6">
             <el-button type="primary" @click="save">{{ submitText }}</el-button>
           </el-col>
@@ -197,7 +197,7 @@ export default {
   background: #fff;
   border-radius: 20px;
 }
-/deep/.btn .el-form-item__content {
-  margin-left: 0 !important;
-}
+// /deep/.btn .el-form-item__content {
+//   margin-left: 0 !important;
+// }
 </style>

+ 6 - 0
store/tea-plan.js

@@ -6,6 +6,7 @@ Vue.use(Vuex);
 const api = {
   interface: `/api/train/apply`,
   apply: `/api/train/apply/queryteacher`,
+  divide: `/api/train/teaplan/divide`, //query: trainplanid
 };
 const state = () => ({});
 const mutations = {};
@@ -35,6 +36,11 @@ const actions = {
     const res = await this.$axios.$get(`${api.apply}`, { skip, limit, ...info });
     return res;
   },
+  async divide({ commit }, payload) {
+    //payload是trainplanid
+    const res = await this.$axios.$get(`${api.divide}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];

+ 1 - 0
store/trainplan.js

@@ -36,6 +36,7 @@ const actions = {
     const res = await this.$axios.$post(`${api.notice}`, payload);
     return res;
   },
+
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];