ImportPaper.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. <template>
  2. <section class="content">
  3. <div class="box-body">
  4. <el-form
  5. :inline="true"
  6. :model="formSearch"
  7. label-position="right"
  8. label-width="90px"
  9. >
  10. <el-row>
  11. <el-col :span="6">
  12. <el-form-item label="课程名称">
  13. <el-select
  14. class="search_width"
  15. v-model="formSearch.courseNo"
  16. filterable
  17. :remote-method="getCourses"
  18. remote
  19. clearable
  20. placeholder="请输入"
  21. size="small"
  22. >
  23. <el-option
  24. v-for="item in courseInfoSelect"
  25. :label="item.courseInfo"
  26. :value="item.courseNo"
  27. :key="item.courseNo"
  28. >
  29. </el-option>
  30. </el-select>
  31. </el-form-item>
  32. </el-col>
  33. <el-col :span="6">
  34. <el-form-item label="试卷名称">
  35. <el-input
  36. class="search_width"
  37. v-model="formSearch.name"
  38. placeholder="试卷名称"
  39. size="small"
  40. ></el-input>
  41. </el-form-item>
  42. </el-col>
  43. <el-col :span="6">
  44. <el-form-item label="层次">
  45. <el-select
  46. class="search_width"
  47. v-model="formSearch.level"
  48. clearable
  49. placeholder="请选择"
  50. size="small"
  51. >
  52. <el-option
  53. v-for="item in levelList"
  54. :label="item.label"
  55. :value="item.value"
  56. :key="item.value"
  57. >
  58. </el-option>
  59. </el-select>
  60. </el-form-item>
  61. </el-col>
  62. <el-col :span="6">
  63. <div class="search_down">
  64. <el-button size="small" type="primary" @click="searchImportPaper"
  65. ><i class="el-icon-search"></i> 查询</el-button
  66. >
  67. <el-button size="small" type="primary" @click="impPaper"
  68. ><i class="el-icon-upload"></i> 导入</el-button
  69. >
  70. <el-dropdown class="button_left">
  71. <el-button type="primary" size="small">
  72. 更多 <i class="el-icon-arrow-down el-icon--right"></i>
  73. </el-button>
  74. <el-dropdown-menu slot="dropdown">
  75. <el-dropdown-item>
  76. <el-button size="small" type="primary" @click="expQuesType"
  77. >试题分布</el-button
  78. >
  79. </el-dropdown-item>
  80. <el-dropdown-item>
  81. <el-button size="small" type="primary" @click="openQuesPro"
  82. >试卷属性</el-button
  83. >
  84. </el-dropdown-item>
  85. <el-dropdown-item>
  86. <el-button size="small" type="primary" @click="openQuesProC"
  87. >课程属性</el-button
  88. >
  89. </el-dropdown-item>
  90. </el-dropdown-menu>
  91. </el-dropdown>
  92. </div>
  93. </el-col>
  94. </el-row>
  95. <el-row>
  96. <el-form-item class="pull-left">
  97. <el-button size="small" type="primary" @click="useBasePaper"
  98. ><i class="el-icon-star-on"></i> 批量使用原卷</el-button
  99. >
  100. <el-button size="small" type="danger" @click="batchDeletePaper"
  101. ><i class="el-icon-delete"></i> 批量删除原卷</el-button
  102. >
  103. </el-form-item>
  104. </el-row>
  105. </el-form>
  106. <el-table
  107. v-loading="loading"
  108. element-loading-text="拼命加载中"
  109. :data="tableData"
  110. border
  111. style="width: 100%"
  112. @selection-change="selectChange"
  113. >
  114. <el-table-column type="selection" width="50"></el-table-column>
  115. <el-table-column label="课程名称" width="180">
  116. <template slot-scope="scope">
  117. <span>{{ scope.row.course.name }}</span>
  118. </template>
  119. </el-table-column>
  120. <el-table-column label="课程代码" width="80">
  121. <template slot-scope="scope">
  122. <span>{{ scope.row.course.code }}</span>
  123. </template>
  124. </el-table-column>
  125. <el-table-column label="试卷名称" width="180">
  126. <template slot-scope="scope">
  127. <span>{{ scope.row.name }}</span>
  128. </template>
  129. </el-table-column>
  130. <el-table-column label="试卷总分" width="80">
  131. <template slot-scope="scope">
  132. <span>{{ scope.row.totalScore }}</span>
  133. </template>
  134. </el-table-column>
  135. <el-table-column label="试卷难度" width="80">
  136. <template slot-scope="scope">
  137. <span>{{ scope.row.difficultyDegree }}</span>
  138. </template>
  139. </el-table-column>
  140. <el-table-column label="大题数量" width="80">
  141. <template slot-scope="scope">
  142. <span>{{ scope.row.paperDetailCount }}</span>
  143. </template>
  144. </el-table-column>
  145. <el-table-column label="录入员" width="150">
  146. <template slot-scope="scope">
  147. <span>{{ scope.row.creator }}</span>
  148. </template>
  149. </el-table-column>
  150. <el-table-column label="创建时间" width="153">
  151. <template slot-scope="scope">
  152. <span>{{ scope.row.createTime }}</span>
  153. </template>
  154. </el-table-column>
  155. <el-table-column label="修改人" width="150">
  156. <template slot-scope="scope">
  157. <span>{{ scope.row.lastModifyName }}</span>
  158. </template>
  159. </el-table-column>
  160. <el-table-column label="操作" width="180" fixed="right">
  161. <template slot-scope="scope">
  162. <div class="operate_left">
  163. <el-button
  164. size="mini"
  165. type="primary"
  166. @click="editImportPaper(scope.row)"
  167. ><i class="el-icon-edit"></i>编辑</el-button
  168. >
  169. <el-dropdown class="button_left">
  170. <el-button type="primary" size="mini">
  171. 更多 <i class="el-icon-arrow-down el-icon--right"></i>
  172. </el-button>
  173. <el-dropdown-menu slot="dropdown">
  174. <el-dropdown-item>
  175. <el-button
  176. size="mini"
  177. type="primary"
  178. @click="copyImportPaper(scope.row)"
  179. ><i class="el-icon-tickets"></i> 复制</el-button
  180. >
  181. </el-dropdown-item>
  182. <el-dropdown-item>
  183. <el-button
  184. size="mini"
  185. type="primary"
  186. @click="exportOriginalPaper(scope.row)"
  187. ><i class="el-icon-download"></i> 下载</el-button
  188. >
  189. </el-dropdown-item>
  190. <el-dropdown-item>
  191. <el-button
  192. size="mini"
  193. type="danger"
  194. @click="deleteImportPaper(scope.row)"
  195. ><i class="el-icon-delete"></i> 删除</el-button
  196. >
  197. </el-dropdown-item>
  198. </el-dropdown-menu>
  199. </el-dropdown>
  200. </div>
  201. </template>
  202. </el-table-column>
  203. </el-table>
  204. <div class="page pull-right">
  205. <el-pagination
  206. @current-change="handleCurrentChange"
  207. :current-page="currentPage"
  208. :page-size="pageSize"
  209. layout="total, prev, pager, next, jumper"
  210. :total="total"
  211. >
  212. </el-pagination>
  213. </div>
  214. </div>
  215. <el-dialog
  216. title="克隆试卷"
  217. :visible.sync="copyPaperDialog"
  218. v-loading.body="cloneLoading"
  219. width="500px"
  220. >
  221. <el-form
  222. :model="copyPaperForm"
  223. ref="copyPaperForm"
  224. :rules="rules"
  225. label-position="right"
  226. label-width="120px"
  227. inline-message
  228. >
  229. <el-row>
  230. <el-form-item label="试卷名称" prop="paperName">
  231. <el-input
  232. class="dialog_input_width"
  233. v-model="copyPaperForm.paperName"
  234. placeholder="请输试卷名称"
  235. ></el-input>
  236. </el-form-item>
  237. </el-row>
  238. <el-row>
  239. <el-form-item label="课程名称" prop="courseNo">
  240. <el-select
  241. class="dialog_input_width"
  242. v-model="copyPaperForm.courseNo"
  243. :remote-method="getCourses"
  244. remote
  245. filterable
  246. clearable
  247. placeholder="全部"
  248. >
  249. <el-option
  250. v-for="item in courseInfoSelect"
  251. :label="item.courseInfo"
  252. :value="item.courseNo"
  253. :key="item.courseNo"
  254. >
  255. </el-option>
  256. </el-select>
  257. </el-form-item>
  258. </el-row>
  259. <el-row class="margin_top_10 margin_left_120">
  260. <el-button type="primary" @click="submitCopy('copyPaperForm')"
  261. >保 存</el-button
  262. >
  263. <el-button @click="resetForm2('copyPaperForm')">重 置</el-button>
  264. <el-button @click="back2('copyPaperForm')" type="success"
  265. ><i class="el-icon-caret-left"></i> 返 回</el-button
  266. >
  267. </el-row>
  268. </el-form>
  269. </el-dialog>
  270. <el-dialog
  271. title="属性修改"
  272. :visible.sync="quesPropertyDialog"
  273. width="500px"
  274. >
  275. <el-form
  276. :loading="quesLoading"
  277. label-position="right"
  278. label-width="120px"
  279. >
  280. <el-row>
  281. <el-form-item label="难 度">
  282. <el-select v-model="difficultyDegree" class="dialog_input_width">
  283. <el-option
  284. v-for="item in difficultyDegreeList"
  285. :label="item.label"
  286. :value="item.value"
  287. :key="item.value"
  288. ></el-option>
  289. </el-select>
  290. </el-form-item>
  291. </el-row>
  292. <el-row>
  293. <el-form-item label="公开度">
  294. <el-select v-model="publicity" class="dialog_input_width">
  295. <el-option
  296. v-for="item in publicityList"
  297. :label="item.label"
  298. :value="item.value"
  299. :key="item.value"
  300. ></el-option>
  301. </el-select>
  302. </el-form-item>
  303. </el-row>
  304. <el-row class="margin_top_10 margin_left_120">
  305. <el-button
  306. type="primary"
  307. @click="submitUpdate()"
  308. v-loading.fullscreen.lock="quesLoading"
  309. >保 存</el-button
  310. >
  311. <el-button @click="resetForm">重 置</el-button>
  312. <el-button @click="closePropertyDialog" type="success"
  313. ><i class="el-icon-caret-left"></i> 返 回</el-button
  314. >
  315. </el-row>
  316. </el-form>
  317. </el-dialog>
  318. </section>
  319. </template>
  320. <script>
  321. import { CORE_API, QUESTION_API } from "@/constants/constants";
  322. import { LEVEL_TYPE, PUBLICITY_LIST } from "../constants/constants";
  323. import { mapState } from "vuex";
  324. export default {
  325. data() {
  326. return {
  327. courseLoading: false,
  328. quesLoading: false,
  329. formSearch: {
  330. courseNo: null,
  331. specialtyNo: null,
  332. level: "",
  333. name: ""
  334. },
  335. tableData: [],
  336. levelList: LEVEL_TYPE,
  337. currentPage: 1,
  338. pageSize: 10,
  339. isClear: 0,
  340. total: 0,
  341. loading: false,
  342. courseList: [],
  343. options: [],
  344. selectedPaperIds: [],
  345. cloneLoading: false,
  346. copyPaperDialog: false,
  347. copyPaperForm: {
  348. paperName: "",
  349. courseNo: null
  350. },
  351. copyPaperId: "",
  352. quesPropertyDialog: false,
  353. difficultyDegree: 0.1,
  354. publicity: true,
  355. updateType: "",
  356. difficultyDegreeList: [
  357. { label: 0.1, value: 0.1 },
  358. { label: 0.2, value: 0.2 },
  359. { label: 0.3, value: 0.3 },
  360. { label: 0.4, value: 0.4 },
  361. { label: 0.5, value: 0.5 },
  362. { label: 0.6, value: 0.6 },
  363. { label: 0.7, value: 0.7 },
  364. { label: 0.8, value: 0.8 },
  365. { label: 0.9, value: 0.9 },
  366. { label: 1.0, value: 1.0 }
  367. ],
  368. publicityList: PUBLICITY_LIST,
  369. rules: {
  370. paperName: [
  371. { required: true, message: "请输试卷名称", trigger: "blur" }
  372. ],
  373. courseNo: [
  374. { required: true, message: "请选择课程名称", trigger: "change" }
  375. ]
  376. }
  377. };
  378. },
  379. methods: {
  380. aaa() {
  381. console.log("aaa");
  382. },
  383. searchImportPaper() {
  384. this.loading = true;
  385. var url =
  386. QUESTION_API + "/importPaper/" + this.currentPage + "/" + this.pageSize;
  387. this.$http.get(url, { params: this.formSearch }).then(response => {
  388. this.tableData = response.data.content;
  389. this.total = response.data.totalElements;
  390. this.loading = false;
  391. });
  392. },
  393. handleCurrentChange(val) {
  394. this.currentPage = val;
  395. this.searchImportPaper();
  396. },
  397. editImportPaper(row) {
  398. sessionStorage.setItem("import_paper_courseNo", this.formSearch.courseNo);
  399. sessionStorage.setItem(
  400. "import_paper_specialtyNo",
  401. this.formSearch.specialtyNo
  402. );
  403. sessionStorage.setItem("import_paper_currentPage", this.currentPage);
  404. this.$router.push({
  405. path: "/edit_paper/" + row.id + "/import_paper"
  406. });
  407. },
  408. deleteImportPaper(row) {
  409. this.$confirm("确认删除试卷吗?", "提示", {
  410. type: "warning"
  411. }).then(() => {
  412. this.loading = true;
  413. this.$http.delete(QUESTION_API + "/paper/" + row.id).then(
  414. () => {
  415. this.$notify({
  416. message: "删除成功",
  417. type: "success"
  418. });
  419. this.searchImportPaper();
  420. },
  421. error => {
  422. this.$notify({
  423. message: error.response.data.msg,
  424. type: "error"
  425. });
  426. this.loading = false;
  427. }
  428. );
  429. });
  430. },
  431. selectChange(row) {
  432. this.selectedPaperIds = [];
  433. row.forEach(element => {
  434. this.selectedPaperIds.push(element.id);
  435. });
  436. },
  437. batchDeletePaper() {
  438. var paperIds = this.paperIds;
  439. if (this.selectedPaperIds.length != 0) {
  440. this.$confirm("确认删除试卷吗?", "提示", {
  441. type: "warning"
  442. }).then(() => {
  443. this.loading = true;
  444. this.$http.delete(QUESTION_API + "/paper/" + paperIds).then(
  445. () => {
  446. this.$notify({
  447. message: "删除成功",
  448. type: "success"
  449. });
  450. this.searchImportPaper();
  451. this.selectedPaperIds = [];
  452. },
  453. error => {
  454. this.$notify({
  455. message: error.response.data.msg,
  456. type: "error"
  457. });
  458. this.loading = false;
  459. }
  460. );
  461. });
  462. } else {
  463. this.$notify({
  464. message: "请勾选删除的数据",
  465. type: "warning"
  466. });
  467. }
  468. },
  469. //导入试卷
  470. impPaper() {
  471. console.log("导入试卷新页面!");
  472. this.$router.push({
  473. path: "/questions/import_paper_info"
  474. });
  475. },
  476. //查询所有课程
  477. getCourses(query) {
  478. console.log("查询课程!");
  479. if (query) {
  480. this.courseLoading = true;
  481. this.$http
  482. .get(CORE_API + "/course/query?name=" + query + "&enable=true")
  483. .then(response => {
  484. this.courseList = response.data;
  485. this.courseLoading = false;
  486. });
  487. } else {
  488. this.courseList = [];
  489. }
  490. },
  491. useBasePaper() {
  492. if (this.selectedPaperIds.length == 0) {
  493. this.$notify({
  494. message: "请勾选使用的试卷",
  495. type: "warning"
  496. });
  497. } else {
  498. this.loading = true;
  499. this.$http
  500. .put(QUESTION_API + "/useBasePaper/" + this.selectedPaperIds)
  501. .then(
  502. response => {
  503. console.log("come in response:", response);
  504. if (!response.data.desc) {
  505. this.$notify({
  506. message: "操作成功",
  507. type: "success"
  508. });
  509. } else {
  510. this.$notify({
  511. message: response.data.desc,
  512. type: "error"
  513. });
  514. }
  515. this.loading = false;
  516. },
  517. error => {
  518. var message = error.response.body.desc;
  519. var err = message
  520. .replace("[", "")
  521. .replace("]", "")
  522. .substring(message.indexOf("desc") + 4);
  523. this.$notify({
  524. message: err,
  525. type: "error"
  526. });
  527. this.loading = false;
  528. }
  529. );
  530. }
  531. },
  532. //克隆试卷
  533. copyImportPaper(row) {
  534. this.copyPaperForm.paperName = "";
  535. this.copyPaperForm.courseNo = "";
  536. this.copyPaperId = row.id;
  537. this.copyPaperDialog = true;
  538. },
  539. //保存
  540. submitCopy(formData) {
  541. this.$refs[formData].validate(valid => {
  542. if (valid) {
  543. this.cloneLoading = true;
  544. this.$http
  545. .post(
  546. QUESTION_API +
  547. "/clonePaper/" +
  548. this.copyPaperId +
  549. "/" +
  550. this.copyPaperForm.paperName +
  551. "/" +
  552. this.copyPaperForm.courseNo
  553. )
  554. .then(() => {
  555. this.$notify({
  556. message: "复制成功",
  557. type: "success"
  558. });
  559. this.cloneLoading = false;
  560. this.copyPaperDialog = false;
  561. this.searchImportPaper();
  562. })
  563. .catch(() => {
  564. this.$notify({
  565. type: "error",
  566. message: "试卷名称重复,请重新命名"
  567. });
  568. this.cloneLoading = false;
  569. });
  570. } else {
  571. return false;
  572. }
  573. });
  574. },
  575. removeItem() {
  576. sessionStorage.removeItem("import_paper_courseNo");
  577. sessionStorage.removeItem("import_paper_specialtyNo");
  578. sessionStorage.removeItem("import_paper_currentPage");
  579. },
  580. expQuesType() {
  581. if (!this.formSearch.courseNo) {
  582. this.$notify({
  583. message: "请输入课程",
  584. type: "warning"
  585. });
  586. return;
  587. }
  588. var key = this.user.key;
  589. var token = this.user.token;
  590. window.location.href =
  591. QUESTION_API +
  592. "/paper/export/course/question/" +
  593. this.formSearch.courseNo +
  594. "?$key=" +
  595. key +
  596. "&$token=" +
  597. token;
  598. },
  599. exportOriginalPaper(row) {
  600. var key = this.user.key;
  601. var token = this.user.token;
  602. //window.location.href = QUESTION_API+"/originalPaper/export/"+row.id+"/"+ this.user.displayName;
  603. window.open(
  604. QUESTION_API +
  605. "/originalPaper/export/" +
  606. row.id +
  607. "/" +
  608. this.user.displayName +
  609. "?$key=" +
  610. key +
  611. "&$token=" +
  612. token
  613. );
  614. },
  615. openInit() {
  616. this.difficultyDegree = 0.1;
  617. this.publicity = true;
  618. this.quesPropertyDialog = true;
  619. },
  620. //重置
  621. resetForm() {
  622. this.difficultyDegree = 0.1;
  623. this.publicity = true;
  624. },
  625. resetForm2(formData) {
  626. this.copyPaperForm.paperName = "";
  627. this.copyPaperForm.courseNo = "";
  628. this.$refs[formData].clearValidate();
  629. },
  630. back2(formData) {
  631. this.resetForm2(formData);
  632. this.copyPaperDialog = false;
  633. },
  634. //试卷修改属性 openQuesPro
  635. openQuesPro() {
  636. if (!this.selectedPaperIds || this.selectedPaperIds.length < 1) {
  637. this.$notify({
  638. message: "请选择试卷",
  639. type: "warning"
  640. });
  641. return;
  642. }
  643. this.updateType = "paper";
  644. this.openInit();
  645. },
  646. //课程修改属性 openQuesProC
  647. openQuesProC() {
  648. if (!this.formSearch.courseNo) {
  649. this.$notify({
  650. message: "请输入课程",
  651. type: "warning"
  652. });
  653. return;
  654. }
  655. this.updateType = "course";
  656. this.openInit();
  657. },
  658. closePropertyDialog() {
  659. this.quesPropertyDialog = false;
  660. },
  661. submitUpdate() {
  662. console.log("aaa");
  663. if (this.updateType == "paper") {
  664. console.log("paper");
  665. this.updateQuesPropertyByPaper();
  666. }
  667. if (this.updateType == "course") {
  668. console.log("course");
  669. this.updateQuesPropertyByCourse();
  670. }
  671. },
  672. updateQuesPropertyByPaper() {
  673. this.quesLoading = true;
  674. this.$http
  675. .put(
  676. QUESTION_API +
  677. "/question/updatePro/paperIds/" +
  678. this.selectedPaperIds +
  679. "/" +
  680. this.difficultyDegree +
  681. "/" +
  682. this.publicity
  683. )
  684. .then(() => {
  685. this.$notify({
  686. message: "更新成功",
  687. type: "success"
  688. });
  689. this.searchImportPaper();
  690. this.quesLoading = false;
  691. this.closePropertyDialog();
  692. })
  693. .catch(() => {
  694. this.$notify({
  695. type: "error",
  696. message: "更新失败"
  697. });
  698. this.quesLoading = false;
  699. this.closePropertyDialog();
  700. });
  701. },
  702. updateQuesPropertyByCourse() {
  703. this.quesLoading = true;
  704. var orgId = this.user.rootOrgId;
  705. this.$http
  706. .put(
  707. QUESTION_API +
  708. "/question/updatePro/courseCode/" +
  709. this.formSearch.courseNo +
  710. "/" +
  711. this.difficultyDegree +
  712. "/" +
  713. this.publicity +
  714. "/" +
  715. orgId
  716. )
  717. .then(() => {
  718. this.$notify({
  719. message: "更新成功",
  720. type: "success"
  721. });
  722. this.quesLoading = false;
  723. this.closePropertyDialog();
  724. })
  725. .catch(() => {
  726. this.$notify({
  727. type: "error",
  728. message: "更新失败"
  729. });
  730. this.quesLoading = false;
  731. this.closePropertyDialog();
  732. });
  733. }
  734. },
  735. computed: {
  736. paperIds() {
  737. var paperIds = "";
  738. for (let paperId of this.selectedPaperIds) {
  739. if (!paperIds) {
  740. paperIds += paperId;
  741. } else {
  742. paperIds += "," + paperId;
  743. }
  744. }
  745. return paperIds;
  746. },
  747. courseInfoSelect() {
  748. var courseList = [];
  749. for (let course of this.courseList) {
  750. var courseInfo = course.name + "(" + course.code + ")";
  751. var courseNo = course.code;
  752. courseList.push({ courseNo: courseNo, courseInfo: courseInfo });
  753. }
  754. return courseList;
  755. },
  756. ...mapState({ user: state => state.user })
  757. },
  758. created() {
  759. this.isClear = this.$route.params.isClear;
  760. if (this.isClear == 0 || !this.isClear) {
  761. this.removeItem();
  762. } else {
  763. console.log(
  764. "sessionStorage.getItem('import_paper_specialtyNo'):",
  765. sessionStorage.getItem("import_paper_specialtyNo")
  766. );
  767. this.formSearch.courseNo =
  768. sessionStorage.getItem("import_paper_courseNo") == "null"
  769. ? ""
  770. : sessionStorage.getItem("import_paper_courseNo");
  771. this.formSearch.specialtyNo =
  772. sessionStorage.getItem("import_paper_specialtyNo") == "null"
  773. ? ""
  774. : sessionStorage.getItem("import_paper_specialtyNo");
  775. this.currentPage =
  776. sessionStorage.getItem("import_paper_currentPage") == null
  777. ? 1
  778. : parseInt(sessionStorage.getItem("import_paper_currentPage"));
  779. }
  780. this.searchImportPaper();
  781. }
  782. };
  783. </script>
  784. <style scoped src="../styles/Common.css"></style>