index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  1. <template>
  2. <div class="background-image">
  3. <div class="header">
  4. <!-- <div class="roll-name-box">
  5. <div class="scroll-content">
  6. <span v-for="(item, index) in notifyList" :key="index">
  7. <span>{{ item.title}}:</span>
  8. <span>{{ item.content }}</span>
  9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  10. </span>
  11. </div>
  12. </div> -->
  13. </div>
  14. <div class="headline">
  15. <div class="headline-text">盐都区工业企业产品发布平台</div>
  16. </div>
  17. <div class="main">
  18. <div style="width: 1.5%"></div>
  19. <div class="main-1">
  20. <div class="main-periphery">
  21. <div style="height: 25%"></div>
  22. <div class="main-periphery-font" style="height: 30%; color: #031c57">
  23. 今日入库企业数
  24. </div>
  25. <div class="main-periphery-numerical" style="height: 45%; color: #0843cd">
  26. {{ pageInfo.todayenterprisec }}
  27. </div>
  28. </div>
  29. <div class="main-periphery">
  30. <div style="height: 25%"></div>
  31. <div class="main-periphery-font" style="height: 30%; color: #031c57">
  32. 入库企业总数
  33. </div>
  34. <div class="main-periphery-numerical" style="height: 45%; color: #0843cd">
  35. {{ pageInfo.enterprisec }}
  36. </div>
  37. </div>
  38. </div>
  39. <div class="main-2">
  40. <div class="main-periphery">
  41. <div style="height: 25%"></div>
  42. <div class="main-periphery-font" style="height: 30%; color: #063e2a">
  43. 今天活跃数
  44. </div>
  45. <div class="main-periphery-numerical" style="height: 45%; color: #028455">
  46. {{ pageInfo.todayc }}
  47. </div>
  48. </div>
  49. <div class="main-periphery">
  50. <div style="height: 25%"></div>
  51. <div class="main-periphery-font" style="height: 30%; color: #063e2a">
  52. 当月活跃数
  53. </div>
  54. <div class="main-periphery-numerical" style="height: 45%; color: #028455">
  55. {{ pageInfo.samemonthc }}
  56. </div>
  57. </div>
  58. </div>
  59. <div class="main-4">
  60. <div class="main-periphery">
  61. <div style="height: 25%"></div>
  62. <div class="main-periphery-font" style="height: 30%; color: #764710">
  63. 入库企业行业
  64. <span class="main-periphery-font-small" style="color: #764710"></span>
  65. </div>
  66. <div class="main-periphery2">
  67. <div style="height: 15%"></div>
  68. <div class="main-periphery-font-small" style="height: 30%; color: #764710">
  69. {{pageInfo2[0].industry}}
  70. <span class="main-periphery-font"
  71. style="font-weight: bold; color: #b86504; margin-left: 10px">{{ pageInfo2[0].cc }}</span>
  72. <span class="main-periphery-font-small"
  73. style="font-weight: bold; color: #b86504; margin-left: 10px">家</span>
  74. </div>
  75. <div style="height: 15%"></div>
  76. <div class="main-periphery-font-small" style="height: 30%; color: #764710">
  77. {{pageInfo2[1].industry}}
  78. <span class="main-periphery-font"
  79. style="font-weight: bold; color: #b86504; margin-left: 10px">{{ pageInfo2[1].cc }}</span>
  80. <span class="main-periphery-font-small"
  81. style="font-weight: bold; color: #b86504; margin-left: 10px">家</span>
  82. </div>
  83. </div>
  84. <div class="main-periphery2">
  85. <div style="height: 15%"></div>
  86. <div class="main-periphery-font-small" style="height: 30%; color: #764710">
  87. {{pageInfo2[2].industry}}
  88. <span class="main-periphery-font"
  89. style="font-weight: bold; color: #b86504; margin-left: 10px">{{ pageInfo2[2].cc }}</span>
  90. <span class="main-periphery-font-small"
  91. style="font-weight: bold; color: #b86504; margin-left: 10px">家</span>
  92. </div>
  93. <div style="height: 15%"></div>
  94. <div class="main-periphery-font-small" style="height: 30%; color: #764710">
  95. {{pageInfo2[3].industry}}
  96. <span class="main-periphery-font"
  97. style="font-weight: bold; color: #b86504; margin-left: 10px">{{ pageInfo2[3].cc }}</span>
  98. <span class="main-periphery-font-small"
  99. style="font-weight: bold; color: #b86504; margin-left: 10px">家</span>
  100. </div>
  101. <div style="height: 15%"></div>
  102. <div class="main-periphery-font-small" style="height: 30%; color: #764710">
  103. {{pageInfo2[4].industry}}
  104. <span class="main-periphery-font"
  105. style="font-weight: bold; color: #b86504; margin-left: 10px">{{ pageInfo2[4].cc }}</span>
  106. <span class="main-periphery-font-small"
  107. style="font-weight: bold; color: #b86504; margin-left: 10px">家</span>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <!-- <div class="main-5">
  113. <div class="main-periphery">
  114. <div style="height: 25%"></div>
  115. <div class="main-periphery-font" style="height: 30%; color: #016a61">
  116. 本年税源办
  117. <span class="main-periphery-font-small" style="color: #016a61"
  118. >(万元)</span
  119. >
  120. </div>
  121. <div
  122. class="main-periphery-numerical"
  123. style="height: 45%; color: #0fb9c4"
  124. >
  125. {{ pageInfo.bnrukussZF }}
  126. </div>
  127. </div>
  128. <div class="main-periphery">
  129. <div style="height: 25%"></div>
  130. <div class="main-periphery-font" style="height: 30%; color: #016a61">
  131. 本月税源办
  132. <span class="main-periphery-font-small" style="color: #016a61"
  133. >(万元)</span
  134. >
  135. </div>
  136. <div style="display: flex; width: 100%; height: 45%">
  137. <div
  138. class="main-periphery-numerical"
  139. style="display: flex; width: 55%; color: #0fb9c4"
  140. >
  141. {{ pageInfo.byrukuZFss }}
  142. </div>
  143. <div style="width: 45%">
  144. <div
  145. class="main-periphery-font-small"
  146. style="height: 30%"
  147. :style="{ color: textColor5 }"
  148. >
  149. 环比
  150. <i
  151. :class="{
  152. 'el-icon-top icon': Number(pageInfo.rkhbzf) > 0,
  153. 'el-icon-bottom icon': Number(pageInfo.rkhbzf) < 0,
  154. }"
  155. ></i>
  156. {{ Math.abs(pageInfo.rkhbzf) }}%
  157. </div>
  158. <div style="height: 10%"></div>
  159. <div
  160. class="main-periphery-font-small"
  161. style="height: 30%"
  162. :style="{ color: textColor6 }"
  163. >
  164. 同比
  165. <i
  166. :class="{
  167. 'el-icon-top icon': Number(pageInfo.rkzftb) > 0,
  168. 'el-icon-bottom icon': Number(pageInfo.rkzftb) < 0,
  169. }"
  170. ></i>
  171. {{ Math.abs(pageInfo.rkzftb) }}%
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </div> -->
  177. </div>
  178. <div class="footer">
  179. <!-- <div class="footer-main">
  180. <div style="height: 10%"></div>
  181. <div class="footer-main-top">
  182. <i class="el-icon-s-promotion icon"></i>
  183. 快捷入口
  184. </div>
  185. <div class="footer-fast">
  186. <div class="footer-fast-2" v-show="haveCJYQ">
  187. <router-link to="/parkmanagement/ParkManagementList">
  188. <div class="footer-fast-1-1"></div>
  189. <div style="height: 10%"></div>
  190. <div class="footer-fast-1-2">创建园区</div>
  191. </router-link>
  192. </div>
  193. <div class="footer-fast-2" v-show="haveCJLY">
  194. <router-link to="/buildinginfo/BuildingManagementList">
  195. <div class="footer-fast-2-1"></div>
  196. <div style="height: 10%"></div>
  197. <div class="footer-fast-1-2">创建楼宇</div>
  198. </router-link>
  199. </div>
  200. <div class="footer-fast-2" v-show="haveCJQY">
  201. <router-link to="/enterpriseinfo/EnterpriseInfoList">
  202. <div class="footer-fast-2-2"></div>
  203. <div style="height: 10%"></div>
  204. <div class="footer-fast-1-2">创建企业</div>
  205. </router-link>
  206. </div>
  207. <div class="footer-fast-2" v-show="haveCJYG">
  208. <router-link to="/qyuser/QyUserList">
  209. <div class="footer-fast-2-3"></div>
  210. <div style="height: 10%"></div>
  211. <div class="footer-fast-1-2">新增员工</div>
  212. </router-link>
  213. </div>
  214. <div class="footer-fast-2" v-show="haveSBSS">
  215. <router-link to="/saleinventory/SaleInventoryList">
  216. <div class="footer-fast-2-4"></div>
  217. <div style="height: 10%"></div>
  218. <div class="footer-fast-1-2">申报税收</div>
  219. </router-link>
  220. </div>
  221. <div class="footer-fast-2" v-show="haveXXWH">
  222. <router-link to="/enterpriseother/EnterpriseOtherList">
  223. <div class="footer-fast-2-5"></div>
  224. <div style="height: 10%"></div>
  225. <div class="footer-fast-1-2">信息维护</div>
  226. </router-link>
  227. </div>
  228. </div>
  229. </div> -->
  230. <div class="headline">
  231. <div class="headline-text">大走访看板</div>
  232. </div>
  233. <div class="footer-main">
  234. <el-row>
  235. <el-col :span="12">
  236. <div class="">
  237. <el-button autofocus @click="getTime(0)" size="mini">月度</el-button>
  238. <el-button @click="getTime(1)" size="mini">季度</el-button>
  239. <el-button @click="getTime(2)" size="mini">年度</el-button>
  240. </div>
  241. </el-col>
  242. <el-col :span="12">
  243. <div style="text-align: right;">
  244. <el-date-picker size="mini" @change="getTime(3)" v-model="value2" type="daterange" align="right"
  245. unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
  246. :picker-options="pickerOptions">
  247. </el-date-picker>
  248. </div>
  249. </el-col>
  250. </el-row>
  251. <el-row :gutter="20">
  252. <el-col :span="4">
  253. <el-card shadow="always" :body-style="{padding: '5px',margin:'0px'}">
  254. <div class="footer-fast-1-1">
  255. <p><span style="color: red;">●</span>未完成大走访人数</p>
  256. <p><span style="font-size: 20px;font-weight: 700;margin-right: 10px;">{{allSum.perUnFinishSum}}</span>人
  257. </p>
  258. <p>占比<span style="font-size: 12px;color: red;margin-left: 5px;">{{allSum.perUnfinish}}%</span></p>
  259. </div>
  260. </el-card>
  261. </el-col>
  262. <el-col :span="4">
  263. <el-card shadow="always" :body-style="{padding: '5px',margin:'0px'}">
  264. <div class="footer-fast-1-1">
  265. <p><span style="color: #0843cd;">●</span>完成大走访人数</p>
  266. <p><span style="font-size: 20px;font-weight: 700;margin-right: 10px;">{{allSum.perFinishSum}}</span>人
  267. </p>
  268. <p>占比<span style="font-size: 12px;color: #0843cd;margin-left: 5px;">{{allSum.perAcount}}%</span></p>
  269. </div>
  270. </el-card>
  271. </el-col>
  272. <el-col :span="4">
  273. <el-card shadow="always" :body-style="{padding: '5px',margin:'0px'}">
  274. <div class="footer-fast-1-1">
  275. <p><span style="color: red;">●</span>未完成大走访企业数</p>
  276. <p><span style="font-size: 20px;font-weight: 700;margin-right: 10px;">{{allSum.qyUnFinishSum}}</span>个
  277. </p>
  278. <p>占比<span style="font-size: 12px;color: red;margin-left: 5px;">{{allSum.qyUnfinish}}%</span></p>
  279. </div>
  280. </el-card>
  281. </el-col>
  282. <el-col :span="4">
  283. <el-card shadow="always" :body-style="{padding: '5px',margin:'0px'}">
  284. <div class="footer-fast-1-1">
  285. <p><span style="color: #0843cd;">●</span>完成大走访企业数</p>
  286. <p><span style="font-size: 20px;font-weight: 700;margin-right: 10px;">{{allSum.qyFinishSum}}</span>个
  287. </p>
  288. <p>占比<span style="font-size: 12px;color: #0843cd;margin-left: 5px;">{{allSum.qyAcount}}%</span></p>
  289. </div>
  290. </el-card>
  291. </el-col>
  292. <el-col :span="4">
  293. <el-card shadow="always" :body-style="{padding: '5px',margin:'0px'}">
  294. <div class="footer-fast-1-1">
  295. <p><span style="color: red;">●</span>未办结问题数</p>
  296. <p><span style="font-size: 20px;font-weight: 700;margin-right: 10px;">{{allSum.queUnFinishSum}}</span>个
  297. </p>
  298. <p>占比<span style="font-size: 12px;color: red;margin-left: 5px;">{{allSum.queUnfinish}}%</span></p>
  299. </div>
  300. </el-card>
  301. </el-col>
  302. <el-col :span="4">
  303. <el-card shadow="always" :body-style="{padding: '5px',margin:'0px'}">
  304. <div class="footer-fast-1-1">
  305. <p><span style="color: #0843cd;">●</span>办结问题数</p>
  306. <p><span style="font-size: 20px;font-weight: 700;margin-right: 10px;">{{allSum.queFinishSum}}</span>个
  307. </p>
  308. <p>占比<span
  309. style="font-size: 12px;color: #0843cd;margin-left: 5px;">{{parseFloat(allSum.queAcount).toFixed(2)}}%</span>
  310. </p>
  311. </div>
  312. </el-card>
  313. </el-col>
  314. </el-row>
  315. <div style="width:100%;height:280px;">
  316. <div id="eChart2" style="width:100%;height:100%;"></div>
  317. </div>
  318. </div>
  319. </div>
  320. <el-dialog title="走访" :close-on-click-modal="false" v-dialogDrag :visible.sync="visible">
  321. <span slot="footer" class="dialog-footer">
  322. <el-button size="small" @click="visible = false">关闭</el-button>
  323. <!-- <el-button size="small" type="primary" @click="doSubmit()" v-noMoreClick>确定</el-button> -->
  324. </span>
  325. </el-dialog>
  326. </div>
  327. </template>
  328. <script>
  329. import bigScreenService from "@/api/bigScreen/bigScreenApi";
  330. import notifyService from "@/api/notify/notifyService";
  331. import lyService from "@/api/service/lyServiceService";
  332. import userService from "@/api/sys/userService";
  333. import visitStatistics from './visitStatistics'
  334. export default {
  335. data() {
  336. return {
  337. parkSum: "24",
  338. enterpriseSum: "1025",
  339. premisesAcreage: "24152.3",
  340. usableArea: "18122.1",
  341. residualArea: "6030.2",
  342. moneyYear: "1025.2",
  343. moneyMonth: "101.2",
  344. moneyMoM: "2.2%",
  345. moneyYoY: "0.2%",
  346. revenueYear: "201.2",
  347. revenueMonth: "31.2",
  348. revenueMoM: "2.2%",
  349. revenueYoY: "0.2%",
  350. taxYear: "201.2",
  351. taxMonth: "31.2",
  352. taxMoM: "2.2%",
  353. taxYoY: "0.2%",
  354. textColor1: "#028455",
  355. textColor2: "#028455",
  356. textColor3: "#028455",
  357. textColor4: "#028455",
  358. textColor5: "#028455",
  359. textColor6: "#028455",
  360. isTop1: true,
  361. isTop2: true,
  362. isTop3: true,
  363. isTop4: true,
  364. isTop5: true,
  365. isTop6: true,
  366. isBottom1: false,
  367. isBottom2: false,
  368. isBottom3: false,
  369. isBottom4: false,
  370. isBottom5: false,
  371. isBottom6: false,
  372. pageInfo: {},
  373. pageInfo2: [{
  374. industry: '',
  375. cc: ''
  376. }, {
  377. industry: '',
  378. cc: ''
  379. }, {
  380. industry: '',
  381. cc: ''
  382. }, {
  383. industry: '',
  384. cc: ''
  385. }, {
  386. industry: '',
  387. cc: ''
  388. }, {
  389. industry: '',
  390. cc: ''
  391. }, ],
  392. haveCJYQ: false,
  393. haveCJLY: false,
  394. haveCJQY: false,
  395. haveCJYG: false,
  396. haveSBSS: false,
  397. haveXXWH: false,
  398. nowYQInfo: {
  399. BelowUndergraduate: 0,
  400. Undergraduate: 0,
  401. Postgraduate: 0,
  402. DoctoralStudent: 0,
  403. },
  404. notifyList: [],
  405. tablePage: {
  406. total: 0,
  407. currentPage: 1,
  408. pageSize: 10,
  409. orders: [{
  410. column: 'a.create_date',
  411. asc: false
  412. }]
  413. },
  414. pickerOptions: {
  415. shortcuts: [{
  416. text: '最近一周',
  417. onClick(picker) {
  418. const end = new Date();
  419. const start = new Date();
  420. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  421. picker.$emit('pick', [start, end]);
  422. }
  423. }, {
  424. text: '最近一个月',
  425. onClick(picker) {
  426. const end = new Date();
  427. const start = new Date();
  428. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  429. picker.$emit('pick', [start, end]);
  430. }
  431. }, {
  432. text: '最近三个月',
  433. onClick(picker) {
  434. const end = new Date();
  435. const start = new Date();
  436. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  437. picker.$emit('pick', [start, end]);
  438. }
  439. }]
  440. },
  441. value2: [new Date().setTime(new Date().getTime() - 3600 * 1000 * 24 * 30), new Date()],
  442. allSum: {},
  443. visible: false,
  444. };
  445. },
  446. components: {
  447. visitStatistics
  448. },
  449. activated() {
  450. this.changeColor();
  451. this.getPageInfo();
  452. this.getMenuList();
  453. this.getNotifyList();
  454. const end = new Date();
  455. const start = new Date();
  456. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  457. this.getAllAum(start, end)
  458. this.get2();
  459. },
  460. methods: {
  461. get2() {
  462. var that = this
  463. //获取id并初始化图表
  464. var myChart = this.$echarts.init(document.getElementById("eChart2"));
  465. lyService.getPerson().then(({
  466. data
  467. }) => {
  468. const x = [];
  469. const y = [];
  470. for (let i = 0; i < data.length; i++) {
  471. x.push(data[i].des1)
  472. y.push(data[i].perNum)
  473. }
  474. // const x = this.tableData.x//x轴
  475. // const y = this.tableData.y//y轴
  476. //配置项
  477. let option = {
  478. tooltip: {
  479. show: false
  480. },
  481. legend: {
  482. show: false
  483. },
  484. grid: {
  485. left: "4%",
  486. right: "3%",
  487. bottom: "7%",
  488. top: "15%",
  489. containLabel: true
  490. },
  491. // dataZoom: [
  492. // //滑动条
  493. // {
  494. // xAxisIndex: 0, //这里是从X轴的0刻度开始
  495. // show: false, //是否显示滑动条,不影响使用
  496. // type: "inside", // 这个 dataZoom 组件是 slider 型 dataZoom 组件
  497. // startValue: 0, // 从头开始。
  498. // endValue: 8, // 一次性展示几个。
  499. // },
  500. // ],
  501. xAxis: {
  502. type: "category",
  503. data: x.length && y.length > 0 ? x : tableData1,
  504. boundaryGap: [0, 0.01],
  505. axisLine: {
  506. lineStyle: {
  507. color: "rgba(255, 255, 255, 0.1)",
  508. width: 1
  509. }
  510. },
  511. splitLine: {
  512. show: true,
  513. lineStyle: {
  514. color: "rgba(255, 255, 255, 0.1)"
  515. }
  516. },
  517. axisTick: {
  518. show: true
  519. },
  520. axisLabel: {
  521. show: true,
  522. color: "#000",
  523. fontSize: 14
  524. }
  525. },
  526. yAxis: {
  527. name: "人",
  528. nameTextStyle: {
  529. color: "#000",
  530. fontSize: 13,
  531. },
  532. type: "value",
  533. boundaryGap: [0, 0.01],
  534. axisLine: {
  535. lineStyle: {
  536. color: "#333",
  537. width: 1
  538. }
  539. },
  540. splitLine: {
  541. show: true,
  542. lineStyle: {
  543. color: "rgba(255, 255, 255, 0.1)"
  544. }
  545. },
  546. axisTick: {
  547. show: false
  548. },
  549. axisLabel: {
  550. show: true,
  551. color: "#000",
  552. fontSize: 14
  553. }
  554. },
  555. series: [{
  556. name: "人",
  557. type: "bar",
  558. data: y,
  559. barWidth: 20,
  560. label: {
  561. normal: {
  562. show: true,
  563. position: "top",
  564. fontSize: 12,
  565. color: '#000'
  566. }
  567. },
  568. itemStyle: {
  569. normal: {
  570. label: {
  571. show: false
  572. },
  573. borderRadius: 2,
  574. color: '#0184ff'
  575. }
  576. }
  577. }]
  578. };
  579. myChart.setOption(option); //通过setOption()方法生成图表
  580. myChart.on('click', function(params) {
  581. that.$router.push({
  582. name: 'visit',
  583. params: {
  584. name: params.name,
  585. createTime: that.value2
  586. }
  587. })
  588. })
  589. })
  590. },
  591. getPageInfo() {
  592. bigScreenService.InfoStatistics({}).then(({
  593. data
  594. }) => {
  595. this.pageInfo = data;
  596. });
  597. bigScreenService.InfoStatistics_industry({}).then(({
  598. data
  599. }) => {
  600. this.pageInfo2 = data;
  601. });
  602. },
  603. getAllAum(start, end) {
  604. lyService.getProgressStatistics(start, end).then(({
  605. data
  606. }) => {
  607. this.allSum = data
  608. })
  609. },
  610. getTime(val) {
  611. const end = new Date();
  612. const start = new Date();
  613. if (val == 0) {
  614. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  615. } else if (val == 1) {
  616. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  617. } else if (val == 2) {
  618. start.setFullYear(start.getFullYear() - 1);
  619. } else if (val == 3) {
  620. start.setTime(this.value2[0])
  621. end.setTime(this.value2[1])
  622. }
  623. this.value2 = [start, end]
  624. this.getAllAum(start, end);
  625. },
  626. getNotifyList() {
  627. notifyService
  628. .list({
  629. current: this.tablePage.currentPage,
  630. size: this.tablePage.pageSize,
  631. orders: this.tablePage.orders,
  632. isSelf: true,
  633. ...this.searchForm,
  634. })
  635. .then(({
  636. data
  637. }) => {
  638. this.notifyList = data.records;
  639. });
  640. },
  641. getMenuList() {
  642. userService.getMenus().then(({
  643. data
  644. }) => {
  645. let routerList = data.routerList;
  646. let allList = [];
  647. routerList.forEach((item) => {
  648. if (item.href) {
  649. allList.push(item.href);
  650. }
  651. if (item.children.length > 0) {
  652. item.children.forEach((itemIn) => {
  653. if (itemIn.href) {
  654. allList.push(itemIn.href);
  655. }
  656. });
  657. }
  658. });
  659. console.log(allList, "====================>allList");
  660. this.haveCJYQ = allList.includes("/parkmanagement/ParkManagementList");
  661. this.haveCJLY = allList.includes(
  662. "/buildinginfo/BuildingManagementList"
  663. );
  664. this.haveCJQY = allList.includes("/enterpriseinfo/EnterpriseInfoList");
  665. this.haveCJYG = allList.includes("/qyuser/QyUserList");
  666. this.haveSBSS = allList.includes("/saleinventory/SaleInventoryList");
  667. this.haveXXWH = allList.includes(
  668. "/enterpriseother/EnterpriseOtherList"
  669. );
  670. this.$router.push({
  671. name: "home"
  672. });
  673. });
  674. },
  675. changeColor() {
  676. this.textColor1 = "#FF1C1C";
  677. this.textColor4 = "#FF1C1C";
  678. this.isTop1 = false;
  679. this.isTop4 = false;
  680. this.isBottom1 = true;
  681. this.isBottom4 = true;
  682. },
  683. },
  684. };
  685. </script>
  686. <style scoped lang="less">
  687. .background-image {
  688. background-image: url("~@/assets/img/homePage/hou_bg2.png");
  689. background-position: bottom;
  690. background-size: 100% 100%;
  691. width: 100%;
  692. height: 100%;
  693. }
  694. .header {
  695. width: 100%;
  696. height: 20px;
  697. }
  698. .headline {
  699. width: 100%;
  700. height: 5%;
  701. position: relative;
  702. }
  703. .headline-text {
  704. margin-left: 4%;
  705. font-family: Alibaba PuHuiTi 2;
  706. font-weight: normal;
  707. font-size: 30px;
  708. color: #3c507e;
  709. }
  710. .main-1 {
  711. margin-left: 1.5%;
  712. width: 29%;
  713. height: 75%;
  714. background-image: url("~@/assets/img/homePage/hou_5.png");
  715. background-size: 100% 100%;
  716. border-radius: 10px;
  717. }
  718. .main-2 {
  719. margin-left: 1.5%;
  720. width: 29%;
  721. height: 75%;
  722. background-image: url("~@/assets/img/homePage/hou_4.png");
  723. background-size: 100% 100%;
  724. border-radius: 10px;
  725. }
  726. .main-3 {
  727. margin-left: 1.5%;
  728. width: 29%;
  729. height: 75%;
  730. background-image: url("~@/assets/img/homePage/hou_3.png");
  731. background-size: 100% 100%;
  732. border-radius: 10px;
  733. }
  734. .main-4 {
  735. margin-left: 1.5%;
  736. width: 30%;
  737. height: 75%;
  738. background-image: url("~@/assets/img/homePage/hou_2.png");
  739. background-size: 100% 100%;
  740. border-radius: 10px;
  741. }
  742. .main-5 {
  743. margin-left: 1.5%;
  744. width: 17%;
  745. height: 75%;
  746. background-image: url("~@/assets/img/homePage/hou_1.png");
  747. background-size: 100% 100%;
  748. border-radius: 10px;
  749. }
  750. .main {
  751. width: 100%;
  752. height: 30%;
  753. /* 开启Flexbox布局 */
  754. display: flex;
  755. }
  756. .footer {
  757. width: 100%;
  758. position: relative;
  759. top: -5%;
  760. // height: 43%;
  761. }
  762. .el-row {
  763. margin-bottom: 20px;
  764. }
  765. .footer-main {
  766. margin-left: 4%;
  767. width: 91%;
  768. border-radius: 10px;
  769. margin-top: 15px;
  770. }
  771. .footer-main-top {
  772. height: 26%;
  773. font-family: Alibaba PuHuiTi 2;
  774. font-weight: normal;
  775. font-size: 16px;
  776. color: #333333;
  777. margin-left: 2%;
  778. }
  779. .footer-fast {
  780. width: 100%;
  781. height: 64%;
  782. /* 开启Flexbox布局 */
  783. display: flex;
  784. }
  785. // .footer-fast-1 {
  786. // margin-left: 5%;
  787. // width: 4.5%;
  788. // height: 100%;
  789. // }
  790. .footer-fast-2 {
  791. margin-left: 5%;
  792. width: 4.5%;
  793. height: 100%;
  794. }
  795. .footer-fast-1-1 p {
  796. margin: 10px;
  797. font-size: 14px;
  798. // width: 100%;
  799. // height: 53.84%;
  800. // background-image: url("~@/assets/img/homePage/hou_addyuan.png");
  801. // background-size: 100% 100%;
  802. }
  803. .footer-fast-1-2 {
  804. font-family: Alibaba PuHuiTi 2;
  805. font-weight: normal;
  806. font-size: 14px;
  807. text-align: center;
  808. }
  809. .footer-fast-2-1 {
  810. width: 100%;
  811. height: 53.84%;
  812. background-image: url("~@/assets/img/homePage/hou_addlou.png");
  813. background-size: 100% 100%;
  814. }
  815. .footer-fast-2-2 {
  816. width: 100%;
  817. height: 53.84%;
  818. background-image: url("~@/assets/img/homePage/hou_addqiye.png");
  819. background-size: 100% 100%;
  820. }
  821. .footer-fast-2-3 {
  822. width: 100%;
  823. height: 53.84%;
  824. background-image: url("~@/assets/img/homePage/hou_addren.png");
  825. background-size: 100% 100%;
  826. }
  827. .footer-fast-2-4 {
  828. width: 100%;
  829. height: 53.84%;
  830. background-image: url("~@/assets/img/homePage/hou_shuishou.png");
  831. background-size: 100% 100%;
  832. }
  833. .footer-fast-2-5 {
  834. width: 100%;
  835. height: 53.84%;
  836. background-image: url("~@/assets/img/homePage/hou_addint.png");
  837. background-size: 100% 100%;
  838. }
  839. .main-periphery {
  840. margin-left: 8%;
  841. width: 92%;
  842. height: 50%;
  843. }
  844. .main-periphery2 {
  845. margin-left: 0%;
  846. height: 50%;
  847. }
  848. .main-periphery-font {
  849. font-family: Alibaba PuHuiTi 2;
  850. font-weight: normal;
  851. font-size: 20px;
  852. }
  853. .main-periphery-numerical {
  854. font-family: Alibaba PuHuiTi 2;
  855. font-weight: bold;
  856. font-size: 40px;
  857. }
  858. .main-periphery-font-small {
  859. font-family: Alibaba PuHuiTi 2;
  860. font-weight: normal;
  861. font-size: 15px;
  862. }
  863. .roll-name-box {
  864. width: 100%;
  865. padding-left: 1vw;
  866. padding-right: 1vw;
  867. height: 3vh;
  868. color: #fff;
  869. background: #0f467a;
  870. line-height: 3vh;
  871. font-size: 1.5vh;
  872. overflow: hidden;
  873. white-space: nowrap;
  874. }
  875. .scroll-content {
  876. margin-left: 50%; // 把文字弄出可见区域
  877. width: 200%;
  878. animation: myMove 100s linear infinite; // 重点,定义动画
  879. animation-fill-mode: forwards;
  880. color: #fff;
  881. }
  882. @keyframes myMove {
  883. 0% {
  884. transform: translateX(0%);
  885. }
  886. 100% {
  887. transform: translateX(-100%);
  888. }
  889. }
  890. </style>