فهرست منبع

个人驾驶舱-工分明细列表导出功能

wanglt 3 ماه پیش
والد
کامیت
01306ca28a
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 1 1
      ygtx-ui/src/views/index5.vue
  2. 6 0
      ygtx-ui/src/views/index6.vue

+ 1 - 1
ygtx-ui/src/views/index5.vue

@@ -264,7 +264,7 @@
 import { ref, reactive } from 'vue';
 import { selectHomePageData } from '@/api/gxt/repairOrder';
 import { listMyTodo } from '@/api/gxt/orderMine';
-import { listGxtOrderPerson, exportGxtOrderPerson } from '@/api/gxt/gxtOrderPerson';
+import { listGxtOrderPerson } from '@/api/gxt/gxtOrderPerson';
 import { encryptParams } from '@/utils/encrypt';
 import { getConfigKey } from '@/api/system/config';
 

+ 6 - 0
ygtx-ui/src/views/index6.vue

@@ -225,6 +225,8 @@
                   prefix-icon="search"
                   clearable
                 />
+                <el-button @click="handleExport">
+                  <i class="fa fa-download" style="margin-right: 8px;"></i>导出</el-button>
               </div>
             </div>
           </template>
@@ -518,6 +520,10 @@ export default {
         this.$router.push("/mine/orderMyRelate");
       }
     },
+    // 导出工单人员数据
+    handleExport() {
+      this.download("gxt/orderperson/exportOrderScorePerson", this.queryParams, `工分明细列表_${new Date().getTime()}.xlsx`);
+    },
   }
 }
 </script>