index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. <template>
  2. <div class="airportInfoDetails">
  3. <Minheader :is-auth="true" :is-statuser="true" @addForm="addForm">
  4. <template #header>
  5. <div class="status flex-wrap">
  6. <div class="manageTitle">机场信息维护</div>
  7. </div>
  8. </template></Minheader
  9. >
  10. <div class="airportInfo-content">
  11. <el-row :gutter="24">
  12. <el-col :span="6" style="background: #fff">
  13. <div class="tree_left">
  14. <el-scrollbar style="height: 100%">
  15. <div class="corporate">{{ company }}</div>
  16. <el-tree
  17. :data="data.value"
  18. :props="defaultProps"
  19. accordion
  20. @node-click="handleNodeClick"
  21. >
  22. </el-tree>
  23. </el-scrollbar>
  24. </div>
  25. </el-col>
  26. <el-col :span="18">
  27. <div class="app-containers">
  28. <DataTable
  29. :btnGroupWidth="btnGroupWidth"
  30. :tableHeader="tableCols"
  31. :tableData="tableData"
  32. :tableBtnGroup="tableBtnGroup"
  33. :tableProperty="{ rowKey: 'ID' }"
  34. @btnClick="btnClick"
  35. />
  36. </div>
  37. </el-col>
  38. </el-row>
  39. </div>
  40. <Dialog
  41. width="600px"
  42. :flag="flag"
  43. :type="type"
  44. :msgTitle="msgTitle"
  45. :delName="tableForm.airportName"
  46. @resetForm="resetForm"
  47. @delRest="delRest"
  48. @submitForm="submitForm"
  49. @delRemove="delRemove"
  50. >
  51. <div class="diacont">
  52. <el-form :model="tableForm" :rules="formRules" ref="airportInfoForm">
  53. <el-row :gutter="24">
  54. <el-col :span="12">
  55. <el-form-item
  56. label="中文全称"
  57. size="default"
  58. prop="airportName"
  59. :rules="formRules.isNotNull"
  60. >
  61. <el-input
  62. v-model="tableForm.airportName"
  63. placeholder="请输入机场名称"
  64. />
  65. </el-form-item>
  66. </el-col>
  67. <el-col :span="12">
  68. <el-form-item
  69. label="中文简称"
  70. size="default"
  71. prop="abbreviation"
  72. :rules="formRules.isNotNull"
  73. >
  74. <el-input
  75. v-model="tableForm.abbreviation"
  76. placeholder="请输入中文简称"
  77. />
  78. </el-form-item>
  79. </el-col>
  80. <el-col :span="12">
  81. <el-form-item label="英文简称" size="default">
  82. <el-input
  83. v-model="tableForm.englishAbbreviation"
  84. placeholder="请输入英文简称"
  85. />
  86. </el-form-item>
  87. </el-col>
  88. <el-col :span="12">
  89. <el-form-item label="英文全称" size="default">
  90. <el-input
  91. v-model="tableForm.fullName"
  92. placeholder="请输入英文全称"
  93. />
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="12">
  97. <el-form-item
  98. label="三字码"
  99. size="default"
  100. prop="IATACode"
  101. :rules="formRules.isNotNull"
  102. >
  103. <el-input
  104. v-model="tableForm.IATACode"
  105. placeholder="请输入三字码"
  106. />
  107. </el-form-item>
  108. </el-col>
  109. <el-col :span="12">
  110. <el-form-item
  111. label="四字码"
  112. size="default"
  113. prop="ICAOCode"
  114. :rules="formRules.isNotNull"
  115. >
  116. <el-input
  117. v-model="tableForm.ICAOCode"
  118. placeholder="请输入四字码"
  119. />
  120. </el-form-item>
  121. </el-col>
  122. <el-col :span="12">
  123. <el-form-item
  124. label="时区"
  125. size="default"
  126. prop="airportTimeZone"
  127. :rules="formRules.isNotNull"
  128. >
  129. <!-- <el-input v-model="tableForm.china" /> -->
  130. <el-select
  131. style="width: 100%"
  132. v-model="tableForm.airportTimeZone"
  133. class="input-shadow"
  134. filterable
  135. default-first-option
  136. clearable
  137. placeholder="请选择时区"
  138. >
  139. <el-option
  140. v-for="item in tableOptionser"
  141. :key="item.v ? item.v : item.planDepartureApt"
  142. :label="item.k ? item.k : item.planDepartureApt"
  143. :value="item.v ? item.v : item.planDepartureApt"
  144. >
  145. </el-option>
  146. </el-select>
  147. </el-form-item>
  148. </el-col>
  149. <el-col :span="12">
  150. <el-form-item
  151. label="公司名称"
  152. size="default"
  153. prop="companyName"
  154. :rules="formRules.isNotNull"
  155. >
  156. <el-input
  157. disabled
  158. v-model="tableForm.companyName"
  159. placeholder="请输入公司名称"
  160. />
  161. </el-form-item>
  162. </el-col>
  163. <el-col :span="24">
  164. <el-form-item label="备注" size="default">
  165. <el-input
  166. type="textarea"
  167. v-model="tableForm.remarks"
  168. placeholder="请输入备注"
  169. />
  170. </el-form-item>
  171. </el-col>
  172. </el-row>
  173. </el-form>
  174. </div>
  175. </Dialog>
  176. </div>
  177. </template>
  178. <script setup lang="ts">
  179. import DataTable from "@/components/tableTemp/index.vue";
  180. import Dialog from "@/components/dialog/index.vue";
  181. import { translateDataToTreeAll } from "@/utils/validate";
  182. import { Query, GeneralDataReception } from "@/api/webApi";
  183. import { ElMessage } from "element-plus";
  184. import Cookies from "js-cookie";
  185. const formRules = useElement().formRules;
  186. const router = useRouter();
  187. const tableBtnGroup = ref<Array>([
  188. {
  189. name: "编辑",
  190. className: "editBtn",
  191. param: 2,
  192. },
  193. {
  194. name: "区域设置",
  195. className: "editBtn",
  196. param: 4,
  197. },
  198. {
  199. name: "删除",
  200. className: "delBtn",
  201. param: 3,
  202. },
  203. ]); //单独的编辑
  204. const page = ref<number>(0); //分页参数
  205. const dataContent = ref<object>({});
  206. const noMore = ref<Boolean>(false);
  207. const rowTitle = ref<String>("");
  208. const tableCols = ref([]); //表头数据
  209. const serviceId = ref<String>("");
  210. const tableObj = ref({}); //增删改数据缓存
  211. const defaultProps = ref({
  212. children: "children",
  213. label: "companyName",
  214. });
  215. const companyID = ref(""); //机场id
  216. const btnGroupWidth = ref<String>("");
  217. const flag = ref<Boolean>(false); //弹窗开关
  218. const type = ref<String>(""); //判断是否删除
  219. const msgTitle = ref<String>("新增机场信息维护"); //弹窗标题
  220. const tableOptionser = ref<Array>([
  221. {
  222. k: "UTC",
  223. v: "1",
  224. },
  225. {
  226. k: "UTC+1",
  227. v: "+1",
  228. },
  229. {
  230. k: "UTC+2",
  231. v: "+2",
  232. },
  233. {
  234. k: "UTC+3",
  235. v: "+3",
  236. },
  237. {
  238. k: "UTC+4",
  239. v: "+4",
  240. },
  241. {
  242. k: "UTC+5",
  243. v: "+5",
  244. },
  245. {
  246. k: "UTC+6",
  247. v: "+6",
  248. },
  249. {
  250. k: "UTC+7",
  251. v: "+7",
  252. },
  253. {
  254. k: "UTC+8",
  255. v: "+8",
  256. },
  257. {
  258. k: "UTC+9",
  259. v: "+9",
  260. },
  261. {
  262. k: "UTC+10",
  263. v: "+10",
  264. },
  265. {
  266. k: "UTC+11",
  267. v: "+11",
  268. },
  269. {
  270. k: "UTC-1",
  271. v: "-1",
  272. },
  273. {
  274. k: "UTC-2",
  275. v: "-2",
  276. },
  277. {
  278. k: "UTC-3",
  279. v: "-3",
  280. },
  281. {
  282. k: "UTC-4",
  283. v: "-4",
  284. },
  285. {
  286. k: "UTC-5",
  287. v: "-5",
  288. },
  289. {
  290. k: "UTC-6",
  291. v: "-6",
  292. },
  293. {
  294. k: "UTC-7",
  295. v: "-7",
  296. },
  297. {
  298. k: "UTC-8",
  299. v: "-8",
  300. },
  301. {
  302. k: "UTC-9",
  303. v: "-9",
  304. },
  305. {
  306. k: "UTC-10",
  307. v: "-10",
  308. },
  309. {
  310. k: "UTC-11",
  311. v: "-11",
  312. },
  313. ]); //弹窗下拉
  314. const tableColsCopys = reactive<Object>({}); //弹窗
  315. const tableForm = reactive({
  316. airportID: "",
  317. airportName: "",
  318. IATACode: "",
  319. ICAOCode: "",
  320. abbreviation: "",
  321. englishAbbreviation: "",
  322. fullName: "",
  323. companyID: "",
  324. airportTimeZone: "",
  325. companyName: "",
  326. remarks: "",
  327. event: "",
  328. }); //弹窗内容
  329. const tableColumnProperty = reactive({
  330. width: "120px",
  331. fixed: "",
  332. sortable: false,
  333. showOverflowTooltip: false,
  334. align: "center",
  335. headerAlign: "",
  336. }); //弹窗内容
  337. //列表
  338. const tableData = ref([]);
  339. //表头
  340. const state = reactive({
  341. list: [
  342. { label: "名称", key: "name" },
  343. { label: "三字码", key: "china" },
  344. { label: "四字码", key: "englin" },
  345. { label: "中文简称", key: "two" },
  346. { label: "英文简称", key: "three" },
  347. { label: "全称", key: "text" },
  348. { label: "时区", key: "text1" },
  349. { label: "公司名称", key: "text2" },
  350. ],
  351. listLoading: true,
  352. });
  353. const company = ref("所属公司");
  354. const data = reactive([]);
  355. //新增
  356. const addForm = () => {
  357. msgTitle.value = "新增机场信息维护";
  358. flag.value = true;
  359. type.value = "";
  360. tableForm.event = 1;
  361. tableForm.companyID = companyID;
  362. };
  363. //取消
  364. const resetForm = () => {
  365. flag.value = false;
  366. tableForm.airportID = "";
  367. tableForm.airportName = "";
  368. tableForm.IATACode = "";
  369. tableForm.ICAOCode = "";
  370. tableForm.abbreviation = "";
  371. tableForm.englishAbbreviation = "";
  372. tableForm.fullName = "";
  373. tableForm.companyID = "";
  374. tableForm.airportTimeZone = "";
  375. tableForm.companyName = "";
  376. tableForm.event = "";
  377. tableForm.remarks = "";
  378. };
  379. //编辑
  380. const editDialog = (data) => {
  381. msgTitle.value = "编辑机场信息维护";
  382. flag.value = true;
  383. type.value = "";
  384. tableForm.name = data.name;
  385. tableForm.china = data.china;
  386. tableForm.englin = data.englin;
  387. tableForm.two = data.two;
  388. tableForm.three = data.three;
  389. tableForm.text = data.text;
  390. tableForm.text1 = data.text1;
  391. tableForm.text2 = data.text2;
  392. };
  393. //删除
  394. const eleDialog = () => {
  395. msgTitle.value = "删除机场信息维护";
  396. flag.value = true;
  397. type.value = "del";
  398. };
  399. //删除取消
  400. const delRest = () => {
  401. flag.value = false;
  402. };
  403. //区域跳转
  404. const aloneDialog = () => {
  405. router.push({ path: "/BasicsData/airportInfoChild" });
  406. };
  407. //编辑-删除
  408. const btnClick = (row, index, param) => {
  409. if (param === 2) {
  410. msgTitle.value = "编辑机场信息维护";
  411. flag.value = true;
  412. type.value = "";
  413. tableForm.airportID = index.airportID;
  414. tableForm.airportName = index.airportName;
  415. tableForm.IATACode = index.IATACode;
  416. tableForm.ICAOCode = index.ICAOCode;
  417. tableForm.abbreviation = index.abbreviation;
  418. tableForm.englishAbbreviation = index.englishAbbreviation;
  419. tableForm.fullName = index.fullName;
  420. tableForm.companyID = index.companyID;
  421. tableForm.airportTimeZone = index.airportTimeZone;
  422. tableForm.companyName = index.companyName;
  423. tableForm.event = index.event;
  424. tableForm.remarks = index.remarks;
  425. } else if (param === 3) {
  426. msgTitle.value = "删除机场信息维护";
  427. flag.value = true;
  428. type.value = "del";
  429. tableForm.event = 3;
  430. tableForm.airportID = index.airportID;
  431. tableForm.airportName = index.airportName;
  432. tableForm.IATACode = index.IATACode;
  433. tableForm.ICAOCode = index.ICAOCode;
  434. tableForm.abbreviation = index.abbreviation;
  435. tableForm.englishAbbreviation = index.englishAbbreviation;
  436. tableForm.fullName = index.fullName;
  437. tableForm.companyID = index.companyID;
  438. tableForm.airportTimeZone = index.airportTimeZone;
  439. tableForm.companyName = index.companyName;
  440. tableForm.event = index.event;
  441. } else if (param === 4) {
  442. Cookies.set("IATACode", index.IATACode);
  443. Cookies.set("abbreviation", index.abbreviation);
  444. router.push({
  445. path: "/BasicsData/airportInfoChild",
  446. query: {
  447. IATACode: index.IATACode,
  448. abbreviation: index.abbreviation,
  449. },
  450. });
  451. }
  452. };
  453. //点击树事件
  454. const handleNodeClick = (data) => {
  455. // console.log(data);
  456. company.value = data.companyName;
  457. tableForm.companyName = data.companyName;
  458. companyID.value = data.companyID;
  459. tableData.value = [];
  460. page.value = 0;
  461. getQuery();
  462. };
  463. //获取表格数据
  464. const getQuery = async () => {
  465. try {
  466. const { code, returnData } = await Query({
  467. id: DATACONTENT_ID.airportTableId,
  468. needPage: ++page.value,
  469. dataContent: [JSON.stringify(companyID.value)],
  470. });
  471. if (code === "0") {
  472. if (returnData.listValues.length === 0) {
  473. page.value--;
  474. noMore.value = true;
  475. }
  476. const titleColumn = returnData.columnSet.find(
  477. (item) => item.needShow === 1
  478. );
  479. if (titleColumn) {
  480. rowTitle.value = titleColumn.columnName;
  481. }
  482. tableData.value.push(...returnData.listValues);
  483. if (returnData.columnSet) {
  484. btnGroupWidth.value = "300px";
  485. } else {
  486. btnGroupWidth.value = "";
  487. }
  488. tableCols.value = returnData.columnSet;
  489. tableCols.value.forEach((element) => {
  490. element.label = element.columnLabel;
  491. element.key = element.columnName;
  492. // if (element.columnName === "queryTemplate") {
  493. // element.width = "300px";
  494. // }
  495. });
  496. serviceId.value = returnData.submitID;
  497. } else {
  498. page.value--;
  499. }
  500. } catch (error) {
  501. page.value--;
  502. }
  503. };
  504. //公司列表
  505. const getAirlines = async () => {
  506. try {
  507. const res = await Query({
  508. id: DATACONTENT_ID.airportTreeId,
  509. dataContent: [],
  510. });
  511. if (res.code === "0") {
  512. let arr = [];
  513. arr = translateDataToTreeAll(
  514. res.returnData.listValues,
  515. "parentID",
  516. "companyID"
  517. );
  518. data.value = arr;
  519. companyID.value = data.value[0].companyID;
  520. company.value = data.value[0].companyName;
  521. tableForm.companyName = data.value[0].companyName;
  522. getQuery();
  523. // if (!company.length) {
  524. // company.value = arr[0].companyID;
  525. // company.value = arr[0].companyName;
  526. // }
  527. } else {
  528. // this.$message.error(res.message ?? "失败");
  529. }
  530. } catch (error) {
  531. // this.$message.error("失败");
  532. }
  533. };
  534. //确认提交
  535. const airportInfoForm: any = ref(null);
  536. const submitForm = () => {
  537. airportInfoForm.value.validate((valid: any) => {
  538. if (valid) {
  539. generalDataReception(tableForm);
  540. } else {
  541. return false;
  542. }
  543. });
  544. };
  545. const resetTable = () => {
  546. page.value = 0;
  547. noMore.value = false;
  548. tableData.value = [];
  549. };
  550. //新增-编辑-删除
  551. const generalDataReception = async (data) => {
  552. try {
  553. data = {
  554. ...data,
  555. };
  556. const { code } = await GeneralDataReception({
  557. serviceId: serviceId.value,
  558. dataContent: JSON.stringify(data),
  559. });
  560. if (code == 0) {
  561. ElMessage.success(`操作成功`);
  562. // this.$message.success("操作成功");
  563. resetTable();
  564. getQuery();
  565. resetForm();
  566. flag.value = false;
  567. // rmFlag.value = false;
  568. tableObj.value = {};
  569. // this.$router.go(0);
  570. } else {
  571. ElMessage.error(`操作失败`);
  572. // this.$message.error("操作失败");
  573. // this.flag = false;
  574. // this.rmFlag = false;
  575. tableObj.value = {};
  576. resetForm();
  577. }
  578. } catch (error) {
  579. flag.value = false;
  580. // rmFlag.value = false;
  581. tableObj.value = {};
  582. resetForm();
  583. }
  584. };
  585. const delRemove = () => {
  586. tableForm.event = 3;
  587. generalDataReception(tableForm);
  588. };
  589. getAirlines();
  590. </script>
  591. <style lang="scss" scoped>
  592. ::v-deep .el-form-item__label {
  593. width: 80px;
  594. }
  595. .airportInfoDetails {
  596. .airportInfoDetails-head {
  597. padding: 32px 40px 0px 32px;
  598. background: #ffffff;
  599. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  600. border-radius: 4px;
  601. .airportInfoDetails-head-content {
  602. margin-top: 30px;
  603. .el-input {
  604. min-width: 240px;
  605. }
  606. .el-form--inline .el-form-item {
  607. margin-bottom: 24px;
  608. margin-right: 50px;
  609. }
  610. }
  611. }
  612. .corporate {
  613. margin-top: 24px;
  614. margin-left: 24px;
  615. margin-bottom: 23px;
  616. font-size: 16px;
  617. font-family: Microsoft YaHei;
  618. font-weight: bold;
  619. color: #101116;
  620. }
  621. .log {
  622. width: 26px;
  623. height: 26px;
  624. background: #eb2f3b;
  625. border-radius: 50%;
  626. margin-right: 15px;
  627. background: url("../../../../assets/index/ic_close_hint.png") no-repeat;
  628. background-size: 100% 100%;
  629. }
  630. .airportInfoDialog {
  631. ::v-deep .el-form-item__content {
  632. margin-left: 120px !important;
  633. }
  634. ::v-deep .el-form-item__label {
  635. width: 120px !important;
  636. }
  637. ::v-deep .el-form-item {
  638. margin-bottom: 20px;
  639. }
  640. }
  641. .airportInfo-content {
  642. margin-top: 30px;
  643. img {
  644. margin: 0 auto;
  645. margin-top: 10%;
  646. display: -webkit-box;
  647. -webkit-box-pack: center;
  648. -webkit-box-align: center;
  649. -webkit-box-orient: vertical;
  650. text-align: center;
  651. }
  652. .grid-content {
  653. padding: 24px;
  654. margin-bottom: 24px;
  655. height: 144px;
  656. .edit_log {
  657. position: relative;
  658. // top: -2px;
  659. }
  660. .icon {
  661. cursor: pointer;
  662. }
  663. .desc {
  664. margin-top: 60px;
  665. font-size: 14px;
  666. font-family: Microsoft YaHei;
  667. font-weight: 400;
  668. color: #afb4bf;
  669. overflow: hidden;
  670. text-overflow: ellipsis;
  671. white-space: nowrap;
  672. }
  673. }
  674. }
  675. ::v-deep .el-input__suffix {
  676. right: 30px;
  677. }
  678. ::v-deep .el-input__inner {
  679. height: 32px;
  680. border-radius: 2px;
  681. }
  682. .flxdes {
  683. padding: 10px 0px 10px 20px;
  684. font-size: 16px;
  685. font-family: Microsoft YaHei;
  686. font-weight: bold;
  687. height: 36px;
  688. background: #eb2f3b;
  689. color: #ffffff;
  690. margin-bottom: 46px;
  691. width: 100%;
  692. }
  693. .airportInfoDetails-content {
  694. height: 60vh;
  695. overflow-x: hidden;
  696. overflow-y: auto;
  697. padding: 32px 0x 0 0;
  698. // background: #ffffff;
  699. // box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  700. border-radius: 4px;
  701. // margin-top: 24px;
  702. .terminal-info {
  703. margin-top: 20px;
  704. margin-bottom: 20px;
  705. .terminal-info-add {
  706. width: 216px;
  707. height: 120px;
  708. background: #f5f7fa;
  709. border: 1px dashed #d7dae3;
  710. border-radius: 8px;
  711. display: flex;
  712. justify-content: center;
  713. align-items: center;
  714. cursor: pointer;
  715. .icon {
  716. font-size: 31px;
  717. color: #d7dae3;
  718. }
  719. }
  720. .terminal-info-team {
  721. .terminal-info-list {
  722. width: 216px;
  723. height: 120px;
  724. margin-bottom: 24px;
  725. background: #f5f7fa;
  726. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  727. border-radius: 8px;
  728. padding: 24px;
  729. position: relative;
  730. margin-right: 24px;
  731. cursor: pointer;
  732. .name {
  733. font-size: 18px;
  734. font-family: Microsoft YaHei;
  735. font-weight: bold;
  736. color: #303133;
  737. white-space: nowrap;
  738. overflow: hidden;
  739. text-overflow: ellipsis;
  740. }
  741. .edit {
  742. margin-top: 32px;
  743. .round {
  744. display: inline-block;
  745. width: 28px;
  746. height: 28px;
  747. background: #6e82a7;
  748. border-radius: 50%;
  749. line-height: 28px;
  750. text-align: center;
  751. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  752. display: flex;
  753. align-items: center;
  754. justify-content: center;
  755. position: absolute;
  756. right: 0;
  757. i {
  758. color: #fff;
  759. }
  760. }
  761. }
  762. .close {
  763. width: 24px;
  764. height: 24px;
  765. background: #000000;
  766. opacity: 0.8;
  767. border-radius: 50%;
  768. position: absolute;
  769. right: -12px;
  770. line-height: 24px;
  771. text-align: center;
  772. top: -12px;
  773. i {
  774. color: #fff;
  775. }
  776. }
  777. &:last-child {
  778. margin-right: 0;
  779. }
  780. }
  781. .active {
  782. border: 2px solid #9ebbf7;
  783. .name {
  784. color: #fff;
  785. }
  786. .edit {
  787. .round {
  788. background: #fff;
  789. i {
  790. color: #6e82a7;
  791. }
  792. }
  793. }
  794. }
  795. }
  796. }
  797. .locationBox {
  798. // padding: 0 0 0 32px;
  799. // background: #ffffff;
  800. margin-top: 30px;
  801. }
  802. .LBox {
  803. display: flex;
  804. flex-wrap: wrap;
  805. width: 100%;
  806. margin-top: 40px;
  807. margin-bottom: 20px;
  808. }
  809. .lbox-add {
  810. width: 100%;
  811. height: 144px;
  812. background: #f5f7fa;
  813. border: 1px dashed #9ebbf7;
  814. border-radius: 8px;
  815. display: flex;
  816. justify-content: center;
  817. align-items: center;
  818. cursor: pointer;
  819. .icon {
  820. font-size: 31px;
  821. color: #9ebbf7;
  822. }
  823. }
  824. .forBox {
  825. width: 230px;
  826. height: 120px;
  827. margin-bottom: 24px;
  828. background: #f5f7fa;
  829. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  830. border-radius: 8px;
  831. padding: 24px;
  832. position: relative;
  833. margin-right: 24px;
  834. cursor: pointer;
  835. .name {
  836. font-size: 18px;
  837. font-family: Microsoft YaHei;
  838. font-weight: bold;
  839. color: #303133;
  840. white-space: nowrap;
  841. overflow: hidden;
  842. text-overflow: ellipsis;
  843. }
  844. .edit {
  845. margin-top: 32px;
  846. .round {
  847. display: inline-block;
  848. width: 28px;
  849. height: 28px;
  850. // background: #f5f7fa;
  851. border-radius: 50%;
  852. line-height: 28px;
  853. text-align: center;
  854. // box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  855. display: flex;
  856. align-items: center;
  857. justify-content: center;
  858. position: absolute;
  859. right: 20px;
  860. i {
  861. color: #fff;
  862. }
  863. }
  864. }
  865. .close {
  866. width: 24px;
  867. height: 24px;
  868. background: #000000;
  869. opacity: 0.8;
  870. border-radius: 50%;
  871. position: absolute;
  872. right: -12px;
  873. line-height: 24px;
  874. text-align: center;
  875. top: -12px;
  876. i {
  877. color: #fff;
  878. }
  879. }
  880. &:last-child {
  881. margin-right: 0;
  882. }
  883. }
  884. .active {
  885. // background: #6e82a7;
  886. border: 2px solid #9ebbf7;
  887. .name {
  888. // color: #fff;
  889. }
  890. .edit {
  891. .round {
  892. background: #fff;
  893. i {
  894. color: #6e82a7;
  895. }
  896. }
  897. }
  898. }
  899. }
  900. }
  901. </style>