index.vue 32 KB

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