index.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. <template>
  2. <div id="listOfhoursToBeReviewed">
  3. <search-box-new
  4. ref="searchBox"
  5. :formData="formData"
  6. :formList="formList"
  7. @search="search"
  8. @init="init"
  9. />
  10. <table-list
  11. :tableSets="tableSet"
  12. :tableData="tableData"
  13. :navText="navText"
  14. :loading="loading"
  15. >
  16. <template slot="btn" slot-scope="props">
  17. <el-button type="text" @click="jumpPage(props.scope.row)"
  18. >学时审核</el-button
  19. >
  20. </template>
  21. </table-list>
  22. <pagination
  23. :total="total"
  24. :pageSize="formData.pageSize"
  25. :currentPage="formData.pageNum"
  26. @handleSizeChange="handleSizeChange"
  27. @handleCurrentChange="handleCurrentChange"
  28. />
  29. </div>
  30. </template>
  31. <script>
  32. import searchBoxNew from "@/components/searchBoxNew";
  33. import tableList from "@/components/tableList";
  34. import pagination from "@/components/pagination";
  35. export default {
  36. name: "ListOfhoursToBeReviewed",
  37. components: { searchBoxNew, tableList, pagination },
  38. data() {
  39. return {
  40. loading: false, //当前表单加载是否加载动画
  41. navText: {
  42. title: "学时待审核列表",
  43. index: 0,
  44. ch: "条",
  45. num: false,
  46. border: true,
  47. choice: true,
  48. addHide: true,
  49. backFatherBtn: {
  50. status: false,
  51. title: "未定义",
  52. },
  53. },
  54. //搜索
  55. formList: [
  56. {
  57. prop: "educationTypeId",
  58. placeholder: "教育类型",
  59. scope: "educationType",
  60. },
  61. {
  62. prop: "businessId",
  63. placeholder: "业务层次",
  64. scope: "businessLevel",
  65. edu: "educationTypeId",
  66. },
  67. {
  68. prop: "schoolId",
  69. placeholder: "院校",
  70. scope: "schoolList",
  71. edu: "educationTypeId",
  72. },
  73. {
  74. prop: "majorId",
  75. placeholder: "专业",
  76. scope: "Professional",
  77. edu: "educationTypeId",
  78. },
  79. {
  80. prop: "profileStatus",
  81. placeholder: "填写资料审核状态",
  82. scope: "select",
  83. options: [
  84. {
  85. label: "通过",
  86. value: 1,
  87. },
  88. {
  89. label: "不通过",
  90. value: 3,
  91. },
  92. {
  93. label: "待审核",
  94. value: 2,
  95. },
  96. ],
  97. },
  98. {
  99. prop1: "classStartTime",
  100. prop2: "classEndTime",
  101. placeholder1: "班级有效期开始时间",
  102. placeholder2: "班级有效期结束时间",
  103. scope: "moreDataPicker",
  104. },
  105. {
  106. prop: "searchKey",
  107. placeholder: "请输入姓名/身份证",
  108. },
  109. ],
  110. formData: {
  111. profileStatus: "",
  112. periodStatus: 2,
  113. status: 1,
  114. pageSize: 10,
  115. pageNum: 1,
  116. },
  117. // 表单
  118. tableSet: [
  119. {
  120. label: "学员编码",
  121. prop: "studentCode",
  122. hidden: true,
  123. width: "180px",
  124. },
  125. {
  126. label: "学员姓名",
  127. prop: "realName",
  128. hidden: true,
  129. },
  130. {
  131. label: "学员身份证",
  132. prop: "idCard",
  133. hidden: true,
  134. width: "180px",
  135. },
  136. {
  137. label: "绑定手机号码",
  138. prop: "telPhone",
  139. hidden: true,
  140. width: "130px",
  141. },
  142. {
  143. label: "所购商品",
  144. prop: "goodsName",
  145. hidden: true,
  146. width: "200px",
  147. },
  148. {
  149. label: "所在班级",
  150. prop: "className",
  151. hidden: true,
  152. width: "200px",
  153. },
  154. {
  155. label: "班级有效期",
  156. prop1: "classStartTime",
  157. prop2: "classEndTime",
  158. hidden: true,
  159. scope: "TimeLists",
  160. width: "310px",
  161. },
  162. {
  163. label: "学时",
  164. prop: "classHours",
  165. hidden: true,
  166. },
  167. {
  168. label: "视频学习进度(节)",
  169. prop1: "stuAllNum",
  170. prop2: "secAllNum",
  171. hidden: true,
  172. scope: "computer",
  173. width: "160px",
  174. },
  175. {
  176. label: "做题进度(章卷)",
  177. prop1: "recordNum",
  178. prop2: "examNum",
  179. hidden: true,
  180. scope: "computer",
  181. width: "160px",
  182. },
  183. {
  184. label: "学习开始时间",
  185. prop: "startTime",
  186. hidden: true,
  187. scope: "aTimeList",
  188. width: "180px",
  189. },
  190. {
  191. label: "学习结束时间",
  192. prop: "endTime",
  193. hidden: true,
  194. scope: "aTimeList",
  195. width: "180px",
  196. },
  197. {
  198. label: "学习有效期",
  199. prop1: "studyStartTime",
  200. prop2: "studyEndTime",
  201. hidden: true,
  202. scope: "TimeLists",
  203. width: "310px",
  204. },
  205. {
  206. label: "填写资料审核状态",
  207. prop: "profileStatus",
  208. hidden: true,
  209. scope: "isOptions",
  210. width: "140px",
  211. options: [
  212. {
  213. label: "审核通过",
  214. value: 1,
  215. },
  216. {
  217. label: "待审核",
  218. value: 2,
  219. },
  220. {
  221. label: "审核不通过",
  222. value: 3,
  223. },
  224. ],
  225. },
  226. {
  227. label: "学时审批状态",
  228. prop: "allStatus",
  229. hidden: true,
  230. scope: "statusPeriod",
  231. width: "130px",
  232. },
  233. {
  234. label: "待重修(视频节和题卷)",
  235. prop: "waitRebuildNum",
  236. prop1: "rebuildNum",
  237. hidden: true,
  238. scope: "againStudent",
  239. width: "160px",
  240. },
  241. ],
  242. tableData: [], //表单数据
  243. total: 0, //一共多少条
  244. };
  245. },
  246. mounted() {
  247. this.search();
  248. },
  249. activated() {
  250. this.search();
  251. },
  252. methods: {
  253. jumpPage(v) {
  254. this.$router.push({
  255. path: "classHoursReview",
  256. query: {
  257. id: v.gradeId,
  258. userId: v.userId,
  259. goodsId: v.goodsId,
  260. },
  261. });
  262. },
  263. search(int) {
  264. this.loading = true;
  265. if (int === 1) {
  266. this.formData.pageNum = 1;
  267. }
  268. if (int === 2) {
  269. this.formData = {
  270. profileStatus: "",
  271. periodStatus: 2,
  272. status: 1,
  273. pageSize: 10,
  274. pageNum: 1,
  275. };
  276. }
  277. if (int === 3) {
  278. this.formData.pageNum = 1;
  279. }
  280. var data = JSON.parse(JSON.stringify(this.formData));
  281. if (this.formData.classStartTime) {
  282. data.classStartTime = data.classStartTime / 1000;
  283. }
  284. if (this.formData.classEndTime) {
  285. data.classEndTime = data.classEndTime / 1000;
  286. }
  287. this.$api
  288. .inquireGradegradelistUserPeriod(data)
  289. .then((res) => {
  290. this.tableData = res.rows;
  291. this.total = res.total;
  292. this.navText.index = res.total;
  293. })
  294. .finally(() => {
  295. this.loading = false;
  296. });
  297. },
  298. init() {
  299. this.search(2);
  300. },
  301. handleSizeChange(v) {
  302. this.formData.pageSize = v;
  303. this.formData.pageNum = 1;
  304. this.search();
  305. },
  306. handleCurrentChange(v) {
  307. this.formData.pageNum = v;
  308. this.search();
  309. },
  310. },
  311. };
  312. </script>
  313. <style lang="less" scoped>
  314. /deep/.el-button {
  315. border-radius: 8px;
  316. }
  317. /deep/.el-dialog {
  318. border-radius: 8px;
  319. .el-dialog__header {
  320. padding: 0;
  321. .hearders {
  322. height: 40px;
  323. display: flex;
  324. align-items: center;
  325. justify-content: space-between;
  326. padding: 0px 18px 0px 20px;
  327. border-bottom: 1px solid #e2e2e2;
  328. .leftTitle {
  329. font-size: 14px;
  330. font-weight: bold;
  331. color: #2f4378;
  332. }
  333. .rightBoxs {
  334. display: flex;
  335. align-items: center;
  336. img {
  337. width: 14px;
  338. height: 14px;
  339. margin-left: 13px;
  340. cursor: pointer;
  341. }
  342. }
  343. }
  344. }
  345. .el-dialog__footer {
  346. padding: 0;
  347. .dialog-footer {
  348. padding: 0px 40px;
  349. height: 70px;
  350. border-top: 1px solid #e2e2e2;
  351. display: flex;
  352. align-items: center;
  353. justify-content: flex-end;
  354. }
  355. }
  356. }
  357. .imgBox {
  358. width: 100%;
  359. // height: 210px;
  360. border: 1px solid #e2e2e2;
  361. border-radius: 8px;
  362. padding: 8px 8px 3px;
  363. display: flex;
  364. flex-direction: column;
  365. align-items: center;
  366. .imgLabel {
  367. flex: 1;
  368. width: 100%;
  369. border: 1px dotted #e2e2e2;
  370. color: #999;
  371. font-size: 14px;
  372. cursor: pointer;
  373. border-radius: 8px;
  374. .msPhoto {
  375. display: flex;
  376. justify-content: center;
  377. align-items: center;
  378. max-width: 100%;
  379. max-height: 270px;
  380. img {
  381. max-width: 100%;
  382. max-height: 270px;
  383. }
  384. }
  385. .imgbbx {
  386. display: flex;
  387. flex-direction: column;
  388. align-items: center;
  389. justify-content: center;
  390. width: 100%;
  391. height: 100%;
  392. i {
  393. font-weight: bold;
  394. margin: 14px 0;
  395. font-size: 24px;
  396. }
  397. }
  398. }
  399. p {
  400. margin: 5px 0px;
  401. }
  402. }
  403. </style>