HomeView.vue 21 KB

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