index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. <template>
  2. <div id="chapterVolumeManagementAdd">
  3. <div class="boxWidth">
  4. <el-form
  5. label-position="right"
  6. label-width="120px"
  7. :model="listData"
  8. :rules="rules"
  9. ref="listData"
  10. >
  11. <el-form-item label="适用业务层级" :required="true">
  12. <el-select
  13. v-model="eduType"
  14. placeholder="请选择教育类型"
  15. @change="changeEduType"
  16. >
  17. <el-option
  18. v-for="(item, index) in eduTypeOptions"
  19. :key="index"
  20. :label="item.educationName"
  21. :value="item.id"
  22. >
  23. </el-option>
  24. </el-select>
  25. <el-select
  26. v-model="courType"
  27. placeholder="请选择业务层次"
  28. @change="changecourseType"
  29. >
  30. <el-option
  31. v-for="(item, index) in newCourTypeOptions"
  32. :key="index"
  33. :label="item.projectName + '-' + item.businessName"
  34. :value="item.id"
  35. >
  36. </el-option>
  37. </el-select>
  38. <el-popover
  39. ref="popovers"
  40. placement="bottom"
  41. trigger="click"
  42. @show="showHandle"
  43. @hide="hideHandle"
  44. :disabled="courType ? false : true"
  45. >
  46. <el-radio-group v-model="sujectApis" class="dis_flexbox">
  47. <el-radio
  48. v-for="(item, index) in newSujectOption"
  49. :label="item.newId"
  50. :key="index"
  51. >{{ item.subjectName }}</el-radio
  52. >
  53. </el-radio-group>
  54. <div style="display: block; text-align: center; margin-top: 10px">
  55. <el-button size="mini" type="primary" @click="submitSujectArray"
  56. >确定</el-button
  57. >
  58. </div>
  59. <el-button
  60. slot="reference"
  61. style="margin-left: 12px"
  62. @click="getMessage"
  63. >请选择科目</el-button
  64. >
  65. </el-popover>
  66. </el-form-item>
  67. <el-form-item label="">
  68. <!-- <span v-if="Object.keys(newSujectApis).length == 0"
  69. >未选项目类型</span
  70. > -->
  71. <div
  72. v-if="Object.keys(newSujectApis).length !== 0"
  73. style="display: flex"
  74. >
  75. <div class="listBoxStys">
  76. {{
  77. newSujectApis.educationName +
  78. " - " +
  79. newSujectApis.projectName +
  80. " - " +
  81. newSujectApis.businessName +
  82. " - " +
  83. newSujectApis.subjectName
  84. }}
  85. <i class="el-icon-error closeIcons" @click="closeType"></i>
  86. </div>
  87. </div>
  88. </el-form-item>
  89. <el-form-item label="标题前缀" prop="prefixName">
  90. <el-input v-model="listData.prefixName"></el-input>
  91. </el-form-item>
  92. <el-form-item label="章卷名称" prop="name">
  93. <el-input v-model="listData.name"></el-input>
  94. </el-form-item>
  95. <el-form-item label="是否发布" prop="publishStatus">
  96. <el-radio-group v-model="listData.publishStatus">
  97. <el-radio :label="1">是</el-radio>
  98. <el-radio :label="0">否</el-radio>
  99. </el-radio-group>
  100. </el-form-item>
  101. <el-form-item label="管理试卷">
  102. <div class="dis_plays">
  103. <div>
  104. <el-button size="small" @click="openBoxs">添加试卷</el-button>
  105. </div>
  106. <div style="color: #f56c6c">
  107. <span style="margin-right: 10px"
  108. >试卷总数:{{ tableData.length }}</span
  109. >
  110. <!-- <span>总时长:{{ minTimeAll }}分钟</span> -->
  111. </div>
  112. </div>
  113. <el-table
  114. :data="tableData"
  115. border
  116. :header-cell-style="{
  117. 'background-color': '#eee',
  118. padding: '8px',
  119. color: '#333',
  120. }"
  121. :default-sort="{ prop: 'sort', order: 'ascending' }"
  122. >
  123. <el-table-column
  124. v-for="(item, index) in tableSet"
  125. :width="item.width"
  126. :key="index"
  127. :label="item.label"
  128. align="center"
  129. :show-overflow-tooltip="true"
  130. header-align="center"
  131. :sortable="item.prop === 'sort'"
  132. sort-by="sort"
  133. :prop="item.prop"
  134. >
  135. <template slot-scope="scope">
  136. <span v-if="item.scope === 'types'">{{
  137. scope.row[item.prop] === 1
  138. ? "录播"
  139. : scope.row[item.prop] === 2
  140. ? "直播"
  141. : scope.row[item.prop] === 3
  142. ? "回放"
  143. : "未知"
  144. }}</span>
  145. <span v-else-if="item.scope === 'Status'">
  146. {{
  147. scope.row[item.prop] === 1
  148. ? "发布"
  149. : scope.row[item.prop] === 0
  150. ? "未发布"
  151. : "未知"
  152. }}
  153. </span>
  154. <div v-else-if="item.scope === 'inputs'">
  155. <el-input-number
  156. style="width: 50px"
  157. size="small"
  158. :controls="false"
  159. v-model="scope.row[item.prop]"
  160. controls-position="right"
  161. :min="0"
  162. ></el-input-number>
  163. </div>
  164. <span v-else>{{ scope.row[item.prop] }}</span></template
  165. >
  166. </el-table-column>
  167. <el-table-column
  168. label="操作"
  169. align="center"
  170. fixed="right"
  171. width="100px"
  172. >
  173. <template slot-scope="scope">
  174. <el-button type="text" @click="delList(scope.row, scope.$index)"
  175. >删除</el-button
  176. >
  177. </template>
  178. </el-table-column>
  179. </el-table>
  180. </el-form-item>
  181. <el-form-item>
  182. <el-button @click="backPage">取消</el-button>
  183. <el-button type="primary" @click="submitIns('listData')"
  184. >确定</el-button
  185. >
  186. </el-form-item>
  187. </el-form>
  188. </div>
  189. <el-dialog
  190. :visible.sync="dialogVisible"
  191. width="800px"
  192. :show-close="false"
  193. :close-on-click-modal="false"
  194. >
  195. <div slot="title" class="hearders">
  196. <div class="leftTitle">添加试卷</div>
  197. <div class="rightBoxs">
  198. <img
  199. src="@/assets/images/Close@2x.png"
  200. alt=""
  201. @click="dialogVisible = false"
  202. />
  203. </div>
  204. </div>
  205. <search-box-new
  206. ref="searchBox"
  207. :formData="formData"
  208. :formList="formList"
  209. @search="getInfos"
  210. @init="init"
  211. />
  212. <el-table
  213. ref="multipleTable"
  214. :data="boxtableData"
  215. border
  216. @select-all="selectAll"
  217. @select="select"
  218. :row-key="getRowKeys"
  219. :header-cell-style="{
  220. 'background-color': '#eee',
  221. padding: '8px',
  222. color: '#333',
  223. }"
  224. >
  225. <el-table-column
  226. align="center"
  227. type="selection"
  228. width="55"
  229. header-align="center"
  230. :selectable="checkboxT"
  231. :reserve-selection="true"
  232. >
  233. </el-table-column>
  234. <template v-for="(item, index) in tableSet">
  235. <el-table-column
  236. v-if="item.scope !== 'inputs'"
  237. :width="item.width"
  238. :key="index"
  239. :label="item.label"
  240. align="center"
  241. :show-overflow-tooltip="true"
  242. header-align="center"
  243. >
  244. <template slot-scope="scope">
  245. <span v-if="item.scope === 'types'">{{
  246. scope.row[item.prop] === 1
  247. ? "录播"
  248. : scope.row[item.prop] === 2
  249. ? "直播"
  250. : scope.row[item.prop] === 3
  251. ? "回放"
  252. : "未知"
  253. }}</span>
  254. <span v-else-if="item.scope === 'Status'">
  255. {{
  256. scope.row[item.prop] === 1
  257. ? "发布"
  258. : scope.row[item.prop] === 0
  259. ? "未发布"
  260. : "未知"
  261. }}
  262. </span>
  263. <span v-else>{{ scope.row[item.prop] }}</span></template
  264. >
  265. </el-table-column></template
  266. >
  267. </el-table>
  268. <pagination
  269. :total="total"
  270. :pageSize="formData.pageSize"
  271. :currentPage="formData.pageNum"
  272. @handleSizeChange="handleSizeChange"
  273. @handleCurrentChange="handleCurrentChange"
  274. />
  275. <span slot="footer" class="dialog-footer">
  276. <el-button @click="dialogVisible = false">取 消</el-button>
  277. <el-button
  278. type="primary"
  279. :disabled="activeLists.length === 0"
  280. @click="submitForm"
  281. >确 定</el-button
  282. >
  283. </span>
  284. </el-dialog>
  285. </div>
  286. </template>
  287. <script>
  288. import searchBoxNew from "@/components/searchBoxNew";
  289. import pagination from "@/components/pagination";
  290. import tableList from "@/components/tableList";
  291. export default {
  292. name: "ChapterVolumeManagementAdd",
  293. components: { searchBoxNew, tableList, pagination },
  294. data() {
  295. return {
  296. listData: {
  297. publishStatus: 1,
  298. }, // 弹窗数据
  299. eduTypeOptions: [], //教育类型数据
  300. projectTypeOptions: [], //项目类型数据
  301. courTypeOptions: [], //业务层次数据
  302. newCourTypeOptions: [], //当前业务层次数据
  303. sujectOption: [], //科目数据
  304. newSujectOption: [], //当前科目数据数据
  305. eduType: "", //当前选中教育类型
  306. courType: "", //当前选中业务层次
  307. newSujectApis: {},
  308. sujectApis: "", //当前存在的科目 例如'19-2'
  309. //表单验证
  310. rules: {
  311. name: [{ required: true, message: "请输入章卷名称", trigger: "blur" }],
  312. publishStatus: [
  313. { required: true, message: "请选择是否发布", trigger: "change" },
  314. ],
  315. },
  316. numberAll: 0, //试卷总数
  317. minTimeAll: 0, //总时长
  318. tableSet: [
  319. { label: "排序", prop: "sort", scope: "inputs", width: "100" },
  320. { label: "试卷编码", prop: "code", width: "140" },
  321. { label: "标题前缀", prop: "prefixName", width: "170" },
  322. { label: "试卷标题", prop: "examName", width: "300" },
  323. {
  324. label: "发布状态",
  325. prop: "publishStatus",
  326. scope: "Status",
  327. width: "120"
  328. },
  329. ],
  330. tableData: [],
  331. dialogVisible: false,
  332. boxtableData: [],
  333. total: 0, //一共多少条
  334. formData: {
  335. publishStatus: 1,
  336. status: 1,
  337. pageSize: 10,
  338. pageNum: 1,
  339. },
  340. //搜索
  341. formList: [
  342. // {
  343. // prop: "educationTypeId",
  344. // placeholder: "教育类型",
  345. // scope: "educationType",
  346. // },
  347. // {
  348. // prop: "businessId",
  349. // placeholder: "业务层次",
  350. // scope: "businessLevel",
  351. // edu: "educationTypeId",
  352. // },
  353. {
  354. prop: "key",
  355. placeholder: "试卷标题/试卷编码/标题前缀",
  356. },
  357. ],
  358. disCheckList: [], //已选转禁用复选列表
  359. activeLists: [],
  360. };
  361. },
  362. watch: {
  363. newSujectApis() {
  364. this.tableData = [];
  365. },
  366. },
  367. mounted() {
  368. this.getDict();
  369. // this.search();
  370. },
  371. methods: {
  372. getMessage() {
  373. if (!this.courType) {
  374. this.$message.warning("请先选择业务层级");
  375. }
  376. },
  377. openBoxs() {
  378. if (!this.newSujectApis.subjectId) {
  379. this.$message.warning("请先选择科目");
  380. return;
  381. }
  382. var data = JSON.parse(JSON.stringify(this.formData));
  383. data.businessId = this.newSujectApis.businessId;
  384. data.subjectId = this.newSujectApis.subjectId;
  385. var self = this;
  386. this.$api.inquirebankexamList(data).then((res) => {
  387. var aList = [];
  388. this.tableData.map((item) => {
  389. aList.push(item.examId);
  390. });
  391. this.disCheckList = aList;
  392. this.boxtableData = res.rows;
  393. this.total = res.total;
  394. this.dialogVisible = true;
  395. this.$nextTick(function () {
  396. self.$refs.multipleTable.clearSelection();
  397. });
  398. });
  399. },
  400. getInfosList() {
  401. this.$api
  402. .inquireCoursechaptersectionlist(this.$route.query.id)
  403. .then((result) => {
  404. // this.numberAll = result.total;
  405. // this.minTimeAll = result.timeTotal;
  406. this.tableData = result.rows;
  407. });
  408. },
  409. getInfos(int) {
  410. if (int === 1) {
  411. this.formData.pageNum = 1;
  412. }
  413. if (int === 2) {
  414. this.formData = {
  415. publishStatus: 1,
  416. status: 1,
  417. pageSize: 10,
  418. pageNum: 1,
  419. };
  420. }
  421. var data = JSON.parse(JSON.stringify(this.formData));
  422. data.businessId = this.newSujectApis.businessId;
  423. data.subjectId = this.newSujectApis.subjectId;
  424. this.$api.inquirebankexamList(data).then((res) => {
  425. this.boxtableData = res.rows;
  426. this.total = res.total;
  427. });
  428. },
  429. init() {
  430. this.getInfos(2);
  431. },
  432. // search() {
  433. // this.$api.obtainbankexam(this.$route.query.id).then((res) => {
  434. // res.data.year = res.data.year + "";
  435. // this.listData = res.data;
  436. // });
  437. // this.$api
  438. // .inquirebankexamListbusiness({ type: 2, majorId: this.$route.query.id })
  439. // .then((res) => {
  440. // this.newSujectApis = res.rows[0];
  441. // this.sujectApis =
  442. // res.rows[0].businessId + "-" + res.rows[0].subjectId;
  443. // this.getInfosList();
  444. // });
  445. // },
  446. changeTypes() {
  447. var self = this;
  448. if (!this.sujectApis) {
  449. self.newSujectApis = {};
  450. return;
  451. }
  452. this.courTypeOptions.map((items) => {
  453. if (items.id === this.sujectApis.split("-").map(Number)[0]) {
  454. var obj = {
  455. type: 3,
  456. educationTypeId: items.educationId,
  457. educationName: items.educationName,
  458. projectId: items.projectId,
  459. projectName: items.projectName,
  460. businessId: items.id,
  461. businessName: items.businessName,
  462. };
  463. self.sujectOption.map((i) => {
  464. if (
  465. i.id === self.sujectApis.split("-").map(Number)[1] &&
  466. i.courseArrays.indexOf(items.projectId) !== -1
  467. ) {
  468. obj.subjectName = i.subjectName;
  469. obj.subjectId = i.id;
  470. }
  471. });
  472. self.newSujectApis = obj;
  473. }
  474. });
  475. },
  476. submitSujectArray() {
  477. this.changeTypes();
  478. this.$refs.popovers.doClose();
  479. },
  480. showHandle() {
  481. this.sujectApis = "";
  482. this.newSujectOption.map((item) => {
  483. item.newId = this.courType + "-" + item.id;
  484. if (item.newId === this.sujectApis) {
  485. console.log("成功");
  486. }
  487. });
  488. this.sujectApis =
  489. this.newSujectApis.businessId + "-" + this.newSujectApis.subjectId;
  490. },
  491. hideHandle() {},
  492. getDict() {
  493. this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
  494. this.eduTypeOptions = res.rows;
  495. });
  496. this.$api.inquireCourseProjectType({ status: 1 }).then((res) => {
  497. this.projectTypeOptions = res.rows;
  498. });
  499. this.$api.inquirebusinessList({ status: 1 }).then((res) => {
  500. this.courTypeOptions = res.rows;
  501. this.newCourTypeOptions = res.rows;
  502. });
  503. this.$api.inquireCourseSubject({ status: 1 }).then((res) => {
  504. res.rows.map((item, index) => {
  505. var array = [];
  506. item.courseProjectTypes.map((items, indexs) => {
  507. array.push(items.id);
  508. });
  509. item.courseArrays = array;
  510. });
  511. this.sujectOption = res.rows;
  512. });
  513. },
  514. changeEduType() {
  515. if (!(this.courType === undefined || this.courType === "")) {
  516. this.courType = "";
  517. }
  518. var arrays = [];
  519. this.courTypeOptions.map((item) => {
  520. if (item.educationId === this.eduType) {
  521. arrays.push(item);
  522. }
  523. });
  524. this.newCourTypeOptions = arrays;
  525. },
  526. changecourseType() {
  527. this.newCourTypeOptions.map((item, index) => {
  528. if (item.id === this.courType) {
  529. this.eduType = item.educationId;
  530. var array = [];
  531. this.sujectOption.map((items, indexs) => {
  532. if (items.courseArrays.indexOf(item.projectId) !== -1) {
  533. array.push(items);
  534. }
  535. });
  536. this.newSujectOption = array;
  537. }
  538. });
  539. var arrays = [];
  540. this.courTypeOptions.map((item) => {
  541. if (item.educationId === this.eduType) {
  542. arrays.push(item);
  543. }
  544. });
  545. this.newCourTypeOptions = arrays;
  546. this.$refs.popovers.doClose();
  547. this.tableData = [];
  548. },
  549. submitIns(formName) {
  550. this.$refs[formName].validate((valid) => {
  551. if (valid) {
  552. if (JSON.stringify(this.newSujectApis) === "{}") {
  553. this.$message.error("请选择适用业务层级");
  554. return;
  555. }
  556. for (let i = 0; i < this.tableData.length; i++) {
  557. if (!this.tableData[i].sort && this.tableData[i].sort !== 0) {
  558. this.$message.warning(`管理试卷第${i + 1}条请输入排序`);
  559. return;
  560. }
  561. }
  562. let arr = this.tableData.map((items) => {
  563. return items.sort;
  564. });
  565. if (new Set(arr).size != arr.length) {
  566. this.$message.warning("排序不允许有重复值");
  567. return;
  568. }
  569. this.rulesTableSumbit();
  570. } else {
  571. return false;
  572. }
  573. });
  574. },
  575. async rulesTableSumbit() {
  576. var examList = [];
  577. this.tableData.map((item) => {
  578. examList.push({ examId: item.examId, sort: Number(item.sort) });
  579. });
  580. var data1 = {
  581. // examId: this.listData.examId,
  582. name: this.listData.name,
  583. examList: examList,
  584. publishStatus: this.listData.publishStatus,
  585. prefixName: this.listData.prefixName,
  586. businessList: [this.newSujectApis],
  587. year: this.listData.year,
  588. status: 1,
  589. };
  590. this.$api.addbankchapter(data1).then((res) => {
  591. this.$message.success("新增成功");
  592. setTimeout(() => {
  593. this.$store.dispatch("tagsView/exitView", this.$route).then((res) => {
  594. this.$router.push({
  595. path: "chapterVolumeManagement",
  596. });
  597. });
  598. }, 500);
  599. });
  600. },
  601. backPage() {
  602. this.$store.dispatch("tagsView/delView", this.$route).then((res) => {
  603. this.$router.push({
  604. path: "chapterVolumeManagement",
  605. });
  606. });
  607. },
  608. closeType() {
  609. this.sujectApis = "";
  610. this.changeTypes();
  611. },
  612. handleSizeChange(v) {
  613. this.formData.pageSize = v;
  614. this.formData.pageNum = 1;
  615. this.getInfos();
  616. },
  617. handleCurrentChange(v) {
  618. this.formData.pageNum = v;
  619. this.getInfos();
  620. },
  621. selectAll(value) {
  622. this.activeLists = value;
  623. },
  624. select(value) {
  625. this.activeLists = value;
  626. },
  627. checkboxT(row, index) {
  628. if (this.disCheckList.indexOf(row.examId) !== -1) {
  629. return false;
  630. } else {
  631. return true;
  632. }
  633. },
  634. getRowKeys(row) {
  635. return row.examId;
  636. },
  637. submitForm() {
  638. if (this.activeLists.length === 0) {
  639. this.dialogVisible = false;
  640. return;
  641. }
  642. if (this.tableData.length) {
  643. let maxIndex = 0;
  644. this.tableData.forEach((item) => {
  645. if (item.sort > maxIndex) {
  646. maxIndex = item.sort;
  647. }
  648. });
  649. this.activeLists.forEach((item, index) => {
  650. item.sort = maxIndex + index + 1;
  651. });
  652. } else {
  653. this.activeLists.forEach((item, index) => {
  654. item.sort = index + 1;
  655. });
  656. }
  657. this.tableData = this.tableData.concat(this.activeLists);
  658. this.dialogVisible = false;
  659. this.$message.success("添加成功");
  660. this.activeLists = [];
  661. },
  662. delList(item, index) {
  663. this.tableData.splice(index, 1);
  664. this.$message.success("删除成功");
  665. },
  666. },
  667. };
  668. </script>
  669. <style lang="less" scoped>
  670. .dis_flexbox {
  671. display: flex;
  672. flex-direction: column;
  673. }
  674. .boxWidth {
  675. width: 700px;
  676. }
  677. .numInputs {
  678. width: 150px;
  679. }
  680. .checkboxSty {
  681. max-height: 210px;
  682. overflow: auto;
  683. display: flex;
  684. flex-direction: column;
  685. }
  686. .listBoxStys {
  687. flex-shrink: 0;
  688. padding: 0px 10px;
  689. border-radius: 8px;
  690. border: 1px solid #eee;
  691. margin-right: 10px;
  692. margin-bottom: 6px;
  693. }
  694. .closeIcons {
  695. color: red;
  696. cursor: pointer;
  697. margin-left: 6px;
  698. }
  699. .ach {
  700. display: flex;
  701. align-items: center;
  702. overflow: hidden;
  703. }
  704. .clh {
  705. display: flex;
  706. align-items: center;
  707. flex-wrap: wrap;
  708. }
  709. .imgBoxins {
  710. width: 375px;
  711. height: 220px;
  712. text-align: center;
  713. img {
  714. height: 100%;
  715. }
  716. }
  717. .iconStsz {
  718. font-size: 40px;
  719. color: #67c23a;
  720. cursor: pointer;
  721. }
  722. .BusBoxs {
  723. min-height: 100px;
  724. border: 1px solid #a4a4a4;
  725. margin-bottom: 10px;
  726. border-radius: 8px;
  727. max-height: 280px;
  728. padding: 10px;
  729. overflow-y: auto;
  730. .fot_Le {
  731. border-radius: 12px;
  732. border: 1px solid yellowgreen;
  733. padding: 0px 10px;
  734. height: 30px;
  735. line-height: 30px;
  736. text-align: center;
  737. float: left;
  738. margin-right: 6px;
  739. margin-bottom: 6px;
  740. .icon_clear {
  741. margin-left: 2px;
  742. font-size: 15px;
  743. color: #f56c6c;
  744. cursor: pointer;
  745. }
  746. }
  747. }
  748. .marg_play {
  749. display: flex;
  750. margin-bottom: 15px;
  751. .spans {
  752. text-align: right;
  753. width: 80px;
  754. }
  755. }
  756. /deep/.el-button {
  757. border-radius: 8px;
  758. }
  759. /deep/.el-dialog {
  760. border-radius: 8px;
  761. .el-dialog__header {
  762. padding: 0;
  763. .hearders {
  764. height: 40px;
  765. display: flex;
  766. align-items: center;
  767. justify-content: space-between;
  768. padding: 0px 18px 0px 20px;
  769. border-bottom: 1px solid #e2e2e2;
  770. .leftTitle {
  771. font-size: 14px;
  772. font-weight: bold;
  773. color: #2f4378;
  774. }
  775. .rightBoxs {
  776. display: flex;
  777. align-items: center;
  778. img {
  779. width: 14px;
  780. height: 14px;
  781. margin-left: 13px;
  782. cursor: pointer;
  783. }
  784. }
  785. }
  786. }
  787. .el-dialog__footer {
  788. padding: 0;
  789. .dialog-footer {
  790. padding: 0px 40px;
  791. height: 70px;
  792. border-top: 1px solid #e2e2e2;
  793. display: flex;
  794. align-items: center;
  795. justify-content: center;
  796. }
  797. }
  798. }
  799. .centerStys {
  800. display: flex;
  801. align-items: center;
  802. justify-content: center;
  803. margin-top: 18px;
  804. }
  805. .dis_fos {
  806. align-items: flex-end;
  807. display: flex;
  808. justify-content: space-between;
  809. }
  810. .margin_bs {
  811. margin-bottom: 6px;
  812. }
  813. .dis_plays {
  814. display: flex;
  815. align-items: center;
  816. justify-content: space-between;
  817. margin-bottom: 10px;
  818. }
  819. .comInputsty {
  820. width: 50px;
  821. height: 24px;
  822. text-align: center;
  823. border: none;
  824. }
  825. </style>