oversawHome.vue 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639
  1. <script setup>
  2. import {
  3. ref,
  4. reactive,
  5. nextTick
  6. } from "vue"
  7. import {
  8. onLoad,
  9. onShow,
  10. onReady,
  11. onTabItemTap
  12. } from "@dcloudio/uni-app"
  13. import {
  14. getOverdueNum
  15. } from "@/api/work/overdue.js"
  16. import {
  17. getannouncementList,
  18. getUnwriteReportList,
  19. getHomeStats,
  20. getBanner,
  21. getMangerStatus,
  22. getStaticsManageTz,
  23. getMonthFX,
  24. getStaticsManageHyfl
  25. } from "@/api/home.js"
  26. import {
  27. getJSDDlist,
  28. getZJLYlist,
  29. getHYFLlist,
  30. } from "@/api/work/projectInfo.js";
  31. import cuOverdue from "./components/cu-overdue.vue";
  32. import {
  33. getMessageNum
  34. } from "@/api/work/message.js"
  35. import store from '@/store'
  36. import {
  37. checkRoleById
  38. } from "@/utils/permission.js"
  39. import iconEnterpriseInfo from "@/static/func/enterpriseInfos.svg";
  40. import yjtxIcon from '@/static/images/homeIcon/yjtx-icon.svg'
  41. import xmtzIcon from '@/static/images/homeIcon/xmtz-icon.svg'
  42. import zhgdIcon from '@/static/images/homeIcon/zhgd-icon.svg'
  43. import bslcIcon from '@/static/images/homeIcon/bslc-icon.svg'
  44. import tzfxIcon from '@/static/images/homeIcon/tzfx-icon.svg'
  45. import hhdIcon from '@/static/images/homeIcon/hhd-icon.svg'
  46. import zdxmIcon from '@/static/images/homeIcon/zdxm-icon.svg'
  47. import wtdbIcon from '@/static/images/homeIcon/wtdb-icon.svg'
  48. import qyxxIcon from '@/static/images/homeIcon/qyxx-icon.svg'
  49. import zcwjIcon from '@/static/images/homeIcon/zcwj-two-icon.svg'
  50. import tzglIcon from '@/static/images/homeIcon/tzgl-icon.svg'
  51. import jdglIcon from '@/static/images/homeIcon/jdgl-icon.svg'
  52. import dbsxIcon from '@/static/images/homeIcon/dbsx-icon.svg'
  53. import xmdbIcon from '@/static/images/homeIcon/xmdb-icon.svg'
  54. // 项目信息
  55. let projectYear = ref(2023);
  56. // 选择年
  57. let yearShow = ref(false);
  58. let defaultIndex = ref([0]);
  59. let yearColumns = ref([
  60. ["2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012",
  61. "2013",
  62. "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026",
  63. "2027", "2028", "2029", "2030", "2031", "2032", "2033"
  64. ]
  65. ])
  66. const yearShowChoose = function() {
  67. yearShow.value = true;
  68. }
  69. const yearClose = function(e) {
  70. if (e) {
  71. projectYear.value = e.value[0];
  72. // 获取最新数据
  73. getProjectInfo();
  74. }
  75. yearShow.value = false;
  76. }
  77. // 选择分类
  78. let projectKind = ref(null);
  79. let projectKindId = null;
  80. let kindShow = ref(false);
  81. let kindColumns = ref([]);
  82. const kindShowChoose = function() {
  83. kindShow.value = true;
  84. }
  85. const kindClose = function(e) {
  86. if (e) {
  87. projectKind.value = e.value[0];
  88. projectKindId = hyflFull.find(item => item.value === projectKind.value).key;
  89. // 获取最新数据
  90. getProjectInfo();
  91. }
  92. kindShow.value = false;
  93. }
  94. let hyflFull = [];
  95. const getHYFL = function() {
  96. getHYFLlist().then(res => {
  97. hyflFull = res.data.list;
  98. hyflFull.push({
  99. key: null,
  100. value: "所有分类"
  101. });
  102. kindColumns.value = [res.data.list.map(item => item.value)];
  103. kindColumns.value[0].unshift("所有分类");
  104. })
  105. };
  106. // 选择地点
  107. let projectArea = ref(null);
  108. let projectAreaId = null;
  109. let areaShow = ref(false);
  110. let areaColumns = ref([]);
  111. const areaShowChoose = function() {
  112. areaShow.value = true;
  113. }
  114. const areaClose = function(e) {
  115. if (e) {
  116. projectArea.value = e.value[0];
  117. projectAreaId = jsddFull.find(item => item.value === projectArea.value).key;
  118. // 获取最新数据
  119. getProjectInfo();
  120. }
  121. areaShow.value = false;
  122. }
  123. let jsddFull = [];
  124. const getJSDD = function() {
  125. getJSDDlist().then(res => {
  126. jsddFull = res.data.list;
  127. jsddFull.push({
  128. key: null,
  129. value: "所有地区"
  130. });
  131. areaColumns.value = [res.data.list.map(item => item.value)];
  132. areaColumns.value[0].unshift("所有地区");
  133. })
  134. };
  135. // 资金来源
  136. let projectAmt = ref(null);
  137. let projectAmtId = null;
  138. let zjlyShow = ref(false);
  139. let zjlyColumns = ref([]);
  140. const zjlyShowChoose = () => {
  141. zjlyShow.value = true
  142. }
  143. const zjlyClose = e => {
  144. if (e) {
  145. projectAmt.value = e.value[0];
  146. projectAmtId = zjlyFull.find(item => item.value === projectAmt.value).key;
  147. // 获取最新数据
  148. getProjectInfo();
  149. }
  150. zjlyShow.value = false
  151. }
  152. let zjlyFull = []
  153. const getZJLY = () => {
  154. getZJLYlist().then(res => {
  155. zjlyFull = res.data.list;
  156. zjlyFull.unshift({
  157. key: null,
  158. value: "所有来源"
  159. });
  160. zjlyColumns.value = [res.data.list.map(item => item.value)];
  161. })
  162. }
  163. function goToPage(url, permissionCode, type) {
  164. // if (permissionCode) {
  165. // let havePermission = checkRoleById([permissionCode])
  166. // if (!havePermission) return
  167. // }
  168. uni.$u.route({
  169. url: url,
  170. params: {
  171. type: type || null
  172. }
  173. })
  174. }
  175. //轮播图
  176. let bannerList = ref([])
  177. async function getBannerList() {
  178. getBanner().then(res => {
  179. bannerList.value = res.data.pictureList
  180. })
  181. }
  182. function bannerClick(e) {
  183. let result = {}
  184. for (let i = 0; i < bannerList.value.length; i++) {
  185. if (i == e) {
  186. result = bannerList.value[i]
  187. }
  188. }
  189. nextTick(() => {
  190. // uni.navigateTo({
  191. // url: `/pages/policy/detail/index?title=${result.title}&id=${result.id}`
  192. // })
  193. uni.$u.route({
  194. url: '/pages/policy/detail/index',
  195. params: {
  196. title: result.title,
  197. id: result.id
  198. }
  199. })
  200. })
  201. }
  202. //页面穿透
  203. function newProjectClick(val, num) {
  204. if (num != 0) {
  205. let throughObj = {
  206. year: projectYear.value,
  207. indusKind: projectKindId,
  208. subjectId: projectAreaId,
  209. zjly: projectAmtId,
  210. queryTimeType: '4',
  211. queryType: 1,
  212. }
  213. let obj = {
  214. xjxm: {
  215. propKind: '1',
  216. name: '新建项目'
  217. },
  218. xjproject: {
  219. propKind: '2',
  220. name: '续建项目'
  221. },
  222. cbxm: {
  223. propKind: '3',
  224. name: '储备项目'
  225. },
  226. all: {
  227. name: '项目总数'
  228. },
  229. tgsl: {
  230. otherStatus: '8',
  231. name: '停工数量'
  232. },
  233. ywgzl: {
  234. otherStatus: 'A',
  235. name: '已竣工总量'
  236. },
  237. sbb: {
  238. subjectId: '1',
  239. name: '市本级'
  240. },
  241. yzq: {
  242. subjectId: '2',
  243. name: '伊州区'
  244. },
  245. blkx: {
  246. subjectId: '3',
  247. name: '巴里坤县'
  248. },
  249. ywx: {
  250. kind: '4',
  251. name: '伊吾县'
  252. },
  253. gxq: {
  254. subjectId: '5',
  255. name: '高新区'
  256. },
  257. sbl: {
  258. blSub: true,
  259. name: '市分管'
  260. },
  261. zj: {
  262. isZj: '1',
  263. blSub: true,
  264. name: '在建'
  265. },
  266. tg: {
  267. blSub: true,
  268. otherStatus: 8,
  269. name: '停工'
  270. },
  271. ztz: {
  272. name: '总投资'
  273. },
  274. ndjhtz: {
  275. name: '年度计划投资'
  276. },
  277. ndsjtz: {
  278. name: '年度实际投资'
  279. },
  280. hdxm: {
  281. light: 2,
  282. name: '红灯项目'
  283. },
  284. Ydxm: {
  285. light: 1,
  286. name: '黄灯项目'
  287. },
  288. ldxm: {
  289. light: 0,
  290. name: '绿灯项目'
  291. }
  292. }
  293. throughObj = {
  294. ...throughObj,
  295. ...obj[val]
  296. }
  297. let url = "/pages/projectInfo/index?type=home&";
  298. for (let i in throughObj) {
  299. let item = null;
  300. item = ((throughObj[i] ?? "") === "") ? `${i}=&` : `${i}=${throughObj[i]}&`;
  301. url = url += item;
  302. }
  303. url = url.substr(0, url.length - 1);
  304. uni.navigateTo({
  305. url
  306. })
  307. } else {
  308. uni.showToast({
  309. icon: 'none',
  310. title: '无该项数据'
  311. })
  312. }
  313. }
  314. function gotoYYQ(val) {
  315. let throughObj = {
  316. year: projectYear.value,
  317. indusKind: projectKindId,
  318. subjectId: projectAreaId,
  319. zjly: projectAmtId,
  320. queryTimeType: '4',
  321. queryType: 1,
  322. blSub: true,
  323. containHide: true,
  324. overStatus: 1,
  325. type: 'home'
  326. }
  327. if (val != 0) {
  328. uni.$u.route({
  329. url: 'pages/overdue/overdued/index',
  330. params: throughObj
  331. })
  332. } else {
  333. uni.showToast({
  334. icon: 'none',
  335. title: '无该项数据'
  336. })
  337. }
  338. }
  339. function gotoWTQD(val) {
  340. let throughObj = {
  341. year: projectYear.value,
  342. indusKind: projectKindId,
  343. subjectId: projectAreaId,
  344. zjly: projectAmtId,
  345. queryTimeType: '4',
  346. queryType: 1,
  347. containHide: true,
  348. type: 'home'
  349. }
  350. let obj = {
  351. yzg: {
  352. status: '1',
  353. containHide: true
  354. },
  355. zdgj: {
  356. containHide: true,
  357. name: '重点跟进'
  358. },
  359. ytqy: {
  360. containHide: true,
  361. closeReason: 1,
  362. name: '约谈企业'
  363. },
  364. fdbh: {
  365. containHide: true,
  366. closeReason: 2,
  367. name: '发督办函'
  368. }
  369. }
  370. throughObj = {
  371. ...throughObj,
  372. ...obj[val]
  373. }
  374. if (val != 0) {
  375. uni.$u.route({
  376. url: 'pages/countAnalysis/overseeList/index',
  377. params: throughObj
  378. })
  379. } else {
  380. uni.showToast({
  381. icon: 'none',
  382. title: '无该项数据'
  383. })
  384. }
  385. }
  386. function onProjectAmtClick(val) {
  387. if (val.amt != 0) {
  388. let throughObj = {
  389. year: projectYear.value,
  390. indusKind: projectKindId,
  391. subjectId: projectAreaId,
  392. zjly: projectAmtId || val.id,
  393. name: val.title,
  394. queryTimeType: '4',
  395. queryType: 1,
  396. }
  397. let url = "/pages/projectInfo/index?type=home&";
  398. for (let i in throughObj) {
  399. let item = null;
  400. item = ((throughObj[i] ?? "") === "") ? `${i}=&` : `${i}=${throughObj[i]}&`;
  401. url = url += item;
  402. }
  403. url = url.substr(0, url.length - 1);
  404. uni.navigateTo({
  405. url
  406. })
  407. } else {
  408. uni.showToast({
  409. icon: 'none',
  410. title: '无该项数据'
  411. })
  412. }
  413. }
  414. // 功能列表
  415. let functionList = ref([{
  416. name: '项目待办',
  417. url: '/pages/projectToDo/list/index',
  418. icon: xmdbIcon,
  419. num: 0,
  420. numShow: true,
  421. type: 'xmdb',
  422. permissionCode: '711'
  423. }, {
  424. name: '三库管理',
  425. url: '/pages/projectInfo/index',
  426. icon: xmtzIcon,
  427. numShow: false,
  428. type: 'all',
  429. permissionCode: '711'
  430. },{
  431. name: '专项资金',
  432. url: '/pages/projectImportant/index',
  433. icon: zdxmIcon,
  434. numShow: false,
  435. type: 'zdxm',
  436. permissionCode: '711'
  437. }, {
  438. name: '统计分析',
  439. url: '/pages/countAnalysis/newHeadAnalysis/index',
  440. icon: tzfxIcon,
  441. numShow: false,
  442. type: 'jbxx',
  443. permissionCode: '711'
  444. }, {
  445. name: '红黄灯项目',
  446. url: '/pages/light/index',
  447. icon: hhdIcon,
  448. numShow: false,
  449. type: 'hhd',
  450. permissionCode: '711'
  451. }, {
  452. name: '预警提醒',
  453. url: '/pages/overdue/index',
  454. icon: yjtxIcon,
  455. num: 0,
  456. numShow: true,
  457. type: 'yjtx',
  458. permissionCode: '711'
  459. }, {
  460. name: '问题督办',
  461. url: '/pages/morePage/wtdb/wtdbMorePage',
  462. icon: wtdbIcon,
  463. numShow: false,
  464. type: 'jbxx',
  465. permissionCode: '711'
  466. }, {
  467. name: '智联工地',
  468. url: '/pages/videoManage/list/index',
  469. icon: zhgdIcon,
  470. numShow: false,
  471. type: 'jbxx',
  472. permissionCode: '711'
  473. }])
  474. let funcList = ref([
  475. [{
  476. name: '企业信息',
  477. url: '/pages/enterpriseInfo/index',
  478. icon: qyxxIcon,
  479. type: 'jbxx',
  480. permissionCode: '711'
  481. }, {
  482. name: '政策文件',
  483. url: '/pages/policy/search/index',
  484. icon: zcwjIcon,
  485. type: 'jbxx',
  486. permissionCode: '711'
  487. }, {
  488. name: '储备项目',
  489. url: '/pages/cbProject/index',
  490. icon: dbsxIcon,
  491. type: 'cbxm',
  492. permissionCode: '711'
  493. }, {
  494. name: '通知管理',
  495. url: '/pages/announcement/list/index',
  496. icon: tzglIcon,
  497. type: 'jbxx',
  498. permissionCode: '711'
  499. }, {
  500. name: '联系人',
  501. url: '/pages/contact/index',
  502. icon: jdglIcon,
  503. type: 'jbxx',
  504. permissionCode: '711'
  505. }],
  506. [{
  507. name: '重大事项',
  508. url: '/pages/important/index',
  509. icon: jdglIcon,
  510. type: 'jbxx',
  511. permissionCode: '711'
  512. }, {
  513. name: '前期手续',
  514. url: '/pages/preFlow/index',
  515. icon: jdglIcon,
  516. type: 'jbxx',
  517. permissionCode: '711'
  518. }, {
  519. name: '产业链服务',
  520. url: '/pages/intermediaryService/search/index',
  521. icon: jdglIcon,
  522. type: 'jbxx',
  523. permissionCode: '711'
  524. }, {
  525. name: '政策文件',
  526. url: '/pages/policy/search/index',
  527. icon: jdglIcon,
  528. type: 'jbxx',
  529. permissionCode: '711'
  530. }, {
  531. name: '新闻资讯',
  532. url: '/pages/policy/search/index',
  533. icon: jdglIcon,
  534. type: 'xwzx',
  535. permissionCode: '711'
  536. }],
  537. [{
  538. name: '周报',
  539. url: '/pages/weekly/index',
  540. icon: jdglIcon,
  541. type: 'jbxx',
  542. permissionCode: '711'
  543. }, {
  544. name: '月报',
  545. url: '/pages/monthly/index',
  546. icon: jdglIcon,
  547. type: 'jbxx',
  548. permissionCode: '711'
  549. }, {
  550. name: '年度计划',
  551. url: '/pages/yearly/index',
  552. icon: jdglIcon,
  553. type: 'jbxx',
  554. permissionCode: '711'
  555. }, {
  556. name: '办事流程',
  557. url: '/pages/process/index',
  558. icon: bslcIcon,
  559. type: 'jbxx',
  560. permissionCode: '711'
  561. }]
  562. ])
  563. //建设进度
  564. let fullPercents = ref(30);
  565. //获取项目数据
  566. let statusData = ref({})
  567. let startWorkpieChartData = ref({
  568. series: [{
  569. color: "#6EAAF7",
  570. data: ''
  571. }]
  572. })
  573. let pieChartData = ref({
  574. series: [{
  575. color: "#6EAAF7",
  576. data: ''
  577. }]
  578. })
  579. let finishPieChartData = ref({
  580. series: [{
  581. color: "#6EAAF7",
  582. data: ''
  583. }]
  584. })
  585. let yearAmtPieChartData = ref({
  586. series: [{
  587. color: "#6EAAF7",
  588. data: ''
  589. }]
  590. })
  591. let yearWorkPieChartData = ref({
  592. series: [{
  593. color: "#6EAAF7",
  594. data: ''
  595. }]
  596. })
  597. let amtData = ref({
  598. statusList: [],
  599. outyear_hb: "",
  600. outyear_tb: "",
  601. outyear_zb: "",
  602. outyearamt_1: "",
  603. outyearamt_2: "",
  604. outyearamt_total: "",
  605. })
  606. let hyzbData = ref([])
  607. let hyzbList = ref([])
  608. let jsddData = ref([])
  609. let jsddList = ref([])
  610. let colorList = [
  611. '#0035A9', '#074EC4', '#1E7FDF', '#0DA9FF', '#4CBFFF', '#6ACFFF', '#A2DEFF', '#55EBDB', '#7FFACA', '#61F466',
  612. '#00E2C1', '#04CE8E', '#02B30C', '#1C8805', '#025006', '#584802', '#817D16', '#AA8A11', '#C29A00', '#E1B300',
  613. '#FFC737', '#FFD800', '#FFEA68', '#FFCE9F', '#FFAE7F', '#FC8E4D', '#FF6911', '#E03300',
  614. '#BA2000', '#7C0909', '#9800A0', '#C105CB', '#F31FFF', '#F98EFF', '#FBBAFF', '#FDD1FF',
  615. ]
  616. //数组对半分
  617. function splitArrayInHalf(arr) {
  618. const mid = Math.ceil(arr.length / 2); // 计算中间位置,向上取整以处理奇数长度的情况
  619. const firstHalf = arr.slice(0, mid); // 截取前半部分
  620. const secondHalf = arr.slice(mid); // 截取后半部分,包括中间位置
  621. return [firstHalf, secondHalf]; // 返回两个数组
  622. }
  623. function getProjectInfo() {
  624. let params = {
  625. year: projectYear.value,
  626. indusKind: projectKindId,
  627. buildAddre: projectAreaId,
  628. zjly: projectAmtId
  629. }
  630. console.log(params);
  631. getMangerStatus(params).then(res => {
  632. console.log('接口返回数据', res);
  633. statusData.value = res.data
  634. startWorkpieChartData.value.series[0].data = (res.data?.num_year_kgl / 100).toFixed(4)
  635. finishPieChartData.value.series[0].data = (res.data?.num_year_wgl / 100).toFixed(4)
  636. })
  637. getStaticsManageTz(params).then(res => {
  638. amtData.value.statusList = chunkArrayObjects(res.data.data, 2)
  639. amtData.value.outyear_hb = res.data.outyear_hb
  640. amtData.value.outyear_tb = res.data.outyear_tb
  641. amtData.value.outyear_zb = res.data.outyear_zb
  642. amtData.value.outyearamt_1 = res.data.outyearamt_1
  643. amtData.value.outyearamt_2 = res.data.outyearamt_2
  644. amtData.value.outyearamt_total = res.data.outyearamt_total
  645. yearAmtPieChartData.value.series[0].data = (Number(res.data?.outyear_zb) / 100).toFixed(4)
  646. console.log(yearAmtPieChartData.value.series[0].data)
  647. // yearWorkPieChartData.value.series[0].data = (res.data.data.num_year_wgl/100).toFixed(4)
  648. })
  649. getMonthFX(params).then(res => {
  650. console.log('月度分析', res);
  651. let month = []
  652. let amt_sj = []
  653. let ljtz = 0
  654. let ljtzArr = []
  655. let amt_jh = []
  656. let amt_zb = []
  657. res.data.list.forEach((item, index) => {
  658. month.push(item.kj_month)
  659. amt_sj.push(item.amt_sj)
  660. ljtz = ljtz + Number(item.amt_sj)
  661. ljtzArr.push(ljtz)
  662. amt_jh.push(item.amt_jh)
  663. amt_zb.push(item.amt_zb)
  664. })
  665. console.log(ljtzArr, '累计投资');
  666. monthData.value.categories = month
  667. monthTageData.value.categories = month
  668. monthData.value.series[0].data = amt_sj
  669. monthData.value.series[1].data = ljtzArr
  670. monthTageData.value.series[0].data = amt_jh
  671. monthTageData.value.series[1].data = amt_sj
  672. monthTageData.value.series[2].data = amt_zb
  673. })
  674. nextTick(() => {
  675. getStaticsManageHyfl(params).then(res => {
  676. console.log('建设地点', res);
  677. let jsdd = {
  678. series: [{
  679. data: []
  680. }]
  681. };
  682. let jsddArr = []
  683. res.data?.qxList.forEach((item, index) => {
  684. jsdd.series[0].data.push({
  685. name: item.jsddName,
  686. value: item.amt,
  687. labelShow: false,
  688. color: colorList[index]
  689. })
  690. jsddArr.push({
  691. name: item.jsddName,
  692. value: item.amtSjRate,
  693. color: colorList[index]
  694. })
  695. })
  696. // console.log(jsdd);
  697. let hyzb = {
  698. series: [{
  699. data: []
  700. }]
  701. };
  702. let arr = []
  703. res.data?.list.forEach((item, index) => {
  704. hyzb.series[0].data.push({
  705. name: item.unit_name,
  706. value: item.num_total,
  707. labelShow: false,
  708. color: colorList[index]
  709. })
  710. arr.push({
  711. name: item.unit_name,
  712. value: item.num_bl,
  713. color: colorList[index]
  714. })
  715. })
  716. arr = splitArrayInHalf(arr)
  717. hyzbData.value = hyzb
  718. hyzbList.value = arr
  719. jsddData.value = jsdd
  720. jsddList.value = jsddArr
  721. })
  722. })
  723. }
  724. //数组重构为三个为一组
  725. function chunkArrayObjects(array, chunkSize) {
  726. const chunkedArray = [];
  727. for (let i = 0; i < array.length; i += chunkSize) {
  728. chunkedArray.push(array.slice(i, i + chunkSize));
  729. }
  730. return chunkedArray;
  731. }
  732. // rpx转px
  733. function rpxToPx(rpx) {
  734. const screenWidth = uni.getSystemInfoSync().screenWidth
  735. return (screenWidth * Number.parseInt(rpx)) / 750
  736. }
  737. // px转rpx
  738. function pxToRpx(px) {
  739. const screenWidth = uni.getSystemInfoSync().screenWidth
  740. return (750 * Number.parseInt(px)) / screenWidth
  741. }
  742. //粘性定位高度
  743. let offsetValue = ref(0)
  744. function getOffset() {
  745. let data = uni.getWindowInfo()
  746. offsetValue.value = data.statusBarHeight + uni.upx2px(120)
  747. console.log(offsetValue.value);
  748. }
  749. let swiperCurrut = ref(0)
  750. function onSwiperChange(e) {
  751. swiperCurrut.value = e.detail.current
  752. console.log(e);
  753. }
  754. let pieOption = {
  755. color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
  756. padding: 0,
  757. title: {
  758. name: " ",
  759. fontSize: 18,
  760. color: "#C44E00"
  761. },
  762. subtitle: {
  763. name: " ",
  764. fontSize: 12,
  765. color: "#666666"
  766. },
  767. extra: {
  768. arcbar: {
  769. type: "circle",
  770. width: 5,
  771. backgroundColor: "#E9F2FF",
  772. startAngle: 1.5,
  773. endAngle: 0.25,
  774. gap: 2,
  775. lineCap: "butt"
  776. }
  777. }
  778. }
  779. // 月度投资
  780. let monthEchartsOpts = {
  781. color: ["#ACE5D9", "#B1C7FD", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
  782. padding: [0, 15, 0, 5],
  783. enableScroll: true,
  784. legend: {
  785. position: 'top',
  786. padding: 25,
  787. itemGap: 20
  788. },
  789. xAxis: {
  790. disableGrid: true,
  791. scrollShow: true,
  792. itemCount: 7,
  793. scrollColor: '#F0DEAB',
  794. scrollBackgroundColor: '#F5F5F5'
  795. },
  796. yAxis: {
  797. disabled: false,
  798. disableGrid: false,
  799. splitNumber: 5,
  800. gridColor: '#DDDDDD',
  801. padding: 10,
  802. showTitle: true,
  803. data: [{
  804. min: 0,
  805. title: '(万元)',
  806. fontSize: 10,
  807. titleFontSize: 10,
  808. fontColor: '#999999'
  809. }]
  810. },
  811. dataLabel: false,
  812. extra: {
  813. column: {
  814. type: "group",
  815. width: 5,
  816. activeBgColor: "#000000",
  817. activeBgOpacity: 0.08,
  818. // linearType: "custom",
  819. seriesGap: 1,
  820. linearOpacity: 0.5,
  821. barBorderCircle: true,
  822. // customColor: [
  823. // "#ACE5D9",
  824. // "#B1C7FD"
  825. // ]
  826. }
  827. }
  828. }
  829. let monthData = ref({
  830. categories: [],
  831. series: [{
  832. name: "月度完成投资",
  833. data: []
  834. },
  835. {
  836. name: "累计完成投资",
  837. data: []
  838. }
  839. ]
  840. })
  841. //月度进度占比情况
  842. let monthTageOption = {
  843. color: ["#ACE5D9", "#B1C7FD", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
  844. padding: [0, 5, 0, 5],
  845. enableScroll: true,
  846. touchMoveLimit: 24,
  847. legend: {
  848. position: 'top',
  849. padding: 25,
  850. itemGap: 10,
  851. lineHeight: 20
  852. },
  853. xAxis: {
  854. disableGrid: true,
  855. scrollShow: true,
  856. itemCount: 7,
  857. scrollColor: '#F0DEAB',
  858. scrollBackgroundColor: '#F5F5F5'
  859. },
  860. dataLabel: false,
  861. yAxis: {
  862. disabled: false,
  863. disableGrid: false,
  864. splitNumber: 5,
  865. gridColor: '#DDDDDD',
  866. padding: 10,
  867. showTitle: true,
  868. data: [{
  869. position: "right",
  870. title: "(%)",
  871. textAlign: 'left',
  872. fontSize: 10,
  873. titleFontSize: 10,
  874. fontColor: '#999999'
  875. },
  876. {
  877. position: "left",
  878. min: 0,
  879. title: "(万元)",
  880. textAlign: "right",
  881. fontSize: 10,
  882. titleFontSize: 10,
  883. fontColor: '#999999'
  884. }
  885. ]
  886. },
  887. extra: {
  888. mix: {
  889. column: {
  890. width: 5,
  891. activeBgColor: "#000000",
  892. activeBgOpacity: 0.08,
  893. // linearType: "custom",
  894. seriesGap: 1,
  895. linearOpacity: 0.5,
  896. barBorderCircle: true,
  897. }
  898. }
  899. }
  900. }
  901. let monthTageData = ref({
  902. categories: [],
  903. series: [{
  904. name: "年度投资计划",
  905. index: 1,
  906. type: "column",
  907. data: []
  908. },
  909. {
  910. name: "年度完成投资",
  911. index: 1,
  912. type: "column",
  913. data: []
  914. },
  915. {
  916. name: "计划完成率",
  917. type: "line",
  918. color: "#175AED",
  919. data: []
  920. }
  921. ]
  922. })
  923. //投资占比
  924. let investOption = ref({
  925. update: true,
  926. color: ["#13D4FF", "#138BFF", "#0035A9", "#0ACD76", "#04B4B5"],
  927. enableScroll: false,
  928. legend: {
  929. show: false,
  930. },
  931. title: {
  932. name: "",
  933. fontSize: 12,
  934. color: "#3D3D3D"
  935. },
  936. subtitle: {
  937. name: "",
  938. fontSize: 12,
  939. color: "#3D3D3D"
  940. },
  941. extra: {
  942. ring: {
  943. customRadius: 50,
  944. ringWidth: 17,
  945. border: false,
  946. offsetAngle: -90,
  947. activeRadius: 3,
  948. },
  949. tooltip: {
  950. showArrow: false
  951. }
  952. }
  953. })
  954. let investChartData = ref({
  955. series: [{
  956. data: [{
  957. name: '新建项目',
  958. value: 100,
  959. labelShow: false
  960. }, {
  961. name: '续建项目',
  962. value: 100,
  963. labelShow: false
  964. }, {
  965. name: '储备项目',
  966. value: 100,
  967. labelShow: false
  968. }]
  969. }]
  970. })
  971. //获取顶部距离
  972. let topheight = ref(0)
  973. function getTopHeight() {
  974. uni.getSystemInfo({
  975. success: function(e) {
  976. //48为自定义导航栏高度,一般为44
  977. let topPx = e.statusBarHeight + uni.upx2px(90) // 顶部状态栏+沉浸式自定义顶部导航
  978. topheight.value = topPx / (uni.upx2px(topPx) / topPx) // px转rpx,这里必须转化为rpx,不然适配失败
  979. },
  980. });
  981. console.log(topheight.value);
  982. }
  983. //获取数量
  984. function getHomeNum() {
  985. getOverdueNum().then(res => {
  986. let text = '99+'
  987. functionList.value.forEach(item => {
  988. if (item.type == 'yjtx') {
  989. if (res.data.isOver > 99) {
  990. item.num = text
  991. } else {
  992. item.num = res.data.isOver
  993. }
  994. } else if (item.type == 'xmdb') {
  995. if (res.data.numTodo > 99) {
  996. item.num = text
  997. } else {
  998. item.num = res.data.numTodo
  999. }
  1000. }
  1001. })
  1002. })
  1003. }
  1004. onLoad(async () => {
  1005. let kind = uni.getStorageSync('userKind')
  1006. let list = [{
  1007. index: 0,
  1008. "pagePath": "pages/home/headHome",
  1009. "iconPath": "../../static/images/tabbar/home.png",
  1010. "selectedIconPath": "../../static/images/tabbar/home_.png",
  1011. visible: false,
  1012. "text": "首页"
  1013. }, {
  1014. index: 1,
  1015. "pagePath": "pages/home/oversawHome",
  1016. "iconPath": "../../static/images/tabbar/home.png",
  1017. "selectedIconPath": "../../static/images/tabbar/home_.png",
  1018. visible: false,
  1019. "text": "首页"
  1020. }, {
  1021. index: 2,
  1022. "pagePath": "pages/home/companyHome",
  1023. "iconPath": "../../static/images/tabbar/home.png",
  1024. "selectedIconPath": "../../static/images/tabbar/home_.png",
  1025. visible: false,
  1026. "text": "首页"
  1027. }, {
  1028. index: 3,
  1029. "pagePath": "pages/message/index",
  1030. "iconPath": "../../static/images/tabbar/message.png",
  1031. "selectedIconPath": "../../static/images/tabbar/message_.png",
  1032. "text": "消息"
  1033. }, {
  1034. index: 4,
  1035. "pagePath": "pages/mine/index",
  1036. "iconPath": "../../static/images/tabbar/mine.png",
  1037. "selectedIconPath": "../../static/images/tabbar/mine_.png",
  1038. "text": "我的"
  1039. }]
  1040. //kind 1 监管单位, 2公司端 , 3 领导端
  1041. if (kind == '1') {
  1042. list[0].visible = false
  1043. list[1].visible = true
  1044. list[2].visible = false
  1045. for (let i = 0; i < list.length; i++) {
  1046. uni.setTabBarItem(list[i])
  1047. }
  1048. } else {
  1049. list[0].visible = false
  1050. list[1].visible = false
  1051. list[2].visible = false
  1052. for (let i = 0; i < list.length; i++) {
  1053. uni.setTabBarItem(list[i])
  1054. }
  1055. }
  1056. if (kind == '1') {
  1057. let now = new Date();
  1058. projectYear.value = now.getFullYear();
  1059. defaultIndex.value = [projectYear.value - 2000];
  1060. getTopHeight()
  1061. // // judgeFuncList(); //判断权限
  1062. // getAnnounceMent(); //获取公告
  1063. getHYFL(); //获取行业分类
  1064. getJSDD(); //获取建设地点
  1065. getZJLY(); // 获取资金来源
  1066. // getOverdue(); //获取逾期数量
  1067. // // getUnwirteList(); //获取未填写周报月报信息
  1068. // getMessageCount(); //获取未读消息数量
  1069. }
  1070. });
  1071. onShow(() => {
  1072. getBannerList(); //获取轮播图数据
  1073. getHomeNum()
  1074. })
  1075. onReady(() => {
  1076. let kind = uni.getStorageSync('userKind')
  1077. if (kind == '1') {
  1078. getProjectInfo(); //获取项目数据
  1079. }
  1080. })
  1081. </script>
  1082. <template>
  1083. <view class="container">
  1084. <view class="top-back-pie">
  1085. </view>
  1086. <view class="content-layer">
  1087. <view class="top-layer">
  1088. <view class="project-title">
  1089. 哈密市项目管理智慧平台
  1090. </view>
  1091. <view class="search-layer">
  1092. <view class="search-input">
  1093. <view class="search-icon"></view>
  1094. <input @click="goToPage('/pages/search/index')" placeholder="项目、领导电话"
  1095. placeholder-style="color: #343434;font-size:28rpx;" />
  1096. </view>
  1097. <view class="search-line">
  1098. </view>
  1099. <view class="search-focus" @click="goToPage('/pages/focus/index')">
  1100. <view class="search-focus-icon"></view>
  1101. <text class="text">关注</text>
  1102. </view>
  1103. </view>
  1104. </view>
  1105. <view class="banner-box">
  1106. <u-swiper :list="bannerList" indicator indicatorMode="line" keyName='coverImg' circular radius='12rpx'
  1107. height="304rpx" @click="bannerClick"></u-swiper>
  1108. </view>
  1109. <!-- <u-sticky :offsetTop="offsetValue" class="u-sticky" index="3"> -->
  1110. <!-- <scroll-view scroll-x="true" class="button-layer">
  1111. <view class="btn-item" v-for="(item,index) in functionList" :key="index">
  1112. <image :src="item.icon" class="item-icon" mode=""></image>
  1113. <view class="item-text">
  1114. {{item.name}}
  1115. </view>
  1116. </view>
  1117. </scroll-view> -->
  1118. <view class="button-layer">
  1119. <view class="btn-item" v-for="(item,index) in functionList" :key="index"
  1120. @click="goToPage(item.url,item.permissionCode,item.type)">
  1121. <view class="item-image">
  1122. <image :src="item.icon" class="item-icon" mode=""></image>
  1123. <view class="sign" v-if="item.numShow && item.num !=0">
  1124. <view class="text">
  1125. {{item.num}}
  1126. </view>
  1127. </view>
  1128. </view>
  1129. <view class="item-text">
  1130. {{item.name}}
  1131. </view>
  1132. </view>
  1133. </view>
  1134. <!-- </u-sticky> -->
  1135. <view class="uni-swiper-dot-box">
  1136. <swiper class="swiper-box" @change="onSwiperChange">
  1137. <swiper-item v-for="(item, index) in funcList" :key="index" class="swiper-item">
  1138. <view class="swiper-item-items" v-for="(items,indexs) in item" :key="indexs"
  1139. @click="goToPage(items.url,items.permissionCode,items.type)">
  1140. <image :src="items.icon" mode=""></image>
  1141. <view class="items-text">
  1142. {{items.name}}
  1143. </view>
  1144. </view>
  1145. </swiper-item>
  1146. </swiper>
  1147. <view class="swiper-dot">
  1148. <view class="swiper-dot-item" v-for="(item,index) in funcList" :key="index"
  1149. :class="swiperCurrut == index ? 'dot-check' :''">
  1150. </view>
  1151. </view>
  1152. </view>
  1153. <view class="project-info-select">
  1154. <view class="choose-year" @click="yearShowChoose()">
  1155. {{projectYear??"年度"}}
  1156. <image src="../../static/home-choose-iocn.svg" mode=""></image>
  1157. </view>
  1158. <view class="choose-year " @click="kindShowChoose()">
  1159. {{projectKind ??"行业分类"}}
  1160. <image src="../../static/home-choose-iocn.svg" mode=""></image>
  1161. </view>
  1162. <view class="choose-year " @click="areaShowChoose()">
  1163. {{projectArea ??"建设地点"}}
  1164. <image src="../../static/home-choose-iocn.svg" mode=""></image>
  1165. </view>
  1166. <view class="choose-year " @click="zjlyShowChoose()">
  1167. <view class="choose-year-text">{{projectAmt ??"资金来源"}}</view>
  1168. <image src="../../static/home-choose-iocn.svg" mode=""></image>
  1169. </view>
  1170. </view>
  1171. <view class="stats-layer-next" style="margin-top: 0;padding-bottom: 24rpx;">
  1172. <view class="sub-title">
  1173. 项目建设总体情况
  1174. </view>
  1175. <view class="pie-layer">
  1176. <view class="pie-item">
  1177. <view class="pie-content">
  1178. <qiun-data-charts type="arcbar" v-if="startWorkpieChartData.series[0].data" :opts="pieOption"
  1179. :chartData="startWorkpieChartData" />
  1180. <view class="label-rote">
  1181. {{statusData?.num_year_kgl}}%
  1182. </view>
  1183. <view class="label">年度开工率</view>
  1184. </view>
  1185. <view class="item-text-layer">
  1186. <view class="item-text" style="margin-top: 10rpx;">
  1187. <text class="label">同比</text>
  1188. <text class="rote">{{statusData?.num_year_kg_tb}}%</text>
  1189. </view>
  1190. <view class="item-text">
  1191. <text class="label">环比</text>
  1192. <text class="rote" style='color: #698453;'>{{statusData?.num_year_kg_hb}}%</text>
  1193. </view>
  1194. </view>
  1195. </view>
  1196. <view class="pie-item">
  1197. <view class="pie-content">
  1198. <qiun-data-charts type="arcbar" v-if="finishPieChartData.series[0].data" :opts="pieOption"
  1199. :chartData="finishPieChartData" />
  1200. <view class="label-rote">
  1201. {{statusData?.num_year_wgl}}%
  1202. </view>
  1203. <view class="label">年度竣工率</view>
  1204. </view>
  1205. <view class="item-text-layer">
  1206. <view class="item-text" style="margin-top: 10rpx;">
  1207. <text class="label">同比</text>
  1208. <text class="rote">{{statusData?.num_year_wg_tb}}%</text>
  1209. </view>
  1210. <view class="item-text">
  1211. <text class="label">环比</text>
  1212. <text class="rote" style='color: #698453;'>{{statusData?.num_year_wg_hb}}%</text>
  1213. </view>
  1214. </view>
  1215. </view>
  1216. </view>
  1217. <view class="stats-list"
  1218. style="background: linear-gradient( 90deg, rgba(242,247,255,0.2) 0%, rgba(241,247,255,0.6) 24%, #F2F7FF 49%, rgba(242,247,255,0.6) 77%, rgba(236,244,255,0.2) 100%);margin-top: 28rpx;">
  1219. <view class="stats-item" @click="newProjectClick('xjxm',statusData?.num_1)">
  1220. <view class="item-num">
  1221. <text class="number">{{statusData?.num_1}}</text>
  1222. <text class="unit">个</text>
  1223. </view>
  1224. <view class="item-name">
  1225. 新建项目
  1226. </view>
  1227. </view>
  1228. <view class="line">
  1229. </view>
  1230. <view class="stats-item" @click="newProjectClick('xjproject',statusData?.num_2)">
  1231. <view class="item-num">
  1232. <text class="number">{{statusData?.num_2}}</text>
  1233. <text class="unit">个</text>
  1234. </view>
  1235. <view class="item-name">
  1236. 续建项目
  1237. </view>
  1238. </view>
  1239. <view class="line">
  1240. </view>
  1241. <view class="stats-item" @click="newProjectClick('cbxm',statusData?.num_3)">
  1242. <view class="item-num">
  1243. <text class="number">{{statusData?.num_3}}</text>
  1244. <text class="unit">个</text>
  1245. </view>
  1246. <view class="item-name">
  1247. 储备项目
  1248. </view>
  1249. </view>
  1250. </view>
  1251. <view class="stats-list"
  1252. style="background: linear-gradient( 90deg, rgba(242,247,255,0.2) 0%, rgba(241,247,255,0.6) 24%, #F2F7FF 49%, rgba(242,247,255,0.6) 77%, rgba(236,244,255,0.2) 100%)">
  1253. <view class="stats-item" @click="newProjectClick('all',statusData?.num_total)">
  1254. <view class="item-num">
  1255. <text class="number">{{statusData?.num_total}}</text>
  1256. <text class="unit">个</text>
  1257. </view>
  1258. <view class="item-name">
  1259. 项目总数
  1260. </view>
  1261. </view>
  1262. <view class="line">
  1263. </view>
  1264. <view class="stats-item" @click="newProjectClick('tgsl',statusData?.num_7)">
  1265. <view class="item-num">
  1266. <text class="number">{{statusData?.num_7}}</text>
  1267. <text class="unit">个</text>
  1268. </view>
  1269. <view class="item-name">
  1270. 停工数量
  1271. </view>
  1272. </view>
  1273. <view class="line">
  1274. </view>
  1275. <view class="stats-item" @click="newProjectClick('ywgzl',statusData?.num_5)">
  1276. <view class="item-num">
  1277. <text class="number">{{statusData?.num_5}}</text>
  1278. <text class="unit">个</text>
  1279. </view>
  1280. <view class="item-name">
  1281. 已竣工总量
  1282. </view>
  1283. </view>
  1284. </view>
  1285. <view class="status-line">
  1286. </view>
  1287. <view class="stats-list">
  1288. <view class="stats-item" @click="newProjectClick('sbb',statusData?.num_year_qx_1)">
  1289. <view class="item-num">
  1290. <text class="number">{{statusData?.num_year_qx_1}}</text>
  1291. <text class="unit">个</text>
  1292. </view>
  1293. <view class="item-name">
  1294. 市本级
  1295. </view>
  1296. </view>
  1297. <view class="line">
  1298. </view>
  1299. <view class="stats-item" @click="newProjectClick('yzq',statusData?.num_year_qx_2)">
  1300. <view class="item-num">
  1301. <text class="number">{{statusData?.num_year_qx_2}}</text>
  1302. <text class="unit">个</text>
  1303. </view>
  1304. <view class="item-name">
  1305. 伊州区
  1306. </view>
  1307. </view>
  1308. <view class="line">
  1309. </view>
  1310. <view class="stats-item" @click="newProjectClick('gxq',statusData?.num_year_qx_5)">
  1311. <view class="item-num">
  1312. <text class="number">{{statusData?.num_year_qx_5}}</text>
  1313. <text class="unit">个</text>
  1314. </view>
  1315. <view class="item-name">
  1316. 高新区
  1317. </view>
  1318. </view>
  1319. <view class="line">
  1320. </view>
  1321. <view class="stats-item" @click="newProjectClick('blkx',statusData?.num_year_qx_3)">
  1322. <view class="item-num">
  1323. <text class="number">{{statusData?.num_year_qx_3}}</text>
  1324. <text class="unit">个</text>
  1325. </view>
  1326. <view class="item-name">
  1327. 巴里坤县
  1328. </view>
  1329. </view>
  1330. <view class="line">
  1331. </view>
  1332. <view class="stats-item" @click="newProjectClick('ywx',statusData?.num_year_qx_4)">
  1333. <view class="item-num">
  1334. <text class="number">{{statusData?.num_year_qx_4}}</text>
  1335. <text class="unit">个</text>
  1336. </view>
  1337. <view class="item-name">
  1338. 伊吾县
  1339. </view>
  1340. </view>
  1341. </view>
  1342. <view class="stats-list" style="margin-top: 0px !important;">
  1343. <view class="stats-item" @click="newProjectClick('sbl',statusData?.num_s_total)">
  1344. <view class="item-num">
  1345. <text class="number">{{statusData?.num_s_total}}</text>
  1346. <text class="unit">个</text>
  1347. </view>
  1348. <view class="item-name">
  1349. 市分管
  1350. </view>
  1351. </view>
  1352. <view class="line">
  1353. </view>
  1354. <view class="stats-item" @click="newProjectClick('zj',statusData?.num_s_1)">
  1355. <view class="item-num">
  1356. <text class="number">{{statusData?.num_s_1}}</text>
  1357. <text class="unit">个</text>
  1358. </view>
  1359. <view class="item-name">
  1360. 在建
  1361. </view>
  1362. </view>
  1363. <view class="line">
  1364. </view>
  1365. <view class="stats-item" @click="gotoYYQ(statusData?.num_s_2)">
  1366. <view class="item-num">
  1367. <text class="number">{{statusData?.num_s_2}}</text>
  1368. <text class="unit">个</text>
  1369. </view>
  1370. <view class="item-name">
  1371. 逾期
  1372. </view>
  1373. </view>
  1374. <view class="line">
  1375. </view>
  1376. <view class="stats-item" @click="newProjectClick('tg',statusData?.num_s_3)">
  1377. <view class="item-num">
  1378. <text class="number">{{statusData?.num_s_3}}</text>
  1379. <text class="unit">个</text>
  1380. </view>
  1381. <view class="item-name">
  1382. 停工
  1383. </view>
  1384. </view>
  1385. <view class="line">
  1386. </view>
  1387. <view class="stats-item" @click="newProjectClick('wg',statusData?.num_s_4)">
  1388. <view class="item-num">
  1389. <text class="number">{{statusData?.num_s_4}}</text>
  1390. <text class="unit">个</text>
  1391. </view>
  1392. <view class="item-name">
  1393. 竣工
  1394. </view>
  1395. </view>
  1396. </view>
  1397. </view>
  1398. <view class="stats-layer-next">
  1399. <view class="sub-title">
  1400. 项目总体投资情况
  1401. </view>
  1402. <view class="pie-layer" style="width: 100%;">
  1403. <view class="pie-item-box2">
  1404. <view class="item-text">
  1405. <text class="rote">{{amtData?.outyear_tb}}%</text>
  1406. <text class="label">同比</text>
  1407. </view>
  1408. <view class="pie-content">
  1409. <qiun-data-charts type="arcbar" :opts="pieOption" :chartData="yearAmtPieChartData" />
  1410. <view class="label-rote">
  1411. {{(yearAmtPieChartData.series[0].data * 100).toFixed(2)}}%
  1412. </view>
  1413. <view class="label" style="bottom: 80rpx;">年度投资占比</view>
  1414. </view>
  1415. <view class="item-text">
  1416. <text class="rote" style='color: #698453;'>{{amtData?.outyear_hb}}%</text>
  1417. <text class="label">环比</text>
  1418. </view>
  1419. </view>
  1420. </view>
  1421. <view class="stats-list">
  1422. <view class="stats-item">
  1423. <view class="item-num">
  1424. <text class="number">{{amtData.outyearamt_2}}</text>
  1425. <text class="unit">万</text>
  1426. </view>
  1427. <view class="item-name" style="font-size: 28rpx;">
  1428. 总投资
  1429. </view>
  1430. </view>
  1431. </view>
  1432. <view class="stats-list"
  1433. style="background: linear-gradient( 90deg, rgba(242,247,255,0.2) 0%, rgba(241,247,255,0.6) 24%, #F2F7FF 49%, rgba(242,247,255,0.6) 77%, rgba(236,244,255,0.2) 100%);margin-top: 20rpx;">
  1434. <view class="stats-item" style="width: 49%;">
  1435. <view class="item-num">
  1436. <text class="number">{{amtData.outyearamt_total}}</text>
  1437. <text class="unit">万</text>
  1438. </view>
  1439. <view class="item-name">
  1440. 年度计划投资
  1441. </view>
  1442. </view>
  1443. <view class="stats-item" style="width: 49%;">
  1444. <view class="item-num">
  1445. <text class="number">{{amtData.outyearamt_1}}</text>
  1446. <text class="unit">万</text>
  1447. </view>
  1448. <view class="item-name">
  1449. 年度实际投资
  1450. </view>
  1451. </view>
  1452. </view>
  1453. <view class="stats-list" v-for="(item,index) in amtData.statusList" :key="index">
  1454. <view class="stats-item" style="width: 50%;" @click="onProjectAmtClick(items)">
  1455. <view class="item-num">
  1456. <text class="number">{{item[0]?.amt || 0}}</text>
  1457. <text class="unit">万</text>
  1458. </view>
  1459. <view class="item-name">
  1460. {{item[0]?.title}}
  1461. </view>
  1462. </view>
  1463. <view class="line">
  1464. </view>
  1465. <view class="stats-item" style="width: 50%;" @click="onProjectAmtClick(items)" >
  1466. <view class="item-num" v-if="item[1]">
  1467. <text class="number">{{item[1]?.amt || 0}}</text>
  1468. <text class="unit">万</text>
  1469. </view>
  1470. <view class="item-name">
  1471. {{item[1]?.title}}
  1472. </view>
  1473. </view>
  1474. </view>
  1475. </view>
  1476. <view class="stats-layer-next">
  1477. <view class="sub-title">
  1478. 月度投资完成情况
  1479. </view>
  1480. <view class="bar-content-layer">
  1481. <qiun-data-charts type="column" :ontouch='true' :opts="monthEchartsOpts" :chartData="monthData"
  1482. v-if="monthData.categories.length" />
  1483. </view>
  1484. </view>
  1485. <view class="stats-layer-next">
  1486. <view class="sub-title">
  1487. 月度进度占比情况
  1488. </view>
  1489. <view class="bar-content-layer">
  1490. <qiun-data-charts type="mix" :ontouch='true' :opts="monthTageOption" :chartData="monthTageData"
  1491. v-if="monthTageData.categories.length" />
  1492. </view>
  1493. </view>
  1494. <view class="stats-layer-next">
  1495. <view class="sub-title">
  1496. 项目偏离及整改情况
  1497. </view>
  1498. <view class="light-layer">
  1499. <view class="item" @click="newProjectClick('hdxm',statusData?.num_year_p_2)">
  1500. <image src="../../static/images/red.svg" mode=""></image>
  1501. <view class="item-text">
  1502. <view class="text-num" style="color: #E02020;">
  1503. <view class="num">{{statusData?.num_year_p_2}}</view>
  1504. <view class="unit">个</view>
  1505. </view>
  1506. <view class="text-label">
  1507. 红灯项目
  1508. </view>
  1509. </view>
  1510. </view>
  1511. <view class="item" @click="newProjectClick('Ydxm',statusData?.num_year_p_1)">
  1512. <image src="../../static/images/yellow.svg" mode=""></image>
  1513. <view class="item-text">
  1514. <view class="text-num" style="color: #E6AA00;">
  1515. <view class="num">{{statusData?.num_year_p_1}}</view>
  1516. <view class="unit">个</view>
  1517. </view>
  1518. <view class="text-label">
  1519. 黄灯项目
  1520. </view>
  1521. </view>
  1522. </view>
  1523. <view class="item" @click="newProjectClick('ldxm',statusData?.num_year_p_3)">
  1524. <image src="../../static/images/green.svg" mode=""></image>
  1525. <view class="item-text">
  1526. <view class="text-num" style="color: #327002;">
  1527. <view class="num">{{statusData?.num_year_p_3}}</view>
  1528. <view class="unit">个</view>
  1529. </view>
  1530. <view class="text-label">
  1531. 绿灯项目
  1532. </view>
  1533. </view>
  1534. </view>
  1535. </view>
  1536. <view class="light-line">
  1537. </view>
  1538. <view class="stats-list" style="margin-top: 6rpx;">
  1539. <view class="stats-item" @click="gotoWTQD('yzg',statusData?.num_year_p_4)">
  1540. <view class="item-num">
  1541. <text class="number">{{statusData?.num_year_p_4}}</text>
  1542. <text class="unit">个</text>
  1543. </view>
  1544. <view class="item-name">
  1545. 已整改
  1546. </view>
  1547. </view>
  1548. <view class="line">
  1549. </view>
  1550. <view class="stats-item" @click="gotoWTQD('zdgj',statusData?.num_year_p_5)">
  1551. <view class="item-num">
  1552. <text class="number">{{statusData?.num_year_p_5}}</text>
  1553. <text class="unit">个</text>
  1554. </view>
  1555. <view class="item-name">
  1556. 重点跟进
  1557. </view>
  1558. </view>
  1559. <view class="line">
  1560. </view>
  1561. <view class="stats-item" @click="gotoWTQD('ytqy',statusData?.num_year_p_6)">
  1562. <view class="item-num">
  1563. <text class="number">{{statusData?.num_year_p_6}}</text>
  1564. <text class="unit">个</text>
  1565. </view>
  1566. <view class="item-name">
  1567. 约谈企业
  1568. </view>
  1569. </view>
  1570. <view class="line">
  1571. </view>
  1572. <view class="stats-item" @click="gotoWTQD('fdbh',statusData?.num_year_p_7)">
  1573. <view class="item-num">
  1574. <text class="number">{{statusData?.num_year_p_7}}</text>
  1575. <text class="unit">个</text>
  1576. </view>
  1577. <view class="item-name">
  1578. 发督办函
  1579. </view>
  1580. </view>
  1581. </view>
  1582. </view>
  1583. <view class="stats-layer-next">
  1584. <view class="sub-title-footer">
  1585. 建设地点投资占比
  1586. </view>
  1587. <view class="pie-content">
  1588. <view class="legend-layer">
  1589. <view class="legend-item" v-for="(item,index) in jsddList" :key="index">
  1590. <view class="item-icon" :style="{background:item.color}">
  1591. </view>
  1592. <view class="item-label">
  1593. {{item.name}}
  1594. </view>
  1595. <view class="item-rote">
  1596. {{item.value}}%
  1597. </view>
  1598. </view>
  1599. </view>
  1600. <view class="pie-box">
  1601. <!-- <view class="pie-back">
  1602. <image src="@/static/echarts-pie.png" mode=""></image>
  1603. </view> -->
  1604. <view class="pie-back">
  1605. </view>
  1606. <view class="pie">
  1607. <qiun-data-charts type="ring" :opts="investOption" :chartData="jsddData" :ontouch="true" />
  1608. </view>
  1609. </view>
  1610. </view>
  1611. </view>
  1612. <view class="stats-layer-next">
  1613. <view class="sub-title-footer">
  1614. 行业分布情况
  1615. </view>
  1616. <view class="pie-content-box">
  1617. <view class="status-color">
  1618. <view class="item" v-for="(item,index) in colorList" :key="index" :style="{backgroundColor:item}">
  1619. </view>
  1620. </view>
  1621. <view class="legend-box">
  1622. <view class="legend-layer">
  1623. <view class="legend-item" v-for="(item,index) in hyzbList[0]" :key="index">
  1624. <view class="item-icon" :style="{backgroundColor: item.color }">
  1625. </view>
  1626. <uni-tooltip :content="item.name" placement="top">
  1627. <view class="item-label">
  1628. {{item.name}}
  1629. </view>
  1630. </uni-tooltip>
  1631. <view class="item-rote">
  1632. {{item.value}}
  1633. </view>
  1634. </view>
  1635. </view>
  1636. <view class="line">
  1637. </view>
  1638. <view class="legend-layer">
  1639. <view class="legend-item" v-for="(item,index) in hyzbList[1]" :key="index">
  1640. <view class="item-icon" :style="{backgroundColor: item.color }">
  1641. </view>
  1642. <uni-tooltip :content="item.name" placement="top">
  1643. <view class="item-label">
  1644. {{item.name}}
  1645. </view>
  1646. </uni-tooltip>
  1647. <view class="item-rote">
  1648. {{item.value}}
  1649. </view>
  1650. </view>
  1651. </view>
  1652. </view>
  1653. <!-- <view class="pie-box">
  1654. <view class="pie-back">
  1655. </view>
  1656. <view class="pie">
  1657. <qiun-data-charts type="ring" :opts="investOption" :chartData="hyzbData" :ontouch="true"
  1658. v-if="hyzbData" />
  1659. </view>
  1660. </view> -->
  1661. </view>
  1662. </view>
  1663. <cu-overdue ></cu-overdue>
  1664. </view>
  1665. <!-- 年度选择 -->
  1666. <u-picker :show="yearShow" :defaultIndex="defaultIndex" :columns="yearColumns" @confirm="yearClose"
  1667. @cancel="yearClose" @close="yearClose" closeOnClickOverlay></u-picker>
  1668. <!-- 行业选择 -->
  1669. <u-picker :show="kindShow" :columns="kindColumns" @confirm="kindClose" @cancel="kindClose" @close="kindClose"
  1670. closeOnClickOverlay></u-picker>
  1671. <!-- 地点选择 -->
  1672. <u-picker :show="areaShow" :columns="areaColumns" @confirm="areaClose" @cancel="areaClose" @close="areaClose"
  1673. closeOnClickOverlay></u-picker>
  1674. <!-- 资金来源 -->
  1675. <u-picker :show="zjlyShow" :columns="zjlyColumns" @confirm="zjlyClose" @cancel="zjlyClose" @close="zjlyClose"
  1676. closeOnClickOverlay></u-picker>
  1677. </view>
  1678. </template>
  1679. <style lang="scss" scoped>
  1680. $card-width: calc(100% - 58rpx);
  1681. .dot-check {
  1682. width: 20rpx !important;
  1683. border-radius: 10rpx !important;
  1684. background-color: #0035A9 !important;
  1685. }
  1686. .status-color {
  1687. margin-top: 38rpx;
  1688. display: flex;
  1689. justify-content: center;
  1690. width: 100%;
  1691. .item {
  1692. flex-grow: 1;
  1693. height: 6rpx;
  1694. }
  1695. }
  1696. .uni-swiper-dot-box {
  1697. margin-top: 48rpx;
  1698. display: flex;
  1699. flex-direction: column;
  1700. align-items: center;
  1701. justify-content: center;
  1702. gap: 18rpx;
  1703. width: $card-width;
  1704. .swiper-dot {
  1705. display: flex;
  1706. justify-content: center;
  1707. align-items: center;
  1708. gap: 4rpx;
  1709. transition: all .3s;
  1710. .swiper-dot-item {
  1711. width: 8rpx;
  1712. height: 8rpx;
  1713. border-radius: 50%;
  1714. background-color: #DDDDDD;
  1715. .items-text {
  1716. color: #666666;
  1717. }
  1718. }
  1719. }
  1720. }
  1721. .swiper-box {
  1722. width: 100%;
  1723. height: 104rpx;
  1724. }
  1725. .swiper-item {
  1726. display: flex;
  1727. justify-content: flex-start;
  1728. align-items: center;
  1729. width: 100%;
  1730. height: 100%;
  1731. .swiper-item-items {
  1732. display: flex;
  1733. flex-direction: column;
  1734. justify-content: center;
  1735. align-items: center;
  1736. gap: 8rpx;
  1737. width: 20%;
  1738. image {
  1739. width: 72rpx;
  1740. height: 72rpx;
  1741. }
  1742. .items-text {
  1743. font-size: 24rpx;
  1744. font-weight: 300;
  1745. color: #666666;
  1746. }
  1747. }
  1748. }
  1749. .container {
  1750. padding-top: 0 !important;
  1751. overflow: hidden;
  1752. width: 100%;
  1753. min-height: 100vh;
  1754. overflow-y: scroll;
  1755. .top-back-pie {
  1756. position: absolute;
  1757. top: -2050rpx;
  1758. left: 50%;
  1759. transform: translate(-50%, 0);
  1760. width: 2500rpx;
  1761. height: 2500rpx;
  1762. border-radius: 50%;
  1763. background-color: #002F69;
  1764. z-index: 0;
  1765. }
  1766. .content-layer {
  1767. position: relative;
  1768. position: absolute;
  1769. z-index: 10;
  1770. display: flex;
  1771. flex-direction: column;
  1772. align-items: center;
  1773. justify-content: flex-start;
  1774. width: 100%;
  1775. padding-bottom: calc(var(--window-bottom) + 10px);
  1776. .top-layer {
  1777. position: fixed;
  1778. z-index: 10000;
  1779. display: flex;
  1780. flex-direction: column;
  1781. align-items: center;
  1782. justify-content: flex-start;
  1783. width: 100%;
  1784. background-color: #002F69;
  1785. padding-bottom: 20rpx;
  1786. .project-title {
  1787. display: flex;
  1788. justify-content: center;
  1789. align-items: center;
  1790. margin-top: var(--status-bar-height);
  1791. width: 100%;
  1792. height: 88rpx;
  1793. font-size: 36rpx;
  1794. font-weight: 600;
  1795. color: #FFF;
  1796. }
  1797. .search-layer {
  1798. margin-top: 24rpx;
  1799. display: flex;
  1800. justify-content: space-between;
  1801. align-items: center;
  1802. width: 90%;
  1803. background-color: #fff;
  1804. border-radius: 16rpx;
  1805. .search-input {
  1806. display: flex;
  1807. align-items: center;
  1808. width: 78%;
  1809. height: 72rpx;
  1810. padding: 0 20rpx;
  1811. box-sizing: border-box;
  1812. text-align: left;
  1813. .search-icon {
  1814. width: 40rpx;
  1815. height: 40rpx;
  1816. margin-right: 26rpx;
  1817. background-image: url('@/static/home-search-icon.svg');
  1818. background-size: 100% 100%;
  1819. }
  1820. }
  1821. .search-line {
  1822. width: 0;
  1823. height: 28rpx;
  1824. border-left: 1rpx solid rgba(0, 47, 105, 0.5);
  1825. }
  1826. .search-focus {
  1827. display: flex;
  1828. align-items: center;
  1829. justify-content: flex-end;
  1830. gap: 10rpx;
  1831. width: 22%;
  1832. .search-focus-icon {
  1833. width: 40rpx;
  1834. height: 40rpx;
  1835. background-image: url('@/static/focus.svg');
  1836. background-size: 100% 100%;
  1837. }
  1838. .text {
  1839. margin-right: 20rpx;
  1840. font-size: 28rpx;
  1841. font-weight: 600;
  1842. white-space: nowrap;
  1843. color: #06356D;
  1844. }
  1845. }
  1846. }
  1847. }
  1848. .banner-box {
  1849. margin-top: calc(var(--status-bar-height) + 210rpx);
  1850. width: $card-width;
  1851. }
  1852. .prompt-layer {
  1853. margin-top: 40rpx;
  1854. display: flex;
  1855. justify-content: space-between;
  1856. align-items: center;
  1857. width: $card-width;
  1858. .item {
  1859. display: flex;
  1860. justify-content: center;
  1861. align-items: center;
  1862. gap: 20rpx;
  1863. padding: 20rpx 0 20rpx 0;
  1864. width: 48%;
  1865. background-color: #fff;
  1866. border-radius: 10rpx;
  1867. box-shadow: 0rpx 0rpx 8rpx 0rpx #D8EEFF;
  1868. .item-text {
  1869. font-size: 30rpx;
  1870. font-weight: 700;
  1871. }
  1872. .item-image {
  1873. position: relative;
  1874. image {
  1875. width: 100rpx;
  1876. height: 100rpx;
  1877. border-radius: 50%;
  1878. }
  1879. .sign {
  1880. position: absolute;
  1881. right: -30rpx;
  1882. top: 0;
  1883. padding: 0 10rpx 0 10rpx;
  1884. font-size: 12rpx;
  1885. background-color: #FC5E74;
  1886. color: #fff;
  1887. border-radius: 16rpx;
  1888. border: 2px solid #fff;
  1889. }
  1890. }
  1891. }
  1892. }
  1893. .button-layer {
  1894. margin: auto;
  1895. margin-top: 40rpx;
  1896. display: flex;
  1897. flex-wrap: wrap;
  1898. justify-content: space-between;
  1899. align-content: space-between;
  1900. row-gap: 30rpx;
  1901. width: $card-width;
  1902. // background-color: #0033A8;
  1903. .btn-item {
  1904. display: flex;
  1905. flex-direction: column;
  1906. justify-content: center;
  1907. align-items: center;
  1908. gap: 10rpx;
  1909. width: 23.5%;
  1910. height: 176rpx;
  1911. border-radius: 10rpx;
  1912. background-color: #fff;
  1913. box-shadow: 0rpx 0rpx 8rpx 0rpx #D8EEFF;
  1914. .item-image {
  1915. position: relative;
  1916. .sign {
  1917. position: absolute;
  1918. left: 54rpx;
  1919. top: 0;
  1920. padding: 0 10rpx 0 10rpx;
  1921. background-color: #FC5E74;
  1922. color: #fff;
  1923. border-radius: 16rpx;
  1924. border: 2px solid #fff;
  1925. .text {
  1926. font-size: 36rpx;
  1927. zoom: 0.5;
  1928. }
  1929. }
  1930. }
  1931. .item-icon {
  1932. width: 80rpx;
  1933. height: 80rpx;
  1934. }
  1935. .item-text {
  1936. font-size: 28rpx;
  1937. color: #222222;
  1938. font-weight: 500;
  1939. }
  1940. }
  1941. }
  1942. .sub-title {
  1943. margin-top: 18rpx;
  1944. display: flex;
  1945. justify-content: center;
  1946. font-size: 36rpx;
  1947. font-weight: 600;
  1948. font-style: normal;
  1949. color: #222222;
  1950. }
  1951. .sub-title-footer {
  1952. margin-top: 12rpx;
  1953. display: flex;
  1954. justify-content: flex-start;
  1955. width: $card-width;
  1956. font-size: 36rpx;
  1957. font-weight: 600;
  1958. color: #000;
  1959. }
  1960. .project-info-select {
  1961. margin: auto;
  1962. margin-top: 48rpx;
  1963. display: flex;
  1964. justify-content: center;
  1965. align-items: center;
  1966. gap: 32rpx;
  1967. width: $card-width;
  1968. height: 88rpx;
  1969. background: #F5F5F5;
  1970. border-radius: 56rpx 56rpx 0rpx 0rpx;
  1971. .choose-year {
  1972. display: flex;
  1973. align-items: center;
  1974. justify-content: center;
  1975. gap: 2rpx;
  1976. font-size: 24rpx;
  1977. font-weight: 500;
  1978. color: #999999;
  1979. .choose-year-text {
  1980. overflow: hidden;
  1981. text-overflow: ellipsis;
  1982. white-space: nowrap;
  1983. }
  1984. image {
  1985. width: 32rpx;
  1986. height: 32rpx;
  1987. }
  1988. }
  1989. }
  1990. .stats-layer-next {
  1991. margin-top: 32rpx;
  1992. display: flex;
  1993. flex-direction: column;
  1994. justify-content: center;
  1995. align-items: center;
  1996. justify-content: center;
  1997. width: $card-width;
  1998. background-color: #FFF;
  1999. border-radius: 10rpx;
  2000. padding: 40rpx 0 40rpx 0;
  2001. box-shadow: 0rpx 0rpx 8rpx 0rpx #D8EEFF;
  2002. .pie-layer {
  2003. margin-top: 52rpx;
  2004. display: flex;
  2005. justify-content: center;
  2006. align-items: center;
  2007. gap: 112rpx;
  2008. .pie-item {
  2009. display: flex;
  2010. flex-direction: column;
  2011. align-items: center;
  2012. justify-content: flex-start;
  2013. .pie-content {
  2014. position: relative;
  2015. width: 206rpx;
  2016. height: 206rpx;
  2017. .label {
  2018. position: absolute;
  2019. bottom: 66rpx;
  2020. left: 50%;
  2021. transform: translate(-50%, 0);
  2022. font-size: 24rpx;
  2023. line-height: 30rpx;
  2024. text-align: center;
  2025. white-space: nowrap;
  2026. }
  2027. .label-rote {
  2028. position: absolute;
  2029. bottom: 115rpx;
  2030. left: 50%;
  2031. transform: translate(-50%, 0);
  2032. z-index: 100;
  2033. font-size: 36rpx;
  2034. font-weight: 600;
  2035. color: #C44E00;
  2036. line-height: 30rpx;
  2037. text-align: center;
  2038. white-space: nowrap;
  2039. }
  2040. }
  2041. .item-text-layer {
  2042. display: flex;
  2043. flex-direction: column;
  2044. justify-content: flex-start;
  2045. gap: 6rpx;
  2046. }
  2047. .item-text {
  2048. display: flex;
  2049. justify-content: flex-start;
  2050. align-items: center;
  2051. gap: 8rpx;
  2052. .label {
  2053. font-size: 24rpx;
  2054. font-weight: 500;
  2055. color: #999999;
  2056. }
  2057. .rote {
  2058. font-size: 24rpx;
  2059. font-weight: 600;
  2060. color: #A79154;
  2061. }
  2062. }
  2063. }
  2064. .pie-item-box2 {
  2065. display: flex;
  2066. align-items: center;
  2067. justify-content: center;
  2068. gap: 30rpx;
  2069. .pie-content {
  2070. position: relative;
  2071. width: 256rpx;
  2072. height: 256rpx;
  2073. .label {
  2074. position: absolute;
  2075. left: 50%;
  2076. bottom: 135rpx;
  2077. transform: translate(-50%, 0);
  2078. font-size: 24rpx;
  2079. line-height: 30rpx;
  2080. text-align: center;
  2081. white-space: nowrap;
  2082. }
  2083. .label-rote {
  2084. position: absolute;
  2085. bottom: 135rpx;
  2086. left: 50%;
  2087. transform: translate(-50%, 0);
  2088. z-index: 100;
  2089. font-size: 36rpx;
  2090. font-weight: 800;
  2091. color: #C44E00;
  2092. line-height: 30rpx;
  2093. text-align: center;
  2094. white-space: nowrap;
  2095. }
  2096. }
  2097. .item-text {
  2098. display: flex;
  2099. flex-direction: column;
  2100. justify-content: center;
  2101. align-items: center;
  2102. gap: 10rpx;
  2103. .label {
  2104. font-size: 24rpx;
  2105. font-weight: 500;
  2106. color: #999999;
  2107. }
  2108. .rote {
  2109. font-size: 32rpx;
  2110. font-weight: 800;
  2111. color: #A79154;
  2112. }
  2113. }
  2114. }
  2115. }
  2116. .bar-content-layer {
  2117. margin: auto;
  2118. width: 95%;
  2119. height: 450rpx;
  2120. }
  2121. .video-layer {
  2122. margin-top: 20rpx;
  2123. display: flex;
  2124. justify-content: space-between;
  2125. align-items: center;
  2126. width: 95%;
  2127. .video-item {
  2128. width: 32%;
  2129. height: 123.3rpx;
  2130. }
  2131. }
  2132. .stats-list {
  2133. padding: 24rpx 34rpx 24rpx 34rpx;
  2134. width: 100%;
  2135. display: flex;
  2136. justify-content: center;
  2137. align-items: center;
  2138. .line {
  2139. margin-top: 60rpx;
  2140. width: 1rpx;
  2141. height: 24rpx;
  2142. background-color: #DDDDDD;
  2143. }
  2144. .stats-item {
  2145. display: flex;
  2146. flex-direction: column;
  2147. align-items: center;
  2148. justify-content: center;
  2149. gap: 12rpx;
  2150. width: 50%;
  2151. .item-num {
  2152. display: flex;
  2153. justify-content: center;
  2154. align-items: flex-end;
  2155. gap: 5rpx;
  2156. color: #0033A8;
  2157. .number {
  2158. font-size: 36rpx;
  2159. font-weight: 800;
  2160. white-space: nowrap;
  2161. }
  2162. .unit {
  2163. font-size: 20rpx;
  2164. }
  2165. }
  2166. .item-name {
  2167. font-size: 24rpx;
  2168. white-space: nowrap;
  2169. }
  2170. }
  2171. }
  2172. .light-layer {
  2173. margin-top: 50rpx;
  2174. display: flex;
  2175. justify-content: center;
  2176. align-items: center;
  2177. gap: 30rpx;
  2178. .item {
  2179. display: flex;
  2180. justify-content: center;
  2181. align-items: center;
  2182. gap: 20rpx;
  2183. image {
  2184. width: 72rpx;
  2185. height: 72rpx;
  2186. }
  2187. .item-text {
  2188. display: flex;
  2189. flex-direction: column;
  2190. justify-content: center;
  2191. align-items: center;
  2192. .text-num {
  2193. display: flex;
  2194. justify-content: center;
  2195. align-items: flex-end;
  2196. gap: 10rpx;
  2197. .num {
  2198. display: block;
  2199. font-size: 36rpx;
  2200. font-weight: bold;
  2201. }
  2202. .unit {
  2203. display: block;
  2204. font-size: 20rpx;
  2205. }
  2206. }
  2207. .text-label {
  2208. font-size: 24rpx;
  2209. font-weight: 500;
  2210. color: #444444;
  2211. }
  2212. }
  2213. }
  2214. }
  2215. .light-line {
  2216. margin-top: 38rpx;
  2217. width: 95%;
  2218. height: 1rpx;
  2219. background: linear-gradient(91deg, rgba(216, 216, 216, 0) 0%, #EBEBEB 30%, #EBEBEB 72%, rgba(238, 238, 238, 0) 100%);
  2220. }
  2221. .pie-content {
  2222. margin-top: 32rpx;
  2223. width: 90%;
  2224. display: flex;
  2225. justify-content: space-between;
  2226. align-items: center;
  2227. .legend-layer {
  2228. display: flex;
  2229. flex-direction: column;
  2230. justify-content: center;
  2231. align-items: flex-start;
  2232. gap: 16rpx;
  2233. .legend-item {
  2234. display: flex;
  2235. justify-content: flex-start;
  2236. align-items: center;
  2237. gap: 8rpx;
  2238. .item-icon {
  2239. width: 20rpx;
  2240. height: 20rpx;
  2241. background-color: #ccc
  2242. }
  2243. .item-label {
  2244. font-size: 28rpx;
  2245. font-weight: 500;
  2246. line-height: 28rpx;
  2247. }
  2248. .item-rote {
  2249. font-size: 24rpx;
  2250. line-height: 28rpx;
  2251. font-weight: 600;
  2252. color: #0035A9;
  2253. }
  2254. }
  2255. }
  2256. .pie-box {
  2257. position: relative;
  2258. margin-right: 30rpx;
  2259. width: 250rpx;
  2260. height: 250rpx;
  2261. .pie {
  2262. position: absolute;
  2263. top: 50%;
  2264. left: 50%;
  2265. transform: translate(-50%, -50%);
  2266. width: 230rpx;
  2267. height: 230rpx;
  2268. }
  2269. .pie-back {
  2270. position: absolute;
  2271. left: 50%;
  2272. top: 50%;
  2273. transform: translate(-50%, -50%);
  2274. border-radius: 50%;
  2275. background-color: #E9F2FF;
  2276. width: 232rpx;
  2277. height: 232rpx;
  2278. }
  2279. }
  2280. }
  2281. .pie-content-box {
  2282. width: calc(100% - 48rpx);
  2283. display: flex;
  2284. flex-direction: column;
  2285. justify-content: flex-start;
  2286. align-items: center;
  2287. .legend-box {
  2288. width: 100%;
  2289. margin-top: 29rpx;
  2290. display: flex;
  2291. justify-content: center;
  2292. align-items: center;
  2293. .line {
  2294. width: 0;
  2295. margin-left: 22rpx;
  2296. padding-right: 22rpx;
  2297. height: 400rpx;
  2298. border-left: 1rpx solid #DDDDDD;
  2299. border-top: none;
  2300. }
  2301. .legend-layer {
  2302. display: flex;
  2303. flex-direction: column;
  2304. justify-content: center;
  2305. align-items: flex-start;
  2306. gap: 13rpx;
  2307. width: 50%;
  2308. .legend-item {
  2309. display: flex;
  2310. justify-content: flex-start;
  2311. align-items: center;
  2312. gap: 8rpx;
  2313. .item-icon {
  2314. width: 20rpx;
  2315. height: 20rpx;
  2316. background-color: #ccc
  2317. }
  2318. .item-label {
  2319. width: 200rpx;
  2320. font-size: 22rpx;
  2321. font-weight: 500;
  2322. white-space: nowrap;
  2323. overflow: hidden;
  2324. text-overflow: ellipsis;
  2325. }
  2326. .item-rote {
  2327. font-size: 24rpx;
  2328. font-weight: 600;
  2329. color: #0035A9;
  2330. }
  2331. }
  2332. }
  2333. }
  2334. .pie-box {
  2335. position: relative;
  2336. margin-right: 30rpx;
  2337. width: 250rpx;
  2338. height: 250rpx;
  2339. .pie {
  2340. position: absolute;
  2341. top: 50%;
  2342. left: 50%;
  2343. transform: translate(-50%, -50%);
  2344. width: 250rpx;
  2345. height: 250rpx;
  2346. }
  2347. .pie-back {
  2348. position: absolute;
  2349. left: 50%;
  2350. top: 50%;
  2351. transform: translate(-50%, -50%);
  2352. border-radius: 50%;
  2353. background-color: #E9F2FF;
  2354. width: 230rpx;
  2355. height: 230rpx;
  2356. }
  2357. }
  2358. }
  2359. }
  2360. }
  2361. }
  2362. </style>