HomeView.vue 21 KB

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