HomeView.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  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. },
  385. // 获取自然资源分类数据接口(24个镇的数据)
  386. getSourcesData() {
  387. // town_type -- A:1; B:2; C:3;
  388. let params = new FormData();
  389. params = {
  390. columnId: 30,
  391. states: "0,1,2,3",
  392. pageSize: 30,
  393. page: 0,
  394. };
  395. this.$Post(this.urlsCollection.selectContentList, params)
  396. .then((res) => {
  397. if (res.code === 200 && res.content.data.length > 0) {
  398. // console.log(res.content.data, "getSourcesData接口获取成功");
  399. this.soil = [];
  400. this.other = [];
  401. this.forestry = [];
  402. let data = res.content.data;
  403. let ADataArr = [];
  404. let BDataArr = [];
  405. let CDataArr = [];
  406. data.map((v) => {
  407. if (v.zy_type === "0") {
  408. ADataArr.push({
  409. name: this.classTextToIndex["浦东新区行政区划"].get(
  410. v.zy_town
  411. ),
  412. soil: v.c_land_area,
  413. other: v.other_area,
  414. forest: v.c_forest_area,
  415. sum: v.c_land_area + v.other_area + v.c_forest_area,
  416. });
  417. }
  418. if (v.zy_type === "1") {
  419. BDataArr.push({
  420. name: this.classTextToIndex["浦东新区行政区划"].get(
  421. v.zy_town
  422. ),
  423. soil: v.c_land_area,
  424. other: v.other_area,
  425. forest: v.c_forest_area,
  426. sum: v.c_land_area + v.other_area + v.c_forest_area,
  427. });
  428. }
  429. if (v.zy_type === "2") {
  430. CDataArr.push({
  431. name: this.classTextToIndex["浦东新区行政区划"].get(
  432. v.zy_town
  433. ),
  434. soil: v.c_land_area,
  435. other: v.other_area,
  436. forest: v.c_forest_area,
  437. sum: v.c_land_area + v.other_area + v.c_forest_area,
  438. });
  439. }
  440. });
  441. ADataArr.sort(publicFun.compare("sum"));
  442. BDataArr.sort(publicFun.compare("sum"));
  443. CDataArr.sort(publicFun.compare("sum"));
  444. // 按A,B,C分出各自资源的排序数组
  445. ADataArr.forEach((item) => {
  446. this.AData.soil.push(item.soil);
  447. this.AData.other.push(item.other);
  448. this.AData.forestry.push(item.forest);
  449. this.AData.categoryData.push(item.name);
  450. });
  451. BDataArr.forEach((item) => {
  452. this.BData.soil.push(item.soil);
  453. this.BData.other.push(item.other);
  454. this.BData.forestry.push(item.forest);
  455. this.BData.categoryData.push(item.name);
  456. });
  457. CDataArr.forEach((item) => {
  458. this.CData.soil.push(item.soil);
  459. this.CData.other.push(item.other);
  460. this.CData.forestry.push(item.forest);
  461. this.CData.categoryData.push(item.name);
  462. });
  463. this.$nextTick(() => {
  464. if (this.$refs.barChartRef) {
  465. this.$refs.barChartRef.initEchart(
  466. this.AData.categoryData,
  467. this.AData.soil,
  468. this.AData.forestry,
  469. this.AData.other
  470. );
  471. }
  472. });
  473. }
  474. })
  475. .catch((error) => {
  476. console.log(error, "getSourcesData");
  477. });
  478. },
  479. },
  480. created() {
  481. this.classDictQuery("0", "浦东新区行政区划", "浦东新区行政区划");
  482. // 街道下拉框
  483. for (let key in street) {
  484. this.streetOptions.push({
  485. value: street[key],
  486. label: street[key],
  487. });
  488. }
  489. },
  490. };
  491. </script>
  492. <style lang="less" scoped>
  493. @commonBorderColor: #00aaff;
  494. #LayoutContent {
  495. position: relative;
  496. width: 100%;
  497. height: 100%;
  498. box-sizing: border-box;
  499. overflow: hidden;
  500. // background-color: rgb(0, 47, 71);
  501. }
  502. /* 镇域专题 */
  503. #TownContainer {
  504. position: relative;
  505. height: calc(100% - 60px);
  506. width: 100%;
  507. top: 60px;
  508. z-index: 999;
  509. pointer-events: none;
  510. &_bottomLegend {
  511. position: absolute;
  512. color: #fff;
  513. left: 60px;
  514. bottom: 30px;
  515. pointer-events: auto;
  516. }
  517. .select-title {
  518. position: absolute;
  519. left: 60px;
  520. top: 30px;
  521. width: 80px;
  522. height: 30px;
  523. color: #fff;
  524. line-height: 30px;
  525. font-size: 18px;
  526. cursor: auto;
  527. pointer-events: auto;
  528. }
  529. .select-container {
  530. position: absolute;
  531. left: 150px;
  532. top: 33px;
  533. cursor: pointer;
  534. pointer-events: auto;
  535. }
  536. .town-right-problems {
  537. position: absolute;
  538. right: 10px;
  539. top: 25px;
  540. pointer-events: auto;
  541. }
  542. .town-problems {
  543. position: absolute;
  544. right: 10px;
  545. width: 800px;
  546. height: 100%;
  547. color: #fff;
  548. pointer-events: auto;
  549. &-top {
  550. width: 100%;
  551. height: 220px;
  552. display: flex;
  553. align-items: center;
  554. justify-content: center;
  555. &-inner {
  556. width: 100%;
  557. height: 130px;
  558. display: flex;
  559. align-items: center;
  560. justify-content: space-around;
  561. .problem-item {
  562. width: 170px;
  563. height: 100px;
  564. }
  565. }
  566. }
  567. &-bottom {
  568. // background: plum;
  569. width: 100%;
  570. height: calc(95% - 220px);
  571. display: flex;
  572. align-items: center;
  573. justify-content: space-between;
  574. }
  575. }
  576. }
  577. /* 综合分析 */
  578. #ComprehensiveContainer {
  579. position: relative;
  580. height: calc(100% - 60px);
  581. width: 100%;
  582. top: 60px;
  583. z-index: 999;
  584. pointer-events: none;
  585. }
  586. /* 法律法规 */
  587. #LawContainer {
  588. position: relative;
  589. height: calc(100% - 60px);
  590. width: 100%;
  591. top: 60px;
  592. z-index: 999;
  593. background: rgba(0, 0, 0, 0.9);
  594. }
  595. #MessageListContainer {
  596. position: relative;
  597. height: calc(100% - 60px);
  598. width: 100%;
  599. top: 60px;
  600. z-index: 999;
  601. background: rgba(0, 0, 0, 0.9);
  602. }
  603. /* 法律法规详细细节弹窗 */
  604. // #LawDetailsContainer {
  605. // position: absolute;
  606. // height: calc(90% - 60px);
  607. // width: 50%;
  608. // top: 80px;
  609. // z-index: 999;
  610. // left: 25%;
  611. // }
  612. /* 历史问题 */
  613. #FrequencyContainer,
  614. #IndexSystemContainer,
  615. #CapitalInputContainer {
  616. position: relative;
  617. height: calc(100% - 60px);
  618. width: 100%;
  619. top: 60px;
  620. z-index: 999;
  621. background: rgba(0, 0, 0, 0.9);
  622. }
  623. /* Home目录 -- 左侧菜单列 */
  624. #leftMenus {
  625. position: absolute;
  626. left: 5px;
  627. top: 60px;
  628. width: 420px;
  629. padding-right: 10px;
  630. margin-right: 10px;
  631. height: calc(100% - 60px);
  632. box-sizing: border-box;
  633. overflow-x: hidden;
  634. overflow-y: auto;
  635. scrollbar-width: none; /* Firefox */
  636. -ms-overflow-style: none; /* IE 10+ */
  637. &::-webkit-scrollbar {
  638. display: none; /* Chrome Safari */
  639. }
  640. }
  641. #leftMenusW {
  642. position: absolute;
  643. display: flex;
  644. flex-direction: row;
  645. flex-wrap: wrap;
  646. align-content: flex-start;
  647. left: 5px;
  648. top: 60px;
  649. width: 870px;
  650. padding-right: 10px;
  651. margin-right: 10px;
  652. height: calc(100% - 65px);
  653. float: left;
  654. box-sizing: border-box;
  655. overflow-x: hidden;
  656. overflow-y: auto;
  657. scrollbar-width: none; /* Firefox */
  658. -ms-overflow-style: none; /* IE 10+ */
  659. &::-webkit-scrollbar {
  660. display: none; /* Chrome Safari */
  661. }
  662. }
  663. // 底部菜单定位
  664. #leftMenusB {
  665. position: absolute;
  666. top: 0;
  667. width: 100%;
  668. height: 100%;
  669. }
  670. #stepsBox {
  671. position: absolute;
  672. top: 0;
  673. width: 100%;
  674. height: 100%;
  675. }
  676. #mainMenus {
  677. position: absolute;
  678. left: 430px;
  679. top: 60px;
  680. width: calc(100% - 850px);
  681. height: calc(100% - 60px);
  682. box-sizing: border-box;
  683. &_topLeft {
  684. position: absolute;
  685. left: 20px;
  686. top: 30px;
  687. font-size: 18px;
  688. z-index: 99999;
  689. color: #fff;
  690. }
  691. &_bottomLegend {
  692. position: absolute;
  693. left: 20px;
  694. bottom: 30px;
  695. color: #fff;
  696. }
  697. &_topSelect {
  698. position: absolute;
  699. left: 100px;
  700. top: 30px;
  701. z-index: 3;
  702. }
  703. &_topRight {
  704. position: absolute;
  705. right: 10px;
  706. top: 30px;
  707. z-index: 3;
  708. overflow: hidden;
  709. .bar-btn {
  710. width: 100%;
  711. height: 10%;
  712. display: flex;
  713. align-items: center;
  714. justify-content: center;
  715. .btn-style {
  716. width: 65px;
  717. height: 35px;
  718. background: url("../assets/home/btn_unselected.png") no-repeat center;
  719. margin-bottom: 2px;
  720. cursor: pointer;
  721. border-radius: 3px;
  722. display: flex;
  723. align-items: center;
  724. justify-content: center;
  725. color: #fff;
  726. }
  727. .button-selected {
  728. background: url("../assets/home/btn_selected.png") no-repeat center;
  729. }
  730. }
  731. .bar-content {
  732. width: 100%;
  733. height: 90%;
  734. background: rgba(100, 100, 100, 0);
  735. .bar {
  736. width: 340px;
  737. height: 276.94px;
  738. }
  739. }
  740. }
  741. }
  742. // 右侧菜单列
  743. .rightMenus {
  744. position: absolute;
  745. right: 10px;
  746. top: 60px;
  747. width: 420px;
  748. height: calc(100% - 60px);
  749. box-sizing: border-box;
  750. overflow-x: hidden;
  751. overflow-y: auto;
  752. scrollbar-width: none; /* Firefox */
  753. -ms-overflow-style: none; /* IE 10+ */
  754. &::-webkit-scrollbar {
  755. display: none; /* Chrome Safari */
  756. }
  757. }
  758. // 右侧菜单列
  759. .rightMenusW {
  760. position: absolute;
  761. right: 0;
  762. top: 60px;
  763. width: 820px;
  764. float: left;
  765. height: calc(100% - 60px);
  766. box-sizing: border-box;
  767. overflow-x: hidden;
  768. overflow-y: auto;
  769. display: flex;
  770. overflow-y: auto;
  771. scrollbar-width: none;
  772. -ms-overflow-style: none;
  773. flex-wrap: wrap;
  774. align-items: flex-start;
  775. align-content: flex-start;
  776. scrollbar-width: none; /* Firefox */
  777. -ms-overflow-style: none; /* IE 10+ */
  778. &::-webkit-scrollbar {
  779. display: none; /* Chrome Safari */
  780. }
  781. }
  782. .menuCardFlex {
  783. display: flex;
  784. align-content: center;
  785. align-items: center;
  786. justify-content: space-between;
  787. flex-wrap: nowrap;
  788. position: relative;
  789. .borders {
  790. position: absolute;
  791. left: 50%;
  792. top: 50%;
  793. transform: translate(-50%, -50%) rotate(45deg);
  794. width: 110px;
  795. height: 100px;
  796. background: linear-gradient(to left, @commonBorderColor, @commonBorderColor)
  797. left top no-repeat,
  798. linear-gradient(to bottom, @commonBorderColor, @commonBorderColor) left
  799. top no-repeat,
  800. linear-gradient(to left, @commonBorderColor, @commonBorderColor) right top
  801. no-repeat,
  802. linear-gradient(to bottom, @commonBorderColor, @commonBorderColor) right
  803. top no-repeat,
  804. linear-gradient(to left, @commonBorderColor, @commonBorderColor) left
  805. bottom no-repeat,
  806. linear-gradient(to bottom, @commonBorderColor, @commonBorderColor) left
  807. bottom no-repeat,
  808. linear-gradient(to left, @commonBorderColor, @commonBorderColor) right
  809. bottom no-repeat,
  810. linear-gradient(to left, @commonBorderColor, @commonBorderColor) right
  811. bottom no-repeat;
  812. background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px;
  813. }
  814. }
  815. </style>