Prechádzať zdrojové kódy

03/17 12:00

添加导出
Xiao_Mo 5 rokov pred
rodič
commit
e24529a332

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/index.html


+ 0 - 1
dist/static/css/chunk-29552bf6.5dacc05e.css

@@ -1 +0,0 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.m-core[data-v-e4c036f6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.m-core .left[data-v-e4c036f6]{width:550px}.m-core .right[data-v-e4c036f6]{margin-left:30px;min-width:600px}.m-core .right .box-card[data-v-e4c036f6]{width:100%;min-height:500px}.m-core .right .box-card .cardWrap[data-v-e4c036f6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:30px}.m-core .right .box-card .cardWrap .row[data-v-e4c036f6]{line-height:30px;font-size:14px}.m-core .right .box-card .cardWrap .title[data-v-e4c036f6]{text-align:center}.m-core .right .box-card .cardWrap .cardWrapleft[data-v-e4c036f6],.m-core .right .box-card .cardWrap .cardWrapright[data-v-e4c036f6]{width:48%}.m-core .right .box-card .cardWrap .cardWrapright .textWrap[data-v-e4c036f6]{margin-top:20px;width:100%;border:1px solid #999;min-height:100px}

+ 1 - 0
dist/static/css/chunk-8cf31128.2de1189f.css

@@ -0,0 +1 @@
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.m-core[data-v-5c5a4c5a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.m-core .left[data-v-5c5a4c5a]{width:550px}.m-core .right[data-v-5c5a4c5a]{margin-left:30px;min-width:600px}.m-core .right .box-card[data-v-5c5a4c5a]{width:100%;min-height:500px}.m-core .right .box-card .cardWrap[data-v-5c5a4c5a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;margin-top:30px}.m-core .right .box-card .cardWrap .row[data-v-5c5a4c5a]{line-height:30px;font-size:14px}.m-core .right .box-card .cardWrap .title[data-v-5c5a4c5a]{text-align:center}.m-core .right .box-card .cardWrap .cardWrapleft[data-v-5c5a4c5a],.m-core .right .box-card .cardWrap .cardWrapright[data-v-5c5a4c5a]{width:48%}.m-core .right .box-card .cardWrap .cardWrapright .textWrap[data-v-5c5a4c5a]{margin-top:20px;width:100%;border:1px solid #999;min-height:100px}

+ 1 - 1
dist/static/css/chunk-5752fdcc.af959090.css → dist/static/css/chunk-984a9988.cb658aa4.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.wrap[data-v-0a775e5b]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-0a775e5b]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-0a775e5b],.wrap .rightCell[data-v-0a775e5b]{width:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:50px}.wrap .rightCell[data-v-0a775e5b]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wrap .rightCell p[data-v-0a775e5b]{margin-right:30px}[data-v-0a775e5b] .el-tag{cursor:pointer}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.wrap[data-v-fe517420]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-fe517420]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-fe517420],.wrap .rightCell[data-v-fe517420]{width:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:50px}.wrap .rightCell[data-v-fe517420]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wrap .rightCell p[data-v-fe517420]{margin-right:30px}[data-v-fe517420] .el-tag{cursor:pointer}

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/app.1cea95a5.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/chunk-29552bf6.bca93aa0.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/chunk-5752fdcc.4f1508f5.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/chunk-8cf31128.273a169d.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/static/js/chunk-984a9988.73596926.js


+ 55 - 0
src/views/evaluateManager/networkList.vue

@@ -85,6 +85,10 @@
       <el-form-item>
         <el-button @click="search" type="danger">搜索</el-button>
         <el-button @click="onReSet" type="primary">重置</el-button>
+         <el-button type="primary"
+                 v-if="tableData.length > 0"
+                 v-permission="'export/courseReviews'"
+                 @click="netWorkExport">导出</el-button>
       </el-form-item>
     </el-form>
     <div class="tableWrap">
@@ -254,6 +258,9 @@
 </template>
 
 <script>
+import { getToken } from '@/utils/auth'
+import qs from 'qs'
+import axios from 'axios'
 import pagination from "@/components/Pagination/index";
 import {
   getTeacher,
@@ -443,6 +450,54 @@ export default {
       this.searchForm.month.push(startDate);
       this.searchForm.month.push(endDate);
       this.getList();
+    },
+    netWorkExport(){
+       let url = '/api-web/export/courseReviews '
+     let obj = {};
+      obj.organId = this.searchForm.organId || null;
+      obj.teacherId = this.searchForm.teacherId || null;
+      obj.eduTeacherId = this.searchForm.eduTeacherId || null;
+      obj.isFree = this.searchForm.isFree || null;
+      obj.studentReview = this.searchForm.studentReview || null;
+      obj.hasHandHomework = this.searchForm.hasHandHomework || null;
+      obj.hasReview = this.searchForm.hasReview || null;
+      obj.courseReview = this.searchForm.courseReview || null;
+      obj.search = this.searchForm.search;
+      if(this.searchForm.month.length > 0){
+          obj.startTime = this.searchForm.month[0];
+          obj.endTime = this.searchForm.month[1];
+      }
+      const options = {
+        method: 'get',
+        headers: {
+          'Authorization': getToken()
+        },
+        data: qs.stringify(obj),
+        url,
+        responseType: 'blob'
+      }
+      this.$confirm('您确定导出评价列表', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        axios(options).then(res => {
+          let blob = new Blob([res.data], {
+            // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
+            type: 'application/vnd.ms-excel;charset=utf-8'
+            //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
+          })
+          let objectUrl = URL.createObjectURL(blob)
+          let link = document.createElement("a")
+          let nowTime = new Date()
+          let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' + nowTime.getHours() + '' + nowTime.getMinutes()
+          let fname = + ymd + '网管评价' //下载文件的名字
+          link.href = objectUrl
+          link.setAttribute("download", fname)
+          document.body.appendChild(link)
+          link.click()
+        })
+      }).catch(() => { })
     }
   },
   filters: {

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov