HomeView.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. <template>
  2. <div id="LayoutContent" @contextmenu.prevent="">
  3. <MapHolder ref="mapLoaderRef"></MapHolder>
  4. <Header @navSelect="navSelect" @initMenu="initMenu"></Header>
  5. <!-- 全流程管理 4 -->
  6. <div id="stepsBox" v-if="$ifMenu('4', '')">
  7. <WholeProcessManagement />
  8. </div>
  9. <!-- 底部菜单 2 -- 疑点筛查 -->
  10. <div id="leftMenusB" v-show="$ifMenu('3', '')">
  11. <BottomMenus />
  12. </div>
  13. <!-- 镇域专题 -->
  14. <div id="TownContainer" v-show="$ifMenu('2', '')">
  15. <Legend
  16. id="TownContainer_bottomLegend"
  17. :legendData="{
  18. boxWidth: '150',
  19. boxHeight: '180',
  20. menuIndex: '2',
  21. subMenuIndex: '5',
  22. legendIcon: legendIcon,
  23. legendTitle: legendTitle,
  24. }"
  25. />
  26. <div
  27. class="select-title"
  28. :style="{ left: $ifMenu('2', '5') ? '20px' : 'calc(50% - 80px)' }"
  29. >
  30. 所属街道
  31. </div>
  32. <NewSelect
  33. class="select-container"
  34. :style="{ left: $ifMenu('2', '5') ? '100px' : '50%' }"
  35. @selectEvent="specialTownSelect"
  36. v-model="streetSelectVal"
  37. :options="streetOptions"
  38. :value="streetSelectVal"
  39. />
  40. </div>
  41. <!-- 综合分析 -->
  42. <ComprehensiveAnalysis
  43. id="ComprehensiveContainer"
  44. v-show="$ifMenu('3', '')"
  45. />
  46. <!-- 消息提醒 -->
  47. <MessageList id="MessageListContainer" v-if="$ifMenu('6', '')" />
  48. <!-- 法律法规 -->
  49. <LawView id="LawContainer" v-if="$ifMenu('5', '1')" />
  50. <!-- 历史问题 -->
  51. <FrequencyView id="FrequencyContainer" v-if="$ifMenu('5', '2')" />
  52. <!-- 指标体系 -->
  53. <IndexSystem id="IndexSystemContainer" v-if="$ifMenu('5', '3')" />
  54. <!-- 资金投入 -->
  55. <CapitalInput id="CapitalInputContainer" v-if="$ifMenu('5', '4')" />
  56. <!-- Home页面(因为客户要求需要动画,所以不能用v-if控制首页元素的显示与隐藏,而是改为组件内部动态v-show控制元素的样式) -->
  57. <!-- 左侧菜单列 -- 首页 -->
  58. <div id="leftMenus">
  59. <MenuCard v-for="item in menus.left" :menuData="item" :key="item.title" />
  60. </div>
  61. <!-- 左侧菜单列(较宽,两列) -- 疑点筛查 -->
  62. <div id="leftMenusW" v-for="(item, index) in menus.leftW" :key="index">
  63. <MenuCard :menuData="item2" v-for="item2 in item" :key="item2.title">
  64. </MenuCard>
  65. </div>
  66. <!-- 中部菜单列 -->
  67. <div id="mainMenus">
  68. <div id="mainMenus_topLeft" v-if="$ifMenu('1', '')">所属街道</div>
  69. <NewSelect
  70. id="mainMenus_topSelect"
  71. v-model="streetSelectVal"
  72. :options="streetOptions"
  73. :value="streetSelectVal"
  74. @selectEvent="homeSelect"
  75. v-if="$ifMenu('1', '')"
  76. />
  77. <div
  78. id="mainMenus_topRight"
  79. v-if="menus.main[0]"
  80. v-show="$ifMenu('1', '')"
  81. >
  82. <MenuCard :menuData="menus.main[0]">
  83. <div class="bar-btn">
  84. <div
  85. class="btn-style"
  86. v-for="item in buttonData"
  87. :key="item"
  88. @click="clickEvent(item)"
  89. :class="{ 'button-selected': item === btnChecked }"
  90. >
  91. {{ item }}
  92. </div>
  93. </div>
  94. <div class="bar-content">
  95. <BarChart
  96. ref="barChartRef"
  97. class="bar"
  98. :categoryData="categoryData"
  99. :soilValueData="soil"
  100. :otherValueData="other"
  101. :forestryValueData="forestry"
  102. :sourceType="btnChecked"
  103. />
  104. </div>
  105. </MenuCard>
  106. </div>
  107. <Legend
  108. id="mainMenus_bottomLegend"
  109. :legendData="{
  110. boxWidth: '150',
  111. boxHeight: '180',
  112. menuIndex: '1',
  113. legendIcon: legendIcon,
  114. legendTitle: legendTitle,
  115. }"
  116. />
  117. </div>
  118. <!-- 首页右侧菜单列 -->
  119. <div
  120. class="rightMenus"
  121. v-for="(item, index) in menus.right"
  122. :key="'rightBox' + index"
  123. >
  124. <MenuCard
  125. :menuData="item2"
  126. v-for="(item2, index2) in item"
  127. :key="'right' + index2"
  128. >
  129. </MenuCard>
  130. </div>
  131. <!-- 首页右侧菜单列 -->
  132. <div
  133. class="rightMenusW"
  134. v-for="(item, index) in menus.rightW"
  135. :key="'rightBoxW' + index"
  136. >
  137. <MenuCard
  138. :menuData="item2"
  139. v-for="(item2, index2) in item"
  140. :key="'rightW' + index2"
  141. >
  142. </MenuCard>
  143. </div>
  144. </div>
  145. </template>
  146. <script>
  147. import MapHolder from "@/components/map/MapHolder.vue";
  148. import Header from "@/components/layout/Header.vue";
  149. import MenuCard from "@/components/layout/MenuCard.vue";
  150. import NewSelect from "@/components/common/NewSelect.vue";
  151. import BarChart from "@/components/chart/BarChart.vue";
  152. import { street, menuOnLine } from "@/config/common";
  153. import publicFun from "@/utils/publicFunction.js";
  154. import TagCard from "@/components/common/TagCard";
  155. import ChartCard from "@/components/common/ChartCard.vue";
  156. import TopCard from "@/components/common/TopCard";
  157. import BottomMenus from "@/components/common/BottomMenus";
  158. // 图例
  159. import Legend from "@/components/map/Legend.vue";
  160. // 综合分析
  161. import ComprehensiveAnalysis from "@/views/ComprehensiveAnalysis.vue";
  162. import TagProblemCard from "@/components/common/TagProblemCard.vue";
  163. // 全流程管理
  164. import WholeProcessManagement from "@/components/common/WholeProcessManagement.vue";
  165. // 智能辅助 -- 历史问题
  166. import FrequencyView from "@/views/FrequencyView.vue";
  167. import IndexSystem from "@/views/IndexSystem.vue";
  168. import CapitalInput from "@/views/CapitalInput.vue";
  169. // 智能辅助 -- 法律法规
  170. import LawView from "@/views/LawView.vue";
  171. import MessageList from "@/views/MessageList.vue";
  172. import { removeWatermark, setWaterMark } from "@/utils/watermark";
  173. import MessageListVue from "./MessageList.vue";
  174. export default {
  175. name: "HomeView",
  176. components: {
  177. MapHolder,
  178. Header,
  179. MenuCard,
  180. NewSelect,
  181. BarChart,
  182. TagCard,
  183. ChartCard,
  184. TopCard,
  185. BottomMenus,
  186. ComprehensiveAnalysis,
  187. TagProblemCard,
  188. Legend,
  189. WholeProcessManagement,
  190. FrequencyView,
  191. LawView,
  192. IndexSystem,
  193. CapitalInput,
  194. MessageList,
  195. },
  196. data() {
  197. return {
  198. classTextToIndex: {},
  199. tagCardData3: {
  200. type: "lr",
  201. title: "林地面积",
  202. value: 654,
  203. unit: "公顷",
  204. },
  205. testTitle: "土地资源",
  206. activeIndex: 1,
  207. // 菜单配置,后期最好根据用户权限通过后台动态返回。
  208. menus: {
  209. left: [],
  210. leftW: [],
  211. main: [],
  212. right: [],
  213. },
  214. // 首页饼图相关
  215. buttonData: ["A", "B", "C"],
  216. legendTitle: [
  217. {
  218. name: "A类",
  219. info: "耕地林地总和占镇域面积约 45%以上,或超过3000公顷",
  220. },
  221. {
  222. name: "B类",
  223. info: "有一定的自然资源资产(耕地林地总和 900-3000公项)",
  224. },
  225. {
  226. name: "C类",
  227. info: "自然资源资产较少(耕地林地总和低于 900公项)",
  228. },
  229. ],
  230. // legendData: ["#E565FF", "#0055FF", "#00FFD5"],
  231. legendIcon: [
  232. {
  233. background: "#E565FF",
  234. border: "none",
  235. },
  236. {
  237. background: "#0055FF",
  238. border: "none",
  239. },
  240. {
  241. background: "#00FFD5",
  242. border: "none",
  243. },
  244. ],
  245. btnChecked: "A",
  246. soil: [],
  247. other: [],
  248. forestry: [],
  249. categoryData: [],
  250. AData: {
  251. soil: [],
  252. other: [],
  253. forestry: [],
  254. categoryData: [],
  255. },
  256. BData: {
  257. soil: [],
  258. other: [],
  259. forestry: [],
  260. categoryData: [],
  261. },
  262. CData: {
  263. soil: [],
  264. other: [],
  265. forestry: [],
  266. categoryData: [],
  267. },
  268. streetSelectVal: "全部",
  269. streetOptions: [],
  270. // 街镇专题
  271. townCollection: [
  272. { name: "土地资源问题", num: 67 },
  273. { name: "水资源问题", num: 37 },
  274. { name: "林地资源问题", num: 60 },
  275. { name: "生态资源问题", num: 55 },
  276. ],
  277. // 综合分析
  278. analysis: {
  279. searchInput: "",
  280. },
  281. };
  282. },
  283. mounted() {
  284. // 首先获取数据字典中的下拉框数据
  285. this.selectSelectData("0", "浦东新区行政区划", "associatedItems");
  286. let markName = localStorage.getItem("USER_NAME");
  287. let markDate = this.$dayjs().format("YYYY-MM-DD");
  288. if (markName && markDate) {
  289. setWaterMark(markName, markDate);
  290. }
  291. },
  292. beforeDestroyed() {
  293. removeWatermark();
  294. },
  295. methods: {
  296. classDictQuery(type, cName, keyName) {
  297. let params = new FormData();
  298. params = {
  299. type: type,
  300. cName: cName,
  301. };
  302. this.$Post(this.urlsCollection.selectByCNameAType, params).then((res) => {
  303. if (res.code === 200 && res.content.length > 0) {
  304. this.classTextToIndex[keyName] = new Map();
  305. res.content.forEach((v) => {
  306. this.classTextToIndex[keyName].set(v.index + "", v.name);
  307. });
  308. }
  309. });
  310. },
  311. initMenu(menus) {
  312. this.menus = menuOnLine;
  313. setTimeout(() => {
  314. this.getSourcesData();
  315. }, 300);
  316. },
  317. navSelect: function (data) {
  318. this.$store.commit("changeNavSelect", data);
  319. this.$store.commit("changeBackMenu", {});
  320. },
  321. clickEvent(type) {
  322. this.btnChecked = type;
  323. switch (type) {
  324. case "A":
  325. this.soil = this.AData.soil;
  326. this.other = this.AData.other;
  327. this.forestry = this.AData.forestry;
  328. this.categoryData = this.AData.categoryData;
  329. break;
  330. case "B":
  331. this.soil = this.BData.soil;
  332. this.other = this.BData.other;
  333. this.forestry = this.BData.forestry;
  334. this.categoryData = this.BData.categoryData;
  335. break;
  336. case "C":
  337. this.soil = this.CData.soil;
  338. this.other = this.CData.other;
  339. this.forestry = this.CData.forestry;
  340. this.categoryData = this.CData.categoryData;
  341. break;
  342. }
  343. },
  344. // 数据字典查询
  345. selectSelectData(type, cName, keyName) {
  346. let params = new FormData();
  347. params.append("type", type);
  348. params.append("cName", cName);
  349. this.$Post(this.urlsCollection.selectByCNameAType, params).then(
  350. (res) => {
  351. if (res.code === 200 && res.content.length > 0) {
  352. this.$store.state.selectSelectDataMap[keyName] = res.content;
  353. }
  354. },
  355. (error) => {
  356. this.$message.error(error);
  357. console.log(error);
  358. }
  359. );
  360. },
  361. // home页面下拉框
  362. homeSelect(val) {
  363. this.$store.commit("changeHomeSpecialTown", val);
  364. if (val === "全部") {
  365. this.$refs.mapLoaderRef.setView(townLocationMap.get(val), 1);
  366. } else {
  367. let polygon = townPolygonMap.get(val);
  368. map2DViewer.map.fitBounds(polygon.getBounds());
  369. }
  370. },
  371. // 镇域专题下拉框
  372. specialTownSelect(val) {
  373. this.$store.commit("changeHomeSpecialTown", val);
  374. if (val === "全部") {
  375. let locationArr = townLocationMap.get(val);
  376. this.$refs.mapLoaderRef.setView(
  377. [locationArr[0], locationArr[1] + 0.15],
  378. 1
  379. );
  380. } else {
  381. let polygon = townPolygonMap.get(val);
  382. map2DViewer.map.fitBounds(polygon.getBounds());
  383. }
  384. // if (val === "全部") {
  385. // let locationArr = townLocationMap.get(val);
  386. // this.$refs.mapLoaderRef.setView(
  387. // [locationArr[0], locationArr[1] - 0.2],
  388. // 3
  389. // );
  390. // } else {
  391. // let locationArr = townLocationMap.get(val);
  392. // this.$refs.mapLoaderRef.setView(
  393. // [locationArr[0], locationArr[1] - 0.2],
  394. // 5
  395. // );
  396. // // let polygon = townPolygonMap.get(val);
  397. // // map2DViewer.map.fitBounds(polygon.getBounds());
  398. // }
  399. },
  400. // 获取自然资源分类数据接口(24个镇的数据)
  401. getSourcesData() {
  402. // town_type -- A:1; B:2; C:3;
  403. let params = new FormData();
  404. params = {
  405. columnId: 30,
  406. states: "0,1,2,3",
  407. pageSize: 30,
  408. page: 0,
  409. };
  410. this.$Post(this.urlsCollection.selectContentList, params)
  411. .then((res) => {
  412. if (res.code === 200 && res.content.data.length > 0) {
  413. // console.log(res.content.data, "getSourcesData接口获取成功");
  414. this.soil = [];
  415. this.other = [];
  416. this.forestry = [];
  417. let data = res.content.data;
  418. let ADataArr = [];
  419. let BDataArr = [];
  420. let CDataArr = [];
  421. data.map((v) => {
  422. if (v.zy_type === "0") {
  423. ADataArr.push({
  424. name: this.classTextToIndex["浦东新区行政区划"].get(
  425. v.zy_town
  426. ),
  427. soil: v.c_land_area,
  428. other: v.other_area,
  429. forest: v.c_forest_area,
  430. sum: v.c_land_area + v.other_area + v.c_forest_area,
  431. });
  432. }
  433. if (v.zy_type === "1") {
  434. BDataArr.push({
  435. name: this.classTextToIndex["浦东新区行政区划"].get(
  436. v.zy_town
  437. ),
  438. soil: v.c_land_area,
  439. other: v.other_area,
  440. forest: v.c_forest_area,
  441. sum: v.c_land_area + v.other_area + v.c_forest_area,
  442. });
  443. }
  444. if (v.zy_type === "2") {
  445. CDataArr.push({
  446. name: this.classTextToIndex["浦东新区行政区划"].get(
  447. v.zy_town
  448. ),
  449. soil: v.c_land_area,
  450. other: v.other_area,
  451. forest: v.c_forest_area,
  452. sum: v.c_land_area + v.other_area + v.c_forest_area,
  453. });
  454. }
  455. });
  456. ADataArr.sort(publicFun.compare("sum"));
  457. BDataArr.sort(publicFun.compare("sum"));
  458. CDataArr.sort(publicFun.compare("sum"));
  459. // 按A,B,C分出各自资源的排序数组
  460. ADataArr.forEach((item) => {
  461. this.AData.soil.push(item.soil);
  462. this.AData.other.push(item.other);
  463. this.AData.forestry.push(item.forest);
  464. this.AData.categoryData.push(item.name);
  465. });
  466. BDataArr.forEach((item) => {
  467. this.BData.soil.push(item.soil);
  468. this.BData.other.push(item.other);
  469. this.BData.forestry.push(item.forest);
  470. this.BData.categoryData.push(item.name);
  471. });
  472. CDataArr.forEach((item) => {
  473. this.CData.soil.push(item.soil);
  474. this.CData.other.push(item.other);
  475. this.CData.forestry.push(item.forest);
  476. this.CData.categoryData.push(item.name);
  477. });
  478. this.$nextTick(() => {
  479. if (this.$refs.barChartRef) {
  480. this.$refs.barChartRef.initEchart(
  481. this.AData.categoryData,
  482. this.AData.soil,
  483. this.AData.forestry,
  484. this.AData.other
  485. );
  486. }
  487. });
  488. }
  489. })
  490. .catch((error) => {
  491. console.log(error, "getSourcesData");
  492. });
  493. },
  494. },
  495. created() {
  496. this.classDictQuery("0", "浦东新区行政区划", "浦东新区行政区划");
  497. // 街道下拉框
  498. for (let key in street) {
  499. this.streetOptions.push({
  500. value: street[key],
  501. label: street[key],
  502. });
  503. }
  504. },
  505. };
  506. </script>
  507. <style lang="less" scoped>
  508. @commonBorderColor: #00aaff;
  509. #LayoutContent {
  510. position: relative;
  511. width: 100%;
  512. height: 100%;
  513. box-sizing: border-box;
  514. overflow: hidden;
  515. background-color: rgb(0, 47, 71);
  516. }
  517. /* 镇域专题 */
  518. #TownContainer {
  519. position: relative;
  520. height: calc(100% - 60px);
  521. width: 100%;
  522. top: 60px;
  523. z-index: 999;
  524. pointer-events: none;
  525. &_bottomLegend {
  526. position: absolute;
  527. color: #fff;
  528. left: 60px;
  529. bottom: 30px;
  530. pointer-events: auto;
  531. }
  532. .select-title {
  533. position: absolute;
  534. left: 60px;
  535. top: 30px;
  536. width: 80px;
  537. height: 30px;
  538. color: #fff;
  539. line-height: 30px;
  540. font-size: 18px;
  541. cursor: auto;
  542. pointer-events: auto;
  543. }
  544. .select-container {
  545. position: absolute;
  546. left: 150px;
  547. top: 33px;
  548. cursor: pointer;
  549. pointer-events: auto;
  550. }
  551. .town-right-problems {
  552. position: absolute;
  553. right: 10px;
  554. top: 25px;
  555. pointer-events: auto;
  556. }
  557. .town-problems {
  558. position: absolute;
  559. right: 10px;
  560. width: 800px;
  561. height: 100%;
  562. color: #fff;
  563. pointer-events: auto;
  564. &-top {
  565. width: 100%;
  566. height: 220px;
  567. display: flex;
  568. align-items: center;
  569. justify-content: center;
  570. &-inner {
  571. width: 100%;
  572. height: 130px;
  573. display: flex;
  574. align-items: center;
  575. justify-content: space-around;
  576. .problem-item {
  577. width: 170px;
  578. height: 100px;
  579. }
  580. }
  581. }
  582. &-bottom {
  583. // background: plum;
  584. width: 100%;
  585. height: calc(95% - 220px);
  586. display: flex;
  587. align-items: center;
  588. justify-content: space-between;
  589. }
  590. }
  591. }
  592. /* 综合分析 */
  593. #ComprehensiveContainer {
  594. position: relative;
  595. height: calc(100% - 60px);
  596. width: 100%;
  597. top: 60px;
  598. z-index: 999;
  599. pointer-events: none;
  600. }
  601. /* 法律法规 */
  602. #LawContainer {
  603. position: relative;
  604. height: calc(100% - 60px);
  605. width: 100%;
  606. top: 60px;
  607. z-index: 999;
  608. background: rgba(0, 0, 0, 0.9);
  609. }
  610. #MessageListContainer {
  611. position: relative;
  612. height: calc(100% - 60px);
  613. width: 100%;
  614. top: 60px;
  615. z-index: 999;
  616. background: rgba(0, 0, 0, 0.9);
  617. }
  618. /* 法律法规详细细节弹窗 */
  619. // #LawDetailsContainer {
  620. // position: absolute;
  621. // height: calc(90% - 60px);
  622. // width: 50%;
  623. // top: 80px;
  624. // z-index: 999;
  625. // left: 25%;
  626. // }
  627. /* 历史问题 */
  628. #FrequencyContainer,
  629. #IndexSystemContainer,
  630. #CapitalInputContainer {
  631. position: relative;
  632. height: calc(100% - 60px);
  633. width: 100%;
  634. top: 60px;
  635. z-index: 999;
  636. background: rgba(0, 0, 0, 0.9);
  637. }
  638. /* Home目录 -- 左侧菜单列 */
  639. #leftMenus {
  640. position: absolute;
  641. left: 5px;
  642. top: 60px;
  643. width: 420px;
  644. padding-right: 10px;
  645. margin-right: 10px;
  646. height: calc(100% - 60px);
  647. box-sizing: border-box;
  648. overflow-x: hidden;
  649. overflow-y: auto;
  650. scrollbar-width: none; /* Firefox */
  651. -ms-overflow-style: none; /* IE 10+ */
  652. &::-webkit-scrollbar {
  653. display: none; /* Chrome Safari */
  654. }
  655. }
  656. #leftMenusW {
  657. position: absolute;
  658. display: flex;
  659. flex-direction: row;
  660. flex-wrap: wrap;
  661. align-content: flex-start;
  662. left: 5px;
  663. top: 60px;
  664. width: 870px;
  665. padding-right: 10px;
  666. margin-right: 10px;
  667. height: calc(100% - 65px);
  668. float: left;
  669. box-sizing: border-box;
  670. overflow-x: hidden;
  671. overflow-y: auto;
  672. scrollbar-width: none; /* Firefox */
  673. -ms-overflow-style: none; /* IE 10+ */
  674. &::-webkit-scrollbar {
  675. display: none; /* Chrome Safari */
  676. }
  677. }
  678. // 底部菜单定位
  679. #leftMenusB {
  680. position: absolute;
  681. top: 0;
  682. width: 100%;
  683. height: 100%;
  684. }
  685. #stepsBox {
  686. position: absolute;
  687. top: 0;
  688. width: 100%;
  689. height: 100%;
  690. }
  691. #mainMenus {
  692. position: absolute;
  693. left: 430px;
  694. top: 60px;
  695. width: calc(100% - 850px);
  696. height: calc(100% - 60px);
  697. box-sizing: border-box;
  698. &_topLeft {
  699. position: absolute;
  700. left: 20px;
  701. top: 30px;
  702. font-size: 18px;
  703. z-index: 99999;
  704. color: #fff;
  705. }
  706. &_bottomLegend {
  707. position: absolute;
  708. left: 20px;
  709. bottom: 30px;
  710. color: #fff;
  711. }
  712. &_topSelect {
  713. position: absolute;
  714. left: 100px;
  715. top: 30px;
  716. z-index: 3;
  717. }
  718. &_topRight {
  719. position: absolute;
  720. right: 10px;
  721. top: 30px;
  722. z-index: 3;
  723. overflow: hidden;
  724. .bar-btn {
  725. width: 100%;
  726. height: 10%;
  727. display: flex;
  728. align-items: center;
  729. justify-content: center;
  730. .btn-style {
  731. width: 65px;
  732. height: 35px;
  733. background: url("../assets/home/btn_unselected.png") no-repeat center;
  734. margin-bottom: 2px;
  735. cursor: pointer;
  736. border-radius: 3px;
  737. display: flex;
  738. align-items: center;
  739. justify-content: center;
  740. color: #fff;
  741. }
  742. .button-selected {
  743. background: url("../assets/home/btn_selected.png") no-repeat center;
  744. }
  745. }
  746. .bar-content {
  747. width: 100%;
  748. height: 90%;
  749. background: rgba(100, 100, 100, 0);
  750. .bar {
  751. width: 340px;
  752. height: 276.94px;
  753. }
  754. }
  755. }
  756. }
  757. // 右侧菜单列
  758. .rightMenus {
  759. position: absolute;
  760. right: 10px;
  761. top: 60px;
  762. width: 420px;
  763. height: calc(100% - 60px);
  764. box-sizing: border-box;
  765. overflow-x: hidden;
  766. overflow-y: auto;
  767. scrollbar-width: none; /* Firefox */
  768. -ms-overflow-style: none; /* IE 10+ */
  769. &::-webkit-scrollbar {
  770. display: none; /* Chrome Safari */
  771. }
  772. }
  773. // 右侧菜单列
  774. .rightMenusW {
  775. position: absolute;
  776. right: 0;
  777. top: 60px;
  778. width: 820px;
  779. float: left;
  780. height: calc(100% - 60px);
  781. box-sizing: border-box;
  782. overflow-x: hidden;
  783. overflow-y: auto;
  784. display: flex;
  785. overflow-y: auto;
  786. scrollbar-width: none;
  787. -ms-overflow-style: none;
  788. flex-wrap: wrap;
  789. align-items: flex-start;
  790. align-content: flex-start;
  791. scrollbar-width: none; /* Firefox */
  792. -ms-overflow-style: none; /* IE 10+ */
  793. &::-webkit-scrollbar {
  794. display: none; /* Chrome Safari */
  795. }
  796. }
  797. .menuCardFlex {
  798. display: flex;
  799. align-content: center;
  800. align-items: center;
  801. justify-content: space-between;
  802. flex-wrap: nowrap;
  803. position: relative;
  804. .borders {
  805. position: absolute;
  806. left: 50%;
  807. top: 50%;
  808. transform: translate(-50%, -50%) rotate(45deg);
  809. width: 110px;
  810. height: 100px;
  811. background: linear-gradient(to left, @commonBorderColor, @commonBorderColor)
  812. left top no-repeat,
  813. linear-gradient(to bottom, @commonBorderColor, @commonBorderColor) left
  814. top no-repeat,
  815. linear-gradient(to left, @commonBorderColor, @commonBorderColor) right top
  816. no-repeat,
  817. linear-gradient(to bottom, @commonBorderColor, @commonBorderColor) right
  818. top no-repeat,
  819. linear-gradient(to left, @commonBorderColor, @commonBorderColor) left
  820. bottom no-repeat,
  821. linear-gradient(to bottom, @commonBorderColor, @commonBorderColor) left
  822. bottom no-repeat,
  823. linear-gradient(to left, @commonBorderColor, @commonBorderColor) right
  824. bottom no-repeat,
  825. linear-gradient(to left, @commonBorderColor, @commonBorderColor) right
  826. bottom no-repeat;
  827. background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px;
  828. }
  829. }
  830. </style>