lrf402788946 4 years ago
parent
commit
19c1b3227a
3 changed files with 10 additions and 4 deletions
  1. 2 2
      components/upload.vue
  2. 2 2
      components/upload_old.vue
  3. 6 0
      store/tea-plan.js

+ 2 - 2
components/upload.vue

@@ -22,9 +22,9 @@
       <template v-else>
         <i class="el-icon-plus"></i>
       </template>
-      <template #tip v-if="tip">
+      <!-- <template #tip v-if="tip">
         {{ tip }}
-      </template>
+      </template> -->
     </el-upload>
     <el-dialog :visible.sync="dialogVisible">
       <el-form :model="form" size="mini" label-width="80px" :inline="true">

+ 2 - 2
components/upload_old.vue

@@ -18,9 +18,9 @@
       <template v-else>
         <i class="el-icon-plus"></i>
       </template>
-      <template #tip v-if="tip">
+      <!-- <template #tip v-if="tip">
         {{ tip }}
-      </template>
+      </template> -->
     </el-upload>
     <el-dialog :visible.sync="dialogVisible">
       <img width="100%" :src="dialogImageUrl" alt="" />

+ 6 - 0
store/tea-plan.js

@@ -10,6 +10,7 @@ const api = {
   findTeacher: `/api/train/teaplan/findteacher`, //planid termid batchid
   arrange: `/api/train/apply/arrange`, //计划-安排教师
   sendmsg: `/api/train/apply/sendmsg`, //计划,给指定期安排的教师发送通知
+  confirm: `/api/train/apply/confirm`, //计划,给指定期安排的教师变更为确认状态
 };
 const state = () => ({});
 const mutations = {};
@@ -59,6 +60,11 @@ const actions = {
     const res = await this.$axios.$post(`${api.sendmsg}/${planid}`, { ids });
     return res;
   },
+  // 计划-给指定期安排的教师确认状态
+  async confirmPlan({ commit }, { ids, planid }) {
+    const res = await this.$axios.$post(`${api.confirm}/${planid}`, { ids });
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];