networkList.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <!-- -->
  2. <template>
  3. <div class="m-core">
  4. <save-form
  5. :inline="true"
  6. class="searchForm"
  7. :model="searchForm"
  8. @submit="search"
  9. @reset="onReSet"
  10. save-key="commentManager-networkList"
  11. >
  12. <!-- 状态 指导老师 活动方案-->
  13. <el-form-item>
  14. <el-input
  15. v-model.trim="searchForm.search"
  16. @keyup.enter.native="search"
  17. clearable
  18. placeholder="请输入课程组名称 ID"
  19. ></el-input>
  20. </el-form-item>
  21. <el-form-item>
  22. <el-select
  23. placeholder="请选择分部"
  24. filterable
  25. v-model.trim="searchForm.organId"
  26. clearable
  27. >
  28. <el-option
  29. v-for="(item, index) in selects.branchs"
  30. :label="item.name"
  31. :value="item.id"
  32. :key="index"
  33. ></el-option>
  34. </el-select>
  35. </el-form-item>
  36. <el-form-item>
  37. <remote-search :commit="'setTeachers'" aria-placeholder="请选择指导老师" v-model.trim="searchForm.teacherId" />
  38. </el-form-item>
  39. <el-form-item>
  40. <remote-search
  41. :commit="'setEducations'"
  42. v-model.trim="searchForm.eduTeacherId"
  43. />
  44. </el-form-item>
  45. <el-form-item>
  46. <el-select
  47. v-model.trim="searchForm.practiceGroupType"
  48. clearable
  49. filterable
  50. placeholder="课程组类型"
  51. >
  52. <el-option
  53. v-for="(item, index) in practiceGroupType"
  54. :key="index"
  55. :value="item.value"
  56. :label="item.label"
  57. ></el-option>
  58. </el-select>
  59. </el-form-item>
  60. <el-form-item>
  61. <el-select
  62. placeholder="学员评分"
  63. v-model="searchForm.studentReview"
  64. clearable
  65. >
  66. <el-option
  67. v-for="index in 5"
  68. :label="index + '星'"
  69. :value="index"
  70. :key="index"
  71. ></el-option>
  72. </el-select>
  73. </el-form-item>
  74. <el-form-item>
  75. <el-select
  76. placeholder="老师评价"
  77. v-model="searchForm.hasReview"
  78. clearable
  79. >
  80. <el-option label="评价" value="1"></el-option>
  81. <el-option label="未评价" value="0"></el-option>
  82. </el-select>
  83. </el-form-item>
  84. <el-form-item>
  85. <el-select
  86. placeholder="教务评价"
  87. v-model="searchForm.courseReview"
  88. clearable
  89. >
  90. <el-option label="好" value="好"></el-option>
  91. <el-option label="中" value="中"></el-option>
  92. <el-option label="差" value="差"></el-option>
  93. </el-select>
  94. </el-form-item>
  95. <el-form-item>
  96. <el-select
  97. placeholder="是否到课"
  98. v-model="searchForm.hasArrived"
  99. clearable
  100. >
  101. <el-option label="到课" value="1"></el-option>
  102. <el-option label="未到" value="0"></el-option>
  103. </el-select>
  104. </el-form-item>
  105. <!-- homeWorkReplied -->
  106. <el-form-item>
  107. <el-select
  108. placeholder="布置作业"
  109. v-model="searchForm.assignHomework"
  110. clearable
  111. >
  112. <el-option label="是" value="1"></el-option>
  113. <el-option label="否" value="0"></el-option>
  114. </el-select>
  115. </el-form-item>
  116. <el-form-item>
  117. <el-date-picker
  118. :clearable="false"
  119. v-model="searchForm.month"
  120. type="daterange"
  121. value-format="yyyy-MM-dd"
  122. format="yyyy-MM-dd"
  123. range-separator="-"
  124. :picker-options="{
  125. firstDayOfWeek: 1,
  126. }"
  127. start-placeholder="开始日期"
  128. end-placeholder="结束日期"
  129. >
  130. ></el-date-picker
  131. >
  132. </el-form-item>
  133. <el-form-item>
  134. <el-button native-type="submit" type="danger">搜索</el-button>
  135. <el-button native-type="reset" type="primary">重置</el-button>
  136. <el-button
  137. type="primary"
  138. v-if="tableData.length > 0"
  139. v-permission="'export/courseReviews'"
  140. @click="netWorkExport"
  141. >导出</el-button>
  142. </el-form-item>
  143. </save-form>
  144. <div class="tableWrap">
  145. <el-table
  146. style="width: 100%"
  147. :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
  148. :data="tableData"
  149. >
  150. <el-table-column align="center" prop="organName" label="分部名称">
  151. <template slot-scope="scope">
  152. <copy-text>
  153. {{scope.row.organName}}
  154. </copy-text>
  155. </template>
  156. </el-table-column>
  157. <el-table-column align="center" prop="id" label="课程编号">
  158. <template slot-scope="scope">
  159. <copy-text>
  160. {{ scope.row.id }}
  161. </copy-text>
  162. </template>
  163. </el-table-column>
  164. <el-table-column
  165. align="center"
  166. prop="courseName"
  167. label="课程名称"
  168. >
  169. <template slot-scope="scope">
  170. <copy-text>
  171. {{ scope.row.courseName }}
  172. </copy-text>
  173. </template>
  174. </el-table-column>
  175. <el-table-column align="center" prop="courseName" label="上课日期">
  176. <template slot-scope="scope">
  177. <div>
  178. {{ scope.row.classDate | formatTimer }}
  179. </div>
  180. </template>
  181. </el-table-column>
  182. <el-table-column
  183. align="center"
  184. prop="subjectName"
  185. label="声部"
  186. ></el-table-column>
  187. <el-table-column
  188. align="center"
  189. prop="teacherName"
  190. label="指导老师"
  191. >
  192. <template slot-scope="scope">
  193. <copy-text>{{ scope.row.teacherName }}</copy-text>
  194. </template>
  195. </el-table-column>
  196. <el-table-column
  197. align="center"
  198. prop="eduTeacherName"
  199. label="乐团主管"
  200. >
  201. <template slot-scope="scope">
  202. <copy-text>{{ scope.row.eduTeacherName }}</copy-text>
  203. </template>
  204. </el-table-column>
  205. <el-table-column
  206. align="center"
  207. prop="type"
  208. label="课程组类型"
  209. width="100"
  210. >
  211. <template slot-scope="scope">
  212. <div>
  213. <p>{{ scope.row.practiceGroupType | comType }}</p>
  214. </div>
  215. </template>
  216. </el-table-column>
  217. <el-table-column align="center" label="学员评分">
  218. <template slot-scope="scope">
  219. <div>{{ scope.row.studentReview | studentReviewFilter }}</div>
  220. </template>
  221. </el-table-column>
  222. <el-table-column align="center" label="老师评价">
  223. <template slot-scope="scope">
  224. <div>{{ scope.row.reviewId > 0 ? "是" : "否" }}</div>
  225. </template>
  226. </el-table-column>
  227. <el-table-column align="center" label="布置作业">
  228. <template slot-scope="scope">
  229. <div>{{ scope.row.assignHomework ? "是" : "否" }}</div>
  230. </template>
  231. </el-table-column>
  232. <el-table-column
  233. align="center"
  234. prop="courseReview"
  235. label="教务评价"
  236. ></el-table-column>
  237. <el-table-column align="center" label="是否到课">
  238. <template slot-scope="scope">
  239. <div>{{ scope.row.attendanceId > 0 ? "到课" : "未到" }}</div>
  240. </template>
  241. </el-table-column>
  242. <el-table-column align="center" label="操作">
  243. <!-- v-permission="'evaluateList/look'" -->
  244. <template slot-scope="scope">
  245. <div>
  246. <el-button
  247. type="text"
  248. v-if="scope.row.reviewId"
  249. @click="lookDetail(scope.row)"
  250. >查看</el-button
  251. >
  252. </div>
  253. </template>
  254. </el-table-column>
  255. </el-table>
  256. <pagination
  257. save-key="commentManager-networkList"
  258. sync
  259. :total.sync="rules.total"
  260. :page.sync="rules.page"
  261. :limit.sync="rules.limit"
  262. :page-sizes="rules.page_size"
  263. @pagination="getList"
  264. />
  265. </div>
  266. <el-dialog
  267. title="网管课评价详情"
  268. :visible.sync="netWorkVisible"
  269. width="800px"
  270. >
  271. <div class="wrap">
  272. <div class="commitLeft">
  273. <div class="leftCell" v-if="teacherClassHeadInfo">
  274. <p>课程班名称</p>
  275. <p>{{ teacherClassHeadInfo.classGroupName }}</p>
  276. </div>
  277. <div class="leftCell" v-if="teacherClassHeadInfo">
  278. <p>上课时间</p>
  279. <p>
  280. {{
  281. teacherClassHeadInfo.classDate +
  282. " " +
  283. teacherClassHeadInfo.startClassTime +
  284. "-" +
  285. teacherClassHeadInfo.endClassTime
  286. }}
  287. </p>
  288. </div>
  289. <div class="leftCell" v-if="teacherClassHeadInfo">
  290. <p>乐器</p>
  291. <p>{{ teacherClassHeadInfo.subjectNames }}</p>
  292. </div>
  293. <div class="leftCell" v-if="teacherClassHeadInfo">
  294. <p>指导老师</p>
  295. <p>{{ teacherClassHeadInfo.bishopTeacher }}</p>
  296. </div>
  297. <div class="leftCell" v-if="teacherClassHeadInfo">
  298. <p>学员</p>
  299. <p>{{ teacherClassHeadInfo.studentNames }}</p>
  300. </div>
  301. <div class="leftCell" v-if="courseScheduleReview">
  302. <p>回访日期</p>
  303. <p>{{ courseScheduleReview.createTime.substring(0, 10) }}</p>
  304. </div>
  305. <div class="leftCell" v-if="courseScheduleReview">
  306. <p>是否双向沟通</p>
  307. <p>{{ courseScheduleReview.hasLiaison ? "是" : "否" }}</p>
  308. </div>
  309. <div class="leftCell" v-if="courseScheduleReview">
  310. <p>是否提交作业</p>
  311. <p>{{ courseScheduleReview.handHomework ? "是" : "否" }}</p>
  312. </div>
  313. <div class="leftCell" v-if="courseScheduleReview">
  314. <p>乐团主管</p>
  315. <p>{{ courseScheduleReview.eduTeacherName }}</p>
  316. </div>
  317. <div class="leftCell">
  318. <p>课程评价</p>
  319. <div class="chioseWrap">
  320. <el-tag
  321. :type="mychiose == '好' ? 'danger' : 'info'"
  322. @click="courseScheduleReview.courseReview = '好'"
  323. >好</el-tag
  324. >
  325. <el-tag
  326. :type="mychiose == '中' ? 'danger' : 'info'"
  327. @click="courseScheduleReview.courseReview = '中'"
  328. >中</el-tag
  329. >
  330. <el-tag
  331. :type="mychiose == '差' ? 'danger' : 'info'"
  332. @click="courseScheduleReview.courseReview = '差'"
  333. >差</el-tag
  334. >
  335. </div>
  336. </div>
  337. </div>
  338. <div class="commitRight">
  339. <div v-if="courseScheduleComplaints">
  340. <div class="rightCell">
  341. <p>学员评价</p>
  342. <div class="chioseWrap">
  343. <el-rate
  344. v-model="courseScheduleComplaints[0].score"
  345. disabled
  346. text-color="#ff9900"
  347. ></el-rate>
  348. </div>
  349. </div>
  350. <el-input
  351. type="textarea"
  352. v-model="courseScheduleComplaints[0].reason"
  353. disabled
  354. ></el-input>
  355. </div>
  356. <div v-if="courseScheduleReview">
  357. <div class="rightCell" v-if="courseScheduleReview">
  358. <p>教材内容</p>
  359. </div>
  360. <el-input
  361. type="textarea"
  362. disabled
  363. v-model="teachingMaterial"
  364. ></el-input>
  365. <div class="leftCell" v-if="courseScheduleReview">
  366. <p>曲目</p>
  367. <p>{{ courseScheduleReview.song }}</p>
  368. </div>
  369. <div class="rightCell" v-if="courseScheduleReview">
  370. <p>发音</p>
  371. <div class="chioseWrap">
  372. <el-rate
  373. v-model="courseScheduleReview.pronunciation"
  374. disabled
  375. text-color="#ff9900"
  376. ></el-rate>
  377. </div>
  378. </div>
  379. <div class="rightCell" v-if="courseScheduleReview">
  380. <p>节奏</p>
  381. <div class="chioseWrap">
  382. <el-rate
  383. v-model="courseScheduleReview.tempo"
  384. disabled
  385. text-color="#ff9900"
  386. ></el-rate>
  387. </div>
  388. </div>
  389. <div class="rightCell" v-if="courseScheduleReview">
  390. <p>乐理</p>
  391. <div class="chioseWrap">
  392. <el-rate
  393. v-model="courseScheduleReview.musicTheory"
  394. disabled
  395. text-color="#ff9900"
  396. ></el-rate>
  397. </div>
  398. </div>
  399. <div class="rightCell">
  400. <p>评价备注</p>
  401. </div>
  402. <el-input
  403. type="textarea"
  404. disabled
  405. v-model="courseScheduleReview.memo"
  406. v-if="courseScheduleReview"
  407. ></el-input>
  408. </div>
  409. </div>
  410. </div>
  411. <div slot="footer" class="dialog-footer">
  412. <el-button @click="netWorkVisible = false">取 消</el-button>
  413. <el-button type="primary" @click="submitNetwork">确定</el-button>
  414. </div>
  415. </el-dialog>
  416. </div>
  417. </template>
  418. <script>
  419. import { getToken } from "@/utils/auth";
  420. import qs from "qs";
  421. import axios from "axios";
  422. import pagination from "@/components/Pagination/index";
  423. import { practiceGroupType } from "@/utils/searchArray";
  424. import {
  425. getTeacher,
  426. getEmployeeOrgan,
  427. findEducationUsers,
  428. getPracticeGroup,
  429. getReviewInfo,
  430. updateReviewInfo,
  431. } from "@/api/buildTeam";
  432. export default {
  433. components: { pagination },
  434. data() {
  435. return {
  436. netWorkVisible: false,
  437. searchForm: {
  438. organId: null,
  439. teacherId: null,
  440. eduTeacherId: null,
  441. isFree: null,
  442. studentReview: null,
  443. hasHandHomework: null,
  444. hasReview: null,
  445. courseReview: null,
  446. hasArrived: null,
  447. homeWorkReplied: null,
  448. assignHomework: null,
  449. month: [],
  450. practiceGroupType: null,
  451. },
  452. practiceGroupType: practiceGroupType,
  453. organList: [],
  454. teacherList: [],
  455. educationList: [],
  456. tableData: [],
  457. rules: {
  458. // 分页规则
  459. limit: 10, // 限制显示条数
  460. page: 1, // 当前页
  461. total: 0, // 总条数
  462. page_size: [10, 20, 40, 50], // 选择限制显示条数
  463. },
  464. value: null,
  465. teacherClassHeadInfo: null,
  466. courseScheduleReview: null,
  467. courseScheduleComplaints: null,
  468. activeId: null,
  469. };
  470. },
  471. //生命周期 - 创建完成(可以访问当前this实例)
  472. created() {},
  473. //生命周期 - 挂载完成(可以访问DOM元素)
  474. mounted() {
  475. this.$store.dispatch("setBranchs");
  476. this.init();
  477. },
  478. activated() {
  479. this.init();
  480. },
  481. methods: {
  482. init() {
  483. // 获取默认月份
  484. if (this.searchForm.month.length <= 0) {
  485. var now = new Date();
  486. var startDate = new Date(
  487. Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
  488. )
  489. .toISOString()
  490. .slice(0, 10);
  491. // + " 00:00:00" + " 23:59:59"
  492. var endDate = new Date(
  493. Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
  494. )
  495. .toISOString()
  496. .slice(0, 10);
  497. this.searchForm.month = [];
  498. this.searchForm.month.push(startDate);
  499. this.searchForm.month.push(endDate);
  500. console.log(this.searchForm.month);
  501. }
  502. // 获取指导老师
  503. getTeacher({}).then((res) => {
  504. if (res.code == 200) {
  505. this.teacherList = res.data;
  506. }
  507. });
  508. // 获取分部
  509. getEmployeeOrgan().then((res) => {
  510. if (res.code == 200) {
  511. this.organList = res.data;
  512. }
  513. });
  514. // 获取教务
  515. findEducationUsers().then((res) => {
  516. if (res.code == 200) {
  517. this.educationList = res.data;
  518. }
  519. });
  520. this.getList();
  521. },
  522. getList() {
  523. let obj = {};
  524. obj.organId = this.searchForm.organId || null;
  525. obj.teacherId = this.searchForm.teacherId || null;
  526. obj.eduTeacherId = this.searchForm.eduTeacherId || null;
  527. obj.isFree = this.searchForm.isFree || null;
  528. obj.studentReview = this.searchForm.studentReview || null;
  529. obj.hasHandHomework = this.searchForm.hasHandHomework || null;
  530. obj.hasReview = this.searchForm.hasReview || null;
  531. obj.courseReview = this.searchForm.courseReview || null;
  532. obj.hasArrived = this.searchForm.hasArrived || null;
  533. obj.homeWorkReplied = this.searchForm.homeWorkReplied || null;
  534. obj.assignHomework = this.searchForm.assignHomework || null;
  535. obj.search = this.searchForm.search;
  536. obj.practiceGroupType = this.searchForm.practiceGroupType || null;
  537. if (this.searchForm.month && this.searchForm.month.length > 0) {
  538. obj.startTime = this.searchForm.month[0];
  539. obj.endTime = this.searchForm.month[1];
  540. } else {
  541. this.$message.error("请选择时间范围");
  542. return;
  543. }
  544. obj.page = this.rules.page;
  545. obj.rows = this.rules.limit;
  546. getPracticeGroup(obj).then((res) => {
  547. if (res.code == 200) {
  548. this.tableData = res.data.rows;
  549. this.rules.total = res.data.total;
  550. }
  551. });
  552. },
  553. lookDetail(row) {
  554. this.activeId = row.reviewId;
  555. getReviewInfo({ id: this.activeId }).then((res) => {
  556. if (res.code == 200) {
  557. this.teacherClassHeadInfo = res.data.teacherClassHeadInfo;
  558. this.courseScheduleReview = res.data.courseScheduleReview;
  559. this.courseScheduleComplaints = res.data.courseScheduleComplaints;
  560. // 教务评价详情
  561. // eduCourseReviewGetReviewInfo({id}).then(res=>{
  562. // if(res.code == 200){
  563. // }
  564. // })
  565. this.netWorkVisible = true;
  566. }
  567. });
  568. },
  569. submitNetwork() {
  570. if (!this.courseScheduleReview.courseReview) {
  571. this.$message.error("请评价课程");
  572. return;
  573. }
  574. updateReviewInfo({
  575. id: this.activeId,
  576. courseReview: this.courseScheduleReview.courseReview,
  577. }).then((res) => {
  578. if (res.code == 200) {
  579. this.$message.success("评价成功");
  580. this.netWorkVisible = false;
  581. this.getList();
  582. }
  583. });
  584. },
  585. search() {
  586. this.rules.page = 1;
  587. this.getList();
  588. },
  589. onReSet() {
  590. this.rules.page = 1;
  591. this.searchForm = {
  592. organId: null,
  593. teacherId: null,
  594. educationalTeacherId: null,
  595. isFree: null,
  596. studentReview: null,
  597. hasHandHomework: null,
  598. hasReview: null,
  599. courseReview: null,
  600. month: null,
  601. hasArrived: null,
  602. homeWorkReplied: null,
  603. assignHomework: null,
  604. practiceGroupType: null,
  605. };
  606. var now = new Date();
  607. var startDate = new Date(
  608. Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
  609. )
  610. .toISOString()
  611. .slice(0, 10);
  612. // + " 00:00:00" + " 23:59:59"
  613. var endDate = new Date(
  614. Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
  615. )
  616. .toISOString()
  617. .slice(0, 10);
  618. this.searchForm.month = [];
  619. this.searchForm.month.push(startDate);
  620. this.searchForm.month.push(endDate);
  621. this.getList();
  622. },
  623. netWorkExport() {
  624. let url = "/api-web/export/courseReviews";
  625. let obj = {};
  626. this.searchForm.organId ? (obj.organId = this.searchForm.organId) : null;
  627. this.searchForm.teacherId
  628. ? (obj.teacherId = this.searchForm.teacherId)
  629. : null;
  630. this.searchForm.eduTeacherId
  631. ? (obj.eduTeacherId = this.searchForm.eduTeacherId)
  632. : null;
  633. this.searchForm.isFree ? (obj.isFree = this.searchForm.isFree) : null;
  634. this.searchForm.studentReview
  635. ? (obj.studentReview = this.searchForm.studentReview)
  636. : null;
  637. this.searchForm.hasHandHomework
  638. ? (obj.hasHandHomework = this.searchForm.hasHandHomework)
  639. : null;
  640. this.searchForm.hasReview
  641. ? (obj.hasReview = this.searchForm.hasReview)
  642. : null;
  643. this.searchForm.courseReview
  644. ? (obj.courseReview = this.searchForm.courseReview)
  645. : null;
  646. this.searchForm.search ? (obj.search = this.searchForm.search) : null;
  647. this.searchForm.hasArrived
  648. ? (obj.hasArrived = this.searchForm.hasArrived)
  649. : null;
  650. this.searchForm.homeWorkReplied
  651. ? (obj.homeWorkReplied = this.searchForm.homeWorkReplied)
  652. : null;
  653. this.searchForm.assignHomework
  654. ? (obj.assignHomework = this.searchForm.assignHomework)
  655. : null;
  656. if (this.searchForm.month && this.searchForm.month.length > 0) {
  657. obj.startTime = this.searchForm.month[0];
  658. obj.endTime = this.searchForm.month[1];
  659. } else {
  660. this.$message.error("请选择时间范围");
  661. return;
  662. }
  663. this.searchForm.practiceGroupType
  664. ? (obj.practiceGroupType = this.searchForm.practiceGroupType)
  665. : null;
  666. const options = {
  667. method: "POST",
  668. headers: {
  669. Authorization: getToken(),
  670. },
  671. data: qs.stringify(obj),
  672. url,
  673. responseType: "blob",
  674. };
  675. this.$confirm("您确定导出评价列表", "提示", {
  676. confirmButtonText: "确定",
  677. cancelButtonText: "取消",
  678. type: "warning",
  679. })
  680. .then(() => {
  681. axios(options).then((res) => {
  682. let blob = new Blob([res.data], {
  683. // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
  684. type: "application/vnd.ms-excel;charset=utf-8",
  685. //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
  686. });
  687. let objectUrl = URL.createObjectURL(blob);
  688. let link = document.createElement("a");
  689. let nowTime = new Date();
  690. let ymd =
  691. nowTime.getFullYear() +
  692. "" +
  693. (nowTime.getMonth() + 1) +
  694. "" +
  695. nowTime.getDate() +
  696. "" +
  697. nowTime.getHours() +
  698. "" +
  699. nowTime.getMinutes();
  700. let fname = +ymd + "网管评价.xls"; //下载文件的名字
  701. link.href = objectUrl;
  702. link.setAttribute("download", fname);
  703. document.body.appendChild(link);
  704. link.click();
  705. });
  706. })
  707. .catch(() => {});
  708. },
  709. },
  710. filters: {
  711. studentReviewFilter(val) {
  712. let arr = ["未评价", "1星", "2星", "3星", "4星", "5星"];
  713. return arr[val];
  714. },
  715. },
  716. computed: {
  717. teachingMaterial() {
  718. if (
  719. this.courseScheduleReview &&
  720. this.courseScheduleReview.teachingMaterial
  721. ) {
  722. return this.courseScheduleReview.teachingMaterial;
  723. } else {
  724. return "";
  725. }
  726. },
  727. mychiose() {
  728. if (this.courseScheduleReview && this.courseScheduleReview.courseReview) {
  729. return this.courseScheduleReview.courseReview;
  730. } else {
  731. return "";
  732. }
  733. },
  734. },
  735. };
  736. </script>
  737. <style lang='scss' scoped>
  738. .wrap {
  739. display: flex;
  740. flex-direction: row;
  741. justify-content: space-between;
  742. .leftCell {
  743. width: 300px;
  744. display: flex;
  745. flex-direction: row;
  746. justify-content: space-between;
  747. align-items: center;
  748. line-height: 50px;
  749. // border-bottom: 1px solid #ccc;
  750. }
  751. .rightCell {
  752. width: 300px;
  753. display: flex;
  754. flex-direction: row;
  755. justify-content: flex-start;
  756. align-items: center;
  757. line-height: 50px;
  758. p {
  759. margin-right: 30px;
  760. }
  761. }
  762. }
  763. /deep/.el-tag {
  764. cursor: pointer;
  765. }
  766. </style>