index.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852
  1. <template>
  2. <div class="base-container">
  3. <fnHeader :hideSwitch="true" :hideShadow="true" showDate></fnHeader>
  4. <div class="content">
  5. <div class="left">
  6. <div class="btn" @click="goBack">
  7. <img src="@/assets/images/common/back-icon.png" alt="" />
  8. 返回
  9. </div>
  10. <chart-box class="left-cont" :name="isAdd ? '新增农事' : '编辑农事'" color="yellow">
  11. <template #title-right>
  12. <steps v-if="isAdd" :active="active"></steps>
  13. </template>
  14. <div class="box">
  15. <div class="box-item" v-if="active === 0">
  16. <div class="box-title">
  17. <div>
  18. 选择农事类型
  19. <span>(可多选)</span>
  20. </div>
  21. </div>
  22. <div class="list">
  23. <div
  24. class="list-item"
  25. @click="handleItem(item, index)"
  26. :class="{ active: item.active }"
  27. v-for="(item, index) in checkData"
  28. :key="index"
  29. >
  30. {{ item.name }}
  31. <el-icon size="25" color="#FFD489" v-show="item.active"
  32. ><CircleCheckFilled
  33. /></el-icon>
  34. <div v-show="!item.active" class="round"></div>
  35. </div>
  36. </div>
  37. </div>
  38. <template v-else>
  39. <el-form class="box-form" ref="formRef" :model="dynamicValidateForm" :rules="rules">
  40. <div class="box-item">
  41. <div class="box-title">基本信息</div>
  42. <el-form-item label="农事名称" prop="name">
  43. <el-input v-model="dynamicValidateForm.name" />
  44. </el-form-item>
  45. <el-form-item label="触发条件" prop="conditionRate">
  46. <el-input v-model="dynamicValidateForm.conditionRate" />
  47. </el-form-item>
  48. <el-form-item label="执行时间" prop="executeDate">
  49. <el-date-picker
  50. class="item-input"
  51. style="width: 100%"
  52. value-format="YYYY-MM-DD"
  53. v-model="dynamicValidateForm.executeDate"
  54. type="date"
  55. :clearable="false"
  56. placeholder="选择日期"
  57. />
  58. </el-form-item>
  59. </div>
  60. <div class="usage-mode box-form">
  61. <el-form-item label="执行分区" prop="regionId">
  62. <div class="mode-select">
  63. <el-select
  64. v-model="dynamicValidateForm.regionId"
  65. placeholder="请选择"
  66. style="width: 100%"
  67. @change="changeRegion"
  68. >
  69. <el-option v-for="(area, index) in areaList" :key="index" :label="area.name" :value="area.id">
  70. </el-option>
  71. </el-select>
  72. </div>
  73. </el-form-item>
  74. <el-form-item label="服务亩数" prop="regionId">
  75. <div class="mode-select">
  76. {{ dynamicValidateForm.area }}亩
  77. </div>
  78. </el-form-item>
  79. </div>
  80. <div class="usage-mode box-form">
  81. <el-form-item label="施用方式" prop="usageMode">
  82. <div class="mode-select">
  83. <el-select
  84. v-model="dynamicValidateForm.usageMode"
  85. placeholder="请选择"
  86. prop="usageMode"
  87. style="width: 100%"
  88. >
  89. <el-option
  90. v-for="(usage, uId) in allUsageModeList"
  91. :key="uId"
  92. :label="usage"
  93. :value="usage"
  94. />
  95. </el-select>
  96. </div>
  97. </el-form-item>
  98. </div>
  99. </el-form>
  100. <div
  101. class="box-item"
  102. v-for="(item, index) in dynamicValidateForm.prescriptionList"
  103. :key="index"
  104. >
  105. <div class="box-title border-none">
  106. {{ item.name }}处方
  107. <div class="add-text" @click="handleAdd(index)">
  108. <el-icon class="icon"><Plus /></el-icon>
  109. 添加药物
  110. </div>
  111. </div>
  112. <div
  113. class="box-item-children"
  114. v-for="(ele, idx) in item.pesticideFertilizerList"
  115. :key="idx + 'id'"
  116. >
  117. <div class="index">{{ idx < 10 ? "0" + (idx + 1) : idx + 1 }}</div>
  118. <custom-table
  119. @updateTableData="updateTableData"
  120. :pIndex="index"
  121. :cIndex="idx"
  122. :key="index + '-' + idx"
  123. :pesticideFertilizerList="ele"
  124. :hasFly="dynamicValidateForm.usageMode === '叶面施'"
  125. ></custom-table>
  126. <div class="box-textarea">
  127. <el-input
  128. class="textarea"
  129. v-model="ele.remark"
  130. :rows="1"
  131. type="textarea"
  132. placeholder="用药注意事项备注"
  133. />
  134. </div>
  135. <div class="btn-group">
  136. <div class="delete" @click="handleDelete(index, idx)">删除</div>
  137. <div @click="resetItem(index, idx)">重置</div>
  138. </div>
  139. </div>
  140. </div>
  141. <div class="box-item">
  142. <el-input
  143. class="textarea"
  144. v-model="textarea"
  145. type="textarea"
  146. placeholder="用药注意事项备注"
  147. />
  148. </div>
  149. </template>
  150. </div>
  151. <div class="footer">
  152. <el-button v-if="!isAdd" class="button delete" type="danger" plain @click="remove()">删除</el-button>
  153. <div class="button" @click="handleOk">{{ active === 0 ? "确定" : (isAdd ? "新增农事" : "下发农事") }}</div>
  154. </div>
  155. </chart-box>
  156. </div>
  157. <div class="right">
  158. <div class="map-header">
  159. <div class="title">
  160. <img src="@/assets/images/common/area-icon.png" alt="" />
  161. 执行农事区域
  162. </div>
  163. <div class="check-btn"><el-checkbox v-model="checkedArea" @change="handleArea" label="全选" size="large" /></div>
  164. </div>
  165. <div ref="mapRef" class="map">
  166. <div class="map-bg map-btn">查看巡园照片</div>
  167. <div class="map-bg map-legend">
  168. <div class="legend-item legend-title">
  169. <el-checkbox v-model="showMapLegend" @change="handleLegend" label="状态图例" size="large" />
  170. </div>
  171. <div class="item">
  172. <img src="@/assets/images/map/status/status-zc.png" alt="" />
  173. 正常
  174. </div>
  175. <div class="item">
  176. <img src="@/assets/images/map/status/status-szyc.png" alt="" />
  177. 生长异常
  178. </div>
  179. <div class="item">
  180. <img src="@/assets/images/map/status/status-bh.png" alt="" />
  181. 病害异常
  182. </div>
  183. <div class="item">
  184. <img src="@/assets/images/map/status/status-ch.png" alt="" />
  185. 虫害异常
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </template>
  193. <script setup>
  194. import { onMounted, ref, reactive } from "vue";
  195. import { ElMessage, ElMessageBox } from "element-plus";
  196. import fnHeader from "@/components/fnHeader.vue";
  197. import steps from "./components/steps.vue";
  198. import customTable from "./components/table.vue";
  199. import FarmMap from "./farmMap";
  200. import { deepClone } from "@/common/commonFun";
  201. import chartBox from "@/components/chartBox.vue";
  202. import { useRouter, useRoute } from "vue-router";
  203. import { useStore } from "vuex";
  204. import eventBus from "@/api/eventBus";
  205. let store = useStore();
  206. let farmMap = new FarmMap();
  207. const active = ref(0);
  208. const checkData = ref([
  209. { value: 1, name: "生长异常", active: true, children: [{ index: 1 }] },
  210. { value: 3, name: "病虫异常", active: false, children: [{ index: 1 }] },
  211. { value: 2, name: "营养农事", active: false, children: [{ index: 1 }] },
  212. ]);
  213. const handleItem = (item, index) => {
  214. checkData.value[index].active = !checkData.value[index].active;
  215. // const curIndex = checkValue.value.indexOf(item.value)
  216. // if(curIndex===-1){
  217. // checkValue.value.push(item.value)
  218. // }else{
  219. // checkValue.value.splice(curIndex,1)
  220. // checkList.value[index].active = false
  221. // }
  222. };
  223. const router = useRouter();
  224. const route = useRoute();
  225. const mapRef = ref();
  226. const farmId = sessionStorage.getItem("farmId");
  227. // 所选蓝色分区的面积
  228. const getArea = (val) => {
  229. dynamicValidateForm.area = val.toFixed(2);
  230. };
  231. // 是否为新增
  232. const isAdd = ref(true);
  233. const libId = route.query?.libId
  234. onMounted(async () => {
  235. farmMap.initMap("POINT(113.61448114737868 23.585550924763083)", mapRef.value);
  236. isAdd.value = route.query?.isAdd;
  237. if (!isAdd.value) {
  238. active.value = 1
  239. getList()
  240. }
  241. await getAreaList();
  242. dynamicValidateForm.regionId = Number(sessionStorage.getItem("regionId")) ? Number(sessionStorage.getItem("regionId")) : areaList.value[0].id;
  243. // farmMap.initData(farmId, dynamicValidateForm.regionId)
  244. });
  245. eventBus.off("editNsMap:areaVal", getArea)
  246. eventBus.on("editNsMap:areaVal", getArea)
  247. // 农场分区列表
  248. const areaList = ref([]);
  249. const orderIdVal = ref("");
  250. const workItemData = ref({});
  251. const getAreaList = async (callback) => {
  252. await VE_API.area.list({ farmId }).then(({ data, code }) => {
  253. areaList.value = data;
  254. // if (isAdd.value) {
  255. // regionId.value = data && data.length && data[0].id
  256. // } else {
  257. // regionId.value = workItemData.value.regionId
  258. // }
  259. if (isAdd.value) {
  260. changeRegion(dynamicValidateForm.regionId);
  261. }
  262. callback && callback();
  263. });
  264. };
  265. const id = route.query?.id
  266. function getList() {
  267. VE_API.farm.fetchFarmWorkList({ farmId, libId ,id}).then(({data}) => {
  268. workItemData.value = data[0]
  269. Object.assign(dynamicValidateForm, workItemData.value)
  270. dynamicValidateForm.name = workItemData.value.farmWorkName
  271. dynamicValidateForm.conditionRate = workItemData.value.condition
  272. farmMap.initData(workItemData.value.farmId, workItemData.value.regionId)
  273. farmMap.getBlueRegion({gardenId: workItemData.value.farmId, regionId: workItemData.value.regionId}, (e) => {
  274. checkedArea.value = workItemData.value.executeBlueZones.length === e
  275. farmMap.setBlueRegion(workItemData.value.executeBlueZones)
  276. });
  277. })
  278. }
  279. const farmObj = ref();
  280. const serviceRegion = ref("");
  281. const getFarmObj = () => {
  282. VE_API.farm.fetchFarmDetail({ id: farmId }).then(({ data }) => {
  283. farmObj.value = data;
  284. if (serviceRegion.value === "") {
  285. serviceRegion.value = data.district + data.address + data.name;
  286. }
  287. });
  288. };
  289. // 切换分区
  290. const checkedArea = ref(false);
  291. const changeRegion = (e) => {
  292. dynamicValidateForm.area = 0;
  293. checkedArea.value = false;
  294. farmMap.initData(farmId, dynamicValidateForm.regionId)
  295. farmMap.getBlueRegion({ gardenId: farmId, regionId: e });
  296. };
  297. const handleArea = (e) => {
  298. farmMap.toggleAllArea(e)
  299. }
  300. // 地图图例
  301. const showMapLegend = ref(true);
  302. const handleLegend = (e) => {
  303. farmMap.toggleLegend(e);
  304. };
  305. const goBack = () => {
  306. router.go(-1);
  307. };
  308. const remove = () => {
  309. ElMessageBox.confirm("是否要删除这个农事?", "警告", {
  310. confirmButtonText: "删除",
  311. cancelButtonText: "取消",
  312. type: "warning",
  313. }).then(() => {
  314. VE_API.farm.deleteFarmWork({ libId }).then(({ code }) => {
  315. if (code === 0) {
  316. ElMessage({
  317. type: "success",
  318. message: "删除成功!",
  319. });
  320. setTimeout(() => {
  321. router.go(-1);
  322. }, 500);
  323. }
  324. });
  325. });
  326. };
  327. //确定/下发农事
  328. const handleOk = () => {
  329. if (active.value) {
  330. formRef.value.validate((valid) => {
  331. if (valid) {
  332. submitForm();
  333. // const res = tableData.value.getItem
  334. // console.log('res', res);
  335. }
  336. });
  337. } else {
  338. active.value = 1;
  339. const arr = checkData.value.filter((item) => item.active);
  340. // boxList.value = deepClone(arr);
  341. dynamicValidateForm.prescriptionList = arr.map((item) => ({
  342. name: item.name,
  343. active: item.active,
  344. pesticideFertilizerList: [
  345. {
  346. key: 1,
  347. typeName: "",
  348. muUsage: "",
  349. muUsage2: "",
  350. ratio: "",
  351. ratio2: "",
  352. remark: "",
  353. },
  354. ],
  355. }));
  356. }
  357. };
  358. async function submitForm() {
  359. const executeBlueZones = farmMap.getSelectedBlueRegion();
  360. if (!executeBlueZones || !executeBlueZones.length) {
  361. ElMessage({
  362. message: "请选择执行区域",
  363. type: "warning",
  364. });
  365. return false;
  366. }
  367. let data = {
  368. ...dynamicValidateForm,
  369. executeBlueZones,
  370. remark: textarea.value,
  371. farmId,
  372. };
  373. console.log('dddd', data);
  374. let res = null;
  375. if (isAdd.value) {
  376. data.farmWorkType = 1;
  377. // data.name = name.value;
  378. // data.condition = condition.value;
  379. // 新增农事
  380. res = await VE_API.farm.saveFarmWork(data);
  381. } else {
  382. data = {...data, orderStatus: 1,}
  383. res = await VE_API.farm.confirm(data);
  384. }
  385. if (res?.code == 0) {
  386. ElMessage({
  387. message: "保存成功",
  388. type: "success",
  389. });
  390. router.go(-1);
  391. }
  392. }
  393. // 表单
  394. const formRef = ref();
  395. const allUsageModeList = ["叶面施", "根部施"];
  396. let dynamicValidateForm = reactive({
  397. name: "",
  398. conditionRate: "",
  399. executeDate: "",
  400. usageMode: "",
  401. regionId: "",
  402. prescriptionList: [
  403. {
  404. name: "",
  405. pesticideFertilizerList: [
  406. {
  407. key: 1,
  408. typeName: "",
  409. muUsage: "",
  410. muUsage2: "",
  411. ratio: "",
  412. ratio2: "",
  413. remark: "",
  414. },
  415. ],
  416. },
  417. ],
  418. });
  419. const rules = {
  420. name: [
  421. {
  422. required: true,
  423. message: "请输入农事名称",
  424. trigger: "blur",
  425. },
  426. ],
  427. conditionRate: [
  428. {
  429. required: true,
  430. message: "请输入触发条件",
  431. trigger: "blur",
  432. },
  433. ],
  434. executeDate: [
  435. {
  436. required: true,
  437. message: "请选择执行时间",
  438. trigger: "blur",
  439. },
  440. ],
  441. usageMode: [
  442. {
  443. required: true,
  444. message: "请选择施用方式",
  445. trigger: "change",
  446. },
  447. ],
  448. regionId: [
  449. {
  450. required: true,
  451. message: "请选择执行区域",
  452. trigger: "change",
  453. },
  454. ],
  455. };
  456. const textarea = ref("");
  457. // 添加
  458. const handleAdd = (index) => {
  459. dynamicValidateForm.prescriptionList[index].pesticideFertilizerList.push({
  460. index: 1,
  461. name: "",
  462. pesticideFertilizerList: [
  463. {
  464. key: 1,
  465. typeName: "",
  466. muUsage: "",
  467. muUsage2: "",
  468. ratio: "",
  469. ratio2: "",
  470. remark: "",
  471. },
  472. ],
  473. });
  474. };
  475. // 删除
  476. const handleDelete = (index, childIndex) => {
  477. // if (boxList.value[index].children.length === 1) return ElMessage.warning("最少保留一个处方");
  478. dynamicValidateForm.prescriptionList[index].pesticideFertilizerList.splice(childIndex, 1);
  479. };
  480. // 重置
  481. function resetItem(index, childIndex) {
  482. dynamicValidateForm.prescriptionList[index].pesticideFertilizerList[childIndex] = {
  483. key: 1,
  484. pesticideFertilizerId: "",
  485. typeName: "",
  486. muUsage: "",
  487. muUsage2: "",
  488. ratio: "",
  489. ratio2: "",
  490. remark: "",
  491. };
  492. }
  493. function updateTableData(pIndex, cIndex, tableData) {
  494. dynamicValidateForm.prescriptionList[pIndex].pesticideFertilizerList[cIndex] = {
  495. ...tableData,
  496. };
  497. }
  498. </script>
  499. <style lang="scss" scoped>
  500. .base-container {
  501. width: 100%;
  502. height: 100vh;
  503. color: #fff;
  504. position: relative;
  505. box-sizing: border-box;
  506. z-index: 1;
  507. background: #000;
  508. .content {
  509. width: 100%;
  510. height: calc(100% - 74px);
  511. display: flex;
  512. justify-content: space-between;
  513. box-sizing: border-box;
  514. padding: 20px;
  515. .left {
  516. width: 473px;
  517. height: 100%;
  518. box-sizing: border-box;
  519. .btn {
  520. display: flex;
  521. align-items: center;
  522. justify-content: center;
  523. border: 1px solid rgba(255, 255, 255, 0.78);
  524. border-radius: 4px;
  525. padding: 9px;
  526. margin-bottom: 13px;
  527. width: 104px;
  528. cursor: pointer;
  529. img {
  530. width: 14px;
  531. margin-right: 5px;
  532. }
  533. }
  534. .left-cont {
  535. width: 100%;
  536. height: calc(100% - 48px - 4px);
  537. .box {
  538. width: 100%;
  539. height: calc(100% - 58px);
  540. padding: 16px 12px;
  541. box-sizing: border-box;
  542. overflow-y: auto;
  543. .box-item {
  544. background: rgba(255, 255, 255, 0.04);
  545. border: 1px solid #444444;
  546. border-radius: 8px;
  547. padding: 16px 12px 8px 12px;
  548. box-sizing: border-box;
  549. width: 100%;
  550. .box-title {
  551. font-size: 20px;
  552. border-bottom: 1px solid #333333;
  553. padding: 0 0 12px 13px;
  554. margin-bottom: 21px;
  555. position: relative;
  556. display: flex;
  557. justify-content: space-between;
  558. &.border-none {
  559. border: none;
  560. padding-bottom: 0;
  561. }
  562. &::before {
  563. content: "";
  564. position: absolute;
  565. left: 0;
  566. top: 6px;
  567. width: 3px;
  568. height: 16px;
  569. background: #fff;
  570. border-radius: 11px;
  571. }
  572. span {
  573. font-size: 14px;
  574. color: #9f9f9f;
  575. }
  576. .add-text {
  577. font-size: 16px;
  578. color: #ffd489;
  579. display: flex;
  580. align-items: center;
  581. cursor: pointer;
  582. .icon {
  583. margin-right: 3px;
  584. }
  585. }
  586. }
  587. .list {
  588. .list-item {
  589. background: rgba(255, 255, 255, 0.05);
  590. border-radius: 8px;
  591. font-size: 18px;
  592. padding: 16px;
  593. display: flex;
  594. align-items: center;
  595. justify-content: space-between;
  596. border: 1px solid transparent;
  597. cursor: pointer;
  598. &.active {
  599. border-color: #ffd489;
  600. background: rgba(255, 212, 137, 0.05);
  601. }
  602. .round {
  603. border: 1px solid #cecece;
  604. border-radius: 50%;
  605. width: 20px;
  606. height: 20px;
  607. }
  608. }
  609. .list-item + .list-item {
  610. margin-top: 16px;
  611. }
  612. }
  613. .box-item-children {
  614. border: 1px solid #444444;
  615. border-radius: 8px;
  616. padding: 9px;
  617. box-sizing: border-box;
  618. position: relative;
  619. .index {
  620. position: absolute;
  621. top: 0;
  622. left: 0;
  623. background: #ffd489;
  624. border-radius: 4px 0 4px 0;
  625. font-size: 12px;
  626. color: #1d1d1d;
  627. padding: 0 7px;
  628. }
  629. .box-textarea {
  630. border-radius: 4px;
  631. padding: 10px;
  632. background: rgba(255, 255, 255, 0.05);
  633. margin: 16px 0 20px 0;
  634. }
  635. .btn-group {
  636. display: flex;
  637. div {
  638. background: rgba(255, 212, 137, 0.05);
  639. border-radius: 4px;
  640. border: 1px solid #ffd489;
  641. padding: 6px;
  642. flex: 1;
  643. color: #ffd489;
  644. text-align: center;
  645. cursor: pointer;
  646. }
  647. .delete {
  648. background: rgba(249, 152, 81, 0.05);
  649. border: 1px solid #f99851;
  650. color: #f99851;
  651. margin-right: 12px;
  652. }
  653. }
  654. }
  655. .box-item-children + .box-item-children {
  656. margin-top: 12px;
  657. }
  658. .textarea {
  659. ::v-deep {
  660. .el-textarea__inner {
  661. background: transparent;
  662. box-shadow: none;
  663. color: #fff;
  664. padding: 0;
  665. }
  666. }
  667. }
  668. }
  669. .box-item + .box-item {
  670. margin-top: 16px;
  671. }
  672. }
  673. // 编辑处方
  674. .box-form {
  675. ::v-deep {
  676. .el-form-item {
  677. width: 100%;
  678. }
  679. .el-form-item__label {
  680. font-size: 16px;
  681. color: #9f9f9f;
  682. }
  683. .el-input__wrapper {
  684. background: transparent;
  685. box-shadow: 0 0 0 1px #9f9f9f;
  686. .el-input__inner {
  687. color: #fff;
  688. }
  689. }
  690. }
  691. }
  692. .usage-mode {
  693. // display: flex;
  694. // align-items: center;
  695. color: #9f9f9f;
  696. padding: 16px 21px 0px 12px;
  697. border: 1px solid #363636;
  698. background: rgba(255, 255, 255, 0.04);
  699. border-radius: 8px;
  700. font-size: 16px;
  701. margin: 16px 0;
  702. width: 100%;
  703. box-sizing: border-box;
  704. .usage-title {
  705. padding-right: 20px;
  706. }
  707. .mode-select {
  708. flex: 1;
  709. }
  710. ::v-deep {
  711. .el-select__wrapper {
  712. background: transparent;
  713. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  714. }
  715. .el-select__placeholder,
  716. .el-select__caret {
  717. // color: #ffd489;
  718. color: #fff;
  719. }
  720. }
  721. }
  722. .footer {
  723. width: 100%;
  724. height: 58px;
  725. border-top: 0.5px solid #555555;
  726. background: rgba(255, 255, 255, 0.04);
  727. display: flex;
  728. justify-content: flex-end;
  729. align-items: center;
  730. .button {
  731. font-size: 16px;
  732. padding: 8px 58px;
  733. background: #ffd489;
  734. border-radius: 4px;
  735. color: #000;
  736. margin-right: 12px;
  737. cursor: pointer;
  738. &.delete {
  739. background: rgba(255, 148, 61, 0.1);
  740. color: #FF943D;
  741. border: 1px solid #FF943D;
  742. }
  743. }
  744. }
  745. }
  746. }
  747. .right {
  748. width: calc(100% - 473px - 18px);
  749. margin-left: 18px;
  750. height: 100%;
  751. background: #191919;
  752. border: 0.6px solid #444444;
  753. padding: 20px;
  754. box-sizing: border-box;
  755. border-radius: 8px;
  756. .map-header {
  757. display: flex;
  758. justify-content: space-between;
  759. .title {
  760. font-size: 22px;
  761. display: flex;
  762. align-items: flex-end;
  763. font-family: "PangMenZhengDao";
  764. margin-bottom: 16px;
  765. img {
  766. margin-right: 8px;
  767. }
  768. }
  769. .check-btn {
  770. ::v-deep {
  771. .el-checkbox {
  772. color: #fff;
  773. font-size: 20px;
  774. }
  775. }
  776. }
  777. }
  778. .map {
  779. width: 100%;
  780. clip-path: inset(0px round 4px);
  781. height: calc(100% - 31px - 16px);
  782. position: relative;
  783. .map-bg {
  784. position: absolute;
  785. z-index: 2;
  786. background: rgba(0, 0, 0, 0.6);
  787. border-radius: 18px;
  788. padding: 7px 16px;
  789. right: 20px;
  790. }
  791. .map-btn {
  792. top: 19px;
  793. cursor: pointer;
  794. }
  795. .map-legend {
  796. bottom: 21px;
  797. .item {
  798. display: flex;
  799. align-items: center;
  800. font-size: 14px;
  801. img {
  802. width: 16px;
  803. margin-right: 6px;
  804. }
  805. }
  806. .legend-title {
  807. border-bottom: 1px solid rgba(102, 102, 102, 0.35);
  808. }
  809. .item + .item {
  810. padding-top: 10px
  811. }
  812. }
  813. }
  814. }
  815. }
  816. }
  817. </style>