overview.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525
  1. <template>
  2. <div class="page-overview">
  3. <h2 class="page-overview-title">项目概览</h2>
  4. <div class="page-overview-cards">
  5. <div
  6. v-for="card in summaryCards"
  7. :key="card.key"
  8. class="page-overview-card"
  9. :class="{
  10. 'page-overview-card--warning': card.key === 'warning',
  11. 'page-overview-card--delay': card.key === 'delay',
  12. }"
  13. >
  14. <div class="page-overview-card-top">
  15. <div class="page-overview-card-main">
  16. <div class="page-overview-card-label">
  17. <span>{{ card.label }}</span>
  18. <span v-if="card.tip" class="page-overview-card-tip">{{
  19. card.tip
  20. }}</span>
  21. </div>
  22. <div class="page-overview-card-metric-block">
  23. <div class="page-overview-card-metric">
  24. <span
  25. class="page-overview-card-num"
  26. :class="{
  27. 'page-overview-card-num--clickable':
  28. card.key === 'warning' || card.key === 'delay',
  29. }"
  30. :style="{ color: card.color }"
  31. @click="onSummaryNumClick(card)"
  32. >{{ card.value }}</span>
  33. <span v-if="card.unit" class="page-overview-card-unit">{{
  34. card.unit
  35. }}</span>
  36. </div>
  37. <div v-if="card.subTitle" class="page-overview-card-subtitle">
  38. {{ card.subTitle }}
  39. </div>
  40. </div>
  41. </div>
  42. <span
  43. class="page-overview-card-icon"
  44. :class="{ 'page-overview-card-icon--shake': card.key === 'delay' }"
  45. >
  46. <icon-svg
  47. :name="card.icon"
  48. size="32px"
  49. />
  50. </span>
  51. </div>
  52. <div v-if="card.phases?.length" class="page-overview-card-bottom">
  53. <div
  54. v-for="phase in card.phases"
  55. :key="phase.name"
  56. class="page-overview-card-phase"
  57. >
  58. <div class="page-overview-card-phase-label">
  59. <i class="page-overview-card-phase-dot"></i>
  60. <span>{{ phase.name }}</span>
  61. </div>
  62. <div class="page-overview-card-phase-num">{{ phase.count }}</div>
  63. </div>
  64. </div>
  65. <div
  66. v-else-if="card.subReport"
  67. class="page-overview-card-bottom page-overview-card-rate-bottom"
  68. >
  69. <div class="page-overview-card-subreport">
  70. {{ card.subReport.prefix }}<span class="page-overview-card-subreport-num">{{
  71. card.subReport.value
  72. }}</span>/{{ card.subReport.total }}
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="page-overview-table">
  78. <div class="page-overview-table-header">
  79. <div class="page-overview-table-title">项目列表</div>
  80. <div class="page-overview-table-legend">
  81. <span
  82. v-for="item in tableLegend"
  83. :key="item.key"
  84. class="page-overview-table-legend-item"
  85. >
  86. <i
  87. class="page-overview-table-legend-dot"
  88. :class="`is-${item.key}`"
  89. ></i>
  90. {{ item.label }}
  91. </span>
  92. </div>
  93. <div class="page-overview-table-filter">
  94. <el-select v-model="listFilter" size="small" style="width: 120px">
  95. <el-option
  96. v-for="opt in listFilterOptions"
  97. :key="opt.value"
  98. :label="opt.label"
  99. :value="opt.value"
  100. />
  101. </el-select>
  102. </div>
  103. </div>
  104. <div class="page-overview-table-scroll">
  105. <table class="page-overview-table-grid">
  106. <thead>
  107. <tr>
  108. <th class="col-name">项目名称</th>
  109. <th class="col-progress">整体进度</th>
  110. <th class="col-phase col-phase--feasibility">可行性研究</th>
  111. <th class="col-phase col-phase--basic">基本设计</th>
  112. <th class="col-phase col-phase--detail">详细设计/建造安装</th>
  113. <th class="col-status">预警</th>
  114. <th class="col-status">滞后</th>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. <tr v-for="item in projectList" :key="item.id">
  119. <td class="col-name">
  120. <div class="page-overview-table-name">
  121. <a href="javascript:;" class="page-overview-table-name-link">{{
  122. item.name
  123. }}</a>
  124. </div>
  125. </td>
  126. <td class="col-progress">
  127. <div class="page-overview-table-progress">
  128. <div class="page-overview-table-progress-track">
  129. <div
  130. class="page-overview-table-progress-bar"
  131. :style="{ width: `${item.progress}%` }"
  132. ></div>
  133. </div>
  134. <span class="page-overview-table-progress-text"
  135. >{{ item.progress }}%</span
  136. >
  137. </div>
  138. </td>
  139. <td class="col-phase" colspan="3">
  140. <div class="page-overview-table-gantt">
  141. <div class="page-overview-table-gantt-row is-plan">
  142. <template v-if="item.progress > 0">
  143. <div
  144. v-for="(seg, idx) in item.timeline.plan"
  145. :key="`plan-${idx}`"
  146. class="page-overview-table-gantt-seg"
  147. :class="`is-${seg.type}`"
  148. :style="{ flex: `${seg.flex} 1 0%` }"
  149. >
  150. <span v-if="seg.label">{{ seg.label }}</span>
  151. </div>
  152. </template>
  153. </div>
  154. <div class="page-overview-table-gantt-row is-actual">
  155. <template v-if="item.progress > 0">
  156. <template
  157. v-for="(seg, idx) in item.timeline.actual"
  158. :key="`actual-${idx}`"
  159. >
  160. <div
  161. v-if="seg.popover"
  162. class="page-overview-table-gantt-seg-host"
  163. :style="{ flex: `${seg.flex} 1 0%` }"
  164. >
  165. <el-popover
  166. placement="bottom"
  167. trigger="hover"
  168. :show-arrow="true"
  169. :width="200"
  170. :offset="6"
  171. popper-class="page-overview-gantt-popper"
  172. >
  173. <template #reference>
  174. <div
  175. class="page-overview-table-gantt-seg"
  176. :class="`is-${seg.type}`"
  177. tabindex="0"
  178. >
  179. <span v-if="seg.label">{{ seg.label }}</span>
  180. </div>
  181. </template>
  182. <div class="page-overview-gantt-tip">
  183. <div class="page-overview-gantt-tip-name">
  184. {{ seg.popover.name }}
  185. </div>
  186. <div class="page-overview-gantt-tip-line">
  187. 计划时间:{{ seg.popover.planTime }}
  188. </div>
  189. <div
  190. v-if="seg.popover.remainDays != null"
  191. class="page-overview-gantt-tip-line"
  192. >
  193. 距完成天数:<span
  194. class="page-overview-gantt-tip-days is-warning"
  195. >{{ seg.popover.remainDays }}</span
  196. >天
  197. </div>
  198. <div
  199. v-else-if="seg.popover.overdueDays != null"
  200. class="page-overview-gantt-tip-line"
  201. >
  202. 已逾期天数:<span
  203. class="page-overview-gantt-tip-days is-delay"
  204. >{{ seg.popover.overdueDays }}</span
  205. >天
  206. </div>
  207. <div
  208. v-else-if="seg.popover.completeTime"
  209. class="page-overview-gantt-tip-line"
  210. >
  211. 完成时间:{{ seg.popover.completeTime }}
  212. </div>
  213. </div>
  214. </el-popover>
  215. </div>
  216. <div
  217. v-else
  218. class="page-overview-table-gantt-seg"
  219. :class="`is-${seg.type}`"
  220. :style="{ flex: `${seg.flex} 1 0%` }"
  221. >
  222. <span v-if="seg.label">{{ seg.label }}</span>
  223. </div>
  224. </template>
  225. </template>
  226. </div>
  227. </div>
  228. </td>
  229. <td class="col-status">
  230. <span
  231. class="page-overview-table-badge"
  232. :class="item.warning > 0 ? 'is-warning' : 'is-zero'"
  233. >{{ item.warning }}</span
  234. >
  235. </td>
  236. <td class="col-status">
  237. <span
  238. class="page-overview-table-badge"
  239. :class="item.delay > 0 ? 'is-delay' : 'is-zero'"
  240. >{{ item.delay }}</span
  241. >
  242. </td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. </div>
  247. </div>
  248. </div>
  249. <el-dialog
  250. v-model="reportDialogVisible"
  251. width="720px"
  252. append-to-body
  253. align-center
  254. class="page-overview-report-dialog"
  255. >
  256. <template #header>
  257. <div class="page-overview-report-dialog-header">
  258. <icon-svg
  259. :name="
  260. reportDialogType === 'warning'
  261. ? 'early_warning_report'
  262. : 'late_report'
  263. "
  264. size="24px"
  265. />
  266. <span class="page-overview-report-dialog-title">
  267. {{ reportDialogType === "warning" ? "预警报告" : "滞后报告" }}
  268. <span class="page-overview-report-dialog-count-wrap"
  269. >(<span
  270. class="page-overview-report-dialog-count"
  271. :class="`is-${reportDialogType}`"
  272. >{{ reportDialogList.length }}</span
  273. >)</span
  274. >
  275. </span>
  276. </div>
  277. </template>
  278. <div class="page-overview-report-dialog-body">
  279. <div
  280. v-for="item in reportDialogList"
  281. :key="item.id"
  282. class="page-overview-report-item"
  283. >
  284. <div class="page-overview-report-item-title">{{ item.projectName }}</div>
  285. <div class="page-overview-report-item-body">
  286. <div class="page-overview-report-row">
  287. <div class="page-overview-report-field">
  288. <span class="label">报告名称:</span>
  289. <span class="value">{{ item.reportName }}</span>
  290. </div>
  291. </div>
  292. <div class="page-overview-report-row is-cols-4">
  293. <div class="page-overview-report-field">
  294. <span class="label">开始时间:</span>
  295. <span class="value">{{ item.startTime }}</span>
  296. </div>
  297. <div class="page-overview-report-field">
  298. <span class="label">工期:</span>
  299. <span class="value">{{ item.duration }}</span>
  300. </div>
  301. <div class="page-overview-report-field">
  302. <span class="label">计划完成时间:</span>
  303. <span class="value">{{ item.planEndTime }}</span>
  304. </div>
  305. <div class="page-overview-report-field">
  306. <span class="label">{{
  307. reportDialogType === "warning" ? "距完成天数:" : "已逾期天数:"
  308. }}</span>
  309. <span class="value" :class="`is-${reportDialogType}`"
  310. >{{ item.days }}天</span
  311. >
  312. </div>
  313. </div>
  314. <div class="page-overview-report-row is-cols-2">
  315. <div class="page-overview-report-field">
  316. <span class="label">报告编制单位:</span>
  317. <span class="value">{{ item.unit }}</span>
  318. </div>
  319. <div class="page-overview-report-field">
  320. <span class="label">负责人:</span>
  321. <span class="value">{{ item.owner }}</span>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. <template #footer>
  328. <div class="page-overview-report-dialog-footer">
  329. <button
  330. type="button"
  331. class="page-overview-report-dialog-close-btn"
  332. @click="reportDialogVisible = false"
  333. >
  334. 关闭
  335. </button>
  336. </div>
  337. </template>
  338. </el-dialog>
  339. </template>
  340. <script setup>
  341. import { ref } from "vue";
  342. defineOptions({
  343. name: "ProjectOverview",
  344. });
  345. const tableLegend = [
  346. { key: "plan", label: "计划进度" },
  347. { key: "actual", label: "实际进度" },
  348. { key: "done", label: "完成" },
  349. { key: "warning", label: "预警" },
  350. { key: "delay", label: "滞后" },
  351. ];
  352. const listFilter = ref("all");
  353. const listFilterOptions = [
  354. { label: "全部", value: "all" },
  355. { label: "预警", value: "warning" },
  356. { label: "滞后", value: "delay" },
  357. ];
  358. const reportDialogVisible = ref(false);
  359. const reportDialogType = ref("warning");
  360. const reportDialogList = ref([]);
  361. const warningReportList = [
  362. {
  363. id: 1,
  364. projectName: "垦利10-1油田开发项目",
  365. reportName: "可行性研究-环境质量现状调查",
  366. startTime: "2026-06-05",
  367. duration: "60天",
  368. planEndTime: "2026-08-05",
  369. days: 2,
  370. unit: "樟树市邦厉有限公司",
  371. owner: "苏小苏",
  372. },
  373. {
  374. id: 2,
  375. projectName: "渤中19-6凝析气田开发项目",
  376. reportName: "详细设计/建造安装-通航安全影响咨询",
  377. startTime: "2026-05-01",
  378. duration: "90天",
  379. planEndTime: "2026-08-20",
  380. days: 22,
  381. unit: "天津海蓝工程咨询有限公司",
  382. owner: "李明",
  383. },
  384. ];
  385. const delayReportList = [
  386. {
  387. id: 1,
  388. projectName: "锦州25-1油田开发项目",
  389. reportName: "可行性研究-通航安全影响咨询",
  390. startTime: "2026-05-01",
  391. duration: "90天",
  392. planEndTime: "2026-07-30",
  393. days: 3,
  394. unit: "天津海蓝工程咨询有限公司",
  395. owner: "王强",
  396. },
  397. ];
  398. const onSummaryNumClick = (card) => {
  399. if (card.key !== "warning" && card.key !== "delay") return;
  400. reportDialogType.value = card.key;
  401. reportDialogList.value =
  402. card.key === "warning" ? warningReportList : delayReportList;
  403. reportDialogVisible.value = true;
  404. };
  405. const summaryCards = [
  406. {
  407. key: "total",
  408. label: "项目总数",
  409. value: "24",
  410. unit: "个项目",
  411. color: "#2382E7",
  412. icon: "total_number_of_projects",
  413. phases: [
  414. { name: "可行性研究", count: 8 },
  415. { name: "基本设计", count: 8 },
  416. { name: "详细设计/建造安装", count: 8 },
  417. ],
  418. },
  419. {
  420. key: "warning",
  421. label: "预警报告",
  422. tip: "(计划日期内仍未完成)",
  423. value: "2",
  424. unit: "个项目",
  425. color: "#FF8E38",
  426. icon: "early_warning_report",
  427. phases: [
  428. { name: "可行性研究", count: 1 },
  429. { name: "基本设计", count: 0 },
  430. { name: "详细设计/建造安装", count: 1 },
  431. ],
  432. },
  433. {
  434. key: "delay",
  435. label: "滞后报告",
  436. tip: "(计划日期内仍未完成)",
  437. value: "1",
  438. unit: "个项目",
  439. color: "#F54848",
  440. icon: "late_report",
  441. phases: [
  442. { name: "可行性研究", count: 1 },
  443. { name: "基本设计", count: 0 },
  444. { name: "详细设计/建造安装", count: 0 },
  445. ],
  446. },
  447. {
  448. key: "rate",
  449. label: "报告完成率",
  450. value: "58",
  451. unit: "%",
  452. color: "#10B837",
  453. icon: "report_completion_rate",
  454. subTitle: "年度计划完成率",
  455. subReport: {
  456. prefix: "2026年报告:",
  457. value: "58",
  458. total: "100",
  459. },
  460. },
  461. ];
  462. const createNormalPopover = (name, planTime = "2026-07-30") => ({
  463. name,
  464. planTime,
  465. completeTime: planTime,
  466. });
  467. const projectList = [
  468. {
  469. id: 1,
  470. name: "垦利10-1油田开发项目",
  471. progress: 20,
  472. timeline: {
  473. plan: [
  474. { type: "plan", flex: 1 },
  475. { type: "empty", flex: 13 },
  476. ],
  477. actual: [
  478. {
  479. type: "warning",
  480. flex: 1,
  481. label: "环境质量现状调查",
  482. popover: {
  483. name: "环境质量现状调查",
  484. planTime: "2026-08-05",
  485. remainDays: 2,
  486. },
  487. },
  488. { type: "empty", flex: 13 },
  489. ],
  490. },
  491. warning: 1,
  492. delay: 0,
  493. },
  494. {
  495. id: 2,
  496. name: "锦州25-1油田开发项目",
  497. progress: 43,
  498. timeline: {
  499. plan: [
  500. { type: "done", flex: 5 },
  501. { type: "plan", flex: 1 },
  502. { type: "empty", flex: 8 },
  503. ],
  504. actual: [
  505. {
  506. type: "actual",
  507. flex: 1,
  508. label: "环境质量现状调查",
  509. popover: createNormalPopover("环境质量现状调查"),
  510. },
  511. {
  512. type: "actual",
  513. flex: 1,
  514. label: "渔业资源现状调查",
  515. popover: createNormalPopover("渔业资源现状调查"),
  516. },
  517. {
  518. type: "actual",
  519. flex: 1,
  520. label: "环境风险预评价",
  521. popover: createNormalPopover("环境风险预评价"),
  522. },
  523. {
  524. type: "actual",
  525. flex: 1,
  526. label: "桌面路由方案",
  527. popover: createNormalPopover("桌面路由方案"),
  528. },
  529. {
  530. type: "delay",
  531. flex: 1,
  532. label: "通航安全影响咨询",
  533. popover: {
  534. name: "通航安全影响咨询",
  535. planTime: "2026-07-30",
  536. overdueDays: 3,
  537. },
  538. },
  539. {
  540. type: "actual",
  541. flex: 1,
  542. label: "安全预评价",
  543. popover: createNormalPopover("安全预评价"),
  544. },
  545. { type: "empty", flex: 8 },
  546. ],
  547. },
  548. warning: 0,
  549. delay: 1,
  550. },
  551. {
  552. id: 3,
  553. name: "渤中19-6凝析气田开发项目",
  554. progress: 100,
  555. timeline: {
  556. plan: [
  557. { type: "done", flex: 1 },
  558. { type: "done", flex: 1 },
  559. { type: "done", flex: 1 },
  560. { type: "done", flex: 1 },
  561. { type: "done", flex: 1 },
  562. { type: "done", flex: 1 },
  563. { type: "done", flex: 1 },
  564. { type: "done", flex: 1 },
  565. { type: "done", flex: 1 },
  566. { type: "done", flex: 1 },
  567. { type: "done", flex: 1 },
  568. { type: "done", flex: 1 },
  569. { type: "done", flex: 1 },
  570. { type: "done", flex: 1 },
  571. ],
  572. actual: [
  573. "环境质量现状调查",
  574. "环境影响评价",
  575. "可行性研究报告",
  576. "项目建议书",
  577. "核准批复",
  578. "总图设计",
  579. "工艺设计",
  580. "结构设计",
  581. "公用工程设计",
  582. "基本设计审查",
  583. "详细设计",
  584. "设备采购",
  585. "建造安装",
  586. "竣工验收",
  587. ].map((label) => ({
  588. type: "actual",
  589. flex: 1,
  590. label,
  591. popover: createNormalPopover(label),
  592. })),
  593. },
  594. warning: 0,
  595. delay: 0,
  596. },
  597. {
  598. id: 4,
  599. name: "曹妃甸6-4油田开发项目",
  600. progress: 0,
  601. timeline: { plan: [], actual: [] },
  602. warning: 0,
  603. delay: 0,
  604. },
  605. {
  606. id: 5,
  607. name: "旅大5-2油田开发项目",
  608. progress: 0,
  609. timeline: { plan: [], actual: [] },
  610. warning: 0,
  611. delay: 0,
  612. },
  613. ];
  614. </script>
  615. <style scoped lang="scss">
  616. .page-overview {
  617. box-sizing: border-box;
  618. display: flex;
  619. flex-direction: column;
  620. gap: 24px;
  621. width: 100%;
  622. min-height: 100%;
  623. padding: 24px;
  624. background: #f3f7fc;
  625. }
  626. .page-overview-title {
  627. margin: 0;
  628. font-family: PingFang SC, PingFang SC;
  629. font-weight: 600;
  630. font-size: 18px;
  631. color: #16213a;
  632. line-height: 25px;
  633. text-align: left;
  634. font-style: normal;
  635. }
  636. .page-overview-cards {
  637. display: grid;
  638. grid-template-columns: repeat(4, minmax(0, 1fr));
  639. gap: 12px;
  640. width: 100%;
  641. }
  642. .page-overview-card {
  643. box-sizing: border-box;
  644. display: flex;
  645. flex-direction: column;
  646. gap: 24px;
  647. min-width: 0;
  648. padding: 24px;
  649. background: #ffffff;
  650. border-radius: 4px;
  651. border: 1px solid #e5ebf3;
  652. }
  653. .page-overview-card--warning {
  654. background: #ffffff;
  655. border-radius: 4px 4px 4px 4px;
  656. border: 1px solid #ff8e38;
  657. }
  658. .page-overview-card--delay {
  659. position: relative;
  660. overflow: hidden;
  661. isolation: isolate;
  662. background: #ffffff;
  663. border-radius: 4px;
  664. border: 1px solid rgba(245, 72, 72, 0.35);
  665. &::before {
  666. content: "";
  667. position: absolute;
  668. z-index: 0;
  669. top: 50%;
  670. left: 50%;
  671. width: 220%;
  672. height: 220%;
  673. translate: -50% -50%;
  674. background: conic-gradient(
  675. from 0deg,
  676. transparent 0deg,
  677. transparent 300deg,
  678. rgba(245, 72, 72, 0.08) 325deg,
  679. rgba(245, 72, 72, 0.28) 342deg,
  680. #f54848 352deg,
  681. #ff8a8a 356deg,
  682. transparent 360deg
  683. );
  684. animation: page-overview-delay-beam 3.5s linear infinite;
  685. pointer-events: none;
  686. }
  687. &::after {
  688. content: "";
  689. position: absolute;
  690. inset: 1px;
  691. z-index: 1;
  692. border-radius: 3px;
  693. background: rgba(255, 255, 255, 0.92);
  694. pointer-events: none;
  695. }
  696. > * {
  697. position: relative;
  698. z-index: 2;
  699. }
  700. }
  701. .page-overview-card-icon {
  702. display: inline-flex;
  703. flex-shrink: 0;
  704. line-height: 0;
  705. }
  706. .page-overview-card-icon--shake {
  707. animation: page-overview-delay-shake 3.2s ease-in-out infinite;
  708. will-change: transform;
  709. transform-origin: 50% 50%;
  710. }
  711. @keyframes page-overview-delay-beam {
  712. to {
  713. transform: rotate(1turn);
  714. }
  715. }
  716. @keyframes page-overview-delay-shake {
  717. 0%,
  718. 72%,
  719. 100% {
  720. transform: rotate(0deg);
  721. }
  722. 75% {
  723. transform: rotate(-6deg);
  724. }
  725. 78% {
  726. transform: rotate(6deg);
  727. }
  728. 81% {
  729. transform: rotate(-4deg);
  730. }
  731. 84% {
  732. transform: rotate(4deg);
  733. }
  734. 87% {
  735. transform: rotate(-2deg);
  736. }
  737. 90% {
  738. transform: rotate(0deg);
  739. }
  740. }
  741. .page-overview-card-top {
  742. display: flex;
  743. align-items: flex-start;
  744. justify-content: space-between;
  745. gap: 12px;
  746. }
  747. .page-overview-card-main {
  748. display: flex;
  749. flex-direction: column;
  750. gap: 12px;
  751. min-width: 0;
  752. }
  753. .page-overview-card-label {
  754. font-family: PingFang SC, PingFang SC;
  755. font-weight: 600;
  756. font-size: 14px;
  757. color: #58657c;
  758. line-height: 20px;
  759. text-align: left;
  760. font-style: normal;
  761. }
  762. .page-overview-card-tip {
  763. font-family: PingFang SC, PingFang SC;
  764. font-weight: 400;
  765. font-size: 14px;
  766. color: #9aa5b8;
  767. line-height: 20px;
  768. text-align: left;
  769. }
  770. .page-overview-card-metric-block {
  771. display: flex;
  772. flex-direction: column;
  773. gap: 0;
  774. }
  775. .page-overview-card-metric {
  776. display: flex;
  777. align-items: baseline;
  778. gap: 4px;
  779. }
  780. .page-overview-card-num {
  781. font-family: PingFang SC, PingFang SC;
  782. font-weight: 600;
  783. font-size: 36px;
  784. line-height: 50px;
  785. text-align: left;
  786. }
  787. .page-overview-card-num--clickable {
  788. cursor: pointer;
  789. }
  790. .page-overview-card-unit {
  791. font-family: PingFang SC, PingFang SC;
  792. font-weight: 400;
  793. font-size: 14px;
  794. color: #9aa5b8;
  795. line-height: 50px;
  796. text-align: left;
  797. }
  798. .page-overview-card-metric-block:has(.page-overview-card-subtitle) {
  799. .page-overview-card-num,
  800. .page-overview-card-unit {
  801. line-height: 36px;
  802. }
  803. }
  804. .page-overview-card-bottom {
  805. display: flex;
  806. flex-wrap: nowrap;
  807. gap: 12px;
  808. width: 100%;
  809. }
  810. .page-overview-card-phase {
  811. box-sizing: border-box;
  812. display: flex;
  813. flex-direction: column;
  814. align-items: flex-start;
  815. flex: 1 1 0;
  816. width: 0;
  817. min-width: 0;
  818. padding: 4px 8px;
  819. background: #f6f9fd;
  820. border-radius: 4px;
  821. }
  822. .page-overview-card-phase-label {
  823. display: flex;
  824. align-items: flex-start;
  825. gap: 6px;
  826. font-family: PingFang SC, PingFang SC;
  827. font-weight: 400;
  828. font-size: 12px;
  829. color: #9aa5b8;
  830. line-height: 17px;
  831. text-align: left;
  832. > span {
  833. min-width: 0;
  834. white-space: normal;
  835. word-break: break-word;
  836. }
  837. }
  838. .page-overview-card-phase-dot {
  839. flex-shrink: 0;
  840. width: 6px;
  841. height: 6px;
  842. margin-top: 5.5px;
  843. background: #2382e7;
  844. border-radius: 50%;
  845. }
  846. .page-overview-card-phase-num {
  847. margin-top: auto;
  848. font-family: PingFang SC, PingFang SC;
  849. font-weight: 600;
  850. font-size: 16px;
  851. color: #16213a;
  852. line-height: 22px;
  853. text-align: left;
  854. white-space: nowrap;
  855. }
  856. .page-overview-card-rate-bottom {
  857. flex-direction: column;
  858. gap: 8px;
  859. margin-top: auto;
  860. }
  861. .page-overview-card-subtitle {
  862. font-family: PingFang SC, PingFang SC;
  863. font-weight: 400;
  864. font-size: 14px;
  865. color: #9aa5b8;
  866. line-height: 20px;
  867. text-align: left;
  868. }
  869. .page-overview-card-subreport {
  870. font-family: PingFang SC, PingFang SC;
  871. font-weight: 400;
  872. font-size: 14px;
  873. color: #58657c;
  874. line-height: 20px;
  875. text-align: left;
  876. font-style: normal;
  877. }
  878. .page-overview-card-subreport-num {
  879. color: #16213a;
  880. }
  881. @media (max-width: 1400px) {
  882. .page-overview-cards {
  883. grid-template-columns: repeat(2, minmax(0, 1fr));
  884. }
  885. }
  886. @media (max-width: 768px) {
  887. .page-overview-cards {
  888. grid-template-columns: minmax(0, 1fr);
  889. }
  890. }
  891. .page-overview-table {
  892. box-sizing: border-box;
  893. display: flex;
  894. flex-direction: column;
  895. gap: 14px;
  896. padding: 22px 16px 16px;
  897. background: #ffffff;
  898. border-radius: 4px;
  899. }
  900. .page-overview-table-header {
  901. display: flex;
  902. align-items: center;
  903. gap: 24px;
  904. min-width: 0;
  905. }
  906. .page-overview-table-title {
  907. flex-shrink: 0;
  908. font-family: PingFang SC, PingFang SC;
  909. font-weight: 600;
  910. font-size: 14px;
  911. color: #16213a;
  912. line-height: 20px;
  913. text-align: left;
  914. }
  915. .page-overview-table-legend {
  916. display: flex;
  917. flex-wrap: wrap;
  918. align-items: center;
  919. gap: 8px;
  920. min-width: 0;
  921. flex: 1;
  922. }
  923. .page-overview-table-legend-item {
  924. display: inline-flex;
  925. align-items: center;
  926. gap: 4px;
  927. font-family: PingFang SC, PingFang SC;
  928. font-weight: 400;
  929. font-size: 14px;
  930. color: #9aa5b8;
  931. line-height: 20px;
  932. text-align: left;
  933. white-space: nowrap;
  934. }
  935. .page-overview-table-legend-dot {
  936. flex-shrink: 0;
  937. width: 6px;
  938. height: 6px;
  939. border-radius: 50%;
  940. background: #d0d5dd;
  941. &.is-plan {
  942. background: #12aec2;
  943. }
  944. &.is-actual {
  945. background: #2382e7;
  946. }
  947. &.is-done {
  948. background: #10b837;
  949. }
  950. &.is-warning {
  951. background: #ff8e38;
  952. }
  953. &.is-delay {
  954. background: #f54848;
  955. }
  956. }
  957. .page-overview-table-filter {
  958. flex-shrink: 0;
  959. margin-left: auto;
  960. }
  961. .page-overview-table-scroll {
  962. width: 100%;
  963. overflow-x: auto;
  964. }
  965. .page-overview-table-grid {
  966. width: 100%;
  967. min-width: 960px;
  968. border-collapse: collapse;
  969. table-layout: fixed;
  970. font-size: 13px;
  971. color: #16213a;
  972. th,
  973. td {
  974. padding: 10px 16px;
  975. text-align: left;
  976. vertical-align: middle;
  977. }
  978. th {
  979. background: #edf1f6;
  980. border: 1px solid #dfe3e7;
  981. font-family: PingFang SC, PingFang SC;
  982. font-weight: 400;
  983. font-size: 14px;
  984. color: #58657c;
  985. line-height: 20px;
  986. text-align: left;
  987. }
  988. td {
  989. background: #ffffff;
  990. border-top: none;
  991. border-right: 1px solid #dfe3e7;
  992. border-bottom: 1px solid #dfe3e7;
  993. border-left: none;
  994. padding-top: 16px;
  995. padding-bottom: 16px;
  996. }
  997. td:first-child {
  998. border-left: 1px solid #dfe3e7;
  999. }
  1000. .col-name {
  1001. width: 14%;
  1002. }
  1003. .col-progress {
  1004. width: 10%;
  1005. }
  1006. .col-phase--feasibility {
  1007. width: calc(60% * 5 / 14);
  1008. }
  1009. .col-phase--basic {
  1010. width: calc(60% * 5 / 14);
  1011. }
  1012. .col-phase--detail {
  1013. width: calc(60% * 4 / 14);
  1014. }
  1015. .col-status {
  1016. width: 5%;
  1017. }
  1018. td.col-phase {
  1019. position: relative;
  1020. padding: 16px 0;
  1021. background: #ffffff;
  1022. }
  1023. td.col-status {
  1024. text-align: center;
  1025. }
  1026. }
  1027. .page-overview-table-name {
  1028. display: flex;
  1029. align-items: center;
  1030. gap: 6px;
  1031. min-width: 0;
  1032. }
  1033. .page-overview-table-name-link {
  1034. min-width: 0;
  1035. overflow: hidden;
  1036. color: #16213a;
  1037. text-decoration: none;
  1038. text-overflow: ellipsis;
  1039. white-space: nowrap;
  1040. }
  1041. .page-overview-table-progress {
  1042. display: flex;
  1043. align-items: center;
  1044. gap: 4px;
  1045. min-width: 0;
  1046. }
  1047. .page-overview-table-progress-track {
  1048. flex: 1;
  1049. min-width: 0;
  1050. height: 8px;
  1051. overflow: hidden;
  1052. background: #edf2f8;
  1053. border-radius: 0;
  1054. }
  1055. .page-overview-table-progress-bar {
  1056. height: 100%;
  1057. background: #2382e7;
  1058. border-radius: 0;
  1059. }
  1060. .page-overview-table-progress-text {
  1061. flex-shrink: 0;
  1062. min-width: 36px;
  1063. color: #58657c;
  1064. text-align: right;
  1065. }
  1066. .page-overview-table-gantt {
  1067. display: flex;
  1068. flex-direction: column;
  1069. gap: 2px;
  1070. width: 100%;
  1071. min-height: 36px;
  1072. }
  1073. .page-overview-table-gantt-row {
  1074. position: relative;
  1075. display: flex;
  1076. gap: 0;
  1077. width: 100%;
  1078. height: 16px;
  1079. min-width: 0;
  1080. box-sizing: border-box;
  1081. padding: 0 16px;
  1082. background-color: #edf1f6;
  1083. background-clip: content-box;
  1084. &::before,
  1085. &::after {
  1086. position: absolute;
  1087. top: 0;
  1088. bottom: 0;
  1089. z-index: 2;
  1090. width: 1px;
  1091. background: #dfe3e7;
  1092. content: "";
  1093. pointer-events: none;
  1094. }
  1095. /* 与内容区 5 / 5 / 4 分块对齐,分割线 #DFE3E7 */
  1096. &::before {
  1097. left: calc(16px + (100% - 32px) * 5 / 14);
  1098. }
  1099. &::after {
  1100. left: calc(16px + (100% - 32px) * 10 / 14);
  1101. }
  1102. }
  1103. .page-overview-table-gantt-seg-host {
  1104. z-index: 1;
  1105. display: flex;
  1106. min-width: 0;
  1107. height: 100%;
  1108. .page-overview-table-gantt-seg {
  1109. flex: 1;
  1110. width: 100%;
  1111. }
  1112. :deep(.el-tooltip__trigger) {
  1113. display: flex;
  1114. width: 100%;
  1115. min-width: 0;
  1116. height: 100%;
  1117. }
  1118. }
  1119. .page-overview-table-gantt-seg {
  1120. box-sizing: border-box;
  1121. z-index: 1;
  1122. display: flex;
  1123. align-items: center;
  1124. justify-content: center;
  1125. min-width: 0;
  1126. height: 100%;
  1127. overflow: hidden;
  1128. border-radius: 0;
  1129. background: transparent;
  1130. > span {
  1131. overflow: hidden;
  1132. padding: 0 6px;
  1133. font-family: PingFang SC, PingFang SC;
  1134. font-weight: 600;
  1135. font-size: 7px;
  1136. color: #ffffff;
  1137. line-height: 10px;
  1138. text-align: left;
  1139. text-overflow: ellipsis;
  1140. white-space: nowrap;
  1141. }
  1142. &.is-empty {
  1143. background: transparent;
  1144. }
  1145. &.is-plan {
  1146. background: #12aec2;
  1147. }
  1148. &.is-actual {
  1149. background: #2382e7;
  1150. }
  1151. &.is-done {
  1152. background: #10b837;
  1153. }
  1154. &.is-warning {
  1155. background: #ff8e38;
  1156. }
  1157. &.is-delay {
  1158. background: #f54848;
  1159. }
  1160. }
  1161. .page-overview-table-badge {
  1162. display: inline-flex;
  1163. align-items: center;
  1164. justify-content: center;
  1165. min-width: 24px;
  1166. height: 20px;
  1167. padding: 0 8px;
  1168. border-radius: 1px;
  1169. font-family: PingFang SC, PingFang SC;
  1170. font-weight: 600;
  1171. font-size: 14px;
  1172. line-height: 20px;
  1173. text-align: left;
  1174. &.is-zero {
  1175. color: #9aa5b8;
  1176. background: #edf1f6;
  1177. }
  1178. &.is-warning {
  1179. color: #ff8e38;
  1180. background: #fff8f3;
  1181. }
  1182. &.is-delay {
  1183. color: #f54848;
  1184. background: #fef4f4;
  1185. }
  1186. }
  1187. </style>
  1188. <style lang="scss">
  1189. .page-overview-gantt-popper.el-popover.el-popper {
  1190. padding: 12px 14px;
  1191. border: 1px solid #e5ebf3;
  1192. border-radius: 4px;
  1193. box-shadow: 0 4px 12px rgba(22, 33, 58, 0.08);
  1194. }
  1195. .page-overview-gantt-tip {
  1196. display: flex;
  1197. flex-direction: column;
  1198. gap: 6px;
  1199. font-family: PingFang SC, PingFang SC;
  1200. color: #16213a;
  1201. }
  1202. .page-overview-gantt-tip-name {
  1203. font-weight: 600;
  1204. font-size: 14px;
  1205. line-height: 20px;
  1206. }
  1207. .page-overview-gantt-tip-line {
  1208. font-weight: 400;
  1209. font-size: 13px;
  1210. line-height: 18px;
  1211. color: #58657c;
  1212. }
  1213. .page-overview-gantt-tip-days {
  1214. font-weight: 600;
  1215. &.is-warning {
  1216. color: #ff8e38;
  1217. }
  1218. &.is-delay {
  1219. color: #f54848;
  1220. }
  1221. }
  1222. .page-overview-report-dialog.el-dialog {
  1223. --el-dialog-padding-primary: 0;
  1224. padding: 0;
  1225. overflow: hidden;
  1226. border-radius: 4px;
  1227. .el-dialog__header {
  1228. margin: 0;
  1229. padding: 16px 20px;
  1230. background: #ffffff;
  1231. border-bottom: 1px solid #e5ebf3;
  1232. }
  1233. .el-dialog__headerbtn {
  1234. top: 16px;
  1235. right: 20px;
  1236. width: 24px;
  1237. height: 24px;
  1238. margin: 0;
  1239. .el-dialog__close {
  1240. font-size: 24px;
  1241. color: #9aa5b8;
  1242. }
  1243. }
  1244. .el-dialog__body {
  1245. margin: 0;
  1246. padding: 16px;
  1247. background: #f6f9fd;
  1248. }
  1249. .el-dialog__footer {
  1250. margin: 0;
  1251. padding: 12px;
  1252. background: #ffffff;
  1253. border-top: 1px solid #e5ebf3;
  1254. }
  1255. }
  1256. .page-overview-report-dialog-header {
  1257. display: flex;
  1258. align-items: center;
  1259. gap: 10px;
  1260. }
  1261. .page-overview-report-dialog-title {
  1262. font-family: PingFang SC, PingFang SC;
  1263. font-weight: 600;
  1264. font-size: 18px;
  1265. color: #16213a;
  1266. line-height: 25px;
  1267. text-align: left;
  1268. font-style: normal;
  1269. }
  1270. .page-overview-report-dialog-count {
  1271. font-weight: 600;
  1272. color: #ff8e38;
  1273. &.is-delay {
  1274. color: #f54848;
  1275. }
  1276. }
  1277. .page-overview-report-dialog-body {
  1278. display: flex;
  1279. flex-direction: column;
  1280. gap: 16px;
  1281. max-height: 60vh;
  1282. overflow-y: auto;
  1283. }
  1284. .page-overview-report-item {
  1285. overflow: hidden;
  1286. background: #ffffff;
  1287. border-radius: 4px;
  1288. }
  1289. .page-overview-report-item-title {
  1290. position: relative;
  1291. padding: 14px 8px 14px 12px;
  1292. font-family: PingFang SC, PingFang SC;
  1293. font-weight: 600;
  1294. font-size: 14px;
  1295. color: #58657c;
  1296. line-height: 20px;
  1297. text-align: left;
  1298. &::before {
  1299. position: absolute;
  1300. top: 50%;
  1301. left: 0;
  1302. width: 4px;
  1303. height: 14px;
  1304. background: #2382e7;
  1305. border-radius: 0 2px 2px 0;
  1306. transform: translateY(-50%);
  1307. content: "";
  1308. }
  1309. }
  1310. .page-overview-report-item-body {
  1311. display: flex;
  1312. flex-direction: column;
  1313. gap: 16px;
  1314. padding: 0 8px 14px 12px;
  1315. }
  1316. .page-overview-report-row {
  1317. display: flex;
  1318. align-items: flex-start;
  1319. justify-content: flex-start;
  1320. flex-wrap: nowrap;
  1321. gap: 24px;
  1322. width: 100%;
  1323. &.is-cols-4,
  1324. &.is-cols-2 {
  1325. .page-overview-report-field {
  1326. flex: 0 0 auto;
  1327. min-width: 0;
  1328. }
  1329. }
  1330. }
  1331. .page-overview-report-field {
  1332. display: flex;
  1333. align-items: baseline;
  1334. flex-shrink: 0;
  1335. gap: 8px;
  1336. min-width: 0;
  1337. white-space: nowrap;
  1338. text-align: left;
  1339. .label {
  1340. flex-shrink: 0;
  1341. font-family: PingFang SC, PingFang SC;
  1342. font-weight: 400;
  1343. font-size: 14px;
  1344. color: #9aa5b8;
  1345. line-height: 20px;
  1346. text-align: left;
  1347. }
  1348. .value {
  1349. flex-shrink: 0;
  1350. font-family: PingFang SC, PingFang SC;
  1351. font-weight: 400;
  1352. font-size: 14px;
  1353. color: #16213a;
  1354. line-height: 20px;
  1355. text-align: left;
  1356. white-space: nowrap;
  1357. &.is-warning {
  1358. color: #ff8e38;
  1359. }
  1360. &.is-delay {
  1361. color: #f54848;
  1362. }
  1363. }
  1364. }
  1365. .page-overview-report-dialog-footer {
  1366. display: flex;
  1367. justify-content: center;
  1368. }
  1369. .page-overview-report-dialog-close-btn {
  1370. padding: 6px 16px;
  1371. font-family: PingFang SC, PingFang SC;
  1372. font-weight: 400;
  1373. font-size: 14px;
  1374. color: #58657c;
  1375. line-height: 20px;
  1376. text-align: left;
  1377. background: #ffffff;
  1378. border: 1px solid #e4eaf2;
  1379. border-radius: 2px;
  1380. cursor: pointer;
  1381. }
  1382. </style>