index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. <template>
  2. <div id="knowledgeManagement">
  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. @addClick="addClick"
  15. :loading="loading"
  16. @editInfo="editInfo"
  17. >
  18. <template slot="btn" slot-scope="props">
  19. <el-button type="text" @click="addClick(props.scope.row, 0)"
  20. >修改</el-button
  21. >
  22. <el-button type="text" @click="del(props.scope.row)">删除</el-button>
  23. </template>
  24. </table-list>
  25. <pagination
  26. :total="total"
  27. :pageSize="formData.pageSize"
  28. :currentPage="formData.pageNum"
  29. @handleSizeChange="handleSizeChange"
  30. @handleCurrentChange="handleCurrentChange"
  31. />
  32. <el-dialog
  33. @closed="loadingClose"
  34. :visible.sync="dialogVisible"
  35. width="790px"
  36. :show-close="false"
  37. :close-on-click-modal="false"
  38. >
  39. <div slot="title" class="hearders">
  40. <div class="leftTitle">
  41. {{ statusPop === 1 ? "添加" : statusPop === 0 ? "修改" : "详情" }}
  42. </div>
  43. <div class="rightBoxs">
  44. <img src="@/assets/images/Close@2x.png" alt="" @click="close" />
  45. </div>
  46. </div>
  47. <div>
  48. <el-form
  49. label-position="right"
  50. label-width="110px"
  51. :model="listData"
  52. ref="listData"
  53. >
  54. <el-form-item
  55. v-for="(items, indexs) in listitem"
  56. :key="indexs"
  57. :label="items.label"
  58. :prop="items.prop"
  59. :required="true"
  60. >
  61. <div v-if="items.scope === 'buss'">
  62. <el-select
  63. v-model="eduType"
  64. placeholder="请选择教育类型"
  65. @change="changeEduType"
  66. >
  67. <el-option
  68. v-for="(item, index) in eduTypeOptions"
  69. :key="index"
  70. :label="item.educationName"
  71. :value="item.id"
  72. >
  73. </el-option>
  74. </el-select>
  75. <el-select
  76. v-model="courType"
  77. placeholder="请选择业务层次"
  78. @change="changecourseType"
  79. >
  80. <el-option
  81. v-for="(item, index) in newCourTypeOptions"
  82. :key="index"
  83. :label="item.projectName + '-' + item.businessName"
  84. :value="item.id"
  85. >
  86. </el-option>
  87. </el-select>
  88. <el-popover
  89. ref="popovers"
  90. placement="bottom"
  91. trigger="click"
  92. @show="showHandle"
  93. @hide="hideHandle"
  94. :disabled="courType ? false : true"
  95. >
  96. <el-checkbox
  97. v-model="checkAll"
  98. @change="handleCheckAllChange"
  99. :indeterminate="isIndeterminate"
  100. >全选</el-checkbox
  101. >
  102. <el-checkbox-group
  103. v-model="sujectArray"
  104. class="checkboxSty"
  105. @change="handleCheckedCitiesChange"
  106. >
  107. <el-checkbox
  108. v-for="(item, index) in newSujectOption"
  109. :label="item.newId"
  110. :key="index"
  111. >{{ item.subjectName }}</el-checkbox
  112. >
  113. </el-checkbox-group>
  114. <div
  115. style="display: block; text-align: center; margin-top: 10px"
  116. >
  117. <el-button
  118. size="mini"
  119. type="primary"
  120. @click="submitSujectArray"
  121. >确定</el-button
  122. >
  123. </div>
  124. <el-button
  125. slot="reference"
  126. style="margin-left: 12px"
  127. @click="getMessage"
  128. >请选择科目</el-button
  129. >
  130. </el-popover>
  131. <span style="margin-left: 10px">注:可多选</span>
  132. </div>
  133. <div v-else-if="items.scope === 'activeBox'">
  134. <div :class="changeHeight ? 'ach' : 'clh'">
  135. <div
  136. v-for="(item, index) in newSujectApis"
  137. :key="index"
  138. class="listBoxStys"
  139. >
  140. {{
  141. item.educationName +
  142. " - " +
  143. item.projectName +
  144. " - " +
  145. item.businessName +
  146. " - " +
  147. item.subjectName
  148. }}
  149. <i
  150. class="el-icon-error closeIcons"
  151. @click="closeType(index)"
  152. ></i>
  153. </div>
  154. </div>
  155. <el-popover
  156. placement="bottom-start"
  157. trigger="hover"
  158. :close-delay="50"
  159. >
  160. <ul style="margin: 0; max-width: 600px">
  161. <li
  162. class="copyDataLi"
  163. :class="changeSty(itemT)"
  164. v-for="(itemT, indexT) in localData"
  165. :key="indexT"
  166. @click="unTime(itemT)"
  167. >
  168. {{
  169. `${itemT.educationName}-${itemT.projectName}-${itemT.businessName}-${itemT.subjectName}`
  170. }}
  171. </li>
  172. </ul>
  173. <el-button
  174. v-show="localData.length && statusPop === 1"
  175. type="danger"
  176. slot="reference"
  177. size="mini"
  178. style="margin-right: 10px"
  179. >最近选择</el-button
  180. >
  181. </el-popover>
  182. <el-button
  183. size="mini"
  184. v-if="newSujectApis.length > 1"
  185. @click="changeType"
  186. >{{ changeHeight ? "展开" : "关闭" }}</el-button
  187. ><el-button
  188. size="mini"
  189. v-if="newSujectApis.length > 0"
  190. @click="sujectApis = []"
  191. >清空</el-button
  192. >
  193. <!-- <span v-if="newSujectApis.length === 0">未选项目类型</span> -->
  194. </div>
  195. <div v-else>
  196. <div v-if="statusPop === 0">
  197. <el-input v-model="listData.knowledgeName"></el-input>
  198. </div>
  199. <div v-else>
  200. <el-input
  201. style="width: 40%; margin-right: 10px"
  202. v-model="BusName"
  203. ></el-input
  204. ><el-button @click="addBusName">添加</el-button>
  205. <!-- <div v-if="!BusNameList.length">请在下面输入框添加知识点</div> -->
  206. <ul class="BusBoxs">
  207. <li
  208. class="fot_Le"
  209. v-for="(item, index) in BusNameList"
  210. :key="index"
  211. >
  212. {{ item }}
  213. <i
  214. class="el-icon-error icon_clear"
  215. @click="clearBusName(index)"
  216. ></i>
  217. </li>
  218. <div style="clear: both"></div>
  219. </ul>
  220. </div>
  221. </div>
  222. </el-form-item>
  223. </el-form>
  224. </div>
  225. <span slot="footer" class="dialog-footer">
  226. <el-button @click="close">取 消</el-button>
  227. <el-button type="primary" @click="submit" :loading="disabledBtn"
  228. >确 定</el-button
  229. >
  230. </span>
  231. </el-dialog>
  232. </div>
  233. </template>
  234. <script>
  235. import searchBoxNew from "@/components/searchBoxNew";
  236. import tableList from "@/components/tableList";
  237. import pagination from "@/components/pagination";
  238. export default {
  239. name: "KnowledgeManagement",
  240. components: { searchBoxNew, tableList, pagination },
  241. data() {
  242. return {
  243. disabledBtn: false,
  244. isIndeterminate: false,
  245. checkAll: false,
  246. loading: false, //当前表单加载是否加载动画
  247. navText: {
  248. title: "知识点",
  249. index: 0,
  250. ch: "条",
  251. num: false,
  252. border: true,
  253. choice: true,
  254. addHide: false,
  255. backFatherBtn: {
  256. status: false,
  257. title: "未定义",
  258. },
  259. },
  260. //搜索
  261. formList: [
  262. {
  263. prop: "educationId",
  264. placeholder: "教育类型",
  265. scope: "educationType",
  266. },
  267. {
  268. prop: "businessId",
  269. placeholder: "业务层次",
  270. scope: "businessLevel",
  271. edu: "educationId",
  272. },
  273. {
  274. prop: "subjectId",
  275. placeholder: "科目",
  276. scope: "sujectType",
  277. edu: "educationId",
  278. },
  279. {
  280. prop: "knowledgeName",
  281. placeholder: "请输入知识点名称",
  282. },
  283. ],
  284. formData: {
  285. status: "0,1",
  286. pageSize: 10,
  287. pageNum: 1,
  288. },
  289. // 表单
  290. tableSet: [
  291. {
  292. label: "知识点编码",
  293. prop: "encoder",
  294. hidden: true,
  295. width: "140px",
  296. },
  297. {
  298. label: "知识点标题",
  299. prop: "knowledgeName",
  300. scope: "editInfo",
  301. hidden: true,
  302. },
  303. {
  304. label: "适用业务层级",
  305. prop: "courseBusinessList",
  306. hidden: true,
  307. scope: "mapTypesMores",
  308. },
  309. {
  310. label: "最后编辑时间",
  311. prop: "updateTime",
  312. scope: "aTimeList",
  313. hidden: true,
  314. },
  315. {
  316. label: "创建时间",
  317. prop: "createTime",
  318. scope: "aTimeList",
  319. hidden: true,
  320. },
  321. ],
  322. eduTypeOptions: [], //教育类型数据
  323. projectTypeOptions: [], //项目类型数据
  324. courTypeOptions: [], //业务层次数据
  325. newCourTypeOptions: [], //当前业务层次数据
  326. sujectOption: [], //科目数据
  327. newSujectOption: [], //当前科目数据数据
  328. eduType: "", //当前选中教育类型
  329. courType: "", //当前选中业务层次
  330. sujectApis: [], //当前存在的科目
  331. newSujectApis: [],
  332. sujectArray: [], //选中的科目
  333. BusName: "", //标签名称
  334. BusNameList: [], //标签列表
  335. tableData: [], //表单数据
  336. total: 0, //一共多少条
  337. changeHeight: false,
  338. listData: {},
  339. listitem: [
  340. {
  341. label: "适用业务层级",
  342. scope: "buss",
  343. },
  344. {
  345. label: "",
  346. scope: "activeBox",
  347. },
  348. {
  349. label: "知识点",
  350. },
  351. ],
  352. statusPop: 1,
  353. dialogVisible: false,
  354. localData: [],
  355. };
  356. },
  357. watch: {
  358. sujectApis: {
  359. immediate: true,
  360. handler(newName, oldName) {
  361. this.changeTypes();
  362. },
  363. },
  364. },
  365. mounted() {
  366. this.localData = this.$methodsTools.getBusinessList();
  367. this.getDict();
  368. this.search();
  369. },
  370. activated() {
  371. this.localData = this.$methodsTools.getBusinessList();
  372. this.getDict();
  373. this.search();
  374. },
  375. methods: {
  376. loadingClose() {
  377. this.disabledBtn = false;
  378. },
  379. unTime(val) {
  380. let a = `${val.businessId}-${val.subjectId}`;
  381. if (this.sujectApis.includes(a)) {
  382. this.sujectApis.splice(this.sujectApis.indexOf(a), 1);
  383. } else {
  384. this.sujectApis.push(a);
  385. }
  386. },
  387. changeSty(val) {
  388. var arr = "";
  389. this.sujectApis.forEach((item) => {
  390. let arr1 = item.split("-").map(Number);
  391. if (val.businessId == arr1[0] && val.subjectId == arr1[1]) {
  392. arr = "activeStyIcons";
  393. }
  394. });
  395. return arr;
  396. },
  397. handleCheckedCitiesChange() {
  398. let nid = this.newSujectOption.map((item) => {
  399. return item.newId;
  400. });
  401. this.checkAll = this.sujectArray.length === nid.length;
  402. this.isIndeterminate =
  403. this.sujectArray.length > 0 && this.sujectArray.length < nid.length;
  404. },
  405. setFunc(arr) {
  406. var arrays = [];
  407. for (let i = 0; i < arr.length; i++) {
  408. if (!arrays.includes(arr[i])) {
  409. arrays.push(arr[i]);
  410. }
  411. }
  412. return arrays;
  413. },
  414. handleCheckAllChange(val) {
  415. if (val) {
  416. let nid = this.newSujectOption.map((item) => {
  417. return item.newId;
  418. });
  419. let arrays = this.sujectArray.concat(nid);
  420. this.sujectArray = this.setFunc(arrays);
  421. this.isIndeterminate = false;
  422. } else {
  423. let nid = this.newSujectOption.map((item) => {
  424. return item.newId;
  425. });
  426. let newArr = [];
  427. this.sujectArray.forEach((item) => {
  428. if (!nid.includes(item)) {
  429. newArr.push(item);
  430. }
  431. });
  432. this.sujectArray = newArr;
  433. this.isIndeterminate = false;
  434. }
  435. },
  436. getMessage() {
  437. if (!this.courType) {
  438. this.$message.warning("请先选择业务层级");
  439. }
  440. },
  441. addBusName() {
  442. if (this.BusName.trim()) {
  443. this.BusNameList.push(this.BusName);
  444. this.BusName = "";
  445. } else {
  446. this.$message({
  447. message: "请输入知识点内容",
  448. type: "warning",
  449. duration: 1200,
  450. });
  451. this.BusName = "";
  452. }
  453. },
  454. changeTypes() {
  455. var self = this;
  456. var arrays = [];
  457. this.sujectApis.map((item, index) => {
  458. this.courTypeOptions.map((items) => {
  459. if (items.id === item.split("-").map(Number)[0]) {
  460. var obj = {
  461. educationTypeId: items.educationId,
  462. educationName: items.educationName,
  463. projectId: items.projectId,
  464. projectName: items.projectName,
  465. businessId: items.id,
  466. businessName: items.businessName,
  467. };
  468. self.sujectOption.map((i) => {
  469. if (
  470. i.id === item.split("-").map(Number)[1] &&
  471. i.courseArrays.indexOf(items.projectId) !== -1
  472. ) {
  473. obj.subjectName = i.subjectName;
  474. obj.subjectId = i.id;
  475. }
  476. });
  477. arrays.push(obj);
  478. }
  479. });
  480. });
  481. this.newSujectApis = arrays;
  482. },
  483. getDict() {
  484. this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
  485. this.eduTypeOptions = res.rows;
  486. });
  487. this.$api.inquireCourseProjectType({ status: 1 }).then((res) => {
  488. this.projectTypeOptions = res.rows;
  489. });
  490. this.$api.inquirebusinessList({ status: 1 }).then((res) => {
  491. this.courTypeOptions = res.rows;
  492. this.newCourTypeOptions = res.rows;
  493. });
  494. this.$api.inquireCourseSubject({ status: 1 }).then((res) => {
  495. res.rows.map((item, index) => {
  496. var array = [];
  497. item.courseProjectTypes.map((items, indexs) => {
  498. array.push(items.id);
  499. });
  500. item.courseArrays = array;
  501. });
  502. this.sujectOption = res.rows;
  503. });
  504. },
  505. editInfo(v) {
  506. this.addClick(v, 0);
  507. },
  508. //int === 1搜索 页码归1 int === 2重置 条件初始化
  509. search(int) {
  510. this.loading = true;
  511. if (int === 1) {
  512. this.formData.pageNum = 1;
  513. }
  514. if (int === 2) {
  515. this.formData = {
  516. status: "0,1",
  517. pageSize: 10,
  518. pageNum: 1,
  519. };
  520. }
  521. this.$api
  522. .inquireKnowledgeExamListS(this.formData)
  523. .then((res) => {
  524. this.tableData = res.rows;
  525. this.total = res.total;
  526. this.navText.index = res.total;
  527. })
  528. .finally(() => {
  529. this.loading = false;
  530. });
  531. },
  532. init() {
  533. this.search(2);
  534. },
  535. changeType() {
  536. this.changeHeight = !this.changeHeight;
  537. },
  538. changeEduType() {
  539. if (!(this.courType === undefined || this.courType === "")) {
  540. this.courType = "";
  541. }
  542. var arrays = [];
  543. this.courTypeOptions.map((item) => {
  544. if (item.educationId === this.eduType) {
  545. arrays.push(item);
  546. }
  547. });
  548. this.newCourTypeOptions = arrays;
  549. },
  550. changecourseType() {
  551. this.newCourTypeOptions.map((item, index) => {
  552. if (item.id === this.courType) {
  553. this.eduType = item.educationId;
  554. var array = [];
  555. this.sujectOption.map((items, indexs) => {
  556. if (items.courseArrays.indexOf(item.projectId) !== -1) {
  557. array.push(items);
  558. }
  559. });
  560. this.newSujectOption = array;
  561. }
  562. });
  563. var arrays = [];
  564. this.courTypeOptions.map((item) => {
  565. if (item.educationId === this.eduType) {
  566. arrays.push(item);
  567. }
  568. });
  569. this.newCourTypeOptions = arrays;
  570. this.$refs.popovers[0].doClose();
  571. },
  572. submitSujectArray() {
  573. var self = this;
  574. this.sujectApis = this.sujectApis.filter((item, index) => {
  575. return item.split("-").map(Number)[0] !== Number(self.courType);
  576. });
  577. for (let i = 0; i < this.sujectArray.length; i++) {
  578. this.sujectApis.push(this.sujectArray[i]);
  579. }
  580. this.$refs.popovers[0].doClose();
  581. },
  582. submit() {
  583. this.disabledBtn = true;
  584. if (!this.newSujectApis.length) {
  585. this.$message.warning("请添加业务层级");
  586. this.disabledBtn = false;
  587. return;
  588. }
  589. if (this.statusPop === 1) {
  590. if (!this.BusNameList.length) {
  591. this.$message.warning("请添加知识点");
  592. this.disabledBtn = false;
  593. return;
  594. }
  595. var dataInfos = {
  596. status: 1,
  597. examKnowledgeBusinessAddBoList: this.newSujectApis,
  598. knowledgeName: this.BusNameList,
  599. };
  600. this.$api
  601. .addKnowledgeExam(dataInfos)
  602. .then((res) => {
  603. this.$methodsTools.cacheBusinessList(this.newSujectApis);
  604. this.$message.success("添加成功");
  605. this.dialogVisible = false;
  606. this.search();
  607. this.localData = this.$methodsTools.getBusinessList();
  608. })
  609. .catch(() => {
  610. this.disabledBtn = false;
  611. });
  612. } else {
  613. if (!this.listData.knowledgeName) {
  614. this.$message.warning("请输入知识点名称");
  615. this.disabledBtn = false;
  616. return;
  617. }
  618. var dataInfos = {
  619. knowledgeName: this.listData.knowledgeName,
  620. status: this.listData.status,
  621. knowledgeId: this.listData.knowledgeId,
  622. examKnowledgeBusinessAddBoList: this.newSujectApis,
  623. };
  624. this.$api
  625. .editKnowledgeExam(dataInfos)
  626. .then((res) => {
  627. this.$message.success("修改成功");
  628. this.dialogVisible = false;
  629. this.search();
  630. })
  631. .catch(() => {
  632. this.disabledBtn = false;
  633. });
  634. }
  635. },
  636. del(v) {
  637. this.$alert(
  638. "确定删除此内容?<br />内容删除后将无法恢复,请慎重考虑",
  639. "提示",
  640. {
  641. dangerouslyUseHTMLString: true,
  642. }
  643. )
  644. .then(() => {
  645. var data = {
  646. knowledgeId: v.knowledgeId,
  647. status: -1,
  648. };
  649. this.$api.editKnowledgeExam(data).then((res) => {
  650. this.$message.success("删除成功");
  651. this.search();
  652. });
  653. })
  654. .catch(() => {
  655. this.$message({
  656. type: "info",
  657. message: "已取消删除",
  658. });
  659. });
  660. },
  661. hideHandle() {},
  662. showHandle() {
  663. var array = [];
  664. for (let i = 0; i < this.sujectApis.length; i++) {
  665. if (
  666. this.sujectApis[i].split("-").map(Number)[0] === Number(this.courType)
  667. ) {
  668. array.push(this.sujectApis[i]);
  669. }
  670. }
  671. this.sujectArray = array;
  672. if (!this.newSujectOption.length) {
  673. this.$message.warning("该业务层次暂无关联科目");
  674. this.$refs.popovers[0].doClose();
  675. return;
  676. }
  677. this.newSujectOption.map((item) => {
  678. item.newId = this.courType + "-" + item.id;
  679. });
  680. this.handleCheckedCitiesChange();
  681. },
  682. addClick(v, int) {
  683. if (v === undefined) {
  684. this.statusPop = 1;
  685. this.listData = {};
  686. this.eduType = ""; //当前选中教育类型
  687. this.courType = ""; //当前选中业务层次
  688. this.sujectApis = []; //当前存在的科目
  689. this.newSujectApis = [];
  690. this.sujectArray = []; //选中的科目
  691. this.BusName = "";
  692. this.BusNameList = [];
  693. } else {
  694. this.statusPop = int;
  695. this.eduType = ""; //当前选中教育类型
  696. this.courType = ""; //当前选中业务层次
  697. this.BusName = "";
  698. this.BusNameList = [];
  699. var arrays = [];
  700. this.listData = v;
  701. v.courseBusinessList.map((item) => {
  702. arrays.push(item.businessId + "-" + item.subjectId);
  703. });
  704. this.sujectApis = arrays;
  705. }
  706. this.$nextTick(() => {
  707. this.changeHeight = true;
  708. });
  709. this.dialogVisible = true;
  710. },
  711. close() {
  712. this.dialogVisible = false;
  713. },
  714. closeType(index) {
  715. this.sujectApis.splice(index, 1);
  716. },
  717. clearBusName(index) {
  718. this.BusNameList.splice(index, 1);
  719. },
  720. handleSizeChange(v) {
  721. this.formData.pageSize = v;
  722. this.formData.pageNum = 1;
  723. this.search();
  724. },
  725. handleCurrentChange(v) {
  726. this.formData.pageNum = v;
  727. this.search();
  728. },
  729. },
  730. };
  731. </script>
  732. <style lang="less" scoped>
  733. .checkboxSty {
  734. display: flex;
  735. flex-direction: column;
  736. }
  737. /deep/.el-button {
  738. border-radius: 8px;
  739. }
  740. /deep/.el-dialog {
  741. border-radius: 8px;
  742. .el-dialog__header {
  743. padding: 0;
  744. .hearders {
  745. height: 40px;
  746. display: flex;
  747. align-items: center;
  748. justify-content: space-between;
  749. padding: 0px 18px 0px 20px;
  750. border-bottom: 1px solid #e2e2e2;
  751. .leftTitle {
  752. font-size: 14px;
  753. font-weight: bold;
  754. color: #2f4378;
  755. }
  756. .rightBoxs {
  757. display: flex;
  758. align-items: center;
  759. img {
  760. width: 14px;
  761. height: 14px;
  762. margin-left: 13px;
  763. cursor: pointer;
  764. }
  765. }
  766. }
  767. }
  768. .el-dialog__footer {
  769. padding: 0;
  770. .dialog-footer {
  771. padding: 0px 40px;
  772. height: 70px;
  773. border-top: 1px solid #e2e2e2;
  774. display: flex;
  775. align-items: center;
  776. justify-content: flex-end;
  777. }
  778. }
  779. }
  780. .imgBox {
  781. width: 100%;
  782. // height: 210px;
  783. border: 1px solid #e2e2e2;
  784. border-radius: 8px;
  785. padding: 8px 8px 3px;
  786. display: flex;
  787. flex-direction: column;
  788. align-items: center;
  789. .imgLabel {
  790. flex: 1;
  791. width: 100%;
  792. border: 1px dotted #e2e2e2;
  793. color: #999;
  794. font-size: 14px;
  795. cursor: pointer;
  796. border-radius: 8px;
  797. .msPhoto {
  798. display: flex;
  799. justify-content: center;
  800. align-items: center;
  801. max-width: 100%;
  802. max-height: 270px;
  803. img {
  804. max-width: 100%;
  805. max-height: 270px;
  806. }
  807. }
  808. .imgbbx {
  809. display: flex;
  810. flex-direction: column;
  811. align-items: center;
  812. justify-content: center;
  813. width: 100%;
  814. height: 100%;
  815. i {
  816. font-weight: bold;
  817. margin: 14px 0;
  818. font-size: 24px;
  819. }
  820. }
  821. }
  822. p {
  823. margin: 5px 0px;
  824. }
  825. }
  826. .listBoxStys {
  827. flex-shrink: 0;
  828. padding: 0px 10px;
  829. border-radius: 8px;
  830. border: 1px solid #eee;
  831. margin-right: 10px;
  832. margin-bottom: 6px;
  833. }
  834. .closeIcons {
  835. color: red;
  836. cursor: pointer;
  837. margin-left: 6px;
  838. }
  839. .ach {
  840. display: flex;
  841. align-items: center;
  842. overflow: hidden;
  843. }
  844. .clh {
  845. display: flex;
  846. align-items: center;
  847. flex-wrap: wrap;
  848. }
  849. .BusBoxs {
  850. min-height: 100px;
  851. border: 1px solid #a4a4a4;
  852. margin-bottom: 10px;
  853. border-radius: 8px;
  854. max-height: 280px;
  855. padding: 10px;
  856. overflow-y: auto;
  857. .fot_Le {
  858. border-radius: 12px;
  859. border: 1px solid yellowgreen;
  860. padding: 0px 10px;
  861. height: 30px;
  862. line-height: 30px;
  863. text-align: center;
  864. float: left;
  865. margin-right: 6px;
  866. margin-bottom: 6px;
  867. .icon_clear {
  868. margin-left: 2px;
  869. font-size: 15px;
  870. color: #f56c6c;
  871. cursor: pointer;
  872. }
  873. }
  874. }
  875. </style>