IndexChart.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. <template>
  2. <div class="page-header-index-wide">
  3. <div>
  4. <div v-has="'sydwsy'" style="display: flex">
  5. <a-card style="margin-bottom: 1rem;width:30%;">
  6. <div>
  7. <a-col :sm="24" :md="30" :xl="20">
  8. <div @click="handleAdd" class='syxxtbbtn'>
  9. <span style="color: white;font-weight: bold">单位信息填报</span>
  10. </div>
  11. </a-col>
  12. <a-col :sm="24" :md="30" :xl="20">
  13. <div @click="handleAdd2" class='syxxtbbtn'>
  14. <span style="color: white;font-weight: bold">地块信息填报</span>
  15. </div>
  16. </a-col>
  17. </div>
  18. </a-card>
  19. <a-card :hoverable='true' style="margin-bottom: 1rem;width:70%;">
  20. <a-row :gutter="24" style="margin-top: 2%;margin-left: 5%">
  21. <a-col v-show="this.show" :sm="24" :md="12" :xl="10" :style="{ marginBottom: '24px'}" class="xfrw">
  22. <chart-card :loading="loading" title="下发任务数(省属企业)" :total='this.xfrws'>
  23. <a-tooltip title="指标说明" slot="action">
  24. <a-icon type="info-circle-o" />
  25. </a-tooltip>
  26. </chart-card>
  27. </a-col>
  28. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="yxdls">
  29. <chart-card :loading="loading" title="有效登录数(省属企业)" :total="this.yxdls">
  30. <a-tooltip title="指标说明" slot="action">
  31. <a-icon type="info-circle-o" />
  32. </a-tooltip>
  33. </chart-card>
  34. </a-col>
  35. <a-col :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="sbdks">
  36. <chart-card v-if="this.yhjs=='shyh'" :loading="loading" title="上报地块数(省属企业)" :total="this.sbdks">
  37. <a-tooltip title="指标说明" slot="action">
  38. <a-icon type="info-circle-o" />
  39. </a-tooltip>
  40. </chart-card>
  41. <chart-card v-else :loading="loading" title="上报地块数" :total="this.sbdks">
  42. <a-tooltip title="指标说明" slot="action">
  43. <a-icon type="info-circle-o" />
  44. </a-tooltip>
  45. </chart-card>
  46. </a-col>
  47. <a-col v-show="!this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="dqsbs">
  48. <chart-card :loading="loading" title="审核通过数" :total="this.shtgs">
  49. <a-tooltip title="指标说明" slot="action">
  50. <a-icon type="info-circle-o" />
  51. </a-tooltip>
  52. </chart-card>
  53. </a-col>
  54. </a-row>
  55. <a-row :gutter="24" style="margin-top: 1%;margin-left: 5%">
  56. <a-col v-show="!this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="shbtg">
  57. <chart-card :loading="loading" title="审核不通过(退回)" :total="this.cwth">
  58. <a-tooltip title="指标说明" slot="action">
  59. <a-icon type="info-circle-o" />
  60. </a-tooltip>
  61. </chart-card>
  62. </a-col>
  63. <a-col :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="wshsl">
  64. <chart-card v-if="this.yhjs=='shyh'" :loading="loading" title="未审核地块数(省属企业)" :total="this.wshsl">
  65. <a-tooltip title="指标说明" slot="action">
  66. <a-icon type="info-circle-o" />
  67. </a-tooltip>
  68. </chart-card>
  69. <chart-card v-else :loading="loading" title="未审核地块数" :total="this.wshsl">
  70. <a-tooltip title="指标说明" slot="action">
  71. <a-icon type="info-circle-o" />
  72. </a-tooltip>
  73. </chart-card>
  74. </a-col>
  75. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px'}" class="xfrw">
  76. <chart-card :loading="loading" title="下发任务数(省直单位)" :total='this.sydwxfrws'>
  77. <a-tooltip title="指标说明" slot="action">
  78. <a-icon type="info-circle-o" />
  79. </a-tooltip>
  80. </chart-card>
  81. </a-col>
  82. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="yxdls">
  83. <chart-card :loading="loading" title="有效登录数(省直单位)" :total="this.sydwyxdls">
  84. <a-tooltip title="指标说明" slot="action">
  85. <a-icon type="info-circle-o" />
  86. </a-tooltip>
  87. </chart-card>
  88. </a-col>
  89. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="sbdks">
  90. <chart-card :loading="loading" title="上报地块数(省直单位)" :total="this.sydwsbdks">
  91. <a-tooltip title="指标说明" slot="action">
  92. <a-icon type="info-circle-o" />
  93. </a-tooltip>
  94. </chart-card>
  95. </a-col>
  96. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="wshsl">
  97. <chart-card :loading="loading" title="未审核地块数(省直单位)" :total="this.sydwwsh">
  98. <a-tooltip title="指标说明" slot="action">
  99. <a-icon type="info-circle-o" />
  100. </a-tooltip>
  101. </chart-card>
  102. </a-col>
  103. </a-row>
  104. </a-card>
  105. </div>
  106. </div>
  107. <div>
  108. <div v-has="'ssqysy2'" style="display: flex">
  109. <a-card style="margin-bottom: 1rem;width:30%;">
  110. <div>
  111. <a-col :sm="24" :md="30" :xl="20">
  112. <div @click="handleRouter" class='syxxtbbtn'>
  113. <span style="color: white;font-weight: bold">用地单位信息填报</span>
  114. </div>
  115. </a-col>
  116. <a-col :sm="24" :md="30" :xl="20">
  117. <div @click="handleRouter2" class='syxxtbbtn'>
  118. <span style="color: white;font-weight: bold">用地地块信息填报</span>
  119. </div>
  120. </a-col>
  121. </div>
  122. </a-card>
  123. <a-card style="margin-bottom: 1rem;width:70%;">
  124. <a-row :gutter="24" style="margin-top: 2%;margin-left: 5%">
  125. <a-col v-show="this.show" :sm="24" :md="12" :xl="10" :style="{ marginBottom: '24px'}" class="xfrw">
  126. <chart-card :loading="loading" title="下发任务数(省属企业)" :total='this.xfrws'>
  127. <a-tooltip title="指标说明" slot="action">
  128. <a-icon type="info-circle-o" />
  129. </a-tooltip>
  130. </chart-card>
  131. </a-col>
  132. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="yxdls">
  133. <chart-card :loading="loading" title="有效登录数(省属企业)" :total="this.yxdls">
  134. <a-tooltip title="指标说明" slot="action">
  135. <a-icon type="info-circle-o" />
  136. </a-tooltip>
  137. </chart-card>
  138. </a-col>
  139. <a-col :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="sbdks">
  140. <chart-card v-if="this.yhjs=='shyh'" :loading="loading" title="上报地块数(省属企业)" :total="this.sbdks">
  141. <a-tooltip title="指标说明" slot="action">
  142. <a-icon type="info-circle-o" />
  143. </a-tooltip>
  144. </chart-card>
  145. <chart-card v-else :loading="loading" title="上报地块数" :total="this.sbdks">
  146. <a-tooltip title="指标说明" slot="action">
  147. <a-icon type="info-circle-o" />
  148. </a-tooltip>
  149. </chart-card>
  150. </a-col>
  151. <a-col v-show="!this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="dqsbs">
  152. <chart-card :loading="loading" title="审核通过数" :total="this.shtgs">
  153. <a-tooltip title="指标说明" slot="action">
  154. <a-icon type="info-circle-o" />
  155. </a-tooltip>
  156. </chart-card>
  157. </a-col>
  158. </a-row>
  159. <a-row :gutter="24" style="margin-top: 1%;margin-left: 5%">
  160. <a-col v-show="!this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="shbtg">
  161. <chart-card :loading="loading" title="审核不通过(退回)" :total="this.cwth">
  162. <a-tooltip title="指标说明" slot="action">
  163. <a-icon type="info-circle-o" />
  164. </a-tooltip>
  165. </chart-card>
  166. </a-col>
  167. <a-col :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="wshsl">
  168. <chart-card v-if="this.yhjs=='shyh'" :loading="loading" title="未审核地块数(省属企业)" :total="this.wshsl">
  169. <a-tooltip title="指标说明" slot="action">
  170. <a-icon type="info-circle-o" />
  171. </a-tooltip>
  172. </chart-card>
  173. <chart-card v-else :loading="loading" title="未审核地块数" :total="this.wshsl">
  174. <a-tooltip title="指标说明" slot="action">
  175. <a-icon type="info-circle-o" />
  176. </a-tooltip>
  177. </chart-card>
  178. </a-col>
  179. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px'}" class="xfrw">
  180. <chart-card :loading="loading" title="下发任务数(省直单位)" :total='this.sydwxfrws'>
  181. <a-tooltip title="指标说明" slot="action">
  182. <a-icon type="info-circle-o" />
  183. </a-tooltip>
  184. </chart-card>
  185. </a-col>
  186. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="yxdls">
  187. <chart-card :loading="loading" title="有效登录数(省直单位)" :total="this.sydwyxdls">
  188. <a-tooltip title="指标说明" slot="action">
  189. <a-icon type="info-circle-o" />
  190. </a-tooltip>
  191. </chart-card>
  192. </a-col>
  193. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="sbdks">
  194. <chart-card :loading="loading" title="上报地块数(省直单位)" :total="this.sydwsbdks">
  195. <a-tooltip title="指标说明" slot="action">
  196. <a-icon type="info-circle-o" />
  197. </a-tooltip>
  198. </chart-card>
  199. </a-col>
  200. <a-col v-show="this.show" :sm="24" :md="12" :xl="11" :style="{ marginBottom: '24px' }" class="wshsl">
  201. <chart-card :loading="loading" title="未审核地块数(省直单位)" :total="this.sydwwsh">
  202. <a-tooltip title="指标说明" slot="action">
  203. <a-icon type="info-circle-o" />
  204. </a-tooltip>
  205. </chart-card>
  206. </a-col>
  207. </a-row>
  208. </a-card>
  209. </div>
  210. </div>
  211. <a-card v-has="'ssqysy'">
  212. <a-row :gutter="24">
  213. <a-col v-show="this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px'}" class="xfrw">
  214. <chart-card :loading="loading" title="下发任务数(省属企业)" :total='this.xfrws'>
  215. <a-tooltip title="指标说明" slot="action">
  216. <a-icon type="info-circle-o" />
  217. </a-tooltip>
  218. </chart-card>
  219. </a-col>
  220. <a-col v-show="this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="yxdls">
  221. <chart-card :loading="loading" title="有效登录数(省属企业)" :total="this.yxdls">
  222. <a-tooltip title="指标说明" slot="action">
  223. <a-icon type="info-circle-o" />
  224. </a-tooltip>
  225. </chart-card>
  226. </a-col>
  227. <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="sbdks">
  228. <chart-card v-if="this.yhjs=='shyh'" :loading="loading" title="上报地块数(省属企业)" :total="this.sbdks">
  229. <a-tooltip title="指标说明" slot="action">
  230. <a-icon type="info-circle-o" />
  231. </a-tooltip>
  232. </chart-card>
  233. <chart-card v-else :loading="loading" title="上报地块数" :total="this.sbdks">
  234. <a-tooltip title="指标说明" slot="action">
  235. <a-icon type="info-circle-o" />
  236. </a-tooltip>
  237. </chart-card>
  238. </a-col>
  239. <a-col v-show="!this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="dqsbs">
  240. <chart-card :loading="loading" title="审核通过数" :total="this.shtgs">
  241. <a-tooltip title="指标说明" slot="action">
  242. <a-icon type="info-circle-o" />
  243. </a-tooltip>
  244. </chart-card>
  245. </a-col>
  246. <a-col v-show="!this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="shbtg">
  247. <chart-card :loading="loading" title="审核不通过(退回)" :total="this.cwth">
  248. <a-tooltip title="指标说明" slot="action">
  249. <a-icon type="info-circle-o" />
  250. </a-tooltip>
  251. </chart-card>
  252. </a-col>
  253. <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="wshsl">
  254. <chart-card v-if="this.yhjs=='shyh'" :loading="loading" title="未审核地块数(省属企业)" :total="this.wshsl">
  255. <a-tooltip title="指标说明" slot="action">
  256. <a-icon type="info-circle-o" />
  257. </a-tooltip>
  258. </chart-card>
  259. <chart-card v-else :loading="loading" title="未审核地块数" :total="this.wshsl">
  260. <a-tooltip title="指标说明" slot="action">
  261. <a-icon type="info-circle-o" />
  262. </a-tooltip>
  263. </chart-card>
  264. </a-col>
  265. <a-col v-show="this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px'}" class="xfrw">
  266. <div style="cursor:pointer" @click="handleXfrws()">
  267. <chart-card :loading="loading" title="下发任务数(省直单位)" :total='this.sydwxfrws'>
  268. <a-tooltip title="指标说明" slot="action">
  269. <a-icon type="info-circle-o" />
  270. </a-tooltip>
  271. </chart-card>
  272. </div>
  273. </a-col>
  274. <a-col v-show="this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="yxdls">
  275. <div style="cursor:pointer" @click="handleYxdl()">
  276. <chart-card :loading="loading" title="有效登录数(省直单位)" :total="this.sydwyxdls">
  277. <a-tooltip title="指标说明" slot="action">
  278. <a-icon type="info-circle-o" />
  279. </a-tooltip>
  280. </chart-card>
  281. </div>
  282. </a-col>
  283. <a-col v-show="this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="sbdks">
  284. <div style="cursor:pointer" @click="handleSbdks()">
  285. <chart-card :loading="loading" title="上报地块数(省直单位)" :total="this.sydwsbdks">
  286. <a-tooltip title="指标说明" slot="action">
  287. <a-icon type="info-circle-o" />
  288. </a-tooltip>
  289. </chart-card>
  290. </div>
  291. </a-col>
  292. <a-col v-show="this.show" :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" class="wshsl">
  293. <div style="cursor:pointer" @click="handleWsh()">
  294. <chart-card :loading="loading" title="未审核地块数(省直单位)" :total="this.sydwwsh">
  295. <a-tooltip title="指标说明" slot="action">
  296. <a-icon type="info-circle-o" />
  297. </a-tooltip>
  298. </chart-card>
  299. </div>
  300. </a-col>
  301. </a-row>
  302. </a-card>
  303. <a-card v-has="'chart'" :loading="loading" :bordered="false" :body-style="{padding: '0'}">
  304. <div class="salesCard">
  305. <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
  306. <a-tab-pane v-if="this.yhjs=='shyh'" loading="true" tab="土地资产上报审核情况(省属企业)" key="1">
  307. <a-row>
  308. <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24">
  309. <Pie :dataSource="this.pieData"></Pie>
  310. </a-col>
  311. <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24">
  312. <rank-list title="土地资产上报审核情况" :list="rankList1"/>
  313. </a-col>
  314. </a-row>
  315. </a-tab-pane>
  316. <a-tab-pane v-else loading="true" tab="土地资产上报审核情况" key="1">
  317. <a-row>
  318. <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24">
  319. <Pie :dataSource="this.pieData"></Pie>
  320. </a-col>
  321. <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24">
  322. <rank-list title="土地资产上报审核情况" :list="rankList1"/>
  323. </a-col>
  324. </a-row>
  325. </a-tab-pane>
  326. <a-tab-pane v-if="this.yhjs=='shyh'" tab="土地资产上报审核情况(省直单位)" key="2">
  327. <a-row>
  328. <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24">
  329. <Pie :dataSource="this.sydwpieData"></Pie>
  330. </a-col>
  331. <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24">
  332. <rank-list title="土地资产上报审核情况" :list="sydwrankList1"/>
  333. </a-col>
  334. </a-row>
  335. </a-tab-pane>
  336. </a-tabs>
  337. </div>
  338. </a-card>
  339. <a-card>
  340. <a-col>
  341. <UserAnnouncement></UserAnnouncement>
  342. </a-col>
  343. </a-card>
  344. <a-card style='margin-top: 20px'>
  345. <a-row>
  346. <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24" style='z-index: 3000; position:fixed;top: 67%;left: 0.4%;width:220px;height:300px;background-color: white;text-align: center;box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;' v-show="showCallCenter" class="call-center" >
  347. <div class="ant-card-extra" style='padding: 0;position: absolute;right: 0.5em' @click='onClose'><i aria-label="图标: close" tabindex="-1" class="anticon anticon-close" style="cursor: pointer; color: rgb(236,150,45);"><svg viewBox="64 64 896 896" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg></i></div>
  348. <div v-if="this.Showchat==0" style='margin-top: 15px'>
  349. <img width='350px' style=" width:220px;height:260px" src='@/assets/wechat1.jpg' alt=''>
  350. </div>
  351. <div v-else="this.Showchat==1" style='margin-top: 15px'>
  352. <img width='350px' style=" width:200px;height:260px" src='../../assets/1666055160594.jpg' alt=''><img>
  353. </div>
  354. <span style="color: red">扫码进群,在线咨询</span>
  355. </a-col>
  356. <!-- <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24">
  357. <div>
  358. <a class="logout_title" target="_blank" href="/shuomingshu.pdf">
  359. 系统简明使用手册
  360. </a>
  361. </div>
  362. </a-col>-->
  363. </a-row>
  364. </a-card>
  365. <QcQyxxModal ref="modalForm" ></QcQyxxModal>
  366. <QcSsgqzysytdqkModal ref="modalForm1"></QcSsgqzysytdqkModal>
  367. </div>
  368. </template>
  369. <script>
  370. import store from '@/store'
  371. import ChartCard from '@/components/ChartCard'
  372. import ACol from "ant-design-vue/es/grid/Col"
  373. import ATooltip from "ant-design-vue/es/tooltip/Tooltip"
  374. import MiniArea from '@/components/chart/MiniArea'
  375. import MiniBar from '@/components/chart/MiniBar'
  376. import MiniProgress from '@/components/chart/MiniProgress'
  377. import RankList from '@/components/chart/RankList'
  378. import Bar from '@/components/chart/Bar'
  379. import LineChartMultid from '@/components/chart/LineChartMultid'
  380. import HeadInfo from '@/components/tools/HeadInfo.vue'
  381. import { getAction } from '../../api/manage'
  382. import Trend from '@/components/Trend'
  383. import { getLoginfo,getVisitInfo } from '@/api/api'
  384. import Pie from "../../components/chart/Pie";
  385. import UserAnnouncement from "../../views/system/UserAnnouncementList";
  386. import QcQyxxModal from "@views/sydwqcsb/sydwxx/modules/QcQyxxModal";
  387. import QcSsgqzysytdqkModal from "@views/sydwqcsb/modules/QcSsgqzysytdqkModal";
  388. const rankList = []
  389. for (let i = 0; i < 7; i++) {
  390. rankList.push({
  391. name: '白鹭岛 ' + (i+1) + ' 号店',
  392. total: 1234.56 - i * 100
  393. })
  394. }
  395. const barData = []
  396. for (let i = 0; i < 12; i += 1) {
  397. barData.push({
  398. x: `${i + 1}月`,
  399. y: Math.floor(Math.random() * 1000) + 200
  400. })
  401. }
  402. export default {
  403. name: "IndexChart",
  404. components: {
  405. ATooltip,
  406. QcSsgqzysytdqkModal,
  407. Pie,
  408. ACol,
  409. ChartCard,
  410. MiniArea,
  411. MiniBar,
  412. MiniProgress,
  413. RankList,
  414. Bar,
  415. QcQyxxModal,
  416. Trend,
  417. LineChartMultid,
  418. HeadInfo,
  419. UserAnnouncement
  420. },
  421. data() {
  422. return {
  423. dataSource:[],
  424. yxdls:'',
  425. yhjs:'',
  426. wshsl:'',
  427. xfrws:'',
  428. sbdks:'',
  429. dqsbs:'',
  430. tgsh:'',
  431. btgsh:'',
  432. shtgs:'',
  433. cwth:'',
  434. sydwxfrws:'',//下发任务数
  435. sydwyxdls:'',//有效登录数
  436. sydwsbdks:'',//上报地块数
  437. sydwwsh:'',//未审核数量
  438. sydwyhjs:'',//用戶角色
  439. showDqsbs:true,
  440. show:false,
  441. pieData:[],
  442. sydwpieData:[],
  443. sydwrankList1:[],
  444. rankList1:[],
  445. loading: true,
  446. center: null,
  447. rankList,
  448. Showchat:0,
  449. barData,
  450. loginfo:{},
  451. visitFields:['ip','visit'],
  452. visitInfo:[],
  453. indicator: <a-icon type="loading" style="font-size: 24px" spin />,
  454. // 按下时的坐标
  455. startX: '',
  456. startY: '',
  457. // 抬起时的坐标
  458. endX: '',
  459. endY: '',
  460. showCallCenter:true,
  461. cardStyle:"position:fixed;top: 160px;left: 400px;width:135px;height:121px",
  462. time:null,
  463. }
  464. },
  465. mounted() {
  466. this.selectDqsbs();
  467. this.selectWshsl();
  468. this.selectXfrws();
  469. this.selectShzt();
  470. this.selectsydw();
  471. this.selectsydwShzt();
  472. /* this.$nextTick(()=>{
  473. this.time=setInterval(()=>{
  474. /!*let callCenter = document.querySelector('#callCenter')
  475. let x=callCenter.offsetLeft;
  476. let y=callCenter.offsetTop;
  477. if(x<document.body.clientWidth - 30){
  478. callCenter.style.left = x + 20 + 'px'
  479. }else if(x>30) {
  480. callCenter.style.left = x - 20 + 'px'
  481. }
  482. if(y<document.body.clientHeight - 30){
  483. callCenter.style.top = y + 20 + 'px'
  484. }else if(y>30) {
  485. callCenter.style.top = y - 20 + 'px'
  486. }*!/
  487. console.log(11)
  488. this.autoMoveBox()
  489. },2000)
  490. })*/
  491. },
  492. created() {
  493. setTimeout(() => {
  494. this.loading = !this.loading
  495. }, 1000)
  496. this.initLogInfo();
  497. },
  498. destroyed() {
  499. console.log(999)
  500. clearInterval(this.time)
  501. },
  502. methods: {
  503. handleYxdl(){
  504. this.$router.push({name:'qcsb.qyxx-qcQyxx-list8'})
  505. },
  506. onClose(){
  507. this.showCallCenter=false;
  508. clearInterval(this.time)
  509. },
  510. handleAdd(){
  511. this.$router.push({name:'qcsb.qyxx-qcQyxx-list5'})
  512. },
  513. handleRouter(){
  514. this.$router.push({name:'qcsb.qyxx-qcQyxx-list'})
  515. },
  516. handleRouter2(){
  517. this.$router.push({name:'qcsb-qcSsgqzysytdqk-list'})
  518. },
  519. handleSbdks(){
  520. this.$router.push({name:'qcsb-QcSsgqzysytdqkList-list7'})
  521. },
  522. handleXfrws(){
  523. this.$router.push({name:'isystem-user',query:{orgCode:'A03'}})
  524. },
  525. handleWsh(){
  526. this.$router.push({name:'qcsb-QcSsgqzysytdqkList-list6'})
  527. },
  528. handleAdd2(){
  529. this.$router.push({name:'qcsb-QcSsgqzysytdqkList-list5'})
  530. /* getAction("/qcsb/qcSsgqzysytdqk/selectQyxx").then(res=>{
  531. if(res.result==null){
  532. this.$message.warn("请先补全用地单位信息并上报!")
  533. }else
  534. if(res.result.sfsjtdzc=='是'){
  535. this.$refs.modalForm1.add();
  536. this.$refs.modalForm1.title = "新增";
  537. this.$refs.modalForm1.disableSubmit = false;
  538. }else if(res.result.sfsjtdzc=='否'){
  539. this.$message.warn("未涉及省内土地资产!")
  540. }
  541. })*/
  542. },
  543. autoMoveBox(){
  544. var windowHeight = window.innerHeight;
  545. var windowWidth = window.innerWidth;
  546. var box = document.getElementById("callCenter");
  547. var boxWidth = parseInt(box.style.width);
  548. var boxHeight = parseInt(box.style.height);
  549. var boxTop = parseInt(box.style.top);
  550. var boxLeft = parseInt(box.style.left);
  551. var size = 20;
  552. // 左上角,开始右移
  553. if( (boxTop-boxHeight<=0) && (boxLeft+boxWidth)<windowWidth )
  554. {
  555. box.style.left = boxLeft + size + "px";
  556. }
  557. else if((boxTop+boxHeight<windowHeight) && (boxLeft+boxWidth)>=windowWidth)
  558. {
  559. // 右上角,开始下移
  560. box.style.top = boxTop + size + "px";
  561. }
  562. else if((boxTop+boxHeight)>=windowHeight && (boxLeft- boxWidth)>0)
  563. {
  564. // 右下角,开始左移
  565. box.style.left = boxLeft - size + "px";
  566. }
  567. else if((boxTop-boxHeight)>=0 && (boxLeft-boxWidth)<=0)
  568. {
  569. // 左下角,开始上移
  570. box.style.top = boxTop - size + "px";
  571. }else {
  572. box.style.left = boxLeft + size + "px";
  573. box.style.top = boxTop + size + "px";
  574. }
  575. // setTimeout(()=>{this.autoMoveBox()},50);
  576. },
  577. // 拖动窗口,鼠标按下
  578. move(event) {
  579. /*if(this.time){
  580. clearInterval(this.time)
  581. }
  582. // 给对应div添加拖拽属性
  583. let callCenter = document.querySelector('#callCenter');
  584. console.log(callCenter)
  585. callCenter.style.cursor = 'move'
  586. var distanceX = event.clientX - callCenter.offsetLeft
  587. var distanceY = event.clientY - callCenter.offsetTop
  588. // 获取按下时对应的坐标
  589. this.startX = event.pageX
  590. this.startY = event.pageY
  591. document.onmousemove = function (ev) {
  592. var oevent = ev || event
  593. // 加入判断,让浮窗在限定的页面内可拖动
  594. if (ev.clientX < 40 || ev.clientX > document.body.clientWidth - 30) {
  595. return
  596. }
  597. if (ev.clientY < 40 || ev.clientY > document.body.clientHeight - 30) {
  598. return
  599. }
  600. callCenter.style.left = oevent.clientX - distanceX + 'px'
  601. callCenter.style.top = oevent.clientY - distanceY + 'px'
  602. }
  603. document.onmouseup = function () {
  604. document.onmousemove = null
  605. document.onmouseup = null
  606. callCenter.style.cursor = 'default'
  607. }*/
  608. },
  609. // 鼠标抬起触发
  610. moveEnd(event) {
  611. /* // 获取鼠标抬起时的坐标
  612. this.endX = event.pageX
  613. this.endY = event.pageY
  614. this.time=setInterval(()=>this.autoMoveBox(),1000)
  615. // 计算按下与抬起位置差值
  616. var d = Math.sqrt((this.startX - this.endX) * (this.startX - this.endX) + (this.startY - this.endY) * (this.startY - this.endY))
  617. console.log(1)
  618. if (d === 0 || d < 7) {
  619. console.log("执行了点击事件")
  620. }else {
  621. console.log("执行了拖拽事件")
  622. }*/
  623. },
  624. selectXfrws(){
  625. getAction("/qcsb.qyxx/qcQyxx/rwdls").then(res=>{
  626. if(res.code==200){
  627. for (let i = 0; i <res.result1.length; i++) {
  628. this.xfrws=res.result1[0];//下发任务数
  629. this.yxdls=res.result1[1];//有效登录数
  630. this.sbdks=res.result1[2];//上报地块数
  631. this.yhjs=res.result1[3];//用戶角色
  632. }
  633. }
  634. debugger
  635. if(this.yhjs=='shyh'||this.yhjs=='sjzh'){
  636. this.show=true;
  637. }
  638. })
  639. },
  640. selectsydw(){
  641. getAction("/qcsb.qyxx/qcQyxx/sydw").then(res=>{
  642. if(res.code==200){
  643. for (let i = 0; i <res.result1.length; i++) {
  644. this.sydwxfrws=res.result1[0];//下发任务数
  645. this.sydwyxdls=res.result1[1];//有效登录数
  646. this.sydwsbdks=res.result1[2];//上报地块数
  647. this.sydwwsh=res.result1[3];//未审核数量
  648. this.sydwyhjs=res.result1[4];//用戶角色
  649. }
  650. }
  651. })
  652. },
  653. selectShzt(){
  654. getAction("/qcsb.qyxx/qcQyxx/shzt").then(res=>{
  655. if(res.code==200){
  656. this.pieData=[
  657. { item: '审核通过地块', count:parseInt(res.result1[0]) },
  658. { item: '审核不通过地块',count:parseInt(res.result1[1]) },
  659. { item: '未审核地块', count:parseInt(res.result1[2]) },
  660. { item: '审核中地块', count:parseInt(res.result1[3]) }
  661. ]
  662. for (let i = 0; i < this.pieData.length; i++) {
  663. this.rankList1.push({
  664. name: this.pieData[i].item,
  665. total: this.pieData[i].count
  666. })
  667. }
  668. }
  669. })
  670. //控制显示二维码
  671. if(store.getters.userInfo.orgCode!=null){
  672. if(store.getters.userInfo.orgCode.substring(0,3)=='A03'){
  673. this.Showchat=1 //显示机关上报用户
  674. }else if(store.getters.userInfo.orgCode.substring(0,3)=='A04'){
  675. this.Showchat=0 //显示企业上报用户
  676. }
  677. }
  678. },
  679. selectsydwShzt(){
  680. getAction("/qcsb.qyxx/qcQyxx/sydwshzt").then(res=>{
  681. if(res.code==200){
  682. this.sydwpieData=[
  683. { item: '审核通过地块', count:parseInt(res.result1[0]) },
  684. { item: '审核不通过地块',count:parseInt(res.result1[1]) },
  685. { item: '未审核地块', count:parseInt(res.result1[2]) },
  686. { item: '审核中地块', count:parseInt(res.result1[3]) }
  687. ]
  688. for (let i = 0; i < this.sydwpieData.length; i++) {
  689. this.sydwrankList1.push({
  690. name: this.sydwpieData[i].item,
  691. total: this.sydwpieData[i].count
  692. })
  693. }
  694. }
  695. })
  696. },
  697. selectDqsbs(){
  698. let usercode=''
  699. usercode = store.getters.userInfo.username
  700. getAction("/qcsb.qyxx/qcQyxx/dqsbs").then(res=>{
  701. if(res.code==200){
  702. this.shtgs=res.result1[0]//审核通过数
  703. this.cwth=res.result1[1]//错误退回
  704. this.yhjs=res.result1[3];
  705. if(this.yhjs=="shyh"){
  706. this.showDqsbs=false;
  707. }
  708. }
  709. })
  710. },
  711. selectWshsl(){
  712. getAction("/qcsb.qyxx/qcQyxx/wshsl").then(res=>{
  713. if(res.code==200){
  714. this.wshsl= res.result
  715. }
  716. })
  717. },
  718. initLogInfo () {
  719. getLoginfo(null).then((res)=>{
  720. if(res.success){
  721. Object.keys(res.result).forEach(key=>{
  722. res.result[key] =res.result[key]+""
  723. })
  724. this.loginfo = res.result;
  725. }
  726. })
  727. getVisitInfo().then(res=>{
  728. if(res.success){
  729. this.visitInfo = res.result;
  730. }
  731. })
  732. },
  733. }
  734. }
  735. </script>
  736. <style lang="less" scoped>
  737. .circle-cust{
  738. position: relative;
  739. top: 28px;
  740. left: -100%;
  741. }
  742. .logout_title {
  743. font-size: 1.5rem;
  744. }
  745. .chart-card-header{
  746. text-align: center;
  747. }
  748. .extra-wrapper {
  749. line-height: 55px;
  750. padding-right: 24px;
  751. .extra-item {
  752. display: inline-block;
  753. margin-right: 24px;
  754. a {
  755. margin-left: 24px;
  756. }
  757. }
  758. }
  759. /* 首页访问量统计 */
  760. .head-info {
  761. position: relative;
  762. text-align: left;
  763. padding: 0 32px 0 0;
  764. min-width: 125px;
  765. &.center {
  766. text-align: center;
  767. padding: 0 32px;
  768. }
  769. span {
  770. color: rgba(0, 0, 0, .45);
  771. display: inline-block;
  772. font-size: .95rem;
  773. line-height: 42px;
  774. margin-bottom: 4px;
  775. }
  776. p {
  777. line-height: 42px;
  778. margin: 0;
  779. a {
  780. font-weight: 600;
  781. font-size: 1rem;
  782. }
  783. }
  784. }
  785. </style>
  786. <style>
  787. .syxxtbbtn{
  788. height: 80%;
  789. width: 100%;
  790. //background-color: #1890FF;
  791. background-image: url('~@/assets/syxxtb_bg.png');
  792. background-size: 100% 100%;
  793. margin-left: 2rem;
  794. margin-top:1rem;
  795. margin-bottom: 1rem;
  796. font-size:32px;
  797. text-align: center ;
  798. line-height: 9rem;
  799. box-shadow: 10px 10px 15px -10px;
  800. border-radius: 1rem;cursor:pointer
  801. }
  802. .xfrw .ant-card{
  803. /*border: 2px solid rgb(204,204,255);*/
  804. text-align: center;
  805. background-image: url('~@/assets/sytj_1.png');
  806. background-size: 100% 100%;
  807. box-shadow: 10px 10px 15px -10px;
  808. }
  809. .yxdls .ant-card{
  810. text-align: center;
  811. background-image: url('~@/assets/sytj_2.png');
  812. background-size: 100% 100%;
  813. box-shadow: 10px 10px 15px -10px;
  814. }
  815. .sbdks .ant-card{
  816. /* border: 2px solid rgb(192,192,192);*/
  817. text-align: center;
  818. background-image: url('~@/assets/sytj_3.png');
  819. background-size: 100% 100%;
  820. box-shadow: 10px 10px 15px -10px;
  821. }
  822. .wshsl .ant-card{
  823. /* border: 2px solid rgb( 124,130,96);*/
  824. /* border: 2px solid rgb(225,215,100);*/
  825. text-align: center;
  826. background-image: url('~@/assets/sytj_4.png');
  827. background-size: 100% 100%;
  828. box-shadow: 10px 10px 15px -10px;
  829. }
  830. .shbtg .ant-card{
  831. text-align: center;
  832. background-image: url('~@/assets/sytj_2.png');
  833. background-size: 100% 100%;
  834. box-shadow: 10px 10px 15px -10px;
  835. }
  836. .dqsbs .ant-card{
  837. text-align: center;
  838. background-image: url('~@/assets/sytj_1.png');
  839. background-size: 100% 100%;
  840. box-shadow: 10px 10px 15px -10px;
  841. }
  842. .chart-card-footer{
  843. border-top: 0px solid #e8e8e8 !important;
  844. }
  845. </style>