index.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  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. for(let item of workItemData.value.conditionList){
  272. dynamicValidateForm.conditionRate=item.name + "大于" + (parseFloat(item.value) * 100) + "%";
  273. }
  274. farmMap.initData(workItemData.value.farmId, workItemData.value.regionId)
  275. farmMap.getBlueRegion({gardenId: workItemData.value.farmId, regionId: workItemData.value.regionId}, (e) => {
  276. checkedArea.value = workItemData.value.executeBlueZones.length === e
  277. farmMap.setBlueRegion(workItemData.value.executeBlueZones)
  278. });
  279. })
  280. }
  281. const farmObj = ref();
  282. const serviceRegion = ref("");
  283. const getFarmObj = () => {
  284. VE_API.farm.fetchFarmDetail({ id: farmId }).then(({ data }) => {
  285. farmObj.value = data;
  286. if (serviceRegion.value === "") {
  287. serviceRegion.value = data.district + data.address + data.name;
  288. }
  289. });
  290. };
  291. // 切换分区
  292. const checkedArea = ref(false);
  293. const changeRegion = (e) => {
  294. dynamicValidateForm.area = 0;
  295. checkedArea.value = false;
  296. farmMap.initData(farmId, dynamicValidateForm.regionId)
  297. farmMap.getBlueRegion({ gardenId: farmId, regionId: e });
  298. };
  299. const handleArea = (e) => {
  300. farmMap.toggleAllArea(e)
  301. }
  302. // 地图图例
  303. const showMapLegend = ref(true);
  304. const handleLegend = (e) => {
  305. farmMap.toggleLegend(e);
  306. };
  307. const goBack = () => {
  308. router.go(-1);
  309. };
  310. const remove = () => {
  311. ElMessageBox.confirm("是否要删除这个农事?", "警告", {
  312. confirmButtonText: "删除",
  313. cancelButtonText: "取消",
  314. type: "warning",
  315. }).then(() => {
  316. VE_API.farm.deleteFarmWork({ libId }).then(({ code }) => {
  317. if (code === 0) {
  318. ElMessage({
  319. type: "success",
  320. message: "删除成功!",
  321. });
  322. setTimeout(() => {
  323. router.go(-1);
  324. }, 500);
  325. }
  326. });
  327. });
  328. };
  329. //确定/下发农事
  330. const handleOk = () => {
  331. if (active.value) {
  332. formRef.value.validate((valid) => {
  333. if (valid) {
  334. submitForm();
  335. // const res = tableData.value.getItem
  336. // console.log('res', res);
  337. }
  338. });
  339. } else {
  340. active.value = 1;
  341. const arr = checkData.value.filter((item) => item.active);
  342. // boxList.value = deepClone(arr);
  343. dynamicValidateForm.prescriptionList = arr.map((item) => ({
  344. name: item.name,
  345. active: item.active,
  346. pesticideFertilizerList: [
  347. {
  348. key: 1,
  349. typeName: "",
  350. muUsage: "",
  351. muUsage2: "",
  352. ratio: "",
  353. ratio2: "",
  354. remark: "",
  355. },
  356. ],
  357. }));
  358. }
  359. };
  360. async function submitForm() {
  361. const executeBlueZones = farmMap.getSelectedBlueRegion();
  362. if (!executeBlueZones || !executeBlueZones.length) {
  363. ElMessage({
  364. message: "请选择执行区域",
  365. type: "warning",
  366. });
  367. return false;
  368. }
  369. let data = {
  370. ...dynamicValidateForm,
  371. executeBlueZones,
  372. remark: textarea.value,
  373. farmId,
  374. };
  375. console.log('dddd', data);
  376. let res = null;
  377. if (isAdd.value) {
  378. data.farmWorkType = 1;
  379. // data.name = name.value;
  380. // data.condition = condition.value;
  381. // 新增农事
  382. res = await VE_API.farm.saveFarmWork(data);
  383. } else {
  384. data = {...data, orderStatus: 1,}
  385. res = await VE_API.farm.confirm(data);
  386. }
  387. if (res?.code == 0) {
  388. ElMessage({
  389. message: "保存成功",
  390. type: "success",
  391. });
  392. router.go(-1);
  393. }
  394. }
  395. // 表单
  396. const formRef = ref();
  397. const allUsageModeList = ["叶面施", "根部施"];
  398. let dynamicValidateForm = reactive({
  399. name: "",
  400. conditionRate: "",
  401. executeDate: "",
  402. usageMode: "",
  403. regionId: "",
  404. prescriptionList: [
  405. {
  406. name: "",
  407. pesticideFertilizerList: [
  408. {
  409. key: 1,
  410. typeName: "",
  411. muUsage: "",
  412. muUsage2: "",
  413. ratio: "",
  414. ratio2: "",
  415. remark: "",
  416. },
  417. ],
  418. },
  419. ],
  420. });
  421. const rules = {
  422. name: [
  423. {
  424. required: true,
  425. message: "请输入农事名称",
  426. trigger: "blur",
  427. },
  428. ],
  429. conditionRate: [
  430. {
  431. required: true,
  432. message: "请输入触发条件",
  433. trigger: "blur",
  434. },
  435. ],
  436. executeDate: [
  437. {
  438. required: true,
  439. message: "请选择执行时间",
  440. trigger: "blur",
  441. },
  442. ],
  443. usageMode: [
  444. {
  445. required: true,
  446. message: "请选择施用方式",
  447. trigger: "change",
  448. },
  449. ],
  450. regionId: [
  451. {
  452. required: true,
  453. message: "请选择执行区域",
  454. trigger: "change",
  455. },
  456. ],
  457. };
  458. const textarea = ref("");
  459. // 添加
  460. const handleAdd = (index) => {
  461. dynamicValidateForm.prescriptionList[index].pesticideFertilizerList.push({
  462. index: 1,
  463. name: "",
  464. pesticideFertilizerList: [
  465. {
  466. key: 1,
  467. typeName: "",
  468. muUsage: "",
  469. muUsage2: "",
  470. ratio: "",
  471. ratio2: "",
  472. remark: "",
  473. },
  474. ],
  475. });
  476. };
  477. // 删除
  478. const handleDelete = (index, childIndex) => {
  479. // if (boxList.value[index].children.length === 1) return ElMessage.warning("最少保留一个处方");
  480. dynamicValidateForm.prescriptionList[index].pesticideFertilizerList.splice(childIndex, 1);
  481. };
  482. // 重置
  483. function resetItem(index, childIndex) {
  484. dynamicValidateForm.prescriptionList[index].pesticideFertilizerList[childIndex] = {
  485. key: 1,
  486. pesticideFertilizerId: "",
  487. typeName: "",
  488. muUsage: "",
  489. muUsage2: "",
  490. ratio: "",
  491. ratio2: "",
  492. remark: "",
  493. };
  494. }
  495. function updateTableData(pIndex, cIndex, tableData) {
  496. dynamicValidateForm.prescriptionList[pIndex].pesticideFertilizerList[cIndex] = {
  497. ...tableData,
  498. };
  499. }
  500. </script>
  501. <style lang="scss" scoped>
  502. .base-container {
  503. width: 100%;
  504. height: 100vh;
  505. color: #fff;
  506. position: relative;
  507. box-sizing: border-box;
  508. z-index: 1;
  509. background: #000;
  510. .content {
  511. width: 100%;
  512. height: calc(100% - 74px);
  513. display: flex;
  514. justify-content: space-between;
  515. box-sizing: border-box;
  516. padding: 20px;
  517. .left {
  518. width: 473px;
  519. height: 100%;
  520. box-sizing: border-box;
  521. .btn {
  522. display: flex;
  523. align-items: center;
  524. justify-content: center;
  525. border: 1px solid rgba(255, 255, 255, 0.78);
  526. border-radius: 4px;
  527. padding: 9px;
  528. margin-bottom: 13px;
  529. width: 104px;
  530. cursor: pointer;
  531. img {
  532. width: 14px;
  533. margin-right: 5px;
  534. }
  535. }
  536. .left-cont {
  537. width: 100%;
  538. height: calc(100% - 48px - 4px);
  539. .box {
  540. width: 100%;
  541. height: calc(100% - 58px);
  542. padding: 16px 12px;
  543. box-sizing: border-box;
  544. overflow-y: auto;
  545. .box-item {
  546. background: rgba(255, 255, 255, 0.04);
  547. border: 1px solid #444444;
  548. border-radius: 8px;
  549. padding: 16px 12px 8px 12px;
  550. box-sizing: border-box;
  551. width: 100%;
  552. .box-title {
  553. font-size: 20px;
  554. border-bottom: 1px solid #333333;
  555. padding: 0 0 12px 13px;
  556. margin-bottom: 21px;
  557. position: relative;
  558. display: flex;
  559. justify-content: space-between;
  560. &.border-none {
  561. border: none;
  562. padding-bottom: 0;
  563. }
  564. &::before {
  565. content: "";
  566. position: absolute;
  567. left: 0;
  568. top: 6px;
  569. width: 3px;
  570. height: 16px;
  571. background: #fff;
  572. border-radius: 11px;
  573. }
  574. span {
  575. font-size: 14px;
  576. color: #9f9f9f;
  577. }
  578. .add-text {
  579. font-size: 16px;
  580. color: #ffd489;
  581. display: flex;
  582. align-items: center;
  583. cursor: pointer;
  584. .icon {
  585. margin-right: 3px;
  586. }
  587. }
  588. }
  589. .list {
  590. .list-item {
  591. background: rgba(255, 255, 255, 0.05);
  592. border-radius: 8px;
  593. font-size: 18px;
  594. padding: 16px;
  595. display: flex;
  596. align-items: center;
  597. justify-content: space-between;
  598. border: 1px solid transparent;
  599. cursor: pointer;
  600. &.active {
  601. border-color: #ffd489;
  602. background: rgba(255, 212, 137, 0.05);
  603. }
  604. .round {
  605. border: 1px solid #cecece;
  606. border-radius: 50%;
  607. width: 20px;
  608. height: 20px;
  609. }
  610. }
  611. .list-item + .list-item {
  612. margin-top: 16px;
  613. }
  614. }
  615. .box-item-children {
  616. border: 1px solid #444444;
  617. border-radius: 8px;
  618. padding: 9px;
  619. box-sizing: border-box;
  620. position: relative;
  621. .index {
  622. position: absolute;
  623. top: 0;
  624. left: 0;
  625. background: #ffd489;
  626. border-radius: 4px 0 4px 0;
  627. font-size: 12px;
  628. color: #1d1d1d;
  629. padding: 0 7px;
  630. }
  631. .box-textarea {
  632. border-radius: 4px;
  633. padding: 10px;
  634. background: rgba(255, 255, 255, 0.05);
  635. margin: 16px 0 20px 0;
  636. }
  637. .btn-group {
  638. display: flex;
  639. div {
  640. background: rgba(255, 212, 137, 0.05);
  641. border-radius: 4px;
  642. border: 1px solid #ffd489;
  643. padding: 6px;
  644. flex: 1;
  645. color: #ffd489;
  646. text-align: center;
  647. cursor: pointer;
  648. }
  649. .delete {
  650. background: rgba(249, 152, 81, 0.05);
  651. border: 1px solid #f99851;
  652. color: #f99851;
  653. margin-right: 12px;
  654. }
  655. }
  656. }
  657. .box-item-children + .box-item-children {
  658. margin-top: 12px;
  659. }
  660. .textarea {
  661. ::v-deep {
  662. .el-textarea__inner {
  663. background: transparent;
  664. box-shadow: none;
  665. color: #fff;
  666. padding: 0;
  667. }
  668. }
  669. }
  670. }
  671. .box-item + .box-item {
  672. margin-top: 16px;
  673. }
  674. }
  675. // 编辑处方
  676. .box-form {
  677. ::v-deep {
  678. .el-form-item {
  679. width: 100%;
  680. }
  681. .el-form-item__label {
  682. font-size: 16px;
  683. color: #9f9f9f;
  684. }
  685. .el-input__wrapper {
  686. background: transparent;
  687. box-shadow: 0 0 0 1px #9f9f9f;
  688. .el-input__inner {
  689. color: #fff;
  690. }
  691. }
  692. }
  693. }
  694. .usage-mode {
  695. // display: flex;
  696. // align-items: center;
  697. color: #9f9f9f;
  698. padding: 16px 21px 0px 12px;
  699. border: 1px solid #363636;
  700. background: rgba(255, 255, 255, 0.04);
  701. border-radius: 8px;
  702. font-size: 16px;
  703. margin: 16px 0;
  704. width: 100%;
  705. box-sizing: border-box;
  706. .usage-title {
  707. padding-right: 20px;
  708. }
  709. .mode-select {
  710. flex: 1;
  711. }
  712. ::v-deep {
  713. .el-select__wrapper {
  714. background: transparent;
  715. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  716. }
  717. .el-select__placeholder,
  718. .el-select__caret {
  719. // color: #ffd489;
  720. color: #fff;
  721. }
  722. }
  723. }
  724. .footer {
  725. width: 100%;
  726. height: 58px;
  727. border-top: 0.5px solid #555555;
  728. background: rgba(255, 255, 255, 0.04);
  729. display: flex;
  730. justify-content: flex-end;
  731. align-items: center;
  732. .button {
  733. font-size: 16px;
  734. padding: 8px 58px;
  735. background: #ffd489;
  736. border-radius: 4px;
  737. color: #000;
  738. margin-right: 12px;
  739. cursor: pointer;
  740. &.delete {
  741. background: rgba(255, 148, 61, 0.1);
  742. color: #FF943D;
  743. border: 1px solid #FF943D;
  744. }
  745. }
  746. }
  747. }
  748. }
  749. .right {
  750. width: calc(100% - 473px - 18px);
  751. margin-left: 18px;
  752. height: 100%;
  753. background: #191919;
  754. border: 0.6px solid #444444;
  755. padding: 20px;
  756. box-sizing: border-box;
  757. border-radius: 8px;
  758. .map-header {
  759. display: flex;
  760. justify-content: space-between;
  761. .title {
  762. font-size: 22px;
  763. display: flex;
  764. align-items: flex-end;
  765. font-family: "PangMenZhengDao";
  766. margin-bottom: 16px;
  767. img {
  768. margin-right: 8px;
  769. }
  770. }
  771. .check-btn {
  772. ::v-deep {
  773. .el-checkbox {
  774. color: #fff;
  775. font-size: 20px;
  776. }
  777. }
  778. }
  779. }
  780. .map {
  781. width: 100%;
  782. clip-path: inset(0px round 4px);
  783. height: calc(100% - 31px - 16px);
  784. position: relative;
  785. .map-bg {
  786. position: absolute;
  787. z-index: 2;
  788. background: rgba(0, 0, 0, 0.6);
  789. border-radius: 18px;
  790. padding: 7px 16px;
  791. right: 20px;
  792. }
  793. .map-btn {
  794. top: 19px;
  795. cursor: pointer;
  796. }
  797. .map-legend {
  798. bottom: 21px;
  799. .item {
  800. display: flex;
  801. align-items: center;
  802. font-size: 14px;
  803. img {
  804. width: 16px;
  805. margin-right: 6px;
  806. }
  807. }
  808. .legend-title {
  809. border-bottom: 1px solid rgba(102, 102, 102, 0.35);
  810. }
  811. .item + .item {
  812. padding-top: 10px
  813. }
  814. }
  815. }
  816. }
  817. }
  818. }
  819. </style>