123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443 |
- <template>
- <div>
- <div class="container" v-show="isOpen3d" key="container">
- <SearchBarMain />
- <div class="vr-bg" id="vr-bg-container"></div>
- <div id="player" style="width: 100%; height: 100%"></div>
- </div>
- <div
- class="ordinary-container"
- key="ordinary-container"
- v-show="!isOpen3d"
- @click="onBlur"
- >
- <div class="ordinary-left">
- <SearchBar
- class="search-container"
- v-model="inputValue"
- @focus="onFocus"
- @input="onInput"
- @blur="onBlur"
- ref="searchbar"
- />
- <div class="square-map" v-show="isOpenSquare && !isOpen">
- <el-row>
- <el-col v-for="(item, index) in images" :key="item" :span="8">
- <div
- class="grid-item-background"
- :style="{
- backgroundColor: item.alt == selectedBenchId ? '#fff': '#000'
- }
- "
- >
- <div class="grid-item">
- <img
- :src="item.url"
- @dblclick="handleDblClickImg(item.alt)"
- @click="handleClickImg(item.alt, index)"
- />
- </div>
- <div class="grid-item-close">
- <img
- width="30px"
- src="../../images/closeremotebench.png"
- @click="handleCloseImg(item.alt)"
- />
- </div>
- </div>
- </el-col>
- </el-row>
- </div>
- <div class="filter-bench-list" v-show="isOpen" z-index="9999">
- <dropdown :is-open="isOpen" ref="dropdown">
- <template v-slot:table>
- <table-component
- :data="filterBenchList"
- :filters="filters"
- :row-class-name="rowClassName"
- ></table-component>
- </template>
- </dropdown>
- </div>
- <div
- v-show="!isConnected && !isOpenSquare && !isOpen"
- class="ordinary-map-container"
- z-index="9998"
- >
- <div class="ordinary-map" id="ordinary-map">
- <!-- <img src="../../images/map.png" /> -->
- <div class="vr-bg" id="vr-bg-container"></div>
- <div id="playersmall">
- <div
- v-for="(item, key) in benchList"
- :key="key"
- class="bmMapItem el-icon-location"
- :style="{
- left: item.left + 'px',
- top: item.top + 'px',
- }"
- :class="item.status"
- @mouseover="bmMapItemSelect(key)"
- @mouseleave="bmMapItemOut(key)"
- >
-
- <Transition v-if="item.selected">
- <template>
- <div
- class="bmMapItemInfo"
- :class="{
- bmMapItemInfoSelected: item.selected,
- }"
- >
- <span>
- {{ item.name }}
- </span>
- <span style="display: flex; align-items: center">
- {{ item.Project }}
- </span>
- <div style="width: 100%">
- <span
- class="bmInfoMsSlideNameStatus"
- :class="{
- ['bmInfoMsSlideNameStatus ' + item.status]: true,
- }"
- ></span>
- </div>
- <!-- <div class="bmMapItemInfoAfter"></div> -->
- </div>
- </template>
- </Transition>
- </div>
- </div>
- <div class="ordinary-map-ex">
- <div class="square-count">
- <status-bar
- :ready="readyCount"
- :occupied="occupiedCount"
- :offline="offlineCount"
- ></status-bar>
- </div>
- <!-- <div class="bench-list">
- <div class="bench-list-buttons" @click="clickBenchList">
- My Bench List
- </div>
- </div> -->
- </div>
- </div>
- <div class="ordinary-map-hidden" v-show="false">
- <div class="ordinary-map-blocker" id="ordinary-map-blocker">
- </div>
- </div>
- </div>
- <div v-show="isConnected && !isOpenSquare && !isOpen" class="origin-map">
- <Transition name="slide">
- <div class="bmMap" v-if="false">
- <dropdown :is-open="isOpen" ref="dropdown">
- <template v-slot:table>
- <table-component
- :data="benchList"
- :filters="filters"
- :row-class-name="rowClassName"
- ></table-component>
- </template>
- </dropdown>
- <div class="bmMapImage">
- <div
- v-for="(item, key) in benchList"
- :key="key"
- class="bmMapItem el-icon-location"
- :style="{
- left: item.left + '%',
- top: item.top + '%',
- }"
- :class="item.status"
- @click="bmMapItemSelect(key)"
- >
- <Transition v-if="item.selected">
- <template>
- <div
- class="bmMapItemInfo"
- :class="{
- bmMapItemInfoSelected: item.selected,
- }"
- >
- <span>
- {{ item.name }}
- </span>
- <span style="display: flex; align-items: center">
- {{ item.Project }}
- </span>
- <div style="width: 100%">
- <span
- class="bmInfoMsSlideNameStatus"
- :class="{
- ['bmInfoMsSlideNameStatus ' + item.status]: true,
- }"
- ></span>
- </div>
- <!-- <div class="bmMapItemInfoAfter"></div> -->
- </div>
- </template>
- </Transition>
- </div>
- </div>
- </div>
- </Transition>
- <Transition name="slide">
- <div class="bmBench" v-if="benchDisplayVisible">
- <div class="bmBenchBox">
- <img
- class="bmBenchImg bmBenchImgUpper"
- ref="bmBenchRef"
- :src="
- currentScreen == 'upper' ? benchImgUpper : benchImgLower
- "
- alt=""
- />
- <div
- @mousedown="controlCursorMouseDown"
- @mousemove="controlCursorMouseMove"
- @mouseleave="controlCursorMouseOut"
- @mouseup="controlCursorMouseUp"
- class="bmBenchTrailUpper"
- >
- <Transition>
- <div
- v-if="ifBmBenchTrailUpperCursorTap"
- class="bmBenchTrailUpperCursorTap"
- :style="{
- left: trailCursorPosition.left,
- top: trailCursorPosition.top,
- }"
- ></div>
- </Transition>
- <Transition>
- <div
- v-if="ifBmBenchTrailUpperCursorSwipe"
- class="bmBenchTrailUpperCursorSwipe"
- :style="{
- left: 'calc(' + trailCursorPosition.left + '% - 1vh)',
- top: 'calc(' + trailCursorPosition.top + '% - 1vh)',
- }"
- ></div>
- </Transition>
- <Transition>
- <div
- v-if="ifBmBenchTrailUpperCursorSwipe"
- class="bmBenchTrailUpperCursorSwipe bmBenchTrailUpperCursorSwipe2"
- :style="{
- left:
- 'calc(' + trailCursorPosition.left + '% - 0.75vh)',
- top: 'calc(' + trailCursorPosition.top + '% - 0.75vh)',
- }"
- ></div>
- </Transition>
- <Transition>
- <div
- v-if="ifBmBenchTrailUpperCursorSwipe"
- class="bmBenchTrailUpperCursorSwipe bmBenchTrailUpperCursorSwipe3"
- :style="{
- left: 'calc(' + trailCursorPosition.left + '% - 0.5vh)',
- top: 'calc(' + trailCursorPosition.top + '% - 0.5vh)',
- }"
- ></div>
- </Transition>
- <Transition>
- <div
- v-if="ifBmBenchTrailUpperCursorPress"
- class="bmBenchTrailUpperCursorPress"
- :style="{
- left: 'calc(' + trailCursorPosition.left + '% - 1vh)',
- top: 'calc(' + trailCursorPosition.top + '% - 1vh)',
- }"
- ></div>
- </Transition>
- <Transition>
- <div
- v-if="ifBmBenchTrailUpperCursor"
- class="bmBenchTrailUpperCursor"
- :style="{
- left:
- 'calc(' + controlCursorPosition.left + 'px - 1vh)',
- top: 'calc(' + controlCursorPosition.top + 'px - 1vh)',
- }"
- ></div>
- </Transition>
- </div>
- </div>
- </div>
- </Transition>
- <img :src="mainSnapshot" />
- </div>
- <image-list
- v-show="isConnected && !isOpenSquare && !isOpen"
- :images="images"
- :page-size="pageSize"
- :current-page="currentPage"
- :current-bench="connetedBenchId"
- @handleImageClick="handleImageClick"
- @prev-page="prevPage"
- @next-page="nextPage"
- class="image-container"
- />
- <el-row v-show="isConnected && !isOpenSquare && !isOpen" class="bench-button">
- <el-col :span="5" class="btn-item" style="text-align: center">{{
- currentBench && currentBench.name
- }}</el-col>
- <el-col
- :span="3"
- class="btn-item"
- :class="{ benchBtnActive: isPlaying }"
- >
- <el-tooltip class="item" effect="dark" content="音量" placement="top-start">
- <img
- @click="connectAudioDevice('collectAudio')"
- src="../../images/sound.png"
- />
- </el-tooltip>
-
- </el-col>
- <el-col
- :span="3"
- class="btn-item"
- :class="{ benchBtnActive: isRecording }"
- >
- <el-tooltip class="item" effect="dark" content="麦克风" placement="top-start">
- <img
- @click="connectAudioDevice('playAudio')"
- src="../../images/mic.png"
- />
- </el-tooltip>
-
- </el-col>
- <el-col
- :span="3"
- class="btn-item"
- :class="{ benchBtnActive: displayTapMode }"
- >
- <el-tooltip class="item" effect="dark" content="点击" placement="top-start">
- <img @click="tapModeControl" src="../../images/pointer.png" />
- </el-tooltip>
-
- </el-col>
- <el-col :span="3" class="btn-item" v-show="false">
- <el-tooltip class="item" effect="dark" content="日志" placement="top-start">
- <img @click="showLogBox" src="../../images/book.png" />
- </el-tooltip>
-
- </el-col>
- <el-col :span="3" class="btn-item">
-
- <el-tooltip class="item" effect="dark" content="唤醒语音助手按钮" placement="top-start">
- <img @click="pressPtt" src="../../images/robot.png" />
- </el-tooltip>
- </el-col>
- <!-- <el-col :span="3" class="btn-item" @click="clickBenchList">
- <el-tooltip class="item" effect="dark" content="最小化按钮" placement="top-start">
- <img @click="gotoGrid" src="../../images/grid.png" />
- </el-tooltip>
-
- </el-col> -->
- <el-col :span="3" class="btn-item">
- <el-tooltip class="item" effect="dark" content="断开远程控制按钮" placement="top-start">
- <img @click="disconnectBench" src="../../images/disconnect.png" />
- </el-tooltip>
-
- </el-col>
- </el-row>
-
- </div>
- <div class="origin-right">
- <!-- <div class="square-count" v-show="!currentBench.selected && isOpenSquare">
- <status-bar
- :ready="readyCount"
- :occupied="occupiedCount"
- :offline="offlineCount"
- ></status-bar>
- </div> -->
- <!-- <div
- class="origin-basic"
- v-show="currentBench.type == 2 && !isOpenSquare"
- @dblclick="handleInfoDblClick(currentBench.benchId)"
- >
- <h2 @click="bmMapItemActivate">{{ currentBench.name }} 🔗</h2>
- <div class="originBasicRow">
- <div>
- <span>Location:</span>
- <span>Automation Lab-7E</span>
- </div>
- <div>
- <span>MU_SW</span>
- <span>{{ currentBench.MU_SW }}</span>
- </div>
- </div>
- <div class="originBasicRow">
- <div>
- <span>Cluster</span>
- <span>{{ currentBench.Cluster }}</span>
- </div>
- <div>
- <span>Market</span>
- <span>{{ currentBench.Market }}</span>
- </div>
- </div>
- <div class="originBasicRow">
- <div>
- <span>Box IP</span>
- <span>{{ currentBench.ip }}</span>
- </div>
- <div>
- <span>Box Version</span>
- <span>{{ currentBench.equipment?.version }}</span>
- </div>
- </div>
- </div> -->
- <!-- <div
- class="secondScreen"
- v-if="benchDisplayLowerVisible && !isOpenSquare"
- @click="switchScreen"
- >
- <img
- class="bmBenchImg bmBenchImgLower"
- :src="currentScreen == 'upper' ? benchImgLower : benchImgUpper"
- alt=""
- />
- </div> -->
- <!--<div
- class="origin-basic backgroundBox"
- v-show="currentBench.type == 2"
- @dblclick="handleInfoDblClick(currentBench.benchId)"
- >
- <h2 @click="bmMapItemActivate">{{ currentBench.name }} 🔗</h2>
- <div class="originBasicRow">
- <div>
- <span>Location:</span>
- <span>Automation Lab-7E</span>
- </div>
- <div>
- <span>MU_SW</span>
- <span>{{ currentBench.MU_SW }}</span>
- </div>
- </div>
- <div class="originBasicRow">
- <div>
- <span>Cluster</span>
- <span>{{ currentBench.Cluster }}</span>
- </div>
- <div>
- <span>Market</span>
- <span>{{ currentBench.Market }}</span>
- </div>
- </div>
- <div class="originBasicRow">
- <div>
- <span>Box IP</span>
- <span>{{ currentBench.ip }}</span>
- </div>
- <div>
- <span>Box Version</span>
- <span>{{ currentBench.equipment?.version }}</span>
- </div>
- </div>
- </div>
- <div
- class="secondScreen"
- v-if="benchDisplayLowerVisible"
- @click="switchScreen"
- >
- <img
- class="bmBenchImg bmBenchImgLower"
- :src="currentScreen == 'upper' ? benchImgLower : benchImgUpper"
- alt=""
- />
- </div>-->
- <div class="ordinary-list">
- <TabList
- :tabs="tabs"
- :itemRender="itemRender"
- :planRender="planRender"
- :taskRender="taskRender"
- :issueRender="issueRender"
- :planList="planList"
- :caseList="caseList"
- :autoCaseList="autoCaseList"
- :is-show-auto-case-list="isShowAutoCaseList"
- :planName="planName"
- :taskName="taskName"
- :caseName="caseName"
- :is-show-plan-list="isShowPlanList"
- :is-show-task-list="isShowTaskList"
- :is-show-case-commit="isShowCaseCommit"
- :is-show-case-list="isShowCaseList"
- :is-show-case-detail="isShowCaseDetail"
- :clickBackToTaskList="clickBackToTaskList"
- :clickBackToPlanList="clickBackToPlanList"
- :selectRowPlan="selectRowPlan"
- :caseProject="caseProject"
- :currentCase="currentCase"
- :caseActive="caseActive"
- :caseFunction="caseFunction"
- caseContent="caseContent"
- :isShowAutoCaseCommit="isShowAutoCaseCommit"
- @turnNextCase="turnNextCase"
- :caseSubFunction="caseSubFunction"
- :caseMarket="caseMarket"
- :caseLanguage="caseLanguage"
- :selectRowCase="selectRowCase"
- :clickBackToAutoPlanList="clickBackToAutoPlanList"
- :tabClass="tabClass"
- :planBack="planBack"
- :clickBackToPlan="clickBackToPlan"
- :submitManualCase="submitManualCase"
- :clickBackToCaseList="clickBackToCaseList"
- :isShowIssueList="isShowIssueList"
- :isShowIssueDetail="isShowIssueDetail"
- :currentIssue="currentIssue"
- :currentPlanId="currentPlanId"
- :currentPlanName="currentPlanName"
- :submitAutoCase="submitAutoCase"
- :clickBackToAutoCaseList="clickBackToAutoCaseList"
- :clickBackToIssueList="clickBackToIssueList"
- :benchDisplayLowerVisible="benchDisplayLowerVisible"
- :currentScreen="currentScreen"
- :benchImgLower="benchImgLower"
- :benchImgUpper="benchImgUpper"
- :readyCount="readyCount"
- :occupiedCount="occupiedCount"
- :offlineCount="offlineCount"
- ></TabList>
- </div>
- </div>
- </div>
- <bench-detail
- :is-detail-visible="isDetailVisible"
- :is-remote-btn-visible="isRemoteBtnVisible"
- :closeDetail="closeDetail"
- ref="benchdetail"
- :bench="benchDetail"
- @changeCurrentBench="changeCurrentBench"
- />
- <!-- <div v-show="mouseStatus" class="mouse-flow bmMapItem el-icon-location" :style="{ left: mouseX+'px', top: mouseY+'px' }">
- <div class="mouse-flow-title">{{ mouseBenchDetail.name }}</div>
- <div class="mouse-flow-dep">{{ mouseBenchDetail.Platform }}</div>
- <div class="mouse-flow-status" :class="mouseBenchDetail.status"></div>
- </div> -->
- <div
- class="bmMapItemInfoWater"
- v-show="mouseStatus"
- :class="{
- bmMapItemInfoSelected: mouseStatus,
- }"
- :style="{ left: mouseX+'px', top: mouseY+'px' }"
- >
- <span>
- {{ mouseBenchDetail.name }}
- </span>
- <span style="display: flex; align-items: center">
- {{ mouseBenchDetail.Project }}
- </span>
- <div style="width: 100%">
- <span
- class="bmInfoMsSlideNameStatus"
- :class="{
- ['bmInfoMsSlideNameStatus ' + mouseBenchDetail.status]: true,
- }"
- ></span>
- </div>
- <!-- <div class="bmMapItemInfoAfter"></div> -->
- </div>
- </div>
- </template>
- <script>
- import "./index.less";
- import "./origin.less";
- import "./square.less";
- import TabList from "../../components/TabList";
- import SearchBar from "../../components/SearchBar";
- import Dropdown from "./components/DropDown";
- import TableComponent from "./components/TableComponent";
- import BenchDetail from "../../components/BenchDetail";
- import StatusBar from "../../components/StatusBar";
- //import { benchList } from './api'
- import THREE from "three";
- import { uwbMain } from "../../uwb-sample";
- import { mapState } from "vuex";
- import ImageList from "./components/ImageList";
- import webSocket from "../../service/ws";
- import bus from "../../service/bus";
- import { FBXLoader } from "../../FBXLoader.js";
- import SearchBarMain from "../../components/SearchBarMain";
- const ws = new webSocket();
- let that = null;
- let wsArray = [];
- let wsArrayLength = 0;
- for (var iR = 0; iR < 50; iR++) {
- const wsRemote = new webSocket();
- wsRemote.open().then((res) => {
- // console.log("res", res);
- });
- wsArray.push(wsRemote);
- }
- export default {
- components: {
- StatusBar,
- TabList,
- SearchBar,
- Dropdown,
- TableComponent,
- BenchDetail,
- ImageList,
- SearchBarMain,
- },
- data() {
- return {
- inputValue: "",
- isDetailVisible: false,
- isRemoteBtnVisible: false,
- isShowPlanList: false,
- isShowCaseList: false,
- isShowAutoCaseList: false,
- isShowCaseDetail: false,
- isShowCaseCommit: false,
- isShowIssueList: true,
- isShowIssueDetail: false,
- isShowAutoCaseCommit: false,
- taskName: "",
- planName: "",
- caseName: "",
- caseProject: "",
- caseActive: "",
- caseFunction: "",
- caseSubFunction: "",
- caseMarket: "",
- caseLanguage: "",
- caseContent: "",
- isShowTaskList: true,
- benchDisplayVisible: false,
- mainSnapshot: "",
- currentBench: {},
- readyCount: 10,
- occupiedCount: 5,
- offlineCount: 3,
- previousSelectedBenchList: [],
- selectedBenchList: [],
- renderBenchList: true,
- filters: [],
- currentCase: null,
- currentIssue: null,
- currentPlanId: null,
- currentPlanName: null,
- currentCaseIndex: 0,
- tabs: [
- {
- title: "Bench",
- list: [
- // {
- // title: 'Item 1',
- // description: '1111111',
- // image: 'item1.jpg',
- // tag: 'Tag 1'
- // },
- // {
- // title: 'Item 2',
- // description: '32222',
- // image: 'item2.jpg',
- // tag: 'Tag 2'
- // },
- // {
- // title: 'Item 3',
- // description: '1111111',
- // image: 'item3.jpg',
- // tag: 'Tag 3'
- // }
- ],
- },
- {
- title: "Task",
- list: [
- {
- itemtype: 2,
- title: "Item 4",
- description: "1111111",
- image: "item4.jpg",
- tag: "Tag 4",
- },
- {
- itemtype: 2,
- title: "Item 5",
- description: "1111111",
- image: "item5.jpg",
- tag: "Tag 5",
- },
- {
- itemtype: 2,
- title: "Item 6",
- description: "1111111",
- image: "item6.jpg",
- tag: "Tag 6",
- },
- ],
- },
- {
- title: "Issue",
- list: [
- {
- title: "Item 7",
- image: "item7.jpg",
- tag: "Tag 7",
- },
- {
- title: "Item 8",
- image: "item8.jpg",
- tag: "Tag 8",
- },
- {
- title: "Item 9",
- image: "item9.jpg",
- tag: "Tag 9",
- },
- ],
- },
- ],
- tableData: [
- {
- benchname: "Bench 1",
- project: "Project A",
- carline: "Carline A",
- market: "Market A",
- sw: "SW 1",
- status: "Status A",
- },
- {
- benchname: "Bench 2",
- project: "Project B",
- carline: "Carline B",
- market: "Market B",
- sw: "SW 2",
- status: "Status B",
- },
- // ...
- ],
- currentPage: 1,
- pageSize: 5,
- benchId: "219",
- mainSnapshot: "",
- timer: 0,
- platform: null,
- connetedBenchId: "",
- displayTapMode: false,
- controlCursorPosition: {},
- ifBmBenchTrailUpperCursorTap: false,
- benchLog: [],
- trailCursorPosition: {},
- audioName: "",
- ifBmBenchTrailUpperCursorSwipe: false,
- ifBmBenchTrailUpperCursorPress: false,
- ifBmBenchTrailUpperCursor: false,
- controlStartPoint: {},
- ifShowLogBox: false,
- filterData: {
- keyword: "",
- currentPage: 1,
- pageSize: 10,
- status: [4, 3, 5, 0, 2, 6],
- types: [],
- "basic attributes": [],
- ips: [],
- orderBy: "desc",
- orderkey: "id",
- },
- benchImgUpper: "",
- benchImgUpperMap: {},
- currentScreen: "upper",
- benchDisplayLowerVisible: false,
- benchImgLower: "",
- benchImgLowerMap: {},
- isPlaying: false,
- isRecording: false,
- loopSendAudioTime: null,
- sendAudioString: "",
- vadThreshold: 0,
- recStream: null,
- paAc: null,
- paSource: null,
- paScriptNode: null,
- sempleRateMultiple: null,
- recordSuperposeArr: [],
- sempleRateHandlingThreshold: null,
- playAudioBenchList: [],
- isConnected: false,
- currentBenchId: 0,
- gridItems: [1, 2, 3, 4, 5, 6, 7, 8, 9],
- timerIdMap: { num: 0 },
- timerId: 0,
- autoPlanResultInterval: 0,
- remoteBenchList: [],
- waterdotrefresh: false,
- selectedBenchId: 0,
- benchDetail: {},
- mouseBenchDetail: {},
- brnchshow:true,//用来判断是否点击过一次
- };
- },
- computed: {
- // tabClass(){
- // return 'ordinary';
- // },
- tabClass() {
- return this.currentBench.type == 2 ? "short" : "long";
- },
- ...mapState({
- isOpen: (state) => {
- return state.common.isOpen
- },
- mouseX: (state) => {
- return state.benchList.mouseoverx
- },
- mouseY: (state) => {
- return state.benchList.mouseovery
- },
- mouseStatus: (state) => {
- return state.benchList.mouseoverstatus
- },
- mouseBenchId: (state) => {
- return state.benchList.mouseoverbenchid
- },
- images: (state) => {
- console.log(state.benchList.benchImgList, "imageList");
- return state.benchList.benchImgList;
- },
- isOpenSquare: (state) => {
- return state.common.isOpenSquare;
- },
- isOpen3d: (state) => {
- return state.common.isOpen3d;
- },
- benchList: (state) => {
- return state.benchList.benchList;
- },
- taskList: (state) => {
- return state.taskList.taskList;
- },
- planList: (state) => {
- console.log(state.planList.planList, "planList==============");
- let planList = state.planList.planList.concat(
- state.planList.autoPlanList
- );
- planList = planList.sort((p1, p2) => p1.id - p2.id);
- return planList;
- },
- autoPlanList: (state) => {
- return state.planList.autoPlanList;
- },
- caseList: (state) => {
- return state.caseList.caseList;
- },
- autoCaseList: (state) => {
- return state.caseList.autoCaseList;
- },
- issueList: (state) => {
- return state.issueList.issueList;
- },
- autoTaskStatus: (state) => {
- return state.caseList.autoTaskStatusMap[state.caseList.currentTaskIndex];
- },
- filterBenchList: (state) => {
- return state.benchList.filterBenchList.sort((a, b) => {
- let i = 0;
- let j = 0;
- for (let m = 0; m < a.MU_SW.length; m++) {
- i += a.MU_SW.charCodeAt(m);
- }
- for (let n = 0; n < b.MU_SW.length; n++) {
- j += b.MU_SW.charCodeAt(n);
- }
- return i - j;
- });
- },
- autoTaskStatusMap: (state) => {
- return state.caseList.autoTaskStatusMap
- },
- autoTaskPercentMap: (state) => {
- return state.caseList.autoTaskPercentMap
- }
- }),
- },
- created() {
- // uwbMain("player", window.innerWidth, window.innerHeight, "panorama");
- ws.open().then((res) => {
- // console.log("res", res);
- });
- window.handleListClick = this.handleListClick;
- window.handleBenchClick = this.handleBenchClick;
- window.handleClickTask = this.handleClickTask.bind(this);
- window.selectRowPlan = this.selectRowPlan.bind(this);
- window.selectRowCase = this.selectRowCase.bind(this);
- window.selectRowIssue = this.selectRowIssue.bind(this);
- window.handleListDbClick = this.handleListDbClick;
- window.showBenchPos = this.showBenchPos;
- window.handleClickImg = this.handleClickImg;
- let that = this;
- window.bmMapItemSelect = this.bmMapItemSelect.bind(this);
- window.bmMapItemOut = this.bmMapItemOut.bind(this);
- window.bmMapItemUnSelect = this.bmMapItemUnSelect.bind(this);
- window.handleClickIssue = this.handleClickIssue.bind(this);
- window.selectBench = this.selectBench.bind(this);
- that.$store.dispatch("taskList/clearTaskList");
- that.$store.dispatch("taskList/fetchTaskList", {
- page_num: 1,
- page_size: 1000,
- });
- window.bmMapItemActivate = this.bmMapItemActivate;
-
- this.$store.dispatch("benchList/fetchBenchList").then(()=>{
- this.getImageName();
- });
-
- // 调用定时器方法,返回定时器id,用于按条件清空
- that.timerId = that.myInterval((count) => {
- // console.log(count)
- this.$store.dispatch("benchList/fetchBenchList");
- if (!this.waterdotrefresh) {
- this.waterdotrefresh = true;
- window.getsqlData(window.sdkInstance, window.uwbInstance,true)
- }
- this.refreshBenchStatus()
- if (count > 30000) {
- console.log("end");
- that.clearMyInterval(that.timerId);
- }
- }, 10000);
- setTimeout(() => {
- this.$store.dispatch("benchList/fetchBenchList");
- if (!this.waterdotrefresh) {
- window.getsqlData(window.sdkInstance, window.uwbInstance,false)
- }
- this.refreshBenchStatus()
- },2000)
- this.$store.dispatch("issueList/fetchIssueList", {
- bench_id: null,
- page_num: 1,
- page_size: 10,
- processor: 0,
- ticket_status: 0,
- ticket_type: 0,
- });
- },
- async mounted() {
- that = this;
- //this.getBenchList();
- console.log(this.benchList, "benchList");
- this.tabs[0].list = this.benchList;
- this.tabs[1].list = this.taskList;
- this.tabs[2].list = this.issueList;
- let mapDom = document.getElementsByClassName("ordinary-map")[0];
- let style = getComputedStyle(mapDom);
- let width = parseFloat(style.width);
- let height = parseFloat(style.height);
- let ratio = 1.8;
- window.renderWidth = width * ratio;
- window.renderHeight = height * ratio;
- sessionStorage.setItem('3dMode', 0)
- uwbMain('player', width * ratio, height * ratio, "floorplan");
- // window.sdkInstance.sceneRenderer.updateScreenSize(width * ratio, height * ratio);
- setTimeout(() => {
- var element = document.getElementById('house-player');
- element.style.marginLeft = ((width - (width * ratio)) / 2) + 'px';
- element.style.marginTop = ((height - (height * ratio)) / 2) + 'px';
- }, 3500)
- setTimeout(() => {
- let self = this;
- var objRBL = this.remoteBenchList;
- if (objRBL) {
- console.log("objRBL", objRBL);
- wsArrayLength = objRBL.length;
- for (var iW = 0; iW < objRBL.length; iW++) {
- var i = JSON.parse(JSON.stringify(iW));
- let benchId = JSON.parse(JSON.stringify(objRBL[i]));
- setTimeout(() => {
- console.log("connect bench", benchId);
- wsArray[i]
- ?.connectBench({ bench_id: String(benchId) })
- .then((res) => {
- console.log("connect bench success", benchId);
- self.getBenchImage(benchId, 1, wsArray[i], () => {});
- })
- .catch((err) => {
- console.log("connect bench failed", benchId);
- this.$message({
- message: "This bench is offline",
- // message: "",
- type: "warning",
- });
- });
- }, iW * 2000);
- }
- }
- }, 3000);
- bus.on("newLog", (param) => {
- if (param.action) {
- this.benchLog.unshift(param);
- // document.getElementsByClassName("bmLogBottom")[0].scrollIntoView();
- if (Object.keys(param.action).length != 0) {
- // console.log("actionType", param.action.actionType);
- let position = param.action.pos;
- // console.log("position", position);
- if (param.action.actionType == "swipe on") {
- this.ifBmBenchTrailUpperCursorSwipe = true;
- this.trailCursorPosition.left = (position[0] / 1540) * 100;
- this.trailCursorPosition.top = (position[1] / 720) * 100;
- setTimeout(() => {
- this.trailCursorPosition.left =
- ((position[0] + position[2]) / 1540) * 100;
- this.trailCursorPosition.top =
- ((position[1] + position[3]) / 720) * 100;
- }, 800);
- setTimeout(() => {
- this.ifBmBenchTrailUpperCursorSwipe = false;
- }, 2000);
- } else if (param.action.actionType == "tap on") {
- this.ifBmBenchTrailUpperCursorTap = true;
- setTimeout(() => {
- this.ifBmBenchTrailUpperCursorTap = false;
- }, 1500);
- this.trailCursorPosition.left =
- "calc(" + ((position[0] * 2) / 1540) * 100 + "% - 1vh)";
- this.trailCursorPosition.top =
- "calc(" + ((position[1] * 2) / 720) * 100 + "% - 1vh)";
- } else if (param.action.actionType == "longPress on") {
- this.ifBmBenchTrailUpperCursorPress = true;
- setTimeout(() => {
- this.ifBmBenchTrailUpperCursorPress = false;
- }, 1500);
- this.trailCursorPosition.left = ((position[0] * 2) / 1540) * 100;
- this.trailCursorPosition.top = ((position[1] * 2) / 720) * 100;
- } else if (param.action.actionType == "audio") {
- // console.log("newLog", param);
- let fileName = param.action.file_name;
- console.log("audiofileName", fileName);
- this.audioName = fileName;
- bus.emit("planAudioEmit");
- }
- }
- }
- if (this.benchLog.length > 100) {
- this.benchLog.pop();
- }
- });
- bus.on("switchScreen", (param) => {
- this.currentScreen = param.currentScreen;
- });
- bus.on("goHome", () => {
- this.isConnected = false;
- this.$store.dispatch("common/setSquareStatus", false);
- this.$store.dispatch("common/setConnectedStatus", false);
- });
-
- {
- this.autoPlanResultInterval = setInterval(() => {
- let autoCurrentTaskData = window.localStorage.getItem("autoCurrentTaskData");
- let autoCurrentTaskName = window.localStorage.getItem("autoCurrentTaskName");
- autoCurrentTaskData = JSON.parse(autoCurrentTaskData);
- autoCurrentTaskName = JSON.parse(autoCurrentTaskName);
- if (autoCurrentTaskData) {
- for (let planId in autoCurrentTaskData) {
- let planExecId = autoCurrentTaskData[planId];
- if (autoCurrentTaskName) {
- let planName = autoCurrentTaskName[planId];
- if (planName) {
- this.$store.dispatch("caseList/fetchAutoCaseList", {
- planId: planId,
- planName: planName
- });
- }
- }
-
- this.$store.dispatch("caseList/setPlanExecId", planExecId);
- this.$store.dispatch('caseList/getAutoPlanResult',{planId, planExecId});
- }
- }
- }, 5000);
- }
- },
- methods: {
- getImageName() {
- var sqlstr = "SELECT * FROM dat_bench_extend order by bench_id asc";
- let msg = {
- cmd: "query", // server端要进行判断的
- data: {
- name: "name", // 这个无所谓怎么写,有就行
- sql: sqlstr,
- },
- };
- window.vm.$socket.emit("REPT", msg, (datas) => {
- let result = datas.data;
- for (var item of result) {
- console.log("hhhh",item)
-
- var currentBench = this.benchList.find((a) => a.id == item.bench_id);
- if (currentBench) {
- currentBench.image = require("../../assets/bench_img/"+item.bench_img);
- }
- this.tabs[0].list = this.benchList;
-
- }
- })
- },
- changeCurrentBench(benchId) {
- this.isDetailVisible = false;
- if (this.isOpen3d) {
- this.$store.dispatch("common/toggle3dStatus");
- }
- this.selectBench(benchId);
- },
- myInterval(callback, interval) {
- // 每设置一次定时器,num++ 代表系统中有num个自定义的定时器
- this.timerIdMap.num++;
- // 第 num 个定时器的id
- let intervalId = "id" + this.timerIdMap.num;
- this.timerIdMap[intervalId] = true;
- // 循环次数
- let count = 0;
- let startTime = Date.now();
- let loop = () => {
- // 系统map中不存在这个id,就停止循环
- if (!this.timerIdMap[intervalId]) {
- return;
- }
- if (Date.now() > startTime + interval * (count + 1)) {
- count++;
- callback(count);
- }
- window.requestAnimationFrame(loop);
- };
- loop();
- return intervalId;
- },
- // 清空定时器,删除全局的定时器id map
- clearMyInterval(intervalId) {
- delete this.timerIdMap[intervalId];
- },
- turnToNextManualCase() {},
- clickBackToTaskList() {
- this.isShowPlanList = false;
- this.isShowTaskList = true;
- // this.planList = [];
- },
- clickBackToCaseList() {
- this.isShowCaseCommit = false;
- this.isShowCaseList = true;
- },
- submitManualCase(item) {
- console.log(this.currentCase, "manualcasedetail============");
- this.isShowCaseCommit = true;
- this.isShowCaseDetail = false;
- },
- clickBackToIssueList() {
- this.isShowIssueList = true;
- this.isShowIssueDetail = false;
- },
- clickBackToPlan() {
- this.isShowCaseDetail = false;
- if (sessionStorage.getItem("autoCase") == 0) {
- this.isShowCaseList = true;
- } else {
- this.isShowAutoCaseList = true;
- }
- },
- submitAutoCase() {
- if (this.autoTaskStatus == 'waiting' || this.autoTaskStatus == 'running') {
- this.$store.dispatch('caseList/cancelPlan');
- this.clickBackToTaskList()
- this.isShowAutoCaseList = false;
- return
- }
- this.isShowAutoCaseList = false;
- this.isShowAutoCaseCommit = true;
- },
- clickBackToAutoCaseList() {
- this.isShowAutoCaseList = true;
- this.isShowAutoCaseCommit = false;
- },
- selectRowPlan(id, auto, name) {
- console.log(id, "selectrowdata");
- debugger
- if (!auto || auto == "undefined" || auto == "false") {
- this.currentPlanId = id;
- this.currentPlanName = name;
- this.$store.dispatch("caseList/fetchCaseList", {
- uuid: id,
- page_num: 1,
- page_size: 100,
- });
- this.isShowCaseList = true;
- sessionStorage.setItem("autoCase", 0);
- this.$store.dispatch("caseList/setCurrentTask", id);
- } else {
- if (id == 109) id = 222;
- this.currentPlanId = id;
- this.currentPlanName = name;
- this.$store.dispatch("caseList/setCurrentPlanId", id);
- this.$store.dispatch("caseList/fetchAutoCaseList", {
- planId: id,
- planName: name
- });
- this.isShowAutoCaseList = true;
- this.$store.dispatch("caseList/setCurrentTask", id);
- sessionStorage.setItem("autoCase", 1);
- }
- this.$store.dispatch("common/fetchOptionList");
- this.isShowPlanList = false;
- this.planName = name;
- },
- selectRowCase(row) {
- this.isShowCaseList = false;
- this.isShowCaseDetail = true;
- this.caseName = row.m_id;
- this.caseProject = row.precondition;
- //this.caseActive =,
- this.caseFunction = row.action;
- this.caseSubFunction = row.expectation;
- this.caseMarket = row.market;
- this.caseLanguage = row.language;
- this.currentCase = row;
- for (let i = 0; i < this.caseList.length; i++) {
- if (this.caseList[i].case_no == row.case_no) {
- this.currentCaseIndex = i;
- break;
- }
- }
- //this.caseContent =,
- },
- turnNextCase() {
- this.currentCaseIndex++;
- if (this.currentCaseIndex == this.caseList.length) {
- this.isShowCaseList = true;
- this.isShowCaseCommit = false;
- } else {
- this.currentCase = this.caseList[this.currentCaseIndex];
- this.caseName = this.currentCase.m_id;
- this.caseProject = this.currentCase.precondition;
- //this.caseActive =,
- this.caseFunction = this.currentCase.action;
- this.caseSubFunction = this.currentCase.expectation;
- this.caseMarket = this.currentCase.market;
- this.caseLanguage = this.currentCase.language;
- this.isShowCaseCommit = false;
- this.isShowCaseDetail = true;
- }
- },
- selectRowIssue(id) {
- let row = this.issueList.find((i) => i.id == id);
- this.isShowIssueList = false;
- this.isShowIssueDetail = true;
- this.currentIssue = row;
- console.log(row, "==============issue============");
- },
- clickBackToPlanList() {
- this.isShowPlanList = true;
- this.isShowCaseList = false;
- this.caseList = [];
- },
- clickBackToAutoPlanList() {
- this.isShowPlanList = true;
- this.isShowAutoCaseList = false;
- this.$store.dispatch('caseList/clearAutoCaseList');
- },
- bmMapItemUnSelect() {
- let items = document.getElementsByClassName("item-box");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#00000032";
- let title = items[index].getElementsByClassName("item-title");
- console.log("textContent", title[0].textContent);
- let itemOther = this.benchList.find(
- (b) => parseInt(b.id) == parseInt(title[0].textContent)
- );
- itemOther.selected = false;
- itemOther.scale = 1;
- }
- },
- onFocus() {
- this.$store.dispatch("common/setIsOpen", true);
- this.$store.dispatch('benchList/filterBenchList', {type: 'status', value: 'Status'});
- this.$store.dispatch('benchList/filterBenchList', {type: 'project', value: 'Project'});
- this.$store.dispatch('benchList/filterBenchList', {type: 'carline', value: 'Carline'});
- this.$store.dispatch('benchList/filterBenchList', {type: 'variant', value: 'Variant'});
- this.$store.dispatch('benchList/filterBenchList', {type: 'cluster', value: 'Cluster'});
- this.$store.dispatch('benchList/filterBenchList', {type: 'market', value: 'Market'});
- this.$store.dispatch('benchList/setFilterBenchFlag', true);
- },
- onBlur(e) {
- console.log("=====----====", e.target.classList);
- if (
- Array.prototype.indexOf.call(e.target.classList, "ordinary-left") > -1
- ) {
- this.$store.dispatch("common/setIsOpen", false);
- }
- },
- onInput(value) {
- this.inputValue = value;
- this.$store.dispatch('benchList/filterBenchList', {type: 'name', value: value});
- this.$store.dispatch('benchList/setFilterBenchFlag', true);
- },
- onClickOutside() {
- if (
- this.$refs.searchbar.$el.contains(event.target) ||
- this.$refs.dropdown.$el.contains(event.target)
- ) {
- return;
- }
- this.$store.dispatch("common/setIsOpen", false);
- },
- handleClickTask(taskId, auto) {
- let task = that.taskList.find((t) => t.id == taskId);
- // 获取手动测试plan列表
- let manualList = task.plan_list[1];
- // 获取自动测试plan列表
- let autoList = task.plan_list[2];
- autoList.forEach((at) => {
- that.$store.dispatch("planList/fetchPlanDetail", {
- planId: at < 100 ? at + 101 : at,
- });
- });
- that.isShowPlanList = true;
- that.isShowTaskList = false;
- this.$store.commit("planList/setAutoPlanList", autoList);
- this.$store.commit("planList/setPlanList", manualList);
- that.taskName = task.name;
- this.$nextTick(() => {
- that.$store.dispatch("planList/clearPlanList");
- that.$store.dispatch("planList/fetchPlanList", {
- page_num: 1,
- page_size: 10000,
- });
- });
- console.log(task, "任务详情");
- },
- handleClickIssue(issueId) {
- console.log(issueId, "issueid");
- },
- showBenchPos(benchList) {
- console.log("benchList", benchList);
- for (var item of benchList) {
- var currentBench = this.benchList.find((b) => b.id == item.benchId);
- if (currentBench) {
- //console.log('currentBench',currentBench);
- currentBench.left = item.x - 548 + 48;
- currentBench.top = item.y - 137 - 150 + 11;
- currentBench.benchId = item.benchId;
- currentBench.benchType = item.benchType;
- console.log('item.benchImg',item.benchImg);
- currentBench.image = require("../../assets/bench_img/"+item.benchImg);
- if (currentBench.benchType == 2) {
- //currentBench.image = require("../../assets/mechine2.png");
- } else {
- //currentBench.image = require("../../assets/mechine.png");
- }
- }
- }
- this.renderBenchList = false;
- setTimeout(() => {
- this.renderBenchList = true;
- }, 10);
- },
- planBack() {
- that.isShowPlanList = false;
- that.isShowTaskList = true;
- },
- taskRender(item) {
- return `<div class="item-box" onClick="handleClickTask('${
- item.uuid || item.id
- }', '${item.auto}')">
- <div class="left">
- <div style="">
- <div class="item-title">${item.name}</div>
- <div class="item-description">${item.description}</div>
- </div>
- <div class="item-time">
- <div class="time">${item.start_time}</div>
- to
- <div class="time"> ${item.end_time}</div>
- </div>
- <div class="item-tag">
- <div class="tag">${item.processor_name}</div>
- <div class="tag">${item.sw}</div>
- </div>
- </div>
- <div class="taskBtn" onClick="handleClickTask('${
- item.uuid || item.id
- }', '${item.auto}')">To Do</div>
- </div>`;
- },
- planRender(item) {
- console.log(item, "plan", this.autoTaskStatusMap[item.id]);
-
- return `<div onClick="selectRowPlan('${item.uuid || item.id}', '${
- item.auto
- }', '${item.name}')" class="item-box" style="display:${
- !item.auto && !item.uuid ? "none" : "flex"
- };align-items: top; justify-content: space-between;color: #fff;">
- <div class="left">
- <div style="display:flex;align-items: center;">
- <div class="item-title">${item.name}</div>
- <div class="process-percent" style="margin-left: 10px; width: 80px">
- <div style="width: ${this.autoTaskPercentMap[item.id] || 0}%; height: 10px; border-radius: 10px;background-image: linear-gradient(-90deg,transparent 0px,#95d475 50px,#95d475)" }"></div>
- </div>
- <div style="width:40px;color:#fff;font-size: 12px;padding-left: 3px">${Number(this.autoTaskPercentMap[item.id] || 0).toFixed(1) || 0}%</div>
- <div class="task-auto" style="display:${
- item.auto ? "block" : "none"
- }">Auto</div>
- </div>
- </div>
- <div style="width: unset; padding: 0 10px;" class="taskBtn ${this.autoTaskStatusMap[item.id] || 'ready'}">${this.autoTaskStatusMap[item.id] || 'ready'}</div>
- </div>`;
- },
- issueRender(item) {
- return `<div class="item-box" style="display:flex; align-items: center;justify-content: space-between;" onClick="selectRowIssue('${
- item.uuid || item.id
- }')">
- <div class="left">
- <div style="display:flex;align-items: center;">
- <div class="item-title" style="width: 20vw; white-space: nowrap; overflow:hidden; text-overflow: ellipsis;">${item.ticket_title}</div>
- <div class="${"status" + item.ticket_status}"></div>
- </div>
- <div class="item-tag">
- <div class="tag">${item.creator}</div>
- <div class="tag">${item.create_time}</div>
- </div>
- </div>
- <div class="${
- item.checked ? "el-icon-circle-check" : "uncheck"
- }"></div>
- </div>`;
- },
- closeDetail() {
- this.isDetailVisible = false;
- },
- rowClassName() {
- return "row-class";
- },
- getImgList(objRBL) {
- console.log("zmg3", objRBL);
- let benchId = objRBL.pop();
- if (benchId == null) {
- console.log("zmg2");
- setTimeout(() => {
- let href = window.location.href;
- if (href.indexOf("benchid=") != -1) {
- let benchid = href.substring(href.indexOf("benchid=") + 8);
- let remoteBenchList = this.remoteBenchList;
- console.log("benchid", benchid);
- console.log(
- "item == benchId",
- remoteBenchList.find((item) => item == benchid)
- );
- if (remoteBenchList.find((item) => item == benchid)) {
- this.selectBench(parseInt(benchid));
- }
- }
- }, 200);
- return;
- }
- let self = this;
- console.log("benchId", benchId);
- ws.connectBench({ bench_id: String(benchId) })
- .then((res) => {
- ws.getImage(String(benchId), 1).then((res) => {
- self.$store.dispatch("benchList/setBenchImgList", {
- benchId,
- img: res.data.data,
- });
- self.getImgList(objRBL);
- });
- })
- .catch((err) => {
- console.log("connect bench failed", benchId);
- self.$message({
- message: "This bench is offline",
- // message: "",
- type: "warning",
- });
- });
- },
- gotoGrid() {
- this.$router.push({
- path: "/squarePage",
- });
- },
- itemRender(item) {
- // console.log(item, 'bench---item')
- //item.image = require("../../assets/mechine.png");
- //item.image = require("../../assets/bench_img/"+item.benchImg);
- /*return `
- <div class="item-box">
- <div class="item-image"><img src="${item.image}" alt="${item.title}"></div>
- <div class="item-right">
- <div class="item-title">
- <span onClick="handleListClick(${item.id})">${item.id}</span>
- <span onClick="selectBench(${item.id})" class="el-icon-s-platform ${item.status}"></span>
- </div>
- <div class="item-text">
- <div class="item-description">Automation Lab-7E</div>
- <div class="item-description">${item.name}</div>
- <div class="item-tag">
- <div class="tag">${item.Market}</div>
- <div class="tag">${item.Platform}</div>
- <div class="tag">${item.Project}</div>
- <div class="tag">${item.Carline}</div>
- <div class="tag">${item.Cluster}</div>
- </div>
- <div class="item-tag">
- <div class="tag">${item.MU_SW}</div>
- <div class="tag">${item.Variant}</div>
- <div class="tag">${item.ip}</div>
- </div>
- </div>
- </div>
- </div>`;*/
- return `
- <div onDblClick="handleListDbClick(${item.id})" data-index="${item.id}" onClick="handleListClick(${item.id})" class="item-box">
- <div class="item-image"><img src="${item.image}" alt="${item.title}"></div>
- <div class="item-right">
- <div class="item-text">
- <div class="item-title">${item.name}
- <span onClick="selectBench(${item.id})" class="el-icon-monitor ${item.status}"></span>
- </div>
- <div class="item-description">Automation Lab-7E</div>
- <div class="item-tag">
- <div class="tag" title="Market">${item.Market}</div>
- <div class="tag" title="Platform">${item.Platform}</div>
- <div class="tag" title="Project">${item.Project}</div>
- <div class="tag" title="Carline">${item.Carline}</div>
- <div class="tag" title="Cluster">${item.Cluster}</div>
- <div class="tag" title="MU_SW">${item.MU_SW}</div>
- <div class="tag" title="Variant">${item.Variant}</div>
- </div>
- </div>
- </div>
- </div>`;
- },
- handleImageClick(index) {
- this.selectBench(
- parseInt(this.images[index + 5 * (this.currentPage - 1)].alt)
- );
- this.handleListClick(parseInt(this.images[index + 5 * (this.currentPage - 1)].alt))
- },
- prevPage() {
- if (this.currentPage > 1) {
- this.currentPage--;
- }
- },
- nextPage() {
- if (this.currentPage < Math.ceil(this.images.length / this.pageSize)) {
- this.currentPage++;
- }
- },
- handleInfoDblClick(benchId) {
- console.log("handleInfoDblClick", benchId);
- this.currentBench = this.benchList.find((b) => b.id == benchId);
- this.isDetailVisible = true;
- },
- getImage() {},
- dataCallBack(data) {
- switch (data.method) {
- case "get_image":
- this.handleGetImageData(data.data.data);
- break;
- }
- console.log(data);
- },
- handleGetImageData(data) {
- this.mainSnapshot = "data:image/jpeg;base64," + data;
- },
- selectBench(benchId) {
- // 全屏选择bench
- this.saveSelectedBenchToLs(benchId);
- var i = JSON.parse(JSON.stringify(wsArrayLength));
- let self = this;
- wsArrayLength++;
- setTimeout(() => {
- console.log("connect bench", benchId);
- wsArray[i]
- ?.connectBench({ bench_id: String(benchId) })
- .then((res) => {
- console.log("connect bench success", benchId);
- self.getBenchImage(benchId, 1, wsArray[i], () => {});
- this.currentBench = this.benchList.find((b) => b.id == benchId) || {};
- this.remoteBenchList.push(benchId)
- this.$store.dispatch("common/setGoHome", false);
- let nList = Array.from(new Set(this.remoteBenchList));
- let len = nList.length;
- if (len > 9) {
- setTimeout(() => {
- let square = document.querySelector('.square-map');
- if (square) {
- square.scrollTo(0, 10000)
- }
- }, 1000)
- }
- })
- .catch((err) => {
- console.log("connect bench failed", benchId);
- this.$message({
- message: "This bench is offline",
- // message: "",
- type: "warning",
- });
- });
- }, 200);
- // 非全屏选择bench
- var objRBL = this.remoteBenchList;
- if (objRBL && objRBL.length > 0) {
- var bExist = false;
- for (var i = 0; i < objRBL.length; i++) {
- if (objRBL[i] == benchId) {
- bExist = true;
- } else {
- }
- }
- if (bExist == false) {
- objRBL.push(benchId);
- this.remoteBenchList.push(benchId)
- this.$store.dispatch('benchList/addRemoteBenchList', benchId);
- }
- } else {
- var rml = [];
- rml.push(benchId);
- this.remoteBenchList.push(benchId)
- this.$store.dispatch('benchList/addRemoteBenchList', benchId);
- }
- console.log("benchList", this.benchList);
- let bench = this.benchList.find((b) => b.id == benchId);
- console.log("selectedBench", bench);
- if (this.previousSelectedBenchList.length) {
- this.selectedBenchList = JSON.parse(
- JSON.stringify(this.previousSelectedBenchList)
- );
- }
- this.previousSelectedBenchList = [];
- this.platform = null;
- this.benchList.forEach((b) => (b.selected = false));
- bench.selected = !bench.selected;
- if (bench.selected) {
- this.currentBench = bench;
- bench.benchId = "'" + bench.benchId + "'";
- this.selectedBenchList.push(bench);
- console.log("selected", this.selectedBenchList);
- // this.images = this.selectedBenchList.map((s) => {
- // return {
- // url: "",
- // alt: s.name,
- // };
- // });
- } else {
- for (let i in this.selectedBenchList) {
- if (this.selectedBenchList[i].id == bench.id) {
- this.selectedBenchList.splice(i, 1);
- // this.images = this.selectedBenchList.map((s) => {
- // return {
- // url: "",
- // alt: s.name,
- // };
- // });
- break;
- }
- }
- }
- if (this.selectedBenchList.length == 0) {
- nextTick(() => {
- self.initBmInfoNsChart();
- });
- } else {
- self.bmMapItemActivate(bench.id, wsArray[i]);
- }
- },
- bmMapItemActivate(benchId, ws) {
- let self = this;
- if (this.selectedBenchList.length == 0) {
- this.$message({
- message: "Please select a bench to activate.",
- // message: "",
- type: "warning",
- });
- return;
- }
- this.selectedBenchList = [this.selectedBenchList[0]];
- console.log("selectedBenchList[0]", this.selectedBenchList);
- let key = 0;
- for (let i in this.benchList) {
- this.benchList[i].selected = false;
- }
- for (let i in this.benchList) {
- if (this.benchList[i].id == benchId) {
- this.benchList[i].selected = true;
- key = i;
- break;
- }
- }
- this.benchList[key].acitveAnimation = true;
- //let benchId = this.benchList[key].benchId;
- this.benchList[key].benchId = benchId;
- let screenType = this.benchList[key].Display;
- this.connetedBenchId = String(benchId);
- // this.connectedBenchData = this.benchList[key];
- setTimeout(() => {
- console.log("connect bench", benchId);
- ws.connectBench({ bench_id: String(benchId) })
- .then((res) => {
- self.isConnected = true;
- this.$store.dispatch("common/setConnectedStatus", true);
- console.log("connect bench success");
- this.currentScreen = "upper";
- self.setSendAudioBus(benchId);
- self.getBenchImage(benchId, 1, ws, () => {
- if (this.benchList[key].acitveAnimation) {
- this.benchList[key].acitveAnimation = false;
- this.benchDisplayVisible = true;
- }
- });
- if (screenType == "DUO") {
- self.getBenchImage(String(benchId), 2, ws, () => {
- if (this.connetedBenchId) {
- this.benchDisplayLowerVisible = true;
- }
- });
- } else {
- this.benchDisplayLowerVisible = false;
- }
- })
- .catch((err) => {
- console.log("connect bench failed");
- this.benchList[key].acitveAnimation = false;
- this.$message({
- message: "This bench is offline",
- // message: "",
- type: "warning",
- });
- });
- }, 300);
- },
- switchScreen() {
- if (this.currentScreen == "upper") {
- this.currentScreen = "lower";
- } else {
- this.currentScreen = "upper";
- }
- console.log("this.currentScreen", this.currentScreen);
- },
- singleFingerTouch(id, x, y, screenType) {
- let self = this;
- ws.singleFingerTouch(id, x, y, screenType).then((res) => {});
- },
- singleFingerDrag(id, x1, y1, x2, y2, screenType) {
- let self = this;
- ws.singleFingerDrag(id, x1, y1, x2, y2, screenType).then((res) => {});
- },
- singleFingerLongTouch(id, x, y, duration, screenType) {
- let self = this;
- ws.singleFingerLongTouch(id, x, y, duration, screenType).then(
- (res) => {}
- );
- },
- controlCursorMouseDown(e) {
- let self = this;
- if (this.displayTapMode) {
- // console.log("e", e);
- this.controlCursorPosition.left = e.offsetX;
- this.controlCursorPosition.top = e.offsetY;
- this.controlStartPoint.x = e.offsetX;
- this.controlStartPoint.y = e.offsetY;
- this.controlStartPoint.time = Date.now();
- this.ifBmBenchTrailUpperCursor = true;
- }
- },
- controlCursorMouseMove(e) {
- let self = this;
- if (this.displayTapMode && this.ifBmBenchTrailUpperCursor) {
- this.controlCursorPosition.left = e.offsetX;
- this.controlCursorPosition.top = e.offsetY;
- }
- },
- controlCursorMouseOut(e) {
- this.ifBmBenchTrailUpperCursor = false;
- },
- controlCursorMouseUp(e, screenType = 1) {
- let self = this;
- if (this.currentScreen == "upper") {
- screenType = 1;
- } else if (this.currentScreen == "lower") {
- screenType = 2;
- }
- if (this.displayTapMode) {
- this.ifBmBenchTrailUpperCursor = false;
- if (
- Math.abs(this.controlStartPoint.x - e.offsetX) < 30 &&
- Math.abs(this.controlStartPoint.y - e.offsetY) < 30 &&
- Date.now() - this.controlStartPoint.time < 500
- ) {
- self.singleFingerOperation(e, "tap", screenType);
- } else if (
- Math.abs(this.controlStartPoint.x - e.offsetX) > 30 ||
- Math.abs(this.controlStartPoint.y - e.offsetY) > 30
- ) {
- // console.log("controlStartPoint", controlStartPoint);
- self.singleFingerOperation(
- e,
- "swipe",
- screenType,
- this.controlStartPoint
- );
- } else if (Date.now() - this.controlStartPoint.time > 500) {
- self.singleFingerOperation(
- e,
- "longPress",
- screenType,
- this.controlStartPoint
- );
- }
- }
- },
- singleFingerOperation(e, operation, screenType, startPoint = {}) {
- let self = this;
- console.log("singleFingerOperation", e, operation, screenType);
- if (this.displayTapMode) {
- let width = this.$refs.bmBenchRef.width;
- let height = this.$refs.bmBenchRef.height;
- let offsetX = e.offsetX;
- let offsetY = e.offsetY;
- let screenWidth = this.currentScreen == "upper" ? 1540 : 1280;
- let screenHeight = this.currentScreen == "upper" ? 720 : 720;
- let x = Math.round(screenWidth * (offsetX / width));
- let y = Math.round(screenHeight * (offsetY / height));
- let x1 = 0;
- let y1 = 0;
- if (startPoint != {}) {
- x1 = Math.round(screenWidth * (startPoint.x / width));
- y1 = Math.round(screenHeight * (startPoint.y / height));
- }
- // console.log("x", x);
- // console.log("y", y);
- // console.log("x1", x1);
- // console.log("y1", y1);
- let operationDesc = "";
- if (operation == "tap") {
- console.log("selected", this.connetedBenchId, x, y);
- self.singleFingerTouch(this.connetedBenchId, x, y, screenType);
- // tap on lower x: 48 y: 292
- operationDesc =
- "tap on " +
- (screenType == 1 ? "upper " : "lower ") +
- ("x: " + x + " y: " + y);
- } else if (operation == "swipe") {
- self.singleFingerDrag(this.connetedBenchId, x1, y1, x, y, screenType);
- operationDesc =
- "swipe on " +
- (screenType == 1 ? "upper " : "lower ") +
- ("x1: " + x1 + " y1: " + y1 + " x: " + x + " y: " + y);
- } else if (operation == "longPress") {
- self.singleFingerLongTouch(
- this.connetedBenchId,
- x,
- y,
- Date.now() - startPoint.time,
- screenType
- );
- operationDesc =
- "longPress on " +
- (screenType == 1 ? "upper " : "lower ") +
- ("x: " + x + " y: " + y);
- }
- this.benchLog.push({
- bench_id: this.connetedBenchId,
- data: operationDesc,
- levelStr: "DEBUG",
- startTime: self.getNowDate(),
- });
- }
- },
- getNowDate() {
- var myDate = new Date();
- var year = myDate.getFullYear(); //获取当前年
- var mon = myDate.getMonth() + 1; //获取当前月
- var date = myDate.getDate(); //获取当前日
- var hours = myDate.getHours(); //获取当前小时
- var minutes = myDate.getMinutes(); //获取当前分钟
- var seconds = myDate.getSeconds(); //获取当前秒
- var now =
- year +
- "-" +
- mon +
- "-" +
- date +
- "T" +
- hours +
- ":" +
- minutes +
- ":" +
- seconds;
- return now;
- },
- initBmInfoNsChart() {
- let self = this;
- let seriesData = [0, 0, 0];
- for (let i in this.benchList) {
- if (this.benchList[i].status == 5 || this.benchList[i].status == 6) {
- seriesData[1]++;
- } else if (
- this.benchList[i].status == 2 ||
- this.benchList[i].status == 3
- ) {
- seriesData[2]++;
- } else {
- seriesData[0]++;
- }
- }
- console.log("seriesData", seriesData);
- var option = {
- tooltip: {
- trigger: "axis",
- axisPointer: {
- type: "shadow",
- },
- },
- grid: {
- left: 0,
- right: "20",
- bottom: 0,
- top: 0,
- containLabel: true,
- },
- xAxis: {
- type: "value",
- axisLabel: {
- show: false,
- },
- splitLine: {
- show: false,
- },
- // axisLine: {
- // show: false,
- // },
- // axisTick: {
- // show: false, //刻度线
- // },
- },
- yAxis: {
- type: "category",
- data: ["Offline", "Occupied", "Ready"],
- axisLine: {
- show: false,
- lineStyle: {
- color: "#7F7F7F",
- },
- },
- axisTick: {
- show: false, //刻度线
- },
- // axisLine: {
- // },
- },
- series: [
- {
- type: "bar",
- barWidth: "50%",
- data: seriesData,
- itemStyle: {
- color: function (params) {
- // 给出颜色组
- var colorList = ["#b1b3b8", "#79bbff", "#95d475"];
- return colorList[params.dataIndex];
- },
- },
- showBackground: false,
- backgroundStyle: {
- color: "rgba(180, 180, 180, 0.2)",
- },
- label: {
- show: true,
- position: "right",
- color: "#7F7F7F",
- },
- },
- ],
- };
- bmInfoNsChartStorage = echarts.init(
- document.getElementsByClassName("bmInfoNsChart")[0]
- );
- bmInfoNsChartStorage.setOption(option);
- },
- backToMap() {
- let self = this;
- ws.unsubscribeBenchStatus({ bench_id: this.connetedBenchId }).then(
- (res) => {
- console.log("unsubscribeBenchStatus", res);
- }
- );
- this.connetedBenchId = "";
- setTimeout(() => {
- this.benchDisplayVisible = false;
- this.ifShowLogBox = false;
- }, 600);
- },
- tagSearch(field, value) {
- let self = this;
- this.selectedBenchList = [];
- for (let i in this.benchList) {
- this.benchList[i].selected = false;
- if (this.benchList[i][field] == value) {
- this.benchList[i].selected = true;
- this.benchList[i].benchId = "'" + this.benchList[i].benchId + "'";
- this.selectedBenchList.push(this.benchList[i]);
- // this.images = this.selectedBenchList.map((s) => {
- // return {
- // url: "",
- // alt: s.name,
- // };
- // });
- }
- }
- },
- selectAllBench() {
- let self = this;
- console.log('this.benchList===', this.benchList.length)
- if (this.selectedBenchList.length == this.benchList.length) {
- this.selectedBenchList = [];
- this.previousSelectedBenchList = [];
- for (let i in this.benchList) {
- this.benchList[i].selected = false;
- }
- self.nextTick(() => {
- self.initBmInfoNsChart();
- });
- } else {
- this.selectedBenchList = [];
- for (let i in this.benchList) {
- this.benchList[i].selected = true;
- this.selectedBenchList.push(this.benchList[i]);
- // this.images = this.selectedBenchList.map((s) => {
- // return {
- // url: "",
- // alt: s.name,
- // };
- // });
- }
- }
- },
- tapModeControl() {
- this.displayTapMode = !this.displayTapMode;
- },
- getBenchDetail(id, index) {
- let self = this;
- let getBenchParam = { id };
- srv
- .getBenchDetail(getBenchParam)
- .then((res) => {
- // console.log("res", res);
- this.benchList[index].status = res.data.data.status;
- })
- .catch((err) => {
- console.error(err);
- });
- },
- showLogBox() {
- let self = this;
- if (this.ifShowLogBox) {
- ws.unsubscribeBenchStatus({ bench_id: this.connetedBenchId }).then(
- (res) => {
- console.log("unsubscribeBenchStatus", res);
- }
- );
- } else {
- ws.subscribeBenchStatus({ bench_id: this.connetedBenchId }).then(
- (res) => {
- console.log("subscribeBenchStatus", res);
- }
- );
- }
- this.benchLog = [];
- this.ifShowLogBox = !this.ifShowLogBox;
- },
- connectAudioDevice(type) {
- let self = this;
- ws.connect_audio_device({
- benchId: String(this.connetedBenchId),
- }).then(
- (res) => {
- console.log("connect_audio_device_res", res);
- if (type == "playAudio") {
- this.isRecording = !this.isRecording;
- self.recordAudio();
- } else if (type == "collectAudio") {
- self.collectAudio();
- }
- },
- (rej) => {}
- );
- },
- recordAudio(data) {
- let self = this;
- // console.log("selectedBenchList.value[0]", this.selectedBenchList[0]);
- let channel = 1;
- this.vadThreshold = 0;
- if (this.isRecording) {
- this.playAudioBenchList.push(this.connetedBenchId);
- // this.changePlayAudioBenchList(params);
- navigator.getUserMedia =
- navigator.getUserMedia ||
- navigator.webkitGetUserMedia ||
- navigator.mozGetUserMedia ||
- navigator.msGetUserMedia;
- if (navigator.mediaDevices.getUserMedia) {
- // 支持getUserMedia
- navigator.mediaDevices
- .getUserMedia({
- video: false,
- audio: true,
- })
- .then((stream) => {
- this.recStream = stream;
- this.paAc = new AudioContext({
- sampleRate: 8000,
- });
- this.paSource = this.paAc.createMediaStreamSource(stream);
- //构造参数依次为缓冲区大小,输入通道数,输出通道数
- this.paScriptNode = this.paAc.createScriptProcessor(
- 1024,
- channel,
- 2
- );
- this.sempleRateMultiple = this.paAc.sampleRate / 8000;
- this.paScriptNode.onaudioprocess = function (e) {
- for (let i = 0; i < channel; i++) {
- let data = e.inputBuffer.getChannelData(i);
- self.recordSuperposeArr.push.apply(
- self.recordSuperposeArr,
- data
- );
- if (
- self.sempleRateHandlingThreshold <
- self.sempleRateMultiple - 1
- ) {
- self.sempleRateHandlingThreshold++;
- } else {
- let arr = [];
- for (
- let a = 0;
- a < self.recordSuperposeArr.length;
- a = a + self.sempleRateMultiple
- ) {
- arr.push(self.recordSuperposeArr[a]);
- }
- self.recordSuperposeArr = arr.splice(0, 1024);
- self.recordSuperposeArr = new Float32Array(
- self.recordSuperposeArr
- );
- if (Math.abs(self.recordSuperposeArr[0]) < 0.003) {
- self.vadThreshold++;
- } else {
- self.vadThreshold = 0;
- }
- if (self.vadThreshold <= 20) {
- let dataU8 = new Uint8Array(
- self.recordSuperposeArr.buffer
- );
- let string = "";
- for (let i = 0; i < dataU8.length; i++) {
- string = string + String.fromCharCode(dataU8[i]);
- }
- ws.play_audio({
- data: string,
- benchIds: self.playAudioBenchList,
- }).then(
- (res) => {},
- (rej) => {}
- );
- }
- self.sempleRateHandlingThreshold = 0;
- self.recordSuperposeArr = [];
- }
- }
- };
- this.paScriptNode.connect(this.paAc.destination);
- this.paSource.connect(this.paScriptNode);
- })
- .catch((err) => {
- console.log("err: " + err);
- });
- } else {
- // 不支持getUserMedia
- console.log("Environment not supported");
- }
- } else {
- // this.changePlayAudioBenchList(params);
- this.playAudioBenchList = [];
- self.stopRecord();
- this.ifConnectedAudioDevice = false;
- ws.stop_play_audio({
- benchId: this.connetedBenchId,
- }).then(
- (res) => {
- // console.log("res", res);
- },
- (rej) => {
- // console.log("rej", rej);
- }
- );
- // $bus.$emit("stopPlayAudio", {
- // benchId: params.benchId,
- // });
- // }
- }
- },
- stopRecord() {
- let self = this;
- if (!this.isRecording) {
- this.recStream.getTracks().forEach(function (track) {
- track.stop();
- });
- this.paScriptNode.disconnect(this.paAc.destination);
- this.paSource.disconnect(this.paScriptNode);
- this.paAc.close();
- }
- },
- collectAudio() {
- let self = this;
- this.isPlaying = !this.isPlaying;
- if (this.isPlaying) {
- ws.collect_audio({
- benchId: String(this.connetedBenchId),
- }).then(
- (res) => {},
- (rej) => {}
- );
- } else {
- ws.stop_collect_audio({
- benchId: String(this.connetedBenchId),
- }).then(
- (res) => {},
- (rej) => {}
- );
- this.loopSendAudioTime = 0;
- this.sendAudioString = "";
- }
- },
- setSendAudioBus(benchId) {
- let self = this;
- bus.on("sendAudio" + benchId, (data) => {
- self.sendAudioTransformCode(data.data, true);
- this.loopSendAudioTime++;
- this.sendAudioTimer = setTimeout(() => {
- this.loopSendAudioTime = 5;
- self.sendAudioTransformCode("", false);
- }, 500);
- });
- },
- sendAudioTransformCode(data, fill) {
- let dataU8 = [];
- let dataF32 = [];
- let arr = [];
- let self = this;
- this.sendAudioString += data;
- if (this.loopSendAudioTime > 4) {
- arr = this.sendAudioString.split("");
- for (let i = 0; i < arr.length; i++) {
- dataU8[i] = arr[i].charCodeAt();
- }
- dataU8 = new Uint8Array(dataU8);
- dataF32 = new Float32Array(dataU8.buffer);
- if (!fill) {
- // console.log("dataF32-", dataF32);
- let newDataF32 = new Float32Array(5120);
- for (let i = 0; i < 5120; i++) {
- if (i < dataF32.length) {
- newDataF32[i] = dataF32[i];
- } else {
- newDataF32[i] = 0;
- }
- }
- dataF32 = newDataF32;
- // console.log("dataF32+", dataF32);
- }
- self.pcPlayAudio(dataF32, 1, 8000);
- this.sendAudioString = "";
- this.loopSendAudioTime = 0;
- }
- if (fill) {
- clearTimeout(this.sendAudioTimer);
- }
- },
- pcPlayAudio(data, channels, sampleRate) {
- let self = this;
- var audioCtx = new (window.AudioContext || window.webkitAudioContext)({
- sampleRate: sampleRate,
- });
- var myArrayBuffer = audioCtx.createBuffer(
- channels,
- data.length,
- sampleRate
- );
- for (let channel = 0; channel < channels; channel++) {
- var nowBuffering = myArrayBuffer.getChannelData(channel);
- for (let i = 0; i < data.length; i++) {
- if (i < data.length) {
- nowBuffering[i] = data[i];
- } else {
- nowBuffering[i] = 0;
- }
- }
- }
- // console.log("audioCtx", audioCtx);
- // console.log("nowBuffering", nowBuffering);
- var source = audioCtx.createBufferSource();
- source.buffer = myArrayBuffer;
- source.connect(audioCtx.destination);
- source.start();
- },
- pressPtt() {
- let self = this;
- ws.press_ptt({
- benchId: String(this.connetedBenchId),
- }).then(
- (res) => {},
- (rej) => {}
- );
- },
- bmMapItemSelect(key) {
- let self = this;
- if (this.previousSelectedBenchList.length) {
- this.selectedBenchList = JSON.parse(
- JSON.stringify(this.previousSelectedBenchList)
- );
- }
- this.previousSelectedBenchList = [];
- this.platform = null;
- this.benchList.forEach((b) => (b.selected = false));
- this.benchList[key].selected = !this.benchList[key].selected;
- console.log('划入。。。'+key+this.benchList[key].selected);
- if (this.benchList[key].selected) {
- this.currentBench = this.benchList[key];
- this.selectedBenchList.push(this.benchList[key]);
- // this.images = this.selectedBenchList.map((s) => {
- // return {
- // url: "",
- // alt: s.name,
- // };
- // });
- } else {
- for (let i in this.selectedBenchList) {
- if (this.selectedBenchList[i].id == this.benchList[key].id) {
- this.selectedBenchList.splice(i, 1);
- // this.images = this.selectedBenchList.map((s) => {
- // return {
- // url: "",
- // alt: s.name,
- // };
- // });
- break;
- }
- }
- }
- if (this.selectedBenchList.length == 0) {
- nextTick(() => {
- self.initBmInfoNsChart();
- });
- }
- this.$forceUpdate();
- },
- bmMapItemOut(key){
- // this.$set(this.benchList[key], "selected", false);
- this.benchList[key].selected = false;
- console.log('划出。。。'+key+this.benchList[key].selected);
- this.$forceUpdate();
- },
- clickBenchList() {
- // window.location.href = "/squarePage?m=8b934420_ZJUb_b6f9";
- this.$store.dispatch("common/setSquareStatus", true);
- },
- disconnectBench() {
- ws.disconnectBench({ bench_id: String(this.connetedBenchId) }).then(
- (res) => {
- var remoteBenchList = this.remoteBenchList;
- let newRemoteBenchList = remoteBenchList.filter((item) => {
- return item != this.connetedBenchId;
- });
- while(this.remoteBenchList.length) {
- this.remoteBenchList.pop();
- this.$store.dispatch('benchList/popRemoteBenchList')
- this.$store.dispatch("common/setSquareStatus", true);
- }
- newRemoteBenchList.forEach(e => {
- this.remoteBenchList.push(e);
- this.$store.dispatch('benchList/addRemoteBenchList', e)
- })
- this.$store.dispatch("benchList/removeBenchImgList", {
- benchId: this.connetedBenchId,
- });
- this.getImgList(newRemoteBenchList);
- this.connetedBenchId = "";
- this.currentBench = {};
- this.benchDisplayVisible = false;
- this.benchDisplayLowerVisible = false;
- this.isConnected = false;
- this.$store.dispatch("common/setConnectedStatus", false);
- }
- );
- },
- sleep(delay) {
- var start = new Date().getTime();
- while (new Date().getTime() - start < delay) {
- continue;
- }
- },
- saveSelectedBenchToLs(benchId) {
- var objRBL = this.remoteBenchList;
- if (objRBL && objRBL.length > 0) {
- var bExist = false;
- for (var i = 0; i < objRBL.length; i++) {
- if (objRBL[i] == benchId) {
- bExist = true;
- } else {
- }
- }
- if (bExist == false) {
- objRBL.push(benchId);
- this.remoteBenchList.push(benchId)
- this.$store.dispatch('benchList/addRemoteBenchList', benchId)
- }
- } else {
- var rml = [];
- rml.push(benchId);
- this.remoteBenchList.push(benchId);
- this.$store.dispatch('benchList/addRemoteBenchList', benchId)
- }
- },
- handleListClick(benchId, itemtype) {
- this.$store.dispatch("common/setGoHome", false);
-
- if (itemtype == 2) {
- return;
- }
- try{
- for(let key in window.waterMap) {
- if (key == benchId) {
- window.waterMap[key].scale.set(1.3, 1.3, 1.3);
- } else {
- window.waterMap[key].scale.set(1, 1, 1);
- }
- }
- } catch (e) {
- }
- console.log("benchId", benchId);
- let selectedBench = this.benchList.find((i) => i.benchId == benchId);
- bus.emit("benchInfoVisible", selectedBench);
- this.$nextTick(() => {
- if (benchId == this.currentBench.benchId) {
- let items = document.getElementsByClassName("grid-item-background");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#000000";
- }
- return;
- }
- let items = document.getElementsByClassName("grid-item-background");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#000000";
- if (this.images[index].alt == benchId) {
- console.log("equal");
- items[index].style.background = "#ffffff";
- }
- }
- });
- //this.currentBench = this.benchList.find(b => b.id == benchId);
- //this.isDetailVisible = true;
- this.$nextTick(() => {
- //this.$refs.benchdetail.init(benchId);
- //this.benchList.forEach(element =>
- //{
- // element.style = "{background: rgba(0, 0, 0, 1)}"
- //});
- // if (benchId == this.currentBench.id &&this.currentBench.selected) {
- // this.currentBench.selected = false;
- // this.currentBench.scale = 1;
- // this.currentBench = {};
- // let items = document.getElementsByClassName("item-box");
- // for (var index = 0; index < items.length; index++) {
- // items[index].style.background = "#00000032";
- // }
- // return;
- // }
- let items = document.getElementsByClassName("item-box");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#00000032";
- // console.log("textContent", title[0].textContent);
- let itemOther = this.benchList.find(
- (b) => b.id == items[index].dataset.index
- );
- if (itemOther) {
- itemOther.selected = false;
- }
- if (benchId == items[index].dataset.index) {
- items[index].style.background = "#000000C0";
- this.selectedBenchId = benchId
- }
- }
- // console.log('this.currentBench', this.currentBench);
- // bus.emit("benchInfoVisible", this.currentBench);
- });
- },
- handleBenchClick(benchId, showRemoteButton) {
- this.currentBench = this.benchList.find((b) => b.id == benchId);
- this.benchDetail = this.benchList.find((b) => b.id == benchId);
- this.isRemoteBtnVisible = showRemoteButton;
- this.isDetailVisible = true;
- },
- handleListDbClick(benchId, itemtype) {
- //this.currentBench = this.benchList.find(b => b.id == benchId);
- //this.isDetailVisible = true;
- this.$nextTick(() => {
- //this.$refs.benchdetail.init(benchId);
- //this.benchList.forEach(element =>
- //{
- // element.style = "{background: rgba(0, 0, 0, 1)}"
- //});
- this.benchDetail = this.benchList.find((b) => b.id == benchId);
- //this.currentBench.style = "{background: rgba(0, 0, 0, 1)}"
- console.log("current bench", this.benchDetail);
- this.isRemoteBtnVisible = true;
- this.isDetailVisible = true;
- });
- },
- getBenchImage(benchId, screenType, wsRemote, func) {
- let self = this;
- setTimeout(() => {
- wsRemote.getImage(String(benchId), screenType).then((res) => {
- console.log("getImageRes", res);
- // let screen = screenType == 1 ? "upper" : "lower";
- func();
- if (screenType == 1) {
- self.benchImgUpper = "data:image/png;base64," + res.data.data;
- self.benchImgUpperMap[benchId] =
- "data:image/png;base64," + res.data.data;
- bus.emit("benchImgChange", { benchImgUpper: self.benchImgUpper });
- } else {
- self.benchImgLower = "data:image/png;base64," + res.data.data;
- self.benchImgLowerMap[benchId] =
- "data:image/png;base64," + res.data.data;
- bus.emit("benchImgChange", { benchImgLower: self.benchImgLower });
- }
- // let screen = res.data.screen_type;
- //self.getBenchImage(benchId, screenType, wsRemote, func);
- if (benchId == this.connetedBenchId) {
- //self.getBenchImage(benchId, screenType, wsRemote, func);
- this.$store.dispatch("benchList/setBenchImgList", {
- benchId,
- img: res.data.data,
- });
- }
- setTimeout(()=>{
- self.getBenchImageSub(benchId, screenType, wsRemote, func);
- },500)
- });
- }, 500);
- },
- getBenchImageSub(benchId, screenType, wsRemote, func) {
- let self = this;
- if (benchId == this.connetedBenchId) {
- wsRemote.getImage(String(benchId), screenType).then((res) => {
- console.log("getImageRes", res);
- // let screen = screenType == 1 ? "upper" : "lower";
- //func();
- {
- if (screenType == 1) {
- self.benchImgUpper = "data:image/png;base64," + res.data.data;
- self.benchImgUpperMap[benchId] =
- "data:image/png;base64," + res.data.data;
- bus.emit("benchImgChange", { benchImgUpper: self.benchImgUpper });
- } else {
- self.benchImgLower = "data:image/png;base64," + res.data.data;
- self.benchImgLowerMap[benchId] =
- "data:image/png;base64," + res.data.data;
- bus.emit("benchImgChange", { benchImgLower: self.benchImgLower });
- }
- }
- setTimeout(() => {
- self.getBenchImageSub(benchId, screenType, wsRemote, func);
- }, 100)
- });
- }
- else {
- setTimeout(() => {
- self.getBenchImageSub(benchId, screenType, wsRemote, func);
- }, 500)
- }
- },
- handleDblClickImg(benchId) {
- this.benchImgUpper = this.benchImgUpperMap[benchId];
- this.benchImgLower = this.benchImgLowerMap[benchId];
- this.$store.dispatch("common/setSquareStatus", false);
- this.selectBench(benchId);
- },
- handleClickImg(benchId, indexParam) {
- console.log(benchId)
- this.selectedBenchId = benchId;
- this.$nextTick(() => {
- console.log(this.currentBenchId)
- if (benchId == this.currentBenchId) {
-
- console.log(this.brnchshow)
- if(this.brnchshow){
- benchId = 0;
- let items = document.getElementsByClassName("grid-item-background");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#000000";
- }
- this.brnchshow = false;
-
- return;
- }else{
- this.brnchshow = true;
- }
- }
- this.currentBenchId = benchId;
- let items = document.getElementsByClassName("grid-item-background");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#000000";
- if (index == indexParam) {
- console.log("equal");
- items[index].style.background = "#ffffff";
- }
- }
- });
- this.$nextTick(() => {
- if (
- benchId == this.currentBench.id &&
- this.currentBench.selected == true
- ) {
- this.currentBench.selected = false;
- this.currentBench.scale = 1;
- this.currentBench = {};
- let items = document.getElementsByClassName("item-box");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#00000032";
- }
- return;
- }
- let items = document.getElementsByClassName("item-box");
- for (var index = 0; index < items.length; index++) {
- items[index].style.background = "#00000032";
- let title = items[index].getElementsByClassName("item-title");
- console.log("textContent", title[0].textContent);
- let itemOther = this.benchList.find(
- (b) => parseInt(b.id) == parseInt(title[0].textContent) || b.id == benchId
- );
- itemOther.selected = false;
- if(items[index].dataset.index == benchId){
- items[index].style.background = "#000000C0";
- this.currentBench = this.benchList.find((b) => b.id == benchId);
- this.currentBench.selected = true;
- }
- }
-
- this.$store.dispatch('benchList/setCurrentBench', this.currentBench);
- });
- },
- handleCloseImg(benchId) {
- this.connetedBenchId = benchId;
- this.disconnectBench()
- console.log("benchId", benchId, this.connetedBenchId);
- var objRBL = this.remoteBenchList;
- if (objRBL) {
- for (var i = 0; i < objRBL.length; i++) {
- if (parseInt(objRBL[i]) == parseInt(benchId)) {
- console.log("images", this.images);
- for (var ii = 0; ii < this.images.length; ii++) {
- if (parseInt(this.images[ii].alt) == parseInt(benchId)) {
- this.images.splice(ii, 1);
- console.log("images", this.images);
- break;
- }
- }
- //delete objRBL[i];
- objRBL.splice(i, 1);
- console.log("objRBL", objRBL);
- while(this.remoteBenchList.length) {
- this.remoteBenchList.pop();
- this.$store.dispatch('benchList/popRemoteBenchList')
- this.$store.dispatch("common/setSquareStatus", true);
- }
- objRBL.forEach(e => {
- this.remoteBenchList.push(e)
- this.$store.dispatch('benchList/addRemoteBenchList', e)
- })
- return;
- }
- }
- }
- },
- getAutoPlanResult(key) {},
- refreshBenchStatus() {
- var readyCount = 0;
- var occupiedCount = 0;
- var offlineCount = 0;
- console.log("this.benchList", this.benchList.length);
- this.benchList.forEach((element) => {
- //console.log('element',element);
- if (element.status == "ready") {
- readyCount++;
- } else if (element.status == "error") {
- offlineCount++;
- } else if (element.status == "offline") {
- offlineCount++;
- } else {
- occupiedCount++;
- }
- });
- this.readyCount = readyCount;
- this.offlineCount = offlineCount;
- this.occupiedCount = occupiedCount;
- }
- },
- watch: {
- benchDisplayVisible(newValue, oldValue) {
- bus.emit("benchDisplayVisible", {
- benchDisplayVisible: newValue,
- benchInfo: this.selectedBenchList[0],
- });
- },
- benchDisplayLowerVisible(newValue, oldValue) {
- bus.emit("benchDisplayLowerVisibleChange", {
- benchDisplayLowerVisible: newValue,
- });
- },
- benchList(newValue, oldValue) {
- console.log("newValue", newValue);
- var objRBL = this.remoteBenchList;
- console.log("zmg1", objRBL);
- var objRBLReverse = [];
- if(objRBL)
- {
- for (; objRBL.length > 0; ) {
- objRBLReverse.push(objRBL.pop());
- }
- }
- if (objRBLReverse.length > 0) {
- setTimeout(() => {
- this.getImgList(objRBLReverse);
- }, 300);
- }
- },
- isOpen3d(newValue, oldValue) {
- // if (!newValue) {
- // this.$nextTick(() => {
- // let mapDom = document.getElementsByClassName("ordinary-map")[0];
- // let style = getComputedStyle(mapDom);
- // let width = parseFloat(style.width);
- // let height = parseFloat(style.height);
- // uwbMain('playersmall', width, height, "floorplan");
- // })
- // } else {
- // uwbMain('player', window.innerWidth, window.innerHeight, "panorama");
- // }
- },
- autoPlanList() {
- this.autoPlanList.forEach(m => {
- this.$store.dispatch('caseList/getAllAutoPlanStatus', {
- planId: m.id,
- planName: m.name
- })
- })
- },
- mouseBenchId(newValue, oldValue) {
- let bench = this.benchList.find(b => b.benchId == newValue);
- if (bench) {
- this.mouseBenchDetail = bench;
- } else {
- this.mouseBenchDetail = {};
- }
- }
- },
- };
- </script>
- <style scoped>
- /* .benchMapBox {
- margin-top: 30px;
- } */
- .benchMapBox :deep() .el-scrollbar__bar {
- display: none;
- }
- .bmContent {
- background-image: linear-gradient(60deg, #16182a 30%, #2d3049);
- border-radius: 10px;
- /* height: 1800px; */
- margin-top: 30px;
- margin-bottom: 30px;
- min-height: 426px;
- }
- .bmMap {
- /* height: 500px; */
- position: absolute;
- height: 10%;
- width: 100%;
- /* padding: 5px 10px; */
- box-sizing: border-box;
- }
- .bmMap
- :deep()
- .el-radio-button__original-radio:checked
- + .el-radio-button__inner {
- background-color: #474c79;
- }
- .bmMap
- :deep()
- .el-radio-button__original-radio:checked
- + .el-radio-button__inner
- span {
- color: #fff;
- }
- .bmMap :deep() .el-radio-button__inner {
- background-color: #383c6b;
- border: none;
- box-shadow: none;
- }
- .bmMap :deep() .el-radio-button__inner span {
- color: #ccc;
- }
- .bmMap :deep() .el-radio-button__inner span:hover {
- color: #eee;
- }
- .bmMapImage {
- position: relative;
- height: 100%;
- width: 100%;
- /* border: 1px solid #fff; */
- background-color: rgba(255, 255, 255, 0.04);
- border-radius: 6px;
- }
- .bmMapItem {
- position: absolute;
- height: 70px;
- width: 70px;
- cursor: pointer;
- }
- .bmMapItemNormal {
- position: absolute;
- height: 100%;
- width: 100%;
- background-color: #16182a;
- /* box-shadow: 0 0 0 3px #393e6d inset; */
- box-sizing: border-box;
- z-index: 2;
- }
- .bmMapItemInfo {
- position: absolute;
- height: 100%;
- width: 120px;
- box-sizing: border-box;
- padding: 3px;
- display: flex;
- justify-content: center;
- align-items: flex-start;
- flex-direction: column;
- font-size: 12px;
- z-index: 6;
- user-select: none;
- /* background: #183153; */
- overflow: hidden;
- border: none;
- color: #ccc;
- border-radius: 10px;
- left: 30px;
- padding-left: 10px;
- background: rgba(117, 117, 117, 0.8);
- }
- .bmMapItemInfoWater {
- position: absolute;
- width: 120px;
- box-sizing: border-box;
- padding: 3px;
- display: flex;
- justify-content: center;
- align-items: flex-start;
- flex-direction: column;
- font-size: 12px;
- z-index: 6;
- user-select: none;
- /* background: #183153; */
- overflow: hidden;
- border: none;
- color: #ccc;
- border-radius: 10px;
- left: 30px;
- padding-left: 10px;
- background: rgba(117, 117, 117, 0.8);
- }
- .bmMapItemInfoAfter {
- width: 0%;
- height: 100%;
- background: rgba(117, 117, 117, 0.8);
- position: absolute;
- transition: all 0.2s ease-in-out;
- right: 0;
- }
- .bmMapItemInfoSelected > .bmMapItemInfoAfter {
- right: auto;
- left: 0;
- width: 100%;
- }
- .bmMapItemInfo span {
- z-index: 20;
- transition: all 0.2s ease-in-out;
- }
- .bmMapItemInfo span + span {
- margin-top: 5px;
- }
- .bmMapItemInfoSelected > span {
- color: #ccc;
- animation: scaleUp 0.2s ease-in-out;
- }
- @keyframes scaleUp {
- 0% {
- transform: scale(1);
- }
- 50% {
- transform: scale(0.95);
- }
- 100% {
- transform: scale(1);
- }
- }
- .bmMapItemInfo span:nth-child(1) {
- font-weight: bold;
- }
- .bmMapItemInfo span:nth-child(2) {
- opacity: 0.8;
- }
- .bmMapItemSelected {
- position: absolute;
- height: 100%;
- width: 100%;
- overflow: hidden;
- z-index: 4;
- }
- .bmMapItemSelected::before {
- content: " ";
- position: absolute;
- height: 100%;
- width: 100%;
- background: linear-gradient(
- 90deg,
- transparent,
- #ff3f99,
- #3e88ff,
- transparent
- );
- /* transform: scale(5); */
- animation: rotation_9018 3000ms infinite linear;
- filter: blur(9px);
- }
- @keyframes rotation_9018 {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- .bmMapItemSelectedContent {
- position: absolute;
- height: calc(100% - 6px);
- width: calc(100% - 6px);
- top: 3px;
- left: 3px;
- background-color: #16182a;
- }
- .bmMapItemSelectedContent::before {
- content: " ";
- height: 28px;
- width: 8px;
- position: absolute;
- background: white;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- filter: blur(12px);
- }
- .bmBench {
- width: 100%;
- /* height: 300px; */
- padding: 25px 0;
- box-sizing: border-box;
- }
- .bmBenchBox {
- font-size: 0;
- /* margin-top: 5px; */
- position: relative;
- display: flex;
- justify-content: center;
- }
- .bmBenchImg {
- /* width: 100%;
- height: 285px; */
- /* width: 100%; */
- height: 100%;
- border-radius: 6px;
- }
- .bmBenchTrailUpper {
- position: absolute;
- /* height: 285px; */
- height: 100%;
- width: 100%;
- z-index: 20;
- left: 0;
- top: 0;
- }
- .bmBenchTrailUpperCursorTap {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.8);
- border-radius: 50%;
- left: 30%;
- top: 0;
- animation: bmBenchTrailUpperCursorTapAnimation 0.75s linear 0s 1;
- }
- @keyframes bmBenchTrailUpperCursorTapAnimation {
- 0% {
- transform: scale(1);
- }
- 25% {
- transform: scale(1);
- opacity: 1;
- }
- 40% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 50% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 55% {
- transform: scale(1);
- opacity: 1;
- }
- 100% {
- transform: scale(1);
- }
- }
- .bmBenchTrailUpperCursorSwipe {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.8);
- border-radius: 50%;
- transition: all 1s;
- }
- .bmBenchTrailUpperCursorSwipe2 {
- height: 1.5vh;
- width: 1.5vh;
- transition: all 1s 0.05s;
- }
- .bmBenchTrailUpperCursorSwipe3 {
- height: 1vh;
- width: 1vh;
- transition: all 1s 0.1s;
- }
- .bmBenchTrailUpperCursorPress {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.8);
- border-radius: 50%;
- left: 30%;
- top: 0;
- animation: bmBenchTrailUpperCursorPressAnimation 2s linear 0s 1;
- }
- @keyframes bmBenchTrailUpperCursorPressAnimation {
- 0% {
- transform: scale(1);
- }
- 12% {
- transform: scale(1);
- opacity: 1;
- }
- 21% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 70% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 73% {
- transform: scale(1);
- opacity: 1;
- }
- 100% {
- transform: scale(1);
- }
- }
- .bmBenchTrailUpperCursor {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.6);
- /* border: 1vh solid rgba(255, 255, 255, 0.6); */
- border-radius: 50%;
- left: 30%;
- top: 0;
- pointer-events: none;
- animation: bmBenchTrailUpperCursorAnimation 1s linear 0s 1;
- box-sizing: border-box;
- }
- @keyframes bmBenchTrailUpperCursorAnimation {
- 0% {
- border: 1vh solid rgba(255, 255, 255, 0.4);
- }
- 40% {
- border: 0vh solid rgba(255, 255, 255, 0.4);
- }
- 100% {
- border: 0vh solid rgba(255, 255, 255, 0.4);
- }
- }
- .bmInfo {
- min-height: 126px;
- border-bottom: 1px solid #444358;
- padding-bottom: 15px;
- }
- .bmInfoNotSelected,
- .bmInfoOneSelected {
- padding: 0 15px 0 25px;
- }
- .bmInfoNsTitle,
- .bmInfoOsTitle {
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 80px;
- }
- .bmInfoNsInfo,
- .bmInfoOsInfo {
- display: flex;
- flex-direction: column;
- }
- .bmInfoNsInfo > span:nth-child(1),
- .bmInfoOsInfo > span:nth-child(1) {
- /* font-weight: bold; */
- font-size: 18px;
- display: flex;
- align-items: center;
- /* justify-content: center; */
- }
- .bmInfoNsInfo > span:nth-child(2),
- .bmInfoOsInfo > span:nth-child(2) {
- font-size: 12px;
- opacity: 0.4;
- margin-top: 10px;
- /* padding-bottom: 15px; */
- letter-spacing: 1px;
- font-weight: lighter;
- }
- .bmInfoNsChart {
- height: 50px;
- width: 200px;
- }
- .bmInfoOsImg {
- background-image: url(../../assets/benchImage.png);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- height: 100%;
- width: 120px;
- }
- .bmInfoOsImgA3NF-01 {
- background-image: url(../../assets/bench_img/a3nf_01.jpg) !important;
- }
- .bmInfoOsImgA3NF-02 {
- background-image: url(../../assets/bench_img/a3nf_02.jpg) !important;
- }
- .bmInfoOsImgB9PA-01 {
- background-image: url(../../assets/bench_img/B9PA_01.jpg) !important;
- }
- .bmInfoOsImgB9PA-02 {
- background-image: url(../../assets/bench_img/B9PA_01.jpg) !important;
- }
- .bmInfoOsImgB9PA-04 {
- background-image: url(../../assets/bench_img/B9PA_04.jpg) !important;
- }
- .bmInfoOsImgCBEV-01 {
- background-image: url(../../assets/bench_img/CBEV_01.jpg) !important;
- }
- .bmInfoOsImgQ3NF-01 {
- background-image: url(../../assets/bench_img/Q3nf_01.jpg) !important;
- }
- .bmInfoOsImgH-JP-02 {
- background-image: url(../../assets/bench_img/meb-jp2.jpg) !important;
- }
- .bmInfoOsImgP-CN-01 {
- background-image: url(../../assets/bench_img/MEB-P-CN_01.jpg) !important;
- }
- .bmInfoOsImgH-CN-01 {
- background-image: url(../../assets/bench_img/meb-H_CN_01.jpg) !important;
- }
- .bmInfoOsImgP-TW-01 {
- background-image: url(../../assets/bench_img/meb-h-CN_02.jpg) !important;
- }
- .bmInfoOsImgH-JP-01 {
- background-image: url(../../assets/bench_img/meb-jp1.jpg) !important;
- }
- .bmInfoOsImgD5 {
- background-image: url(../../assets/bench_img/Q7PA_01.jpg) !important;
- }
- .bmInfoOsImgQ6-01 {
- background-image: url(../../assets/bench_img/Q6-01.jpg) !important;
- }
- .bmInfoOsImgQ6-02 {
- background-image: url(../../assets/bench_img/Q6-02.jpg) !important;
- }
- .bmInfoNsTag,
- .bmInfoOsTag {
- display: flex;
- padding: 10px 0;
- }
- .bmInfoTagItem {
- height: 26px;
- padding: 4px 14px;
- background-color: #25293c;
- font-size: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 13px;
- box-sizing: border-box;
- color: #d0cece;
- margin-right: 10px;
- cursor: pointer;
- user-select: none;
- }
- .bmInfoTagItem:hover {
- background-color: #2d3249;
- }
- .bmInfoTagItem:active {
- background-color: #333a53;
- }
- .bmInfoMsSlide {
- height: 120px;
- width: 200px;
- /* background-color: #3e88ff; */
- background-image: url(../../assets/benchImage.png);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- cursor: pointer;
- position: relative;
- }
- .bmInfoMsSlideName {
- position: absolute;
- background-color: rgba(23, 25, 43, 0.5);
- font-size: 12px;
- padding: 1px 8px;
- border-radius: 9px;
- left: 3px;
- top: 3px;
- box-sizing: border-box;
- /* text-align: center; */
- backdrop-filter: blur(1px);
- text-shadow: 0 0 10px #000;
- display: flex;
- justify-content: center;
- align-items: center;
- user-select: none;
- }
- .bmInfoMsSlideNameStatus {
- float: right;
- }
- .bmInfoMsSlideNameStatus,
- .bmInfoMsSlideNameStatus4 {
- height: 12px;
- width: 12px;
- border: 3px solid #b1b3b8;
- border-radius: 50%;
- box-sizing: border-box;
- margin-right: 6px;
- }
- .bmInfoMsSlideNameStatus2,
- .bmInfoMsSlideNameStatus3 {
- border: 3px solid #95d475;
- }
- /* .bmInfoMsSlideNameStatus4 {
- border: 3px solid #f89898;
- } */
- .bmInfoMsSlideNameStatus5,
- .bmInfoMsSlideNameStatus6 {
- border: 3px solid #79bbff;
- }
- .bmInfoMultipleSelected {
- position: relative;
- padding: 4px 14px;
- }
- .bmInfoMsPagination {
- position: absolute;
- z-index: 10;
- left: 50%;
- /* top: 60px; */
- height: 16px;
- width: auto;
- /* padding: 0 10px; */
- border-radius: 10px;
- transform: translateX(-50%);
- background-color: rgba(255, 255, 255, 0.3);
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .bmInfoMsPagination :deep() span:nth-child(1) {
- margin-left: 10px;
- }
- .bmInfoMsPagination :deep() span:last-child {
- margin-right: 10px;
- }
- .bmBtn {
- padding: 15px 15px 15px 25px;
- display: flex;
- align-items: center;
- }
- .bmBtnItem {
- cursor: pointer;
- height: 24px;
- width: 24px;
- border-radius: 3px;
- margin-right: 20px;
- transition: all 0.2s;
- color: #aaa;
- }
- /* .bmBtnItem :deep() path {
- color: #aaa;
- } */
- .bmBtnItem:hover {
- background-color: rgba(255, 255, 255, 0.2);
- filter: brightness(1.5);
- }
- .bmBtnItem:active {
- background-color: rgba(255, 255, 255, 0.3);
- }
- .bmBtnItemMonitor,
- .bmBtnMapLocation {
- background-image: linear-gradient(
- 60deg,
- rgb(253 46 91 / 70%) 40%,
- rgb(254 129 130 / 70%)
- );
- color: #ccc;
- }
- .bmBtnItemSelectAll {
- /* position: relative; */
- margin-right: 20px;
- display: flex;
- align-items: center;
- }
- .bmBtnItemSelectAll > .bmBtnItem {
- margin-right: 5px;
- }
- .bmBtnItemSelectAllNum {
- /* position: absolute; */
- /* right: 20px; */
- font-size: 12px;
- color: rgba(226, 228, 243, 0.6);
- }
- .bmBtnItemActive {
- filter: drop-shadow(0 0 2px rgb(255, 255, 255)) brightness(1.5);
- font-size: 20px;
- }
- .bmLog {
- padding: 5px 25px 20px 25px;
- }
- .bmLogBox {
- padding: 15px;
- border: 2px solid #31344a;
- border-radius: 17px;
- box-sizing: border-box;
- background-color: #31344a80;
- /* max-height: 200px; */
- height: 200px;
- overflow-y: scroll;
- /* max-height: 200px; */
- }
- .bmLogItem {
- line-height: 22px;
- margin: 6px 0px;
- padding: 0 6px;
- width: 100%;
- box-sizing: border-box;
- font-size: 14px;
- word-wrap: break-word;
- }
- .bmLogItemDebug {
- color: rgb(115, 201, 255);
- }
- .bmLogItemInfo {
- color: rgb(81, 230, 93);
- }
- .bmLogItemWarning {
- color: rgb(228, 230, 81);
- }
- .bmLogItemError {
- color: rgb(255, 113, 113);
- }
- /* .origin-basic {
- padding: 15px 20px;
- color: #fff;
- font-size: 12px;
- } */
- .origin-basic div {
- margin-bottom: 5px;
- }
- .origin-basic div span {
- margin-right: 12px;
- }
- .origin-basic h2 {
- cursor: pointer;
- font-size: 14px;
- margin-bottom: 10px;
- }
- .origin-map {
- background-color: rgba(117, 117, 117, 0.8);
- }
- .ready {
- color: #65c94c00 !important;
- font-size: 30px;
- }
- .running {
- color: #478bc300 !important;
- font-size: 30px;
- }
- .occupied {
- color: #478bc300 !important;
- font-size: 30px;
- }
- .offline {
- color: #cdd0cf00 !important;
- font-size: 30px;
- }
- /*.offline {
- color: red !important;
- font-size: 30px;
- }*/
- .bmInfoMsSlideNameStatus.ready {
- color: #65c94c !important;
- border: 3px solid #65c94c;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.occupied {
- color: #478bc3 !important;
- border: 3px solid #478bc3;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.offline {
- color: #cdd0cf !important;
- border: 3px solid #cdd0cf;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.offline {
- color: red !important;
- border: 3px solid red;
- font-size: 30px;
- }
- </style>
- <style scoped>
- /* .benchMapBox {
- margin-top: 30px;
- } */
- .benchMapBox :deep() .el-scrollbar__bar {
- display: none;
- }
- .bmContent {
- background-image: linear-gradient(60deg, #16182a 30%, #2d3049);
- border-radius: 10px;
- /* height: 1800px; */
- margin-top: 30px;
- margin-bottom: 30px;
- min-height: 426px;
- }
- .bmMap {
- /* height: 500px; */
- width: 100%;
- /* padding: 5px 10px; */
- box-sizing: border-box;
- }
- .bmMap
- :deep()
- .el-radio-button__original-radio:checked
- + .el-radio-button__inner {
- background-color: #474c79;
- }
- .bmMap
- :deep()
- .el-radio-button__original-radio:checked
- + .el-radio-button__inner
- span {
- color: #fff;
- }
- .bmMap :deep() .el-radio-button__inner {
- background-color: #383c6b;
- border: none;
- box-shadow: none;
- }
- .bmMap :deep() .el-radio-button__inner span {
- color: #ccc;
- }
- .bmMap :deep() .el-radio-button__inner span:hover {
- color: #eee;
- }
- .bmMapImage {
- position: relative;
- width: 100%;
- /* border: 1px solid #fff; */
- background-color: rgba(255, 255, 255, 0.04);
- border-radius: 6px;
- }
- .bmMapItem {
- position: absolute;
- height: 30px;
- width: 30px;
- cursor: pointer;
- }
- .bmMapItemNormal {
- position: absolute;
- height: 100%;
- width: 100%;
- background-color: #16182a;
- /* box-shadow: 0 0 0 3px #393e6d inset; */
- box-sizing: border-box;
- z-index: 2;
- }
- .bmMapItemInfo {
- position: absolute;
- height: 233%;
- width: 120px;
- box-sizing: border-box;
- padding: 3px;
- display: flex;
- justify-content: center;
- align-items: flex-start;
- flex-direction: column;
- font-size: 12px;
- z-index: 6;
- user-select: none;
- /* background: #183153; */
- overflow: hidden;
- border: none;
- color: #ccc;
- border-radius: 10px;
- left: 30px;
- padding-left: 10px;
- background: rgba(117, 117, 117, 0.8);
- }
- .bmMapItemInfoWater {
- position: absolute;
- width: 120px;
- box-sizing: border-box;
- padding: 3px;
- display: flex;
- justify-content: center;
- align-items: flex-start;
- flex-direction: column;
- font-size: 12px;
- z-index: 6;
- user-select: none;
- /* background: #183153; */
- overflow: hidden;
- border: none;
- color: #ccc;
- border-radius: 10px;
- left: 30px;
- padding-left: 10px;
- background: rgba(117, 117, 117, 0.8);
- }
- .bmMapItemInfoAfter {
- width: 0%;
- height: 100%;
- background: rgba(117, 117, 117, 0.8);
- position: absolute;
- transition: all 0.2s ease-in-out;
- right: 0;
- }
- .bmMapItemInfoSelected > .bmMapItemInfoAfter {
- right: auto;
- left: 0;
- width: 100%;
- }
- .bmMapItemInfo span {
- z-index: 20;
- transition: all 0.2s ease-in-out;
- }
- .bmMapItemInfo span + span {
- margin-top: 5px;
- }
- .bmMapItemInfoSelected > span {
- color: #ccc;
- animation: scaleUp 0.2s ease-in-out;
- }
- @keyframes scaleUp {
- 0% {
- transform: scale(1);
- }
- 50% {
- transform: scale(0.95);
- }
- 100% {
- transform: scale(1);
- }
- }
- .bmMapItemInfo span:nth-child(1) {
- font-weight: bold;
- }
- .bmMapItemInfo span:nth-child(2) {
- opacity: 0.8;
- }
- .bmMapItemSelected {
- position: absolute;
- height: 100%;
- width: 100%;
- overflow: hidden;
- z-index: 4;
- }
- .bmMapItemSelected::before {
- content: " ";
- position: absolute;
- height: 100%;
- width: 100%;
- background: linear-gradient(
- 90deg,
- transparent,
- #ff3f99,
- #3e88ff,
- transparent
- );
- /* transform: scale(5); */
- animation: rotation_9018 3000ms infinite linear;
- filter: blur(9px);
- }
- @keyframes rotation_9018 {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- .bmMapItemSelectedContent {
- position: absolute;
- height: calc(100% - 6px);
- width: calc(100% - 6px);
- top: 3px;
- left: 3px;
- background-color: #16182a;
- }
- .bmMapItemSelectedContent::before {
- content: " ";
- height: 28px;
- width: 8px;
- position: absolute;
- background: white;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- filter: blur(12px);
- }
- .bmBench {
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- .bmBenchBox {
- font-size: 0;
- /* margin-top: 5px; */
- position: relative;
- display: flex;
- justify-content: center;
- background-color: #000;
- height: 100%;
- }
- .bmBenchImg {
- /* width: 100%;
- height: 285px; */
- width: 100%;
- background-color: #000;
- /* padding: 80px; */
- height: 100%;
- border-radius: 6px;
- height: 100%;
- }
- .bmBenchTrailUpper {
- position: absolute;
- /* height: 285px; */
- height: 100%;
- width: 100%;
- z-index: 20;
- left: 0;
- top: 0;
- }
- .bmBenchTrailUpperCursorTap {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.8);
- border-radius: 50%;
- left: 30%;
- top: 0;
- animation: bmBenchTrailUpperCursorTapAnimation 0.75s linear 0s 1;
- }
- @keyframes bmBenchTrailUpperCursorTapAnimation {
- 0% {
- transform: scale(1);
- }
- 25% {
- transform: scale(1);
- opacity: 1;
- }
- 40% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 50% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 55% {
- transform: scale(1);
- opacity: 1;
- }
- 100% {
- transform: scale(1);
- }
- }
- .bmBenchTrailUpperCursorSwipe {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.8);
- border-radius: 50%;
- transition: all 1s;
- }
- .bmBenchTrailUpperCursorSwipe2 {
- height: 1.5vh;
- width: 1.5vh;
- transition: all 1s 0.05s;
- }
- .bmBenchTrailUpperCursorSwipe3 {
- height: 1vh;
- width: 1vh;
- transition: all 1s 0.1s;
- }
- .bmBenchTrailUpperCursorPress {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.8);
- border-radius: 50%;
- left: 30%;
- top: 0;
- animation: bmBenchTrailUpperCursorPressAnimation 2s linear 0s 1;
- }
- @keyframes bmBenchTrailUpperCursorPressAnimation {
- 0% {
- transform: scale(1);
- }
- 12% {
- transform: scale(1);
- opacity: 1;
- }
- 21% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 70% {
- transform: scale(0.6);
- opacity: 0.6;
- }
- 73% {
- transform: scale(1);
- opacity: 1;
- }
- 100% {
- transform: scale(1);
- }
- }
- .bmBenchTrailUpperCursor {
- position: absolute;
- height: 2vh;
- width: 2vh;
- background-color: rgba(255, 255, 255, 0.6);
- /* border: 1vh solid rgba(255, 255, 255, 0.6); */
- border-radius: 50%;
- left: 30%;
- top: 0;
- pointer-events: none;
- animation: bmBenchTrailUpperCursorAnimation 1s linear 0s 1;
- box-sizing: border-box;
- }
- @keyframes bmBenchTrailUpperCursorAnimation {
- 0% {
- border: 1vh solid rgba(255, 255, 255, 0.4);
- }
- 40% {
- border: 0vh solid rgba(255, 255, 255, 0.4);
- }
- 100% {
- border: 0vh solid rgba(255, 255, 255, 0.4);
- }
- }
- .bmInfo {
- min-height: 126px;
- border-bottom: 1px solid #444358;
- padding-bottom: 15px;
- }
- .bmInfoNotSelected,
- .bmInfoOneSelected {
- padding: 0 15px 0 25px;
- }
- .bmInfoNsTitle,
- .bmInfoOsTitle {
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 80px;
- }
- .bmInfoNsInfo,
- .bmInfoOsInfo {
- display: flex;
- flex-direction: column;
- }
- .bmInfoNsInfo > span:nth-child(1),
- .bmInfoOsInfo > span:nth-child(1) {
- /* font-weight: bold; */
- font-size: 18px;
- display: flex;
- align-items: center;
- /* justify-content: center; */
- }
- .bmInfoNsInfo > span:nth-child(2),
- .bmInfoOsInfo > span:nth-child(2) {
- font-size: 12px;
- opacity: 0.4;
- margin-top: 10px;
- /* padding-bottom: 15px; */
- letter-spacing: 1px;
- font-weight: lighter;
- }
- .bmInfoNsChart {
- height: 50px;
- width: 200px;
- }
- .bmInfoOsImg {
- background-image: url(../../assets/benchImage.png);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- height: 100%;
- width: 120px;
- }
- .bmInfoOsImgA3NF-01 {
- background-image: url(../../assets/bench_img/a3nf_01.jpg) !important;
- }
- .bmInfoOsImgA3NF-02 {
- background-image: url(../../assets/bench_img/a3nf_02.jpg) !important;
- }
- .bmInfoOsImgB9PA-01 {
- background-image: url(../../assets/bench_img/B9PA_01.jpg) !important;
- }
- .bmInfoOsImgB9PA-02 {
- background-image: url(../../assets/bench_img/B9PA_01.jpg) !important;
- }
- .bmInfoOsImgB9PA-04 {
- background-image: url(../../assets/bench_img/B9PA_04.jpg) !important;
- }
- .bmInfoOsImgCBEV-01 {
- background-image: url(../../assets/bench_img/CBEV_01.jpg) !important;
- }
- .bmInfoOsImgQ3NF-01 {
- background-image: url(../../assets/bench_img/Q3nf_01.jpg) !important;
- }
- .bmInfoOsImgH-JP-02 {
- background-image: url(../../assets/bench_img/meb-jp2.jpg) !important;
- }
- .bmInfoOsImgP-CN-01 {
- background-image: url(../../assets/bench_img/MEB-P-CN_01.jpg) !important;
- }
- .bmInfoOsImgH-CN-01 {
- background-image: url(../../assets/bench_img/meb-H_CN_01.jpg) !important;
- }
- .bmInfoOsImgP-TW-01 {
- background-image: url(../../assets/bench_img/meb-h-CN_02.jpg) !important;
- }
- .bmInfoOsImgH-JP-01 {
- background-image: url(../../assets/bench_img/meb-jp1.jpg) !important;
- }
- .bmInfoOsImgD5 {
- background-image: url(../../assets/bench_img/Q7PA_01.jpg) !important;
- }
- .bmInfoOsImgQ6-01 {
- background-image: url(../../assets/bench_img/Q6-01.jpg) !important;
- }
- .bmInfoOsImgQ6-02 {
- background-image: url(../../assets/bench_img/Q6-02.jpg) !important;
- }
- .bmInfoNsTag,
- .bmInfoOsTag {
- display: flex;
- padding: 10px 0;
- }
- .bmInfoTagItem {
- height: 26px;
- padding: 4px 14px;
- background-color: #25293c;
- font-size: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 13px;
- box-sizing: border-box;
- color: #d0cece;
- margin-right: 10px;
- cursor: pointer;
- user-select: none;
- }
- .bmInfoTagItem:hover {
- background-color: #2d3249;
- }
- .bmInfoTagItem:active {
- background-color: #333a53;
- }
- .bmInfoMsSlide {
- height: 120px;
- width: 200px;
- /* background-color: #3e88ff; */
- background-image: url(../../assets/benchImage.png);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- cursor: pointer;
- position: relative;
- }
- .bmInfoMsSlideName {
- position: absolute;
- background-color: rgba(23, 25, 43, 0.5);
- font-size: 12px;
- padding: 1px 8px;
- border-radius: 9px;
- left: 3px;
- top: 3px;
- box-sizing: border-box;
- /* text-align: center; */
- backdrop-filter: blur(1px);
- text-shadow: 0 0 10px #000;
- display: flex;
- justify-content: center;
- align-items: center;
- user-select: none;
- }
- .bmInfoMsSlideNameStatus {
- float: right;
- }
- .bmInfoMsSlideNameStatus,
- .bmInfoMsSlideNameStatus4 {
- height: 12px;
- width: 12px;
- border: 3px solid #b1b3b8;
- border-radius: 50%;
- box-sizing: border-box;
- margin-right: 6px;
- }
- .bmInfoMsSlideNameStatus2,
- .bmInfoMsSlideNameStatus3 {
- border: 3px solid #95d475;
- }
- /* .bmInfoMsSlideNameStatus4 {
- border: 3px solid #f89898;
- } */
- .bmInfoMsSlideNameStatus5,
- .bmInfoMsSlideNameStatus6 {
- border: 3px solid #79bbff;
- }
- .bmInfoMultipleSelected {
- position: relative;
- padding: 4px 14px;
- }
- .bmInfoMsPagination {
- position: absolute;
- z-index: 10;
- left: 50%;
- /* top: 60px; */
- height: 16px;
- width: auto;
- /* padding: 0 10px; */
- border-radius: 10px;
- transform: translateX(-50%);
- background-color: rgba(255, 255, 255, 0.3);
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .bmInfoMsPagination :deep() span:nth-child(1) {
- margin-left: 10px;
- }
- .bmInfoMsPagination :deep() span:last-child {
- margin-right: 10px;
- }
- .bmBtn {
- padding: 15px 15px 15px 25px;
- display: flex;
- align-items: center;
- }
- .bmBtnItem {
- cursor: pointer;
- height: 24px;
- width: 24px;
- border-radius: 3px;
- margin-right: 20px;
- transition: all 0.2s;
- color: #aaa;
- }
- /* .bmBtnItem :deep() path {
- color: #aaa;
- } */
- .bmBtnItem:hover {
- background-color: rgba(255, 255, 255, 0.2);
- filter: brightness(1.5);
- }
- .bmBtnItem:active {
- background-color: rgba(255, 255, 255, 0.3);
- }
- .bmBtnItemMonitor,
- .bmBtnMapLocation {
- background-image: linear-gradient(
- 60deg,
- rgb(253 46 91 / 70%) 40%,
- rgb(254 129 130 / 70%)
- );
- color: #ccc;
- }
- .bmBtnItemSelectAll {
- /* position: relative; */
- margin-right: 20px;
- display: flex;
- align-items: center;
- }
- .bmBtnItemSelectAll > .bmBtnItem {
- margin-right: 5px;
- }
- .bmBtnItemSelectAllNum {
- /* position: absolute; */
- /* right: 20px; */
- font-size: 12px;
- color: rgba(226, 228, 243, 0.6);
- }
- .bmBtnItemActive {
- filter: drop-shadow(0 0 2px rgb(255, 255, 255)) brightness(1.5);
- font-size: 20px;
- }
- .bmLog {
- padding: 5px 25px 20px 25px;
- }
- .bmLogBox {
- padding: 15px;
- border: 2px solid #31344a;
- border-radius: 17px;
- box-sizing: border-box;
- background-color: #31344a80;
- /* max-height: 200px; */
- height: 200px;
- overflow-y: scroll;
- /* max-height: 200px; */
- }
- .bmLogItem {
- line-height: 22px;
- margin: 6px 0px;
- padding: 0 6px;
- width: 100%;
- box-sizing: border-box;
- font-size: 14px;
- word-wrap: break-word;
- }
- .bmLogItemDebug {
- color: rgb(115, 201, 255);
- }
- .bmLogItemInfo {
- color: rgb(81, 230, 93);
- }
- .bmLogItemWarning {
- color: rgb(228, 230, 81);
- }
- .bmLogItemError {
- color: rgb(255, 113, 113);
- }
- .origin-basic {
- padding: 15px 20px;
- color: #fff;
- font-size: 12px;
- }
- .origin-basic div {
- margin-bottom: 10px;
- }
- .origin-basic div span {
- margin-right: 12px;
- }
- .origin-basic h2 {
- cursor: pointer;
- font-size: 14px;
- margin-bottom: 10px;
- }
- .originBasicRow {
- display: flex;
- margin-bottom: 0 !important;
- }
- .originBasicRow > div {
- width: 100%;
- }
- .ready {
- color: #65c94c00 !important;
- font-size: 30px;
- }
- .occupied {
- color: #478bc300 !important;
- font-size: 30px;
- }
- .offline {
- color: #cdd0cf00 !important;
- font-size: 30px;
- }
- .offline {
- color: #ff000000 !important;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.ready {
- color: #65c94c !important;
- border: 3px solid #65c94c;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.occupied {
- color: #478bc3 !important;
- border: 3px solid #478bc3;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.offline {
- color: #cdd0cf !important;
- border: 3px solid #cdd0cf;
- font-size: 30px;
- }
- .bmInfoMsSlideNameStatus.offline {
- color: red !important;
- border: 3px solid red;
- font-size: 30px;
- }
- .secondScreen {
- width: 26.36vw;
- height: 26.38vh;
- margin-left: 1.56vw;
- margin-bottom: 2.13vh;
- border-radius: 2.08vw;
- overflow: hidden;
- }
- .benchBtnActive {
- filter: brightness(5) drop-shadow(0 2px 3px rgb(255, 255, 255));
- }
- .grid-item-background{
- height: 20vh;
- width: calc(100% - 10px);
- border-radius: 10px;
- margin: 0 auto 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- }
- .mouse-flow {
- position: absolute;
- z-index: 99999;
- display: flex;
- flex-direction: column;
- width: 100px;
- color: #fff;
- border-radius: 10px;
- background-color: rgba(0, 0, 0, 0.8)
- }
- .mouse-flow-title {
- font-size: 14px;
- }
- .mouse-flow-dep {
- font-size: 12px;
- }
- .mouse-flow-status {
- width: 10px;
- height: 10px;
- float: right;
- border-radius: 100%;
- }
- .ready {
- background-color: #65c94c00 !important;
- }
- .occupied {
- background-color: #478bc300 !important;
- }
- .offline {
- background-color: #cdd0cf00 !important;
- }
- .error {
- background-color: #ff000000 !important;
- }
- </style>
|