school.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. <template>
  2. <div
  3. class="pb_content"
  4. style="
  5. overflow: auto;
  6. margin: 0px;
  7. box-sizing: border-box;
  8. width: 100%;
  9. height: 100%;
  10. "
  11. >
  12. <div>
  13. <div
  14. class="pb_content_body"
  15. style="
  16. background: #fff;
  17. padding: 0px 25px;
  18. box-sizing: border-box;
  19. border-radius: 5px;
  20. "
  21. >
  22. <div class="pb_head">
  23. <span>学校管理</span>
  24. <!-- <span>备注:教师可以根据课程、班级条件筛选学生并查看该学生信息</span> -->
  25. </div>
  26. <div class="student_head">
  27. <div class="student_search">
  28. <el-button
  29. size="small"
  30. type="primary"
  31. @click="dialogVisible = true"
  32. v-if="step == 0"
  33. >添加学校</el-button
  34. >
  35. </div>
  36. </div>
  37. <div class="student_table">
  38. <el-table
  39. ref="table"
  40. :data="tableData"
  41. stripe
  42. border
  43. :header-cell-style="{
  44. background: '#f1f1f1',
  45. 'text-align': 'center',
  46. }"
  47. :cell-style="{ 'text-align': 'center' }"
  48. style="width: 100%"
  49. :height="tableHeight"
  50. v-loading="isLoading"
  51. >
  52. <el-table-column prop="name" label="学校名称" min-width="70">
  53. </el-table-column>
  54. <el-table-column prop="date" label="操作" min-width="30">
  55. <template slot-scope="scope">
  56. <div class="pb_buttonBox">
  57. <el-button
  58. size="mini"
  59. type="primary"
  60. @click="updateS(scope.row.id, scope.row.name)"
  61. >修改</el-button
  62. >
  63. <el-button
  64. size="mini"
  65. type="primary"
  66. @click="deleteSchool(scope.row.id)"
  67. >删除</el-button
  68. >
  69. </div>
  70. </template>
  71. </el-table-column>
  72. </el-table>
  73. </div>
  74. </div>
  75. <div class="student_page">
  76. <el-pagination
  77. background
  78. layout="prev, pager, next"
  79. :page-size="10"
  80. :total="total"
  81. v-if="page"
  82. @current-change="handleCurrentChange"
  83. ></el-pagination>
  84. </div>
  85. </div>
  86. <el-dialog
  87. title="添加学校"
  88. :visible.sync="dialogVisible"
  89. width="500px"
  90. :before-close="handleClose"
  91. class="dialog_diy"
  92. center
  93. >
  94. <div class="addBox">
  95. <span class="tian1">学校名称</span>
  96. <el-input
  97. v-model="schoolName"
  98. style="width: 250px; margin: 15px 0px"
  99. placeholder="请输入学校名称"
  100. ></el-input>
  101. </div>
  102. <span slot="footer" class="dialog-footer">
  103. <el-button @click="dialogVisible = false">取 消</el-button>
  104. <el-button type="primary" @click="addSchool">确 定</el-button>
  105. </span>
  106. </el-dialog>
  107. <el-dialog
  108. title="修改学校"
  109. :visible.sync="dialogVisible1"
  110. width="500px"
  111. :before-close="handleClose"
  112. class="dialog_diy"
  113. center
  114. >
  115. <div class="addBox">
  116. <span class="tian1">学校名称</span>
  117. <el-input
  118. v-model="schoolName"
  119. style="width: 250px; margin: 15px 0px"
  120. placeholder="请输入学校名称"
  121. ></el-input>
  122. </div>
  123. <span slot="footer" class="dialog-footer">
  124. <el-button @click="dialogVisible1 = false">取 消</el-button>
  125. <el-button type="primary" @click="updateSchool">确 定</el-button>
  126. </span>
  127. </el-dialog>
  128. </div>
  129. </template>
  130. <script>
  131. export default {
  132. data() {
  133. return {
  134. tableHeight: "500px",
  135. isLoading: false,
  136. formLabelWidth: "100px",
  137. tableData: [],
  138. tableData1: [],
  139. tableData2: [],
  140. fileList: [],
  141. schoolName: "",
  142. typeName: "",
  143. bannerCourse: "",
  144. sTypeName: "",
  145. searchClassName: "",
  146. checkBannerCourse: "",
  147. noneBtnImg: false,
  148. isBanner: false,
  149. page: 1,
  150. total: 0,
  151. page1: 1,
  152. total1: 0,
  153. page2: 1,
  154. total2: 0,
  155. userid: this.$route.query.userid,
  156. oid: this.$route.query.oid,
  157. dialogVisible: false,
  158. dialogVisible1: false,
  159. dialogVisible2: false,
  160. dialogVisible3: false,
  161. dialogVisible4: false,
  162. updateOid: "",
  163. dialogVisible5: false,
  164. dialogVisible6: false,
  165. dialogVisible7: false,
  166. step: 0,
  167. pid: "",
  168. imgVisible: false,
  169. dialogImageUrl: "",
  170. uploadLoading: false,
  171. checkList: [],
  172. courseList: [],
  173. };
  174. },
  175. mounted() {
  176. this.$nextTick(function () {
  177. // this.tableHeight =
  178. // window.innerHeight - this.$refs.table.$el.offsetTop;
  179. // if (this.tableHeight <= 530) {
  180. // this.tableHeight = 530;
  181. // }
  182. // // 监听窗口大小变化
  183. // let self = this;
  184. // window.onresize = function () {
  185. // self.tableHeight =
  186. // window.innerHeight - self.$refs.table.$el.offsetTop;
  187. // if (self.tableHeight <= 530) {
  188. // self.tableHeight = 530;
  189. // }
  190. // };
  191. });
  192. },
  193. methods: {
  194. goTo(path) {
  195. this.$router.push(path);
  196. },
  197. time() {
  198. if (!this.now) {
  199. this.now = new Date().getTime();
  200. return true;
  201. } else {
  202. let time = new Date().getTime();
  203. if (time - this.now > 3000) {
  204. this.now = time;
  205. return true;
  206. } else {
  207. return false;
  208. }
  209. }
  210. },
  211. tableRowClassName({ row, rowIndex }) {
  212. if ((rowIndex + 1) % 2 === 0) {
  213. return "even_row";
  214. } else {
  215. return "";
  216. }
  217. },
  218. handleClose(done) {
  219. done();
  220. },
  221. imgChange(file, fileList) {
  222. var _tmp = this.fileList;
  223. this.noneBtnImg = _tmp.length >= 1;
  224. },
  225. handleRemove(file) {
  226. var _tmp = this.fileList;
  227. for (var i = 0, len = _tmp.length; i < len; i++) {
  228. if (_tmp[i].uid == file.uid) {
  229. _tmp.splice(i, 1);
  230. break;
  231. }
  232. this.fileList = _tmp;
  233. }
  234. this.noneBtnImg = _tmp.length >= 1;
  235. },
  236. handlePictureCardPreview(file) {
  237. this.dialogImageUrl = this.fileList[0].url;
  238. this.imgVisible = true;
  239. },
  240. handleCurrentChange(val) {
  241. this.page = val;
  242. this.selectSchool();
  243. },
  244. handleCurrentChange1(val) {
  245. this.page1 = val;
  246. this.selectType();
  247. },
  248. handleCurrentChange2(val) {
  249. this.page2 = val;
  250. this.selectSType();
  251. },
  252. beforeUpload(data) {
  253. this.$refs.upload.uploadFiles;
  254. this.uploadLoading = true;
  255. var file = data.file;
  256. var credentials = {
  257. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  258. secretAccessKey: "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",
  259. }; //秘钥形式的登录上传
  260. window.AWS.config.update(credentials);
  261. window.AWS.config.region = "cn-northwest-1"; //设置区域
  262. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  263. var _this = this;
  264. if (file) {
  265. var params = {
  266. Key:
  267. file.name.split(".")[0] +
  268. new Date().getTime() +
  269. "." +
  270. file.name.split(".")[1],
  271. ContentType: file.type,
  272. Body: file,
  273. "Access-Control-Allow-Credentials": "*",
  274. ACL: "public-read",
  275. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  276. var options = {
  277. partSize: 2048 * 1024 * 1024,
  278. queueSize: 2,
  279. leavePartsOnError: true,
  280. };
  281. bucket
  282. .upload(params, options)
  283. .on("httpUploadProgress", function (evt) {
  284. //这里可以写进度条
  285. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  286. })
  287. .send(function (err, data) {
  288. _this.uploadLoading = false;
  289. if (err) {
  290. var a = _this.$refs.upload.uploadFiles;
  291. a.splice(a.length - 1, a.length);
  292. _this.$message.error("上传失败");
  293. } else {
  294. //上传成功处理
  295. _this.fileList.push({
  296. name: file.name,
  297. url: data.Location,
  298. uid: file.uid,
  299. });
  300. console.log(data.Location);
  301. _this.imgChange();
  302. }
  303. });
  304. }
  305. },
  306. addBanner() {
  307. if (this.isBanner == true) {
  308. this.$confirm(
  309. "您已经添加过Banner了,如果您再提交将覆盖上次提交的Banner!",
  310. "提示",
  311. {
  312. confirmButtonText: "确定",
  313. cancelButtonText: "取消",
  314. type: "warning",
  315. }
  316. )
  317. .then(() => {
  318. var list = this.fileList;
  319. if (list.length == 0) {
  320. this.$message.error("请上传需要添加的banner");
  321. return;
  322. }
  323. if (this.time()) {
  324. let params = [
  325. {
  326. p: list[0].url,
  327. url: "",
  328. uid: this.userid,
  329. oid: this.updateOid,
  330. },
  331. ];
  332. this.ajax
  333. .post(this.$store.state.api + "addBanner", params)
  334. .then((res) => {
  335. this.$message({
  336. message: "添加成功",
  337. type: "success",
  338. });
  339. this.dialogVisible6 = false;
  340. this.init();
  341. })
  342. .catch((err) => {
  343. this.$message.error("添加失败");
  344. console.error(err);
  345. });
  346. }
  347. })
  348. .catch(() => {});
  349. } else {
  350. var list = this.fileList;
  351. if (list.length == 0) {
  352. this.$message.error("请上传需要添加的banner");
  353. return;
  354. }
  355. if (this.time()) {
  356. let params = [
  357. {
  358. p: list[0].url,
  359. url: "",
  360. uid: this.userid,
  361. oid: this.updateOid,
  362. },
  363. ];
  364. this.ajax
  365. .post(this.$store.state.api + "addBanner", params)
  366. .then((res) => {
  367. this.$message({
  368. message: "添加成功",
  369. type: "success",
  370. });
  371. this.dialogVisible6 = false;
  372. this.init();
  373. })
  374. .catch((err) => {
  375. this.$message.error("添加失败");
  376. console.error(err);
  377. });
  378. }
  379. }
  380. },
  381. setBannerUrl() {
  382. if (this.checkBannerCourse == "") {
  383. this.$message.error("请选择作为banner链接的课程");
  384. return;
  385. }
  386. this.bannerCourse = this.checkBannerCourse;
  387. this.dialogVisible7 = false;
  388. },
  389. selectSchool() {
  390. this.isLoading = true;
  391. let params = {
  392. page: this.page,
  393. };
  394. this.ajax
  395. .get(this.$store.state.api + "selectSchoolName", params)
  396. .then((res) => {
  397. this.isLoading = false;
  398. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  399. this.tableData = res.data[0];
  400. })
  401. .catch((err) => {
  402. this.isLoading = false;
  403. console.error(err);
  404. });
  405. },
  406. addSchool() {
  407. let params = [
  408. {
  409. n: this.schoolName,
  410. cuid: this.userid,
  411. },
  412. ];
  413. this.ajax
  414. .post(this.$store.state.api + "addSchoolAdmin", params)
  415. .then((res) => {
  416. this.$message({
  417. message: "添加成功",
  418. type: "success",
  419. });
  420. this.dialogVisible = false;
  421. this.schoolName = "";
  422. this.selectSchool();
  423. })
  424. .catch((err) => {
  425. this.$message.error("添加失败");
  426. console.error(err);
  427. });
  428. },
  429. updateS(id, name) {
  430. this.dialogVisible1 = true;
  431. this.schoolName = name;
  432. this.updateId = id;
  433. },
  434. updateP(id, name) {
  435. this.dialogVisible3 = true;
  436. this.typeName = name;
  437. this.updateId = id;
  438. },
  439. updateSPType(id, name) {
  440. this.dialogVisible5 = true;
  441. this.sTypeName = name;
  442. this.updateId = id;
  443. },
  444. updateSchool() {
  445. let params = {
  446. oid: this.updateId,
  447. n: this.schoolName,
  448. };
  449. this.ajax
  450. .get(this.$store.state.api + "updateSN", params)
  451. .then((res) => {
  452. this.$message({
  453. message: "修改成功",
  454. type: "success",
  455. });
  456. this.dialogVisible1 = false;
  457. this.updateId = "";
  458. this.schoolName = "";
  459. this.selectSchool();
  460. })
  461. .catch((err) => {
  462. this.$message.error("修改失败");
  463. console.error(err);
  464. });
  465. },
  466. deleteSchool(id) {
  467. let params = [
  468. {
  469. id: id,
  470. },
  471. ];
  472. this.ajax
  473. .post(this.$store.state.api + "deleteSchoolAdmin", params)
  474. .then((res) => {
  475. this.$message({
  476. message: "删除成功",
  477. type: "success",
  478. });
  479. this.updateId = "";
  480. this.schoolName = "";
  481. this.selectSchool();
  482. })
  483. .catch((err) => {
  484. this.$message.error("删除成功");
  485. console.error(err);
  486. });
  487. },
  488. selectType(id) {
  489. this.tableData1 = [];
  490. this.tableData2 = [];
  491. this.step = 1;
  492. this.updateOid = id;
  493. let params = {
  494. page: this.page1,
  495. };
  496. this.ajax
  497. .get(this.$store.state.api + "selectPtype", params)
  498. .then((res) => {
  499. this.total1 = res.data[0].length > 0 ? res.data[0][0].num : 0;
  500. this.tableData1 = res.data[0];
  501. this.selectBanner();
  502. })
  503. .catch((err) => {
  504. console.error(err);
  505. });
  506. },
  507. selectBanner() {
  508. let params = {
  509. oid: this.updateOid,
  510. };
  511. this.ajax
  512. .get(this.$store.state.api + "selectBannerByOid", params)
  513. .then((res) => {
  514. if (res.data[0].length > 0) {
  515. this.isBanner = true;
  516. } else {
  517. this.isBanner = false;
  518. }
  519. })
  520. .catch((err) => {
  521. console.error(err);
  522. });
  523. },
  524. selectSType(pid) {
  525. this.step = 2;
  526. if (pid != undefined) {
  527. this.pid = pid;
  528. }
  529. let params = {
  530. pid: pid != undefined ? pid : this.pid,
  531. oid: this.updateOid,
  532. page: this.page2,
  533. };
  534. this.ajax
  535. .get(this.$store.state.api + "selectStype", params)
  536. .then((res) => {
  537. this.total2 = res.data[0].length > 0 ? res.data[0][0].num : 0;
  538. this.tableData2 = res.data[0];
  539. })
  540. .catch((err) => {
  541. console.error(err);
  542. });
  543. },
  544. addType() {
  545. let params = {
  546. n: this.typeName,
  547. uid: this.userid,
  548. oid: this.oid,
  549. };
  550. this.ajax
  551. .get(this.$store.state.api + "addPtype", params)
  552. .then((res) => {
  553. this.$message({
  554. message: "添加成功",
  555. type: "success",
  556. });
  557. this.dialogVisible2 = false;
  558. this.typeName = "";
  559. this.selectType();
  560. })
  561. .catch((err) => {
  562. this.$message.error("添加失败");
  563. console.error(err);
  564. });
  565. },
  566. updatePtype() {
  567. let params = {
  568. n: this.typeName,
  569. tid: this.updateId,
  570. };
  571. this.ajax
  572. .get(this.$store.state.api + "updatePtype", params)
  573. .then((res) => {
  574. this.$message({
  575. message: "修改成功",
  576. type: "success",
  577. });
  578. this.dialogVisible3 = false;
  579. this.updateId = "";
  580. this.typeName = "";
  581. this.selectType();
  582. })
  583. .catch((err) => {
  584. this.$message.error("修改失败");
  585. console.error(err);
  586. });
  587. },
  588. deletePtype(id) {
  589. let params = {
  590. tid: id,
  591. };
  592. this.ajax
  593. .get(this.$store.state.api + "deletePtype", params)
  594. .then((res) => {
  595. this.$message({
  596. message: "删除成功",
  597. type: "success",
  598. });
  599. this.updateId = "";
  600. this.typeName = "";
  601. this.selectType();
  602. })
  603. .catch((err) => {
  604. this.$message.error("删除失败");
  605. console.error(err);
  606. });
  607. },
  608. addStype() {
  609. let params = {
  610. n: this.sTypeName,
  611. pid: this.pid,
  612. uid: this.userid,
  613. oid: this.updateOid,
  614. };
  615. this.ajax
  616. .get(this.$store.state.api + "addStype", params)
  617. .then((res) => {
  618. this.$message({
  619. message: "添加成功",
  620. type: "success",
  621. });
  622. this.dialogVisible4 = false;
  623. this.sTypeName = "";
  624. this.selectSType();
  625. })
  626. .catch((err) => {
  627. this.$message.error("添加成功");
  628. console.error(err);
  629. });
  630. },
  631. updateStype() {
  632. let params = {
  633. n: this.sTypeName,
  634. tid: this.updateId,
  635. };
  636. this.ajax
  637. .get(this.$store.state.api + "updatePtype", params)
  638. .then((res) => {
  639. this.$message({
  640. message: "修改成功",
  641. type: "success",
  642. });
  643. this.dialogVisible5 = false;
  644. this.updateId = "";
  645. this.sTypeName = "";
  646. this.selectSType();
  647. })
  648. .catch((err) => {
  649. this.$message.error("修改失败");
  650. console.error(err);
  651. });
  652. },
  653. //打开添加弹窗
  654. addBannerUrlPop() {
  655. this.dialogVisible7 = true;
  656. this.searchClassName = "";
  657. this.Search();
  658. },
  659. init() {
  660. this.searchClassName = "";
  661. this.checkList = [];
  662. this.courseList = [];
  663. this.fileList = [];
  664. this.$refs.upload ? (this.$refs.upload.uploadFiles.length = 0) : "";
  665. this.noneBtnImg = false;
  666. this.dialogImageUrl = "";
  667. this.bannerCourse = "";
  668. this.checkBannerCourse = "";
  669. },
  670. Search() {
  671. this.checkList = [];
  672. let params = { t: this.searchClassName, oid: this.updateOid };
  673. this.ajax
  674. .get(this.$store.state.api + "getSearchCourseByoid", params)
  675. .then((res) => {
  676. this.courseList = res.data[0];
  677. })
  678. .catch((err) => {
  679. console.error(err);
  680. });
  681. },
  682. deleteStype(id) {
  683. let params = {
  684. tid: id,
  685. };
  686. this.ajax
  687. .get(this.$store.state.api + "deletePtype", params)
  688. .then((res) => {
  689. this.$message({
  690. message: "删除成功",
  691. type: "success",
  692. });
  693. this.updateId = "";
  694. this.sTypeName = "";
  695. this.selectSType();
  696. })
  697. .catch((err) => {
  698. this.$message.error("删除失败");
  699. console.error(err);
  700. });
  701. },
  702. },
  703. created() {
  704. this.page = 1;
  705. this.selectSchool();
  706. },
  707. };
  708. </script>
  709. <style scoped>
  710. .pb_head > span:nth-child(2) {
  711. font-size: 16px;
  712. margin-left: 80px;
  713. color: #ab582f;
  714. }
  715. .addBox {
  716. display: flex;
  717. align-items: center;
  718. justify-content: center;
  719. }
  720. .tian1 {
  721. /* font-size: 16px; */
  722. margin-right: 10px;
  723. }
  724. .pb_head {
  725. margin: 0 !important;
  726. width: 100% !important;
  727. }
  728. .student_page {
  729. margin: 10px 0 0 45px;
  730. }
  731. .disUoloadSty >>> .el-upload--picture-card {
  732. display: none; /* 上传按钮隐藏 */
  733. }
  734. .dialogBox {
  735. display: flex;
  736. align-items: center;
  737. justify-content: center;
  738. }
  739. .dialogBox span {
  740. margin: 0 20px;
  741. }
  742. .student_head {
  743. margin-top: 10px;
  744. padding-bottom: 15px;
  745. display: flex;
  746. justify-content: space-between;
  747. }
  748. .student_search,
  749. .student_search1 {
  750. display: flex;
  751. width: 100%;
  752. position: relative;
  753. flex-direction: row;
  754. flex-wrap: nowrap;
  755. align-items: center;
  756. justify-content: flex-end;
  757. }
  758. .student_search1 {
  759. justify-content: space-between;
  760. }
  761. .student_table >>> .el-table--border td {
  762. border-right: 0px !important;
  763. }
  764. .student_table >>> .el-table,
  765. .student_table >>> .el-table__body-wrapper {
  766. height: auto !important;
  767. }
  768. .el-table >>> .even_row {
  769. background-color: #f1f1f1 !important;
  770. }
  771. .dialog_diy >>> .el-dialog__header {
  772. padding: 9px 20px 10px;
  773. background: #32455b !important;
  774. }
  775. .dialog_diy >>> .el-dialog__title {
  776. color: #fff;
  777. font-size: 15px;
  778. }
  779. .dialog_diy >>> .el-dialog__headerbtn {
  780. top: 14px;
  781. }
  782. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
  783. color: #fff;
  784. }
  785. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
  786. color: #fff;
  787. }
  788. .dialog_diy >>> .el-dialog__body,
  789. .dialog_diy >>> .el-dialog__footer {
  790. background: #fafafa;
  791. }
  792. .r_diy >>> .el-dialog__footer {
  793. padding: 0;
  794. }
  795. .a_addBox {
  796. height: 570px;
  797. overflow: auto;
  798. }
  799. .workdates {
  800. height: 100%;
  801. position: absolute;
  802. top: 0;
  803. background: #fff;
  804. overflow: auto;
  805. z-index: 1;
  806. width: 95%;
  807. left: 50%;
  808. transform: translateX(-50%);
  809. padding: 20px;
  810. box-sizing: border-box;
  811. }
  812. .cancelbox {
  813. position: absolute;
  814. z-index: 2;
  815. left: 50%;
  816. width: 95%;
  817. transform: translateX(-50%);
  818. display: flex;
  819. justify-content: flex-end;
  820. padding: 0 90px 0px 0px;
  821. box-sizing: border-box;
  822. }
  823. .cardList {
  824. font-size: 14px;
  825. height: 360px;
  826. overflow: auto;
  827. }
  828. .cardList div {
  829. margin-bottom: 18px;
  830. }
  831. .cardList div:last-child {
  832. margin-bottom: 0;
  833. }
  834. .cardHead {
  835. display: flex;
  836. }
  837. </style>