Mars3D-screen_web/dist/assets/js/index-90321bc0.js

2 lines
9.4 KiB
JavaScript
Raw Normal View History

2023-10-10 09:36:22 +08:00
import{d as le,r as g,a as ue,o as ve,b as _e,D as fe,w as ge,c as P,e as a,f as c,h as A,i as M,g as n,t as h,F as y,j as S,z as N,n as me,k as se,S as he,T as pe,q as ye,s as Se,_ as xe}from"./index-ccab2584.js";import{_ as be}from"./dustMap-f6dfd693.js";import{_ as ke}from"./notData-cf10628e.js";import{L as we}from"./LeftMenu-58ad9ebd.js";import{T as F,U as W,aC as Te}from"./goverment-af43d804.js";const w=j=>(ye("data-v-adf1302f"),j=j(),Se(),j),Le={class:"main-box"},Ne=["onClick"],De={class:"projectName"},Ce={class:"leftMenu_item"},Ee={class:"leftMenu_item flx-justify-between"},Ae={style:{"margin-top":"5px"},class:"flx-justify-between"},Me=w(()=>n("img",{style:{"margin-right":"5px"},src:be,alt:""},null,-1)),je={class:"middleSize"},Ge={class:"gantt-box"},Ie={class:"header"},ze={class:"left-content"},Pe={class:"label"},qe=w(()=>n("div",{class:"right-content"},"\u5907\u6CE8\uFF1A\u66F4\u65B0\uFF08\u8FDB\u5EA6\u586B\u62A5\uFF09\u5185\u5BB9\u540E\u8BE5\u7518\u7279\u56FE\u5C06\u81EA\u52A8\u66F4\u65B0",-1)),Be={key:0,class:"gantt-chart"},Re={class:"thead"},Ve={class:"row"},Fe=w(()=>n("div",{class:"td fixed_1"},"\u5206\u90E8\u5206\u9879\u5DE5\u7A0B\u540D\u79F0",-1)),We=w(()=>n("div",{class:"td fixed_2"},"\u5F00\u59CB\u65E5\u671F",-1)),Oe=w(()=>n("div",{class:"td fixed_3",style:{"border-right":"1px solid #cbd1df"}},"\u5B8C\u6210\u65E5\u671F",-1)),Ue={class:"date"},$e={class:"month"},He={class:"days"},Xe={class:"tbody"},Ye={class:"row"},Je=["onClick"],Ke={class:"td fixed_2"},Qe={class:"td fixed_3"},Ze={class:"grids"},et=["onMouseenter"],tt={class:"children"},st={class:"td fixed_1"},lt={class:"td fixed_2"},nt={class:"td fixed_3"},ot={class:"grids"},at=["onMouseenter"],ct={class:"status"},it={class:"charger"},rt={key:1,class:"no-data"},dt=w(()=>n("img",{src:ke,alt:"notData"},null,-1)),ut=w(()=>n("div",null,"\u6682\u65E0\u6570\u636E",-1)),vt=[dt,ut],_t=le({name:"ProjectSupervisionRecord"}),ft=le({..._t,setup(j){g();const ne=ue([{label:"\u672A\u5F00\u59CB",color:"#35e5fd"},{label:"\u8FDB\u884C\u4E2D",color:"#f1d520"},{label:"\u5DF2\u5B8C\u6210",color:"#4fd389"},{label:"\u903E\u671F",color:"#F80840"}]),O=g(["#35e5fd","#f1d520","#4fd389","#F80840"]),x=g(0),f=g([]),T=g([]),m=g({pageNo:1,pageSize:7,total:0});g({pageNo:1,pageSize:12,total:0});const q=g(""),k=[],D=g(""),G=async e=>{x.value===0?D.value=e?e.projectSn:"":D.value=e?e.engineeringSn:"",x.value===0?q.value=e?e.projectName:"":q.value=e?e.engineeringName:"",H()},oe=async e=>{if(x.value===0){const{result:t}=await F({projectName:e,...m.value});f.value=t.records}else{const{result:t}=await W({engineeringName:e,...m.value});f.value=t.records}},ae=async e=>{if(x.value,x.value===0){const{result:t}=await F({...m.value,pageNo:e});f.value=t.records}else{const{result:t}=await W({...m.value,pageNo:e});f.value=t.records,m.value.total=+t.total}m.value.total=+res.result.total},U=(e,t)=>{if(e){const l=t.split("@|@"),i={refData:t,item:e};if(k.length==0){const o=[];o.push(i);const r={name:l[0],itemS:o};k.push(r)}else{let o=!0;for(let r=0;r<k.length;r++){const s=k[r];if(s.name===l){o=!1,s.itemS.push(i);break}}if(o){const r=[];r.push(i);const s={name:l[0],itemS:r};k.push(s)}}}},$=g(0),I=g(0),b=g(9999),B=g({display:"none",left:0,top:0}),R=g({day:0,name:""}),H=async()=>{let e={};if(x.value===0?e.projectSn=D.value:e.engineeringSn=D.value,e.projectSn||e.engineeringSn){const t=await Te(e);if(t){const l=X(t.result);T.value=l}}else T.value=[];setTimeout(function(){K()},300)},X=e=>(e.map(t=>{t.gantts=[],t.delay=0,t.children&&t.children.length>0&&X(t.children)}),e),Y=async()=>{const{result:e}=await F(m.value);f.value=e.records,f.value.map(t=>{let l=!1;t.showGif=l}),m.value.total=Number(e.total)},ce=async()=>{const{result:e}=await W(m.value);f.value=e.records,f.value.map(t=>{let l=!1;t.showGif=l}),m.value.total=+e.total};ve(()=>{}),_e(async()=>{H(),await Y(),G(f.value[0]),D.value=f.value[0].projectSn,q.value=f.value[0].projectName});const J=e=>{let{planStartTime:t,planEndTime:l,name:i}=e;const o=t.split("-"),r=l.split("-");let s=null,d=null;const u=!(o[2]%2);if(u){const p=o[2]-1;o[2]=p<10?"0"+p:p,t=o.join("-