reloaded 5 tahun lalu
induk
melakukan
ce5b553a81
11 mengubah file dengan 82 tambahan dan 4 penghapusan
  1. 1 1
      components/data-table.vue
  2. 1 0
      config/menu-config.js
  3. 25 0
      icon/iconfont.css
  4. TEMPAT SAMPAH
      icon/iconfont.eot
  5. 29 0
      icon/iconfont.svg
  6. TEMPAT SAMPAH
      icon/iconfont.ttf
  7. TEMPAT SAMPAH
      icon/iconfont.woff
  8. 4 2
      layout/register/login.vue
  9. 11 1
      store/classes.js
  10. 5 0
      store/student.js
  11. 6 0
      store/tea-plan.js

+ 1 - 1
components/data-table.vue

@@ -16,7 +16,7 @@
         <template v-if="item.custom">
           <el-table-column :key="index" align="center" :label="item.label" v-bind="item.options">
             <template v-slot="{ row, $index }">
-              <slot name="custom" v-bind="{ item, row }"></slot>
+              <slot name="custom" v-bind="{ item, row, $index }"></slot>
             </template>
           </el-table-column>
         </template>

+ 1 - 0
config/menu-config.js

@@ -113,6 +113,7 @@ export const center = [
       { path: '/questionnaire/index', name: '问卷管理' },
       { path: '/itembank/index', name: '问卷题库' },
       { path: '/questionstate/index', name: '问卷进度' },
+      { path: '/statistics/question/index', name: '问卷统计' },
     ],
   },
 ];

File diff ditekan karena terlalu besar
+ 25 - 0
icon/iconfont.css


TEMPAT SAMPAH
icon/iconfont.eot


File diff ditekan karena terlalu besar
+ 29 - 0
icon/iconfont.svg


TEMPAT SAMPAH
icon/iconfont.ttf


TEMPAT SAMPAH
icon/iconfont.woff


+ 4 - 2
layout/register/login.vue

@@ -9,7 +9,7 @@
           </el-col>
           <el-col :span="8" class="right">
             <el-col :span="24" class="title">
-              教师甄选登录系统
+              {{ title }}
             </el-col>
             <el-col :span="24">
               <el-tabs v-model="activeName" type="border-card" :stretch="true">
@@ -50,7 +50,9 @@ const { mapActions } = createNamespacedHelpers('login');
 export default {
   name: 'login',
   metaInfo: { title: '登陆' },
-  props: {},
+  props: {
+    title: { type: String, default: '培训会系统登录' },
+  },
   components: { dataForm, qrcode },
   data: () => ({
     loginBei: require('../../assets/bg.jpg'),

+ 11 - 1
store/classes.js

@@ -6,7 +6,8 @@ Vue.use(Vuex);
 const api = {
   interface: `/api/train/class`,
   divide: `/api/train/class/divide`,
-  searchDate: `/api/train/class/searchDate`,
+  updateHeadTeacher: `/api/train/class/uptea`,
+  addStudent: id => `/api/train/class/upstuclass/${id} `, //id:班级id, ids:学生ID列表
 };
 const state = () => ({});
 const mutations = {};
@@ -37,6 +38,15 @@ const actions = {
     const res = await this.$axios.$post(`${api.divide}`, payload);
     return res;
   },
+  //手动分班
+  async addStudent({ commit }, { id, ids }) {
+    const res = await this.$axios.$post(`${api.addStudent(id)}`, ids);
+    return res;
+  },
+  async upHeadTea({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.updateHeadTeacher}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];

+ 5 - 0
store/student.js

@@ -7,6 +7,7 @@ const api = {
   interface: `/api/train/student`,
   noClass: '/api/train/student/seek',
   bedroom: `/api/train/student/findbedroom`,
+  removeClass: `/api/train/student/deleteclass`, //ids
 };
 const state = () => ({});
 const mutations = {};
@@ -40,6 +41,10 @@ const actions = {
     const res = await this.$axios.$get(`${api.bedroom}`, payload);
     return res;
   },
+  async removeClass({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.removeClass}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];

+ 6 - 0
store/tea-plan.js

@@ -7,6 +7,7 @@ const api = {
   interface: `/api/train/apply`,
   apply: `/api/train/apply/queryteacher`,
   divide: `/api/train/teaplan/divide`, //query: trainplanid
+  findTeacher: `/api/train/teaplan/findteacher`, //planid termid batchid
 };
 const state = () => ({});
 const mutations = {};
@@ -41,6 +42,11 @@ const actions = {
     const res = await this.$axios.$get(`${api.divide}`, payload);
     return res;
   },
+  async findTeacher({ commit }, payload) {
+    //payload是trainplanid
+    const res = await this.$axios.$get(`${api.findTeacher}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];