lrf402788946 4 lat temu
rodzic
commit
1afbac275f

+ 2 - 0
components/data-table.vue

@@ -44,6 +44,7 @@
                       :type="item.type || 'primary'"
                       :icon="item.icon || ''"
                       size="mini"
+                      style="padding-right:10px"
                       :underline="false"
                       @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
                     >
@@ -56,6 +57,7 @@
                     :type="item.type || 'primary'"
                     :icon="item.icon || ''"
                     size="mini"
+                    style="padding-right:10px"
                     :underline="false"
                     @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
                   >

+ 2 - 0
components/filter-page-table.vue

@@ -93,6 +93,7 @@
                     :type="item.type || 'primary'"
                     :icon="item.icon || ''"
                     size="mini"
+                    style="padding-right:10px"
                     :underline="false"
                     @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
                   >
@@ -104,6 +105,7 @@
                   :type="item.type || 'primary'"
                   :icon="item.icon || ''"
                   size="mini"
+                  style="padding-right:10px"
                   :underline="false"
                   @click="handleOpera(row, item.method, item.confirm, item.methodZh, item.label, $index)"
                 >

+ 5 - 0
store/teacher.js

@@ -9,6 +9,7 @@ const api = {
   scoreimport: `/api/train/teacher/teaimport`, //filepath
   teacherLesson: `/api/train/teacher/fetchteachers`,
   checkArrange: `/api/train/teacher/checkarrange`,
+  export: `/api/train/teacher/export`,
 };
 const state = () => ({});
 const mutations = {};
@@ -51,6 +52,10 @@ const actions = {
     const res = await this.$axios.$get(`${api.checkArrange}`, payload);
     return res;
   },
+  async toExport({ commit }, payload) {
+    const res = await this.$axios.$post(api.export, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];