networkList.vue 24 KB

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