HomeView.vue 21 KB

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