QingXiCheAndQvCarEventClick.js 120 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965
  1. import { QingXiCheAndQvCarEvent } from "./QingXiCheAndQvCarEvent.js";
  2. import { QingXiCheAndQvComHighlightLayer } from "./QingXiCheAndQvComHighlightLayer.js";
  3. import { ComVal } from "../common/ComVal.js";
  4. import { WindowEvent } from "../../WindowQingXiCheAndQv/js/WindowEvent.js";
  5. import { QingXiCheAndQvComRes } from '../js/QingXiCheAndQvComRes.js';
  6. import { QingXiCheAndQvComClipPlaneMeshEvent } from './QingXiCheAndQvComClipPlaneMeshEvent.js';
  7. import { QingXiCheAdnQvCarEventStep } from './QingXiCheAdnQvCarEventStep.js';
  8. import { ElMessage, ElMessageBox } from 'element-plus';
  9. /**
  10. * 操作清洗车仿真 点击物体的时候触发 逻辑
  11. */
  12. export class QingXiCheAndQvCarEventClick {
  13. // 每次 new 出对象则会调用这个构造函数
  14. constructor() {
  15. /**
  16. * 三维世界对象 src\components\ThreeWorldEvent\js\QingXiCheAndQvThreeWorldEventMain.js
  17. */
  18. this.objThreeWorldEventMain = null;
  19. /**
  20. * 当前移动的物体列表,和对应的参数
  21. * 当数组存在目标的时候,则 拖拽的时候,目标物体跟着鼠标移动
  22. */
  23. this.moveMeshList = [];
  24. // 记录第一次点击拖拽时候的坐标
  25. this.moveMeshListClick = {
  26. "x" : 0, "y" : 0, "z" : 0
  27. };
  28. /**
  29. * 当前这些参数不等于null的时候,则说明再拖拽移动目标物体
  30. * 此时固定相机的坐标,和视角
  31. */
  32. this.moveCameraRadius = null;
  33. this.moveCameraAlpha = null;
  34. this.moveCameraBeta = null;
  35. // 记录最后因为 this.moveMeshList 逻辑,鼠标移动的坐标
  36. this.moveCoordinate = {
  37. "x" : 0, "y" : 0, "z" : 0
  38. };
  39. // 是否开启每帧判断的逻辑
  40. this.renderEventBool = false;
  41. // 记录 QingXiCheAndQvProcessEventStore
  42. this.QingXiCheAndQvProcessEventStore = null;
  43. }
  44. // 实现单例模式
  45. static find() {
  46. if (!QingXiCheAndQvCarEventClick.instance) {
  47. QingXiCheAndQvCarEventClick.instance = new QingXiCheAndQvCarEventClick();
  48. }
  49. return QingXiCheAndQvCarEventClick.instance;
  50. }
  51. /**
  52. * 鼠标点击的时候
  53. * pickResult 点击的具体坐标,物体等信息
  54. */
  55. clickMeshEvent = function(pickResult) {
  56. let thisClass = this;
  57. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  58. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  59. let objIframe = objThreeWorldEventMain.objIframe;
  60. let objScene = objThreeWorldEventMain.objScene;
  61. let BABYLON = objThreeWorldEventMain.BABYLON;
  62. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  63. // console.log(
  64. // "鼠标点击的时候", pickResult
  65. // );
  66. // 处理中则不做处理
  67. if (QingXiCheAndQvCarEvent.find().eventEnd != 0) {
  68. return this;
  69. }
  70. let type = QingXiCheAndQvCarEvent.find().eventName;
  71. let meshMoveConfig = thisClass.meshMoveConfig(type);
  72. if (meshMoveConfig == null) {
  73. thisClass.moveMeshListReset();
  74. return;
  75. }
  76. // 目标物体
  77. let pickedMesh = pickResult["pickedMesh"];
  78. if (typeof pickedMesh["id"] != "string") {
  79. return;
  80. }
  81. let meshId = pickedMesh["id"];
  82. // 点击的坐标
  83. let pickedPoint = pickResult["pickedPoint"];
  84. let meshList = meshMoveConfig["meshList"];
  85. let meshJson = meshMoveConfig["meshJson"];
  86. // 点击的不是在物体的列表里的时候
  87. if (meshJson[meshId] == null || meshJson[meshId] == undefined) {
  88. thisClass.moveMeshListReset();
  89. return;
  90. }
  91. let objSceneActiveCamera = ChengGuangYuanJing.CommonVal.find().objSceneActiveCamera;
  92. thisClass.moveCameraRadius = objSceneActiveCamera.radius;
  93. thisClass.moveCameraAlpha = objSceneActiveCamera.alpha;
  94. thisClass.moveCameraBeta = objSceneActiveCamera.beta;
  95. thisClass.moveMeshListClick = {
  96. "x" : pickedPoint.x, "y" : pickedPoint.y, "z" : pickedPoint.z
  97. };
  98. console.log(
  99. "thisClass.moveMeshListClick",
  100. thisClass.moveMeshListClick
  101. );
  102. thisClass.moveMeshList = [];
  103. // 记录点击的时候的物体的坐标
  104. for (let i = 0; i < meshList.length; i++) {
  105. let thisMeshId = meshList[i];
  106. let thisObjMesh = objScene.getMeshById(thisMeshId);
  107. if (thisObjMesh != null && thisObjMesh != undefined) {
  108. // 设置为不可选中
  109. thisObjMesh.isPickable = false;
  110. let addJson = {
  111. "meshId" : thisObjMesh.id,
  112. "x" : thisObjMesh.absolutePosition.x,
  113. "y" : thisObjMesh.absolutePosition.y,
  114. "z" : thisObjMesh.absolutePosition.z,
  115. };
  116. thisClass.moveMeshList.push(
  117. // 必须转换下,这样就是独立的对象
  118. JSON.parse(JSON.stringify(addJson))
  119. );
  120. }
  121. }
  122. return thisClass;
  123. }
  124. /**
  125. * 重置为不是拖拽逻辑
  126. */
  127. moveMeshListReset = function() {
  128. let thisClass = this;
  129. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  130. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  131. let objIframe = objThreeWorldEventMain.objIframe;
  132. let objScene = objThreeWorldEventMain.objScene;
  133. let BABYLON = objThreeWorldEventMain.BABYLON;
  134. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  135. // 先将对应的物体,恢复可以选中
  136. if (thisClass.moveMeshList.length > 0) {
  137. for (let i = 0; i < thisClass.moveMeshList.length; i++) {
  138. let thisConfig = thisClass.moveMeshList[i];
  139. let thisMeshId = thisConfig["meshId"];
  140. let thisObjMesh = objScene.getMeshById(thisMeshId);
  141. if (thisObjMesh != null && thisObjMesh != undefined) {
  142. // 设置为可选中
  143. thisObjMesh.isPickable = true;
  144. }
  145. }
  146. }
  147. thisClass.moveMeshList = [];
  148. thisClass.moveCameraRadius = null;
  149. thisClass.moveCameraAlpha = null;
  150. thisClass.moveCameraBeta = null;
  151. }
  152. /**
  153. * 更新被拖拽物体的位置
  154. */
  155. moveMeshListCoordinateUpdate = function() {
  156. let thisClass = this;
  157. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  158. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  159. let objIframe = objThreeWorldEventMain.objIframe;
  160. let objScene = objThreeWorldEventMain.objScene;
  161. let BABYLON = objThreeWorldEventMain.BABYLON;
  162. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  163. if (thisClass.moveMeshList.length > 0) {
  164. // 追加的xyz坐标
  165. var addPosition = {
  166. "x" : thisClass.moveCoordinate.x - thisClass.moveMeshListClick.x,
  167. "y" : thisClass.moveCoordinate.y - thisClass.moveMeshListClick.y,
  168. "z" : thisClass.moveCoordinate.z - thisClass.moveMeshListClick.z,
  169. };
  170. for (let i = 0; i < thisClass.moveMeshList.length; i++) {
  171. let thisConfig = thisClass.moveMeshList[i];
  172. let thisMeshId = thisConfig["meshId"];
  173. let thisObjMesh = objScene.getMeshById(thisMeshId);
  174. if (thisObjMesh != null && thisObjMesh != undefined) {
  175. // 一定要用绝对坐标更新,这样才可以解决不同模型轴向,问题导致设置 position 会各种出错
  176. thisObjMesh.setAbsolutePosition(
  177. new BABYLON.Vector3(
  178. parseFloat(thisConfig["x"]) + addPosition.x,
  179. parseFloat(thisConfig["y"]) + addPosition.y,
  180. parseFloat(thisConfig["z"]) + addPosition.z
  181. )
  182. );
  183. }
  184. }
  185. }
  186. }
  187. /**
  188. * 将当前的物体列表,回归到最初原始的坐标位置
  189. */
  190. moveMeshListResetPosition = function () {
  191. let thisClass = this;
  192. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  193. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  194. let objIframe = objThreeWorldEventMain.objIframe;
  195. let objScene = objThreeWorldEventMain.objScene;
  196. let BABYLON = objThreeWorldEventMain.BABYLON;
  197. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  198. if (thisClass.moveMeshList.length > 0) {
  199. for (let i = 0; i < thisClass.moveMeshList.length; i++) {
  200. let thisConfig = thisClass.moveMeshList[i];
  201. let thisMeshId = thisConfig["meshId"];
  202. let thisObjMesh = objScene.getMeshById(thisMeshId);
  203. if (thisObjMesh != null && thisObjMesh != undefined) {
  204. // 一定要用绝对坐标更新,这样才可以解决不同模型轴向,问题导致设置 position 会各种出错
  205. thisObjMesh.setAbsolutePosition(
  206. new BABYLON.Vector3(
  207. parseFloat(thisConfig["x"]),
  208. parseFloat(thisConfig["y"]),
  209. parseFloat(thisConfig["z"])
  210. )
  211. );
  212. }
  213. }
  214. }
  215. }
  216. /**
  217. * 鼠标移动的时候
  218. * pickResult 点击的具体坐标,物体等信息
  219. */
  220. clickMoveMeshEvent = function(pickResult) {
  221. let thisClass = this;
  222. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  223. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  224. let objIframe = objThreeWorldEventMain.objIframe;
  225. let objScene = objThreeWorldEventMain.objScene;
  226. let BABYLON = objThreeWorldEventMain.BABYLON;
  227. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  228. // console.log(
  229. // "鼠标移动的时候", pickResult
  230. // );
  231. // 处理中则不做处理
  232. if (QingXiCheAndQvCarEvent.find().eventEnd != 0) {
  233. return this;
  234. }
  235. // 此时移动的坐标
  236. let pickedPoint = pickResult["pickedPoint"];
  237. thisClass.moveCoordinate = {
  238. "x" : pickedPoint.x, "y" : pickedPoint.y, "z" : pickedPoint.z
  239. };
  240. thisClass.moveMeshListCoordinateUpdate();
  241. return thisClass;
  242. }
  243. /**
  244. * 判断是否拖拽到指定的坐标范围了
  245. * 范围内 返回 true , 否则返回 false
  246. */
  247. dragBool = function() {
  248. let thisClass = this;
  249. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  250. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  251. let objIframe = objThreeWorldEventMain.objIframe;
  252. let objScene = objThreeWorldEventMain.objScene;
  253. let BABYLON = objThreeWorldEventMain.BABYLON;
  254. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  255. // 当没有被点击的物体的时候,说明该逻辑是没有拖拽到附近的
  256. if (thisClass.moveMeshList.length <= 0) {
  257. return false;
  258. }
  259. // 最终应该拖拽到哪个坐标附近
  260. let targetPosition = {
  261. "x" : -0.00247241766192019,
  262. "y" : -0.8081836700439453,
  263. "z" : 36.005401611328125,
  264. }
  265. // 得到两点之间的距离
  266. let thisVector3distanceTo = BABYLON.Vector3.Distance(
  267. new BABYLON.Vector3(parseFloat(targetPosition.x), parseFloat(targetPosition.y), parseFloat(targetPosition.z)),
  268. new BABYLON.Vector3(parseFloat(thisClass.moveCoordinate.x), parseFloat(thisClass.moveCoordinate.y), parseFloat(thisClass.moveCoordinate.z))
  269. );
  270. // console.log(
  271. // "拖拽后的距离", thisVector3distanceTo
  272. // );
  273. if (thisVector3distanceTo <= 0.5) {
  274. return true;
  275. }
  276. return false;
  277. }
  278. /**
  279. * 每帧被执行,用于判断距离等情况使用
  280. */
  281. renderEvent = () => {
  282. let thisClass = this;
  283. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  284. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  285. let objIframe = objThreeWorldEventMain.objIframe;
  286. let objScene = objThreeWorldEventMain.objScene;
  287. let BABYLON = objThreeWorldEventMain.BABYLON;
  288. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  289. if (thisClass.renderEventBool == false) {
  290. return this;
  291. }
  292. if (QingXiCheAndQvCarEvent.find().eventEnd != 0) {
  293. return this;
  294. }
  295. let type = QingXiCheAndQvCarEvent.find().eventName;
  296. // console.log("每帧 renderEvent ---", type);
  297. switch (type) {
  298. case '行至车辆区域':
  299. let roleAndPositionTargetBool = objThreeWorldEventMain.roleAndPositionTargetBool();
  300. if (roleAndPositionTargetBool == true) {
  301. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  302. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  303. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  304. thisClass.renderEventBool = false;
  305. // 记录当前的视角,解决人物,切换到新的视角的时候,会出现一个很长的过度问题
  306. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  307. thisClass.downTimeEvent();
  308. }
  309. break;
  310. case '绕车一周':
  311. // console.log("绕车一周 每帧执行");
  312. let aroundTheCarPointBool = objThreeWorldEventMain.aroundTheCarPointBool();
  313. // console.log("绕车一周 每帧执行 ---", aroundTheCarPointBool);
  314. if (aroundTheCarPointBool == true) {
  315. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  316. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  317. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  318. thisClass.renderEventBool = false;
  319. // 记录当前的视角,解决人物,切换到新的视角的时候,会出现一个很长的过度问题
  320. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  321. thisClass.downTimeEvent();
  322. }
  323. break;
  324. }
  325. }
  326. /**
  327. * 统一处理完成当前任务的逻辑
  328. */
  329. downTimeEvent = () => {
  330. let thisClass = this;
  331. ElMessageBox.alert('恭喜你,完成了当前任务,请点击下一步继续', '提示', {
  332. confirmButtonClass : 'el-button--success',
  333. confirmButtonText: '下一步',
  334. callback: (action) => {
  335. thisClass.QingXiCheAndQvProcessEventStore.obj.downTime = "" + new Date().getTime();
  336. },
  337. });
  338. }
  339. /**
  340. * 鼠标弹起的时候
  341. * 根据点击到的物体,和当前的流程,触发对应的逻辑
  342. * pickResult 点击的具体坐标,物体等信息
  343. */
  344. main = (pickResult) => {
  345. let thisClass = this;
  346. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  347. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  348. let objIframe = objThreeWorldEventMain.objIframe;
  349. let objScene = objThreeWorldEventMain.objScene;
  350. let BABYLON = objThreeWorldEventMain.BABYLON;
  351. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  352. console.log("typeClick 111111", QingXiCheAndQvCarEvent.find().eventName, QingXiCheAndQvCarEvent.find().eventEnd);
  353. if (QingXiCheAndQvCarEvent.find().eventEnd != 0) {
  354. return this;
  355. }
  356. console.log("typeClick 222222", QingXiCheAndQvCarEvent.find().eventName, QingXiCheAndQvCarEvent.find().eventEnd);
  357. var objMesh = pickResult.pickedMesh;
  358. var objPosition = pickResult.pickedPoint;
  359. // 获取点击对象的方向【 一定要加上 true,否则载入的获取模型的方向,会有问题 】
  360. // eslint-disable-next-line no-unused-vars
  361. var getNormal = pickResult.getNormal(true);
  362. let type = QingXiCheAndQvCarEvent.find().eventName;
  363. let dragBool = thisClass.dragBool();
  364. switch(type) {
  365. // 仿真模拟
  366. case '仿真模拟':
  367. break;
  368. // 人物换装
  369. case '人物换装':
  370. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  371. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  372. // 切换成正在处理中
  373. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  374. // 切换视角
  375. objIframeEdit.modelPeopleLook(3);
  376. objIframeEdit.cameraVisualAngleGetListNameGpsTo("穿衣服_2");
  377. objIframeEdit.roleShow(false);
  378. let thisTime = new Date().getTime();
  379. // 控制延迟逻辑
  380. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  381. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  382. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('人物换装_鞋子', function() {
  383. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('人物换装_裤子', function() {
  384. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('人物换装_上衣', function() {
  385. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('人物换装_安全帽', function() {
  386. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  387. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  388. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  389. thisClass.downTimeEvent();
  390. });
  391. });
  392. });
  393. });
  394. });
  395. }
  396. break;
  397. // 打开车门进入驾驶室
  398. case '打开车门进入驾驶室':
  399. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  400. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  401. // 切换成正在处理中
  402. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  403. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_打开左门', function() {
  404. // 切换视角
  405. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  406. objIframeEdit.modelPeopleLook(3);
  407. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车打开车门");
  408. objIframeEdit.roleShow(false);
  409. let thisTime = new Date().getTime();
  410. // 控制延迟逻辑
  411. // ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  412. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500 * 3, function(fpsEventAddRet) {
  413. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  414. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车确定车辆双闪和工作箭头等是否正常");
  415. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  416. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  417. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_关门', function() {
  418. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车进入副驾驶2");
  419. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  420. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  421. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  422. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  423. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  424. thisClass.downTimeEvent();
  425. });
  426. });
  427. });
  428. });
  429. });
  430. }
  431. break;
  432. // 确认手刹已拉起档位是P档然后发动车辆
  433. case '确认手刹已拉起档位是P档然后发动车辆':
  434. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  435. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  436. // 切换成正在处理中
  437. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  438. // 切换视角
  439. objIframeEdit.modelPeopleLook(3);
  440. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车切换挡位到空挡");
  441. objIframeEdit.roleShow(false);
  442. let thisTime = new Date().getTime();
  443. // 控制延迟逻辑
  444. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  445. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  446. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  447. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  448. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  449. thisClass.downTimeEvent();
  450. });
  451. }
  452. break;
  453. // 发动车辆
  454. case '发动车辆':
  455. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  456. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  457. // 切换成正在处理中
  458. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  459. // 切换视角
  460. objIframeEdit.modelPeopleLook(3);
  461. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车启动车辆");
  462. objIframeEdit.roleShow(false);
  463. let thisTime = new Date().getTime();
  464. // 控制延迟逻辑
  465. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  466. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  467. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_旋转钥匙', function() {
  468. QingXiCheAndQvCarEvent.find().carOpen(true);
  469. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  470. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  471. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  472. thisClass.downTimeEvent();
  473. // // 切换视角
  474. // objIframeEdit.modelPeopleLook(3);
  475. // objIframeEdit.cameraVisualAngleGetListNameGpsTo("拧动钥匙发动车辆向上");
  476. // objIframeEdit.roleShow(false);
  477. // thisTime = new Date().getTime();
  478. // // 控制延迟逻辑
  479. // ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  480. // ComVal.find().fpsEventDel(fpsEventAddRet.code);
  481. // QingXiCheAndQvCarEvent.find().eventEnd = 2;
  482. // QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  483. // QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  484. // });
  485. });
  486. });
  487. }
  488. break;
  489. // 打开车辆双闪同时开启工作双闪灯
  490. case '打开车辆双闪同时开启工作双闪灯':
  491. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  492. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  493. // 控制延迟逻辑
  494. ComVal.find().fpsEventAdd("type_click_" + new Date().getTime(), {}, 1000, function(fpsEventAddRet) {
  495. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  496. // 切换成正在处理中
  497. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  498. QingXiCheAndQvCarEvent.find().carShuangShanOpen(true);
  499. // 切换视角
  500. objIframeEdit.modelPeopleLook(3);
  501. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车开启双闪");
  502. objIframeEdit.roleShow(false);
  503. let thisTime = new Date().getTime();
  504. // 控制延迟逻辑
  505. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  506. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  507. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  508. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  509. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  510. thisClass.downTimeEvent();
  511. });
  512. });
  513. }
  514. break;
  515. // 踩下车辆离合器5秒
  516. case '踩下车辆离合器5秒':
  517. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  518. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  519. // 切换成正在处理中
  520. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  521. // 切换视角
  522. objIframeEdit.modelPeopleLook(3);
  523. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车踩离合5秒");
  524. objIframeEdit.roleShow(false);
  525. let thisTime = new Date().getTime();
  526. // 控制延迟逻辑
  527. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  528. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  529. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('踩下车辆离合器5秒', function() {
  530. WindowEvent.find().WindowCountdownOpen(5, "自定义返回数据", function(WindowCountdownOpenRes) {
  531. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  532. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  533. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  534. thisClass.downTimeEvent();
  535. });
  536. });
  537. });
  538. }
  539. break;
  540. // 按下取力器开关
  541. case '按下取力器开关':
  542. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  543. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  544. // 切换成正在处理中
  545. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  546. // 切换视角
  547. objIframeEdit.modelPeopleLook(3);
  548. // objIframeEdit.cameraVisualAngleGetListNameGpsTo("观察仪表盘指示目视");
  549. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车按下取力器开关");
  550. objIframeEdit.roleShow(false);
  551. let thisTime = new Date().getTime();
  552. // 控制延迟逻辑
  553. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  554. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  555. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  556. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  557. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  558. thisClass.downTimeEvent();
  559. });
  560. }
  561. break;
  562. // 缓慢抬起离合器
  563. case '缓慢抬起离合器':
  564. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  565. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  566. // 切换成正在处理中
  567. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  568. // 切换视角
  569. objIframeEdit.modelPeopleLook(3);
  570. // objIframeEdit.cameraVisualAngleGetListNameGpsTo("抬起离合器踏板2");
  571. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车缓慢抬起离合器");
  572. objIframeEdit.roleShow(false);
  573. let thisTime = new Date().getTime();
  574. // 控制延迟逻辑
  575. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  576. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  577. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('缓慢抬起离合器', function() {
  578. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  579. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  580. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  581. thisClass.downTimeEvent();
  582. });
  583. });
  584. }
  585. break;
  586. // 确定车辆双闪和工作箭头等是否正常
  587. case '确定车辆双闪和工作箭头等是否正常':
  588. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  589. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  590. // 切换成正在处理中
  591. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  592. // 切换视角
  593. objIframeEdit.modelPeopleLook(3);
  594. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车确定车辆双闪和工作箭头等是否正常");
  595. objIframeEdit.roleShow(false);
  596. let thisTime = new Date().getTime();
  597. // 控制延迟逻辑
  598. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  599. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  600. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  601. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  602. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  603. thisClass.downTimeEvent();
  604. });
  605. }
  606. break;
  607. // 下车
  608. case '下车':
  609. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  610. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  611. // 切换成正在处理中
  612. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  613. // 切换视角
  614. objIframeEdit.modelPeopleLook(3);
  615. objIframeEdit.cameraVisualAngleGetListNameGpsTo("启动");
  616. objIframeEdit.roleShow(false);
  617. let thisTime = new Date().getTime();
  618. // 控制延迟逻辑
  619. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  620. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  621. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_打开左门', function() {
  622. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车下车_1");
  623. // 控制延迟逻辑
  624. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500 * 2, function(fpsEventAddRet) {
  625. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  626. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_关门', function() {
  627. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  628. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  629. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  630. thisClass.downTimeEvent();
  631. });
  632. });
  633. });
  634. });
  635. }
  636. break;
  637. // 下车确定安全灯显示是否正常
  638. case '下车确定安全灯显示是否正常':
  639. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  640. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  641. // 切换成正在处理中
  642. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  643. // QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_关门', function() {
  644. // 切换视角
  645. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  646. objIframeEdit.modelPeopleLook(3);
  647. // objIframeEdit.cameraVisualAngleGetListNameGpsTo("下车观察各项灯光");
  648. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车确定安全灯是否正常");
  649. objIframeEdit.roleShow(false);
  650. let thisTime = new Date().getTime();
  651. // 控制延迟逻辑
  652. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  653. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  654. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  655. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  656. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  657. thisClass.downTimeEvent();
  658. });
  659. // });
  660. }
  661. break;
  662. // 在施工范围放置警示标识
  663. case '在施工范围放置警示标识':
  664. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  665. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  666. // 切换成正在处理中
  667. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  668. // 切换视角
  669. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();// 先记录下当前视角
  670. objIframeEdit.modelPeopleLook(3);
  671. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车摆放安全桩");
  672. objIframeEdit.roleShow(false);
  673. let thisTime = new Date().getTime();
  674. // 控制延迟逻辑
  675. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  676. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  677. QingXiCheAndQvComClipPlaneMeshEvent.find().anQuanZhuangLookYes(function() {
  678. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  679. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  680. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  681. thisClass.downTimeEvent();
  682. });
  683. });
  684. }
  685. break;
  686. // 从水管固定座上拧下高压水管
  687. case '从水管固定座上拧下高压水管':
  688. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  689. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  690. // 切换成正在处理中
  691. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  692. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  693. // 切换视角
  694. objIframeEdit.modelPeopleLook(3);
  695. objIframeEdit.cameraVisualAngleGetListNameGpsTo("从水管固定座上拧下高压水管2");
  696. objIframeEdit.roleShow(false);
  697. let thisTime = new Date().getTime();
  698. // 控制延迟逻辑
  699. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  700. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  701. // QingXiCheAndQvComClipPlaneMeshEvent.find().jieKaiLookYes(function() {
  702. QingXiCheAndQvComClipPlaneMeshEvent.find().jieKaiLookYes_2(function() {
  703. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  704. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  705. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  706. thisClass.downTimeEvent();
  707. });
  708. });
  709. }
  710. break;
  711. // 调整卷筒器到合适位置
  712. case '调整卷筒器到合适位置':
  713. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  714. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  715. // 切换成正在处理中
  716. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  717. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  718. // 切换视角
  719. objIframeEdit.modelPeopleLook(3);
  720. objIframeEdit.cameraVisualAngleGetListNameGpsTo("调整卷筒器到合适位置2");
  721. objIframeEdit.roleShow(false);
  722. let thisTime = new Date().getTime();
  723. // 控制延迟逻辑
  724. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  725. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  726. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_调整卷筒器到合适位置_打开_1', function() {
  727. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_调整卷筒器到合适位置_打开_2', function() {
  728. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  729. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  730. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  731. thisClass.downTimeEvent();
  732. });
  733. });
  734. });
  735. }
  736. break;
  737. // 取出高压水管并放入布管器内
  738. case '取出高压水管并放入布管器内':
  739. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  740. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  741. // 切换成正在处理中
  742. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  743. // 切换视角
  744. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  745. objIframeEdit.modelPeopleLook(3);
  746. objIframeEdit.cameraVisualAngleGetListNameGpsTo("取出高压水管并放入布管器内2");
  747. objIframeEdit.roleShow(false);
  748. let thisTime = new Date().getTime();
  749. // 控制延迟逻辑
  750. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  751. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  752. QingXiCheAndQvComClipPlaneMeshEvent.find().zhuanDaoWeiLookYes(function() {
  753. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  754. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  755. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  756. thisClass.downTimeEvent();
  757. });
  758. });
  759. }
  760. break;
  761. // 套上高压水管护管器
  762. case '套上高压水管护管器':
  763. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  764. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  765. // 切换成正在处理中
  766. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  767. // 切换视角
  768. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  769. objIframeEdit.modelPeopleLook(3);
  770. objIframeEdit.cameraVisualAngleGetListNameGpsTo("套上高压水管护管器2");
  771. objIframeEdit.roleShow(false);
  772. let thisTime = new Date().getTime();
  773. // 控制延迟逻辑
  774. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  775. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  776. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_套上高压水管护管器', function() {
  777. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  778. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  779. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  780. thisClass.downTimeEvent();
  781. // QingXiCheAndQvComClipPlaneMeshEvent.find().ruanGuanLookYes_1(function() {
  782. // QingXiCheAndQvCarEvent.find().eventEnd = 2;
  783. // QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  784. // QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  785. // });
  786. });
  787. });
  788. }
  789. break;
  790. // 安装合适的高压喷头
  791. case '安装合适的高压喷头':
  792. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  793. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  794. // 切换成正在处理中
  795. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  796. // 切换视角
  797. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  798. objIframeEdit.modelPeopleLook(3);
  799. objIframeEdit.cameraVisualAngleGetListNameGpsTo("安装合适的高压喷头2");
  800. objIframeEdit.roleShow(false);
  801. let thisTime = new Date().getTime();
  802. // 控制延迟逻辑
  803. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  804. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  805. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_安装合适的高压喷头_打开箱子', function() {
  806. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_安装合适的高压喷头_喷头移动到对应位置', function() {
  807. QingXiCheAndQvComClipPlaneMeshEvent.find().ruanGuanLookYes_1(function() {
  808. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  809. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  810. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  811. thisClass.downTimeEvent();
  812. });
  813. });
  814. });
  815. });
  816. }
  817. break;
  818. // 将高压水管放入待施工的管道内
  819. case '将高压水管放入待施工的管道内':
  820. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  821. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  822. // 切换成正在处理中
  823. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  824. // 切换视角
  825. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  826. objIframeEdit.modelPeopleLook(3);
  827. objIframeEdit.cameraVisualAngleGetListNameGpsTo("将高压水管放入待施工的管道内2");
  828. objIframeEdit.roleShow(false);
  829. let thisTime = new Date().getTime();
  830. // 控制延迟逻辑
  831. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  832. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  833. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_将高压水管放入待施工的管道内_打开井盖', function() {
  834. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_高压水管护管器_弯曲', function() {
  835. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_安装合适的高压喷头_喷头移动到对应位置_下井', function() {
  836. });
  837. QingXiCheAndQvComClipPlaneMeshEvent.find().ruanGuanLookYes_2(function() {
  838. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  839. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  840. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  841. thisClass.downTimeEvent();
  842. });
  843. });
  844. });
  845. });
  846. }
  847. break;
  848. // 在触屏操作面板上将管长清零
  849. case '在触屏操作面板上将管长清零':
  850. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  851. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  852. // 切换成正在处理中
  853. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  854. // 切换视角
  855. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  856. objIframeEdit.modelPeopleLook(3);
  857. objIframeEdit.cameraVisualAngleGetListNameGpsTo("在触屏操作面板上将管长清零2");
  858. objIframeEdit.roleShow(false);
  859. let thisTime = new Date().getTime();
  860. // 控制延迟逻辑
  861. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  862. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  863. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  864. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  865. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  866. thisClass.downTimeEvent();
  867. });
  868. }
  869. break;
  870. // 在安全的情况开启冲水开关
  871. case '在安全的情况开启冲水开关':
  872. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  873. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  874. // 切换成正在处理中
  875. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  876. // 切换视角
  877. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  878. objIframeEdit.modelPeopleLook(3);
  879. objIframeEdit.cameraVisualAngleGetListNameGpsTo("在安全的情况开启冲水开关2");
  880. objIframeEdit.roleShow(false);
  881. let thisTime = new Date().getTime();
  882. // 控制延迟逻辑
  883. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  884. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  885. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  886. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  887. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  888. thisClass.downTimeEvent();
  889. });
  890. }
  891. break;
  892. // 根据现场工况调节冲水压力
  893. case '根据现场工况调节冲水压力':
  894. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  895. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  896. // 切换成正在处理中
  897. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  898. // 切换视角
  899. objIframeEdit.modelPeopleLook(3);
  900. objIframeEdit.cameraVisualAngleGetListNameGpsTo("根据现场工况调节冲水压力2");
  901. objIframeEdit.roleShow(false);
  902. let thisTime = new Date().getTime();
  903. // 控制延迟逻辑
  904. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  905. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  906. QingXiCheAdnQvCarEventStep.find().waterEvent(true);
  907. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  908. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  909. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  910. thisClass.downTimeEvent();
  911. });
  912. }
  913. break;
  914. // 疏通管道后减小油门到初始状态
  915. case '疏通管道后减小油门到初始状态':
  916. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  917. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  918. // 切换成正在处理中
  919. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  920. // 切换视角
  921. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  922. objIframeEdit.modelPeopleLook(3);
  923. objIframeEdit.cameraVisualAngleGetListNameGpsTo("疏通管道后减小油门到初始状态2");
  924. objIframeEdit.roleShow(false);
  925. let thisTime = new Date().getTime();
  926. // 控制延迟逻辑
  927. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  928. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  929. QingXiCheAdnQvCarEventStep.find().waterEvent(false);
  930. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  931. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  932. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  933. thisClass.downTimeEvent();
  934. });
  935. }
  936. break;
  937. // 带压收回高压水管
  938. case '带压收回高压水管':
  939. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  940. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  941. // 切换成正在处理中
  942. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  943. // 切换视角
  944. objIframeEdit.modelPeopleLook(3);
  945. objIframeEdit.cameraVisualAngleGetListNameGpsTo("带压收回高压水管2");
  946. objIframeEdit.roleShow(false);
  947. let thisTime = new Date().getTime();
  948. // 控制延迟逻辑
  949. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  950. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  951. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  952. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  953. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  954. });
  955. }
  956. break;
  957. // 至触摸屏关闭冲水开关
  958. case '至触摸屏关闭冲水开关':
  959. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  960. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  961. // 切换成正在处理中
  962. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  963. // 切换视角
  964. objIframeEdit.modelPeopleLook(3);
  965. objIframeEdit.cameraVisualAngleGetListNameGpsTo("至触摸屏关闭冲水开关2");
  966. objIframeEdit.roleShow(false);
  967. let thisTime = new Date().getTime();
  968. // 控制延迟逻辑
  969. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  970. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  971. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  972. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  973. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  974. });
  975. }
  976. break;
  977. // 缓慢收回高压水管
  978. case '缓慢收回高压水管':
  979. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  980. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  981. // 切换成正在处理中
  982. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  983. // 切换视角
  984. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  985. objIframeEdit.modelPeopleLook(3);
  986. objIframeEdit.cameraVisualAngleGetListNameGpsTo("缓慢收回高压水管2");
  987. objIframeEdit.roleShow(false);
  988. let thisTime = new Date().getTime();
  989. // 控制延迟逻辑
  990. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  991. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  992. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_高压水管护管器_变直', function() {
  993. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_将高压水管放入待施工的管道内_关闭井盖', function() {
  994. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_安装合适的高压喷头_喷头移动到对应位置_地面', function() {
  995. });
  996. QingXiCheAndQvComClipPlaneMeshEvent.find().ruanGuanLookYes_3(function() {
  997. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  998. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  999. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1000. thisClass.downTimeEvent();
  1001. });
  1002. });
  1003. });
  1004. });
  1005. }
  1006. break;
  1007. // 拆卸高压喷头放入喷头机箱内
  1008. case '拆卸高压喷头放入喷头机箱内':
  1009. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1010. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1011. // 切换成正在处理中
  1012. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1013. // 切换视角
  1014. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1015. objIframeEdit.modelPeopleLook(3);
  1016. objIframeEdit.cameraVisualAngleGetListNameGpsTo("拆卸高压喷头放入喷头机箱内2");
  1017. objIframeEdit.roleShow(false);
  1018. let thisTime = new Date().getTime();
  1019. // 控制延迟逻辑
  1020. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1021. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1022. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_喷头放入箱内', function() {
  1023. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_箱子盖起', function() {
  1024. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1025. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1026. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1027. thisClass.downTimeEvent();
  1028. });
  1029. });
  1030. });
  1031. }
  1032. break;
  1033. // 收起高压水管将卷筒恢复到初始状态
  1034. case '收起高压水管将卷筒恢复到初始状态':
  1035. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1036. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1037. // 切换成正在处理中
  1038. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1039. // 切换视角
  1040. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1041. objIframeEdit.modelPeopleLook(3);
  1042. // objIframeEdit.cameraVisualAngleGetListNameGpsTo("收起高压水管将卷筒恢复到初始状态2");
  1043. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车收回高压水管并拆卸高压喷头放入喷头机箱内1");
  1044. objIframeEdit.roleShow(false);
  1045. let thisTime = new Date().getTime();
  1046. // 控制延迟逻辑
  1047. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1048. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1049. QingXiCheAndQvComClipPlaneMeshEvent.find().ruanGuanLookYes_4(function() {
  1050. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_高压水管护管器回到原始位置', function() {
  1051. objIframeEdit.cameraVisualAngleGetListNameGpsTo("收起高压水管将卷筒恢复到初始状态2");
  1052. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1053. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1054. QingXiCheAndQvComClipPlaneMeshEvent.find().zhuanDaoWeiLookYes_2(function() {
  1055. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_调整卷筒器到合适位置_关闭_2', function() {
  1056. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_调整卷筒器到合适位置_关闭_1', function() {
  1057. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1058. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1059. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1060. thisClass.downTimeEvent();
  1061. });
  1062. });
  1063. });
  1064. });
  1065. });
  1066. });
  1067. });
  1068. }
  1069. break;
  1070. // 将高压水管拧到水管固定座
  1071. case '将高压水管拧到水管固定座':
  1072. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1073. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1074. // 切换成正在处理中
  1075. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1076. // 切换视角
  1077. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1078. objIframeEdit.modelPeopleLook(3);
  1079. objIframeEdit.cameraVisualAngleGetListNameGpsTo("将高压水管拧到水管固定座2");
  1080. objIframeEdit.roleShow(false);
  1081. let thisTime = new Date().getTime();
  1082. // 控制延迟逻辑
  1083. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1084. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1085. QingXiCheAndQvComClipPlaneMeshEvent.find().jieKaiLookYes(function() {
  1086. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1087. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1088. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1089. thisClass.downTimeEvent();
  1090. });
  1091. });
  1092. }
  1093. break;
  1094. // 小卷筒使用方法_开启卷帘门
  1095. case '小卷筒使用方法_开启卷帘门':
  1096. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1097. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1098. // 切换成正在处理中
  1099. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1100. // 切换视角
  1101. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1102. objIframeEdit.modelPeopleLook(3);
  1103. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车拉出水管到需要的长度固定2");
  1104. objIframeEdit.roleShow(false);
  1105. let thisTime = new Date().getTime();
  1106. // 控制延迟逻辑
  1107. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1108. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1109. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('小卷筒使用方法_开启卷帘门', function() {
  1110. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1111. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1112. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1113. thisClass.downTimeEvent();
  1114. });
  1115. });
  1116. }
  1117. break;
  1118. // 小卷筒使用方法_开启车身侧门
  1119. case '小卷筒使用方法_开启车身侧门':
  1120. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1121. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1122. // 切换成正在处理中
  1123. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1124. // 切换视角
  1125. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1126. objIframeEdit.modelPeopleLook(3);
  1127. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车拉出水管到需要的长度固定1");
  1128. objIframeEdit.roleShow(false);
  1129. let thisTime = new Date().getTime();
  1130. // 控制延迟逻辑
  1131. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1132. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1133. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('小卷筒使用方法_开启车身侧门', function() {
  1134. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1135. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1136. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1137. thisClass.downTimeEvent();
  1138. });
  1139. });
  1140. }
  1141. break;
  1142. // 小卷筒使用方法_拉出水管到需要的长度固定
  1143. case '小卷筒使用方法_拉出水管到需要的长度固定':
  1144. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1145. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1146. // 切换成正在处理中
  1147. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1148. // 切换视角
  1149. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1150. objIframeEdit.modelPeopleLook(3);
  1151. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车拉出水管到需要的长度固定2");
  1152. objIframeEdit.roleShow(false);
  1153. let thisTime = new Date().getTime();
  1154. // 控制延迟逻辑
  1155. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1156. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1157. QingXiCheAndQvComClipPlaneMeshEvent.find().shuiQiangGuanLook_1(function() {
  1158. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1159. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1160. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1161. thisClass.downTimeEvent();
  1162. });
  1163. });
  1164. }
  1165. break;
  1166. // 小卷筒使用方法_安装手持水枪
  1167. case '小卷筒使用方法_安装手持水枪':
  1168. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1169. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1170. // 切换成正在处理中
  1171. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1172. // 切换视角
  1173. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1174. objIframeEdit.modelPeopleLook(3);
  1175. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车安装手持水枪");
  1176. objIframeEdit.roleShow(false);
  1177. let thisTime = new Date().getTime();
  1178. // 控制延迟逻辑
  1179. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1180. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1181. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('小卷筒使用方法_安装手持水枪', function() {
  1182. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1183. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1184. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1185. thisClass.downTimeEvent();
  1186. });
  1187. });
  1188. }
  1189. break;
  1190. // 小卷筒使用方法_切换手动三通阀
  1191. case '小卷筒使用方法_切换手动三通阀':
  1192. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1193. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1194. // 切换成正在处理中
  1195. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1196. // 切换视角
  1197. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1198. objIframeEdit.modelPeopleLook(3);
  1199. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车切换手动三通阀");
  1200. objIframeEdit.roleShow(false);
  1201. let thisTime = new Date().getTime();
  1202. // 控制延迟逻辑
  1203. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1204. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1205. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1206. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1207. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1208. thisClass.downTimeEvent();
  1209. });
  1210. }
  1211. break;
  1212. // 小卷筒使用方法_扣动手持水枪的开关即可出水
  1213. case '小卷筒使用方法_扣动手持水枪的开关即可出水':
  1214. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1215. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1216. // 切换成正在处理中
  1217. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1218. // 切换视角
  1219. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1220. objIframeEdit.modelPeopleLook(3);
  1221. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车扣动手持水枪的开关即可出水");
  1222. objIframeEdit.roleShow(false);
  1223. let thisTime = new Date().getTime();
  1224. // 控制延迟逻辑
  1225. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1226. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1227. QingXiCheAdnQvCarEventStep.find().waterShuiQiangEvent(true);
  1228. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1000, function(fpsEventAddRet) {
  1229. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1230. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1231. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1232. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1233. thisClass.downTimeEvent();
  1234. });
  1235. });
  1236. }
  1237. break;
  1238. // 小卷筒使用方法_在使用完毕后切换手动三通阀
  1239. case '小卷筒使用方法_在使用完毕后切换手动三通阀':
  1240. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1241. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1242. // 切换成正在处理中
  1243. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1244. // 切换视角
  1245. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1246. objIframeEdit.modelPeopleLook(3);
  1247. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车在使用完毕后切换手动三通阀1");
  1248. objIframeEdit.roleShow(false);
  1249. let thisTime = new Date().getTime();
  1250. // 控制延迟逻辑
  1251. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1252. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1253. QingXiCheAdnQvCarEventStep.find().waterShuiQiangEvent(false);
  1254. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1000, function(fpsEventAddRet) {
  1255. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1256. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1257. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1258. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1259. thisClass.downTimeEvent();
  1260. });
  1261. });
  1262. }
  1263. break;
  1264. // 小卷筒使用方法_拆卸掉手持水枪并收回水管
  1265. case '小卷筒使用方法_拆卸掉手持水枪并收回水管':
  1266. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1267. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1268. // 切换成正在处理中
  1269. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1270. // 切换视角
  1271. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1272. objIframeEdit.modelPeopleLook(3);
  1273. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车拆卸掉手持水枪并收回水管1");
  1274. objIframeEdit.roleShow(false);
  1275. let thisTime = new Date().getTime();
  1276. // 控制延迟逻辑
  1277. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1278. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1279. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('小卷筒使用方法_卸掉手持水枪', function() {
  1280. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车拉出水管到需要的长度固定2");
  1281. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1282. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1283. QingXiCheAndQvComClipPlaneMeshEvent.find().shuiQiangGuanLook_2(function() {
  1284. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车在使用完毕后切换手动三通阀1");
  1285. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1286. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1287. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('小卷筒使用方法_关闭车身侧门', function() {
  1288. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车安装手持水枪");
  1289. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1290. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1291. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('小卷筒使用方法_关闭卷帘门', function() {
  1292. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1293. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1294. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1295. thisClass.downTimeEvent();
  1296. });
  1297. });
  1298. });
  1299. });
  1300. });
  1301. });
  1302. });
  1303. });
  1304. }
  1305. break;
  1306. // 回到驾驶室
  1307. case '回到驾驶室':
  1308. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1309. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1310. // 切换成正在处理中
  1311. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1312. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_打开左门', function() {
  1313. // 切换视角
  1314. objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
  1315. objIframeEdit.modelPeopleLook(3);
  1316. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车打开车门");
  1317. objIframeEdit.roleShow(false);
  1318. let thisTime = new Date().getTime();
  1319. // 控制延迟逻辑
  1320. // ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1321. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500 * 3, function(fpsEventAddRet) {
  1322. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1323. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车确定车辆双闪和工作箭头等是否正常");
  1324. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1325. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1326. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_关门', function() {
  1327. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车进入副驾驶2");
  1328. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1329. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1330. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1331. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1332. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1333. thisClass.downTimeEvent();
  1334. });
  1335. });
  1336. });
  1337. });
  1338. });
  1339. }
  1340. break;
  1341. // 回到驾驶室踩下车辆离合器5秒
  1342. case '回到驾驶室踩下车辆离合器5秒':
  1343. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1344. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1345. // 切换成正在处理中
  1346. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1347. // 切换视角
  1348. objIframeEdit.modelPeopleLook(3);
  1349. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车踩离合5秒");
  1350. objIframeEdit.roleShow(false);
  1351. let thisTime = new Date().getTime();
  1352. // 控制延迟逻辑
  1353. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1354. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1355. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('踩下车辆离合器5秒', function() {
  1356. WindowEvent.find().WindowCountdownOpen(5, "自定义返回数据", function(WindowCountdownOpenRes) {
  1357. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1358. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1359. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1360. thisClass.downTimeEvent();
  1361. });
  1362. });
  1363. });
  1364. }
  1365. break;
  1366. // 关闭取力器开关
  1367. case '关闭取力器开关':
  1368. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1369. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1370. // 切换成正在处理中
  1371. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1372. // 切换视角
  1373. objIframeEdit.modelPeopleLook(3);
  1374. // objIframeEdit.cameraVisualAngleGetListNameGpsTo("观察仪表盘指示目视");
  1375. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车按下取力器开关");
  1376. objIframeEdit.roleShow(false);
  1377. let thisTime = new Date().getTime();
  1378. // 控制延迟逻辑
  1379. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1380. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1381. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1382. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1383. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1384. thisClass.downTimeEvent();
  1385. });
  1386. }
  1387. break;
  1388. // 关闭车辆双闪和工作双闪箭头灯
  1389. case '关闭车辆双闪和工作双闪箭头灯':
  1390. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1391. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1392. // 切换成正在处理中
  1393. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1394. QingXiCheAndQvCarEvent.find().carShuangShanOpen(false);
  1395. // 切换视角
  1396. objIframeEdit.modelPeopleLook(3);
  1397. objIframeEdit.cameraVisualAngleGetListNameGpsTo("打开工作双闪箭头灯");
  1398. objIframeEdit.roleShow(false);
  1399. let thisTime = new Date().getTime();
  1400. // 控制延迟逻辑
  1401. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1402. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1403. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1404. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1405. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1406. thisClass.downTimeEvent();
  1407. });
  1408. }
  1409. break;
  1410. case '切换E/P开关至E档':
  1411. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1412. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1413. // 切换成正在处理中
  1414. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1415. // 切换视角
  1416. objIframeEdit.modelPeopleLook(3);
  1417. objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车切换挡位到空挡");
  1418. objIframeEdit.roleShow(false);
  1419. let thisTime = new Date().getTime();
  1420. // 控制延迟逻辑
  1421. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1422. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1423. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1424. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1425. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1426. thisClass.downTimeEvent();
  1427. });
  1428. }
  1429. break;
  1430. // 车辆正常熄火
  1431. case '车辆正常熄火':
  1432. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1433. QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
  1434. // 切换成正在处理中
  1435. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1436. // 切换视角
  1437. objIframeEdit.modelPeopleLook(3);
  1438. objIframeEdit.cameraVisualAngleGetListNameGpsTo("拧动钥匙发动车辆");
  1439. objIframeEdit.roleShow(false);
  1440. let thisTime = new Date().getTime();
  1441. // 控制延迟逻辑
  1442. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1443. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1444. QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('清洗车_钥匙关闭_熄火', function() {
  1445. QingXiCheAndQvCarEvent.find().carOpen(false);
  1446. // 切换视角
  1447. objIframeEdit.modelPeopleLook(3);
  1448. objIframeEdit.cameraVisualAngleGetListNameGpsTo("拧动钥匙发动车辆向上");
  1449. objIframeEdit.roleShow(false);
  1450. thisTime = new Date().getTime();
  1451. // 控制延迟逻辑
  1452. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1453. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1454. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1455. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1456. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1457. });
  1458. });
  1459. });
  1460. }
  1461. break;
  1462. // //
  1463. // case '':
  1464. // break;
  1465. // //
  1466. // case '':
  1467. // break;
  1468. // 已完成所有任务
  1469. case 'equipmentRepositioningWork':
  1470. break;
  1471. // 数字修复虚拟仿真-将阀门关闭停止水流
  1472. case '数字修复虚拟仿真-将阀门关闭停止水流':
  1473. if (QingXiCheAdnQvCarEventStep.find().meshListBool(type, objMesh.id) == true) {
  1474. // 切换成正在处理中
  1475. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1476. // 切换视角
  1477. objIframeEdit.modelPeopleLook(3);
  1478. objIframeEdit.cameraVisualAngleGetListNameGpsTo("关闭阀门完成");
  1479. objIframeEdit.roleShow(false);
  1480. let thisTime = new Date().getTime();
  1481. // 控制延迟逻辑
  1482. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1483. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1484. // 停止水流
  1485. QingXiCheAdnQvCarEventStep.find().waterGuanEvent(false);
  1486. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1487. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1488. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1489. });
  1490. }
  1491. break;
  1492. // 数字修复虚拟仿真-将橡胶垫片放置到正确的位置
  1493. case '数字修复虚拟仿真-将橡胶垫片放置到正确的位置':
  1494. // 切换成正在处理中
  1495. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1496. // 范围内
  1497. if (dragBool == true) {
  1498. // 回到原始位置
  1499. thisClass.moveMeshListResetPosition();
  1500. WindowEvent.find().WindowTxtViewOpenEvent(
  1501. // "现在播放橡胶垫片安装过程\n"
  1502. // +
  1503. "各类机械设备的法兰连接、轴承密封、泵体密封等部位都需要使用橡胶垫片,以保证设备的正常运行,防止润滑油、液压油等泄漏"
  1504. );
  1505. // WindowEvent.find().WindowVideoViewOpenEvent(
  1506. // QingXiCheAndQvCarEvent.find().videoJson["02"],
  1507. // { "自定义回调的字段" : "自定义回调的字段111" },
  1508. // function(WindowVideoViewOpenEventRes) {
  1509. // console.log(
  1510. // "WindowVideoViewOpenEventRes", WindowVideoViewOpenEventRes
  1511. // );
  1512. // }
  1513. // );
  1514. // 切换视角
  1515. objIframeEdit.modelPeopleLook(3);
  1516. objIframeEdit.cameraVisualAngleGetListNameGpsTo("将橡胶垫片放置到正确的位置_完成");
  1517. objIframeEdit.roleShow(false);
  1518. let thisTime = new Date().getTime();
  1519. // 控制延迟逻辑
  1520. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1521. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1522. thisClass.xiangJiaoDianPianOk(function() {
  1523. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1524. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1525. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1526. });
  1527. });
  1528. } else {
  1529. // 回到原始位置
  1530. thisClass.moveMeshListResetPosition();
  1531. // 范围外
  1532. QingXiCheAndQvCarEvent.find().eventEnd = 0;
  1533. }
  1534. break;
  1535. // 数字修复虚拟仿真-将抱箍放置到正确的位置
  1536. case '数字修复虚拟仿真-将抱箍放置到正确的位置':
  1537. // 切换成正在处理中
  1538. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1539. // 范围内
  1540. if (dragBool == true) {
  1541. // 回到原始位置
  1542. thisClass.moveMeshListResetPosition();
  1543. WindowEvent.find().WindowTxtViewOpenEvent(
  1544. // "现在播放橡抱箍安装过程\n"
  1545. // +
  1546. "抱箍是一种用于抱住或箍住其他材料的紧固件,通过将两个或多个部件紧紧固定在一起,起到连接、支撑或加固的作用."
  1547. + "通常由箍板、翼板、拉结筋板、螺栓及内衬垫构成。其中,箍板是主要的抱紧部件,翼板用于增加连接面积或提供额外的支撑点,拉结筋板则增强箍板的强度和稳定性,螺栓用于将抱箍紧固,内衬垫则可增加摩擦力或保护被箍物体的表面"
  1548. );
  1549. // 切换视角
  1550. objIframeEdit.modelPeopleLook(3);
  1551. objIframeEdit.cameraVisualAngleGetListNameGpsTo("将抱箍放置到正确的位置_完成");
  1552. objIframeEdit.roleShow(false);
  1553. let thisTime = new Date().getTime();
  1554. // 控制延迟逻辑
  1555. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1556. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1557. thisClass.baoGuOk(function() {
  1558. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1559. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1560. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1561. });
  1562. });
  1563. } else {
  1564. // 回到原始位置
  1565. thisClass.moveMeshListResetPosition();
  1566. // 范围外
  1567. QingXiCheAndQvCarEvent.find().eventEnd = 0;
  1568. }
  1569. break;
  1570. // 数字修复虚拟仿真-将插销安装到正确的位置
  1571. case '数字修复虚拟仿真-将插销安装到正确的位置':
  1572. // 切换成正在处理中
  1573. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1574. // 范围内
  1575. if (dragBool == true) {
  1576. // 回到原始位置
  1577. thisClass.moveMeshListResetPosition();
  1578. WindowEvent.find().WindowTxtViewOpenEvent(
  1579. // "现在播放插销安装过程\n"
  1580. // +
  1581. "通过将销杆插入对应的销孔中,实现物体之间的连接或锁定。利用销杆与销孔之间的配合精度和摩擦力,保持连接的稳定性。带有锁止机构的插销,通过特定的操作(如旋转、按压等)使锁止部件卡住销杆,防止其意外拔出,增强锁定效果。"
  1582. );
  1583. // 切换视角
  1584. objIframeEdit.modelPeopleLook(3);
  1585. objIframeEdit.cameraVisualAngleGetListNameGpsTo("将插销安装到正确的位置_完成");
  1586. objIframeEdit.roleShow(false);
  1587. let thisTime = new Date().getTime();
  1588. // 控制延迟逻辑
  1589. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1590. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1591. thisClass.chaXiaoOk(function() {
  1592. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1593. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1594. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1595. });
  1596. });
  1597. } else {
  1598. // 回到原始位置
  1599. thisClass.moveMeshListResetPosition();
  1600. // 范围外
  1601. QingXiCheAndQvCarEvent.find().eventEnd = 0;
  1602. }
  1603. break;
  1604. // 数字修复虚拟仿真-将螺丝安装到正确的位置
  1605. case '数字修复虚拟仿真-将螺丝安装到正确的位置':
  1606. // 切换成正在处理中
  1607. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1608. // 范围内
  1609. if (dragBool == true) {
  1610. // 回到原始位置
  1611. thisClass.moveMeshListResetPosition();
  1612. WindowEvent.find().WindowTxtViewOpenEvent(
  1613. // "现在播放螺丝安装过程\n"
  1614. // +
  1615. "螺丝通常由头部和螺纹杆两部分组成。头部有不同的形状,如圆形、方形、六角形等,以便使用相应的工具进行拧紧或松开操作。螺纹杆上有螺旋状的螺纹,用于与螺母或带有内螺纹的部件配合。"
  1616. );
  1617. // 切换视角
  1618. objIframeEdit.modelPeopleLook(3);
  1619. objIframeEdit.cameraVisualAngleGetListNameGpsTo("将螺丝安装到正确的位置_完成");
  1620. objIframeEdit.roleShow(false);
  1621. let thisTime = new Date().getTime();
  1622. // 控制延迟逻辑
  1623. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1624. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1625. thisClass.luoSiOk(function() {
  1626. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1627. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1628. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1629. });
  1630. });
  1631. } else {
  1632. // 回到原始位置
  1633. thisClass.moveMeshListResetPosition();
  1634. // 范围外
  1635. QingXiCheAndQvCarEvent.find().eventEnd = 0;
  1636. }
  1637. break;
  1638. // 数字修复虚拟仿真-用扳手将螺丝旋紧螺丝
  1639. case '数字修复虚拟仿真-用扳手将螺丝旋紧螺丝':
  1640. // 切换成正在处理中
  1641. QingXiCheAndQvCarEvent.find().eventEnd = 1;
  1642. // 范围内
  1643. if (dragBool == true) {
  1644. // 回到原始位置
  1645. thisClass.moveMeshListResetPosition();
  1646. WindowEvent.find().WindowTxtViewOpenEvent(
  1647. // "现在播放扳手使用过程\n"
  1648. // +
  1649. "扳手通常由头部和手柄两部分组成。头部是与螺栓或螺母接触并施加扭矩的部分,根据不同的类型有各种形状和结构;手柄则用于握持和施加力,一般为杆状,以提供足够的杠杆作用。"
  1650. );
  1651. // 切换视角
  1652. objIframeEdit.modelPeopleLook(3);
  1653. objIframeEdit.cameraVisualAngleGetListNameGpsTo("用扳手将螺丝旋紧螺丝_完成");
  1654. objIframeEdit.roleShow(false);
  1655. let thisTime = new Date().getTime();
  1656. // 控制延迟逻辑
  1657. ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
  1658. ComVal.find().fpsEventDel(fpsEventAddRet.code);
  1659. thisClass.banShouOk(function() {
  1660. QingXiCheAndQvCarEvent.find().eventEnd = 2;
  1661. QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  1662. QingXiCheAndQvCarEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  1663. });
  1664. });
  1665. } else {
  1666. // 回到原始位置
  1667. thisClass.moveMeshListResetPosition();
  1668. // 范围外
  1669. QingXiCheAndQvCarEvent.find().eventEnd = 0;
  1670. }
  1671. break;
  1672. // //
  1673. // case '':
  1674. // break;
  1675. // //
  1676. // case '':
  1677. // break;
  1678. default:
  1679. break;
  1680. }
  1681. // 上面执行完成,固定执行如下逻辑
  1682. thisClass.moveMeshListReset();
  1683. }
  1684. /**
  1685. * 根据不同类型,触发对应物体列表高亮逻辑
  1686. * type 对应类型操作高亮
  1687. */
  1688. meshListComHighlightEvent = (type) => {
  1689. let thisClass = this;
  1690. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  1691. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  1692. let objIframe = objThreeWorldEventMain.objIframe;
  1693. let objScene = objThreeWorldEventMain.objScene;
  1694. let BABYLON = objThreeWorldEventMain.BABYLON;
  1695. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  1696. let meshList = [];
  1697. // QingXiCheAndQvComHighlightLayer.find().delAll("自定义");
  1698. // 默认不闪烁
  1699. QingXiCheAndQvComHighlightLayer.find().flickerBool = false;
  1700. switch (type) {
  1701. case "数字修复虚拟仿真-将阀门关闭停止水流":
  1702. meshList = [
  1703. "model_1746598895146阀门_primitive0",
  1704. "model_1746598895146阀门_primitive1",
  1705. ];
  1706. // 开启闪烁逻辑
  1707. QingXiCheAndQvComHighlightLayer.find().flickerBool = true;
  1708. break;
  1709. case "数字修复虚拟仿真-将橡胶垫片放置到正确的位置":
  1710. meshList = [
  1711. "model_1746598895146橡胶垫",
  1712. ];
  1713. // 开启闪烁逻辑
  1714. QingXiCheAndQvComHighlightLayer.find().flickerBool = true;
  1715. break;
  1716. case "数字修复虚拟仿真-将抱箍放置到正确的位置":
  1717. meshList = [
  1718. "model_1746598895146上箍",
  1719. "model_1746598895146插销轴",
  1720. "model_1746598895146下箍",
  1721. ];
  1722. // 开启闪烁逻辑
  1723. QingXiCheAndQvComHighlightLayer.find().flickerBool = true;
  1724. break;
  1725. case "数字修复虚拟仿真-将插销安装到正确的位置":
  1726. meshList = [
  1727. "model_1746598895146插销1",
  1728. "model_1746598895146插销2",
  1729. ];
  1730. // 开启闪烁逻辑
  1731. QingXiCheAndQvComHighlightLayer.find().flickerBool = true;
  1732. break;
  1733. case "数字修复虚拟仿真-将螺丝安装到正确的位置":
  1734. meshList = [
  1735. "model_1746598895146紧箍螺丝01",
  1736. "model_1746598895146紧箍螺丝02",
  1737. "model_1746598895146紧箍螺丝03",
  1738. ];
  1739. // 开启闪烁逻辑
  1740. QingXiCheAndQvComHighlightLayer.find().flickerBool = true;
  1741. break;
  1742. case "数字修复虚拟仿真-用扳手将螺丝旋紧螺丝":
  1743. meshList = [
  1744. "model_1746598895146扳手",
  1745. ];
  1746. // 开启闪烁逻辑
  1747. QingXiCheAndQvComHighlightLayer.find().flickerBool = true;
  1748. break;
  1749. case "":
  1750. break;
  1751. }
  1752. for (let i = 0; i < meshList.length; i++) {
  1753. let meshId = meshList[i];
  1754. let objMesh = objScene.getMeshById(meshId);
  1755. if (objMesh != null && objMesh != undefined) {
  1756. // console.log(
  1757. // "添加发光的物体", meshId, objMesh
  1758. // );
  1759. // 先去除
  1760. QingXiCheAndQvComHighlightLayer.find().delMesh("自定义", objMesh);
  1761. // 在添加
  1762. QingXiCheAndQvComHighlightLayer.find().addMesh("自定义", objMesh, "rgb(79, 185, 255)");
  1763. }
  1764. }
  1765. }
  1766. /**
  1767. * 配置被拖拽物体的列表
  1768. * type 类型,根据不同类型进行获取
  1769. */
  1770. meshMoveConfig = function(type) {
  1771. let meshList = [];
  1772. switch(type) {
  1773. case "数字修复虚拟仿真-将橡胶垫片放置到正确的位置":
  1774. meshList = [
  1775. "model_1746598895146橡胶垫",
  1776. ];
  1777. break;
  1778. case "数字修复虚拟仿真-将抱箍放置到正确的位置":
  1779. meshList = [
  1780. "model_1746598895146上箍",
  1781. "model_1746598895146插销轴",
  1782. "model_1746598895146下箍",
  1783. ];
  1784. break;
  1785. case "数字修复虚拟仿真-将插销安装到正确的位置":
  1786. meshList = [
  1787. "model_1746598895146插销1",
  1788. "model_1746598895146插销2",
  1789. ];
  1790. break;
  1791. case "数字修复虚拟仿真-将螺丝安装到正确的位置":
  1792. meshList = [
  1793. "model_1746598895146紧箍螺丝01",
  1794. "model_1746598895146紧箍螺丝02",
  1795. "model_1746598895146紧箍螺丝03",
  1796. ];
  1797. break;
  1798. case "数字修复虚拟仿真-用扳手将螺丝旋紧螺丝":
  1799. meshList = [
  1800. "model_1746598895146扳手",
  1801. ];
  1802. break;
  1803. case "":
  1804. break;
  1805. }
  1806. if (meshList.length <= 0) {
  1807. return null;
  1808. }
  1809. let meshJson = {};
  1810. for (let i = 0; i < meshList.length; i++) {
  1811. let meshId = meshList[i];
  1812. meshJson[meshId] = meshId;
  1813. }
  1814. return {
  1815. "meshList" : meshList,
  1816. "meshJson" : meshJson,
  1817. };
  1818. }
  1819. /**
  1820. * 数字修复虚拟仿真-将橡胶垫片放置到正确的位置
  1821. * callback 开启完成回调
  1822. */
  1823. xiangJiaoDianPianOk = (callback) => {
  1824. let thisClass = this;
  1825. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  1826. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  1827. let objIframe = objThreeWorldEventMain.objIframe;
  1828. let objScene = objThreeWorldEventMain.objScene;
  1829. let BABYLON = objThreeWorldEventMain.BABYLON;
  1830. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  1831. // 播放动画列表
  1832. let playList = [
  1833. { "name" : "橡胶垫.001", "speed" : 2, "from" : 0, "to" : 200 },
  1834. ];
  1835. // 动画播放完成次数
  1836. let playEndNum = 0;
  1837. for (let i = 0; i < playList.length; i++) {
  1838. let thisPlayList = playList[i];
  1839. ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
  1840. thisPlayList.name, 'start', thisPlayList.speed, thisPlayList.from, thisPlayList.to, false, null,
  1841. function(state, objAnimation) {
  1842. if (state == "播放完成") {
  1843. playEndNum += 1;
  1844. if (playEndNum >= playList.length) {
  1845. callback("yes");
  1846. }
  1847. }
  1848. }
  1849. );
  1850. }
  1851. }
  1852. /**
  1853. * 数字修复虚拟仿真-将抱箍放置到正确的位置
  1854. * callback 开启完成回调
  1855. */
  1856. baoGuOk = (callback) => {
  1857. let thisClass = this;
  1858. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  1859. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  1860. let objIframe = objThreeWorldEventMain.objIframe;
  1861. let objScene = objThreeWorldEventMain.objScene;
  1862. let BABYLON = objThreeWorldEventMain.BABYLON;
  1863. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  1864. // 播放动画列表
  1865. let playList = [
  1866. { "name" : "上箍", "speed" : 2, "from" : 0, "to" : 300 },
  1867. { "name" : "插销轴.001", "speed" : 2, "from" : 0, "to" : 200 },
  1868. { "name" : "下箍.001", "speed" : 2, "from" : 0, "to" : 300 },
  1869. ];
  1870. // 动画播放完成次数
  1871. let playEndNum = 0;
  1872. for (let i = 0; i < playList.length; i++) {
  1873. let thisPlayList = playList[i];
  1874. ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
  1875. thisPlayList.name, 'start', thisPlayList.speed, thisPlayList.from, thisPlayList.to, false, null,
  1876. function(state, objAnimation) {
  1877. if (state == "播放完成") {
  1878. playEndNum += 1;
  1879. if (playEndNum >= playList.length) {
  1880. callback("yes");
  1881. }
  1882. }
  1883. }
  1884. );
  1885. }
  1886. }
  1887. /**
  1888. * 数字修复虚拟仿真-将插销安装到正确的位置
  1889. * callback 开启完成回调
  1890. */
  1891. chaXiaoOk = function(callback) {
  1892. let thisClass = this;
  1893. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  1894. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  1895. let objIframe = objThreeWorldEventMain.objIframe;
  1896. let objScene = objThreeWorldEventMain.objScene;
  1897. let BABYLON = objThreeWorldEventMain.BABYLON;
  1898. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  1899. // 播放动画列表
  1900. let playList = [
  1901. { "name" : "插销1.001", "speed" : 2, "from" : 300, "to" : 400 },
  1902. { "name" : "插销2.001", "speed" : 2, "from" : 300, "to" : 400 },
  1903. ];
  1904. // 动画播放完成次数
  1905. let playEndNum = 0;
  1906. for (let i = 0; i < playList.length; i++) {
  1907. let thisPlayList = playList[i];
  1908. ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
  1909. thisPlayList.name, 'start', thisPlayList.speed, thisPlayList.from, thisPlayList.to, false, null,
  1910. function(state, objAnimation) {
  1911. if (state == "播放完成") {
  1912. playEndNum += 1;
  1913. if (playEndNum >= playList.length) {
  1914. callback("yes");
  1915. }
  1916. }
  1917. }
  1918. );
  1919. }
  1920. }
  1921. /**
  1922. * 数字修复虚拟仿真-将螺丝安装到正确的位置
  1923. * callback 开启完成回调
  1924. */
  1925. luoSiOk = function(callback) {
  1926. let thisClass = this;
  1927. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  1928. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  1929. let objIframe = objThreeWorldEventMain.objIframe;
  1930. let objScene = objThreeWorldEventMain.objScene;
  1931. let BABYLON = objThreeWorldEventMain.BABYLON;
  1932. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  1933. // 播放动画列表
  1934. let playList = [
  1935. { "name" : "紧箍螺丝01.001", "speed" : 2, "from" : 400, "to" : 502 },
  1936. { "name" : "紧箍螺丝02.001", "speed" : 2, "from" : 400, "to" : 502 },
  1937. { "name" : "紧箍螺丝03|", "speed" : 2, "from" : 400, "to" : 502 },
  1938. ];
  1939. // 动画播放完成次数
  1940. let playEndNum = 0;
  1941. for (let i = 0; i < playList.length; i++) {
  1942. let thisPlayList = playList[i];
  1943. ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
  1944. thisPlayList.name, 'start', thisPlayList.speed, thisPlayList.from, thisPlayList.to, false, null,
  1945. function(state, objAnimation) {
  1946. if (state == "播放完成") {
  1947. playEndNum += 1;
  1948. if (playEndNum >= playList.length) {
  1949. callback("yes");
  1950. }
  1951. }
  1952. }
  1953. );
  1954. }
  1955. }
  1956. /**
  1957. * 数字修复虚拟仿真-用扳手将螺丝旋紧螺丝
  1958. * callback 开启完成回调
  1959. */
  1960. banShouOk = function(callback) {
  1961. let thisClass = this;
  1962. let objThreeWorldEventMain = this.objThreeWorldEventMain;
  1963. let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
  1964. let objIframe = objThreeWorldEventMain.objIframe;
  1965. let objScene = objThreeWorldEventMain.objScene;
  1966. let BABYLON = objThreeWorldEventMain.BABYLON;
  1967. let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
  1968. // 播放动画列表
  1969. let playList = [
  1970. { "name" : "扳手.001", "speed" : 2, "from" : 500, "to" : 802 },
  1971. ];
  1972. // 动画播放完成次数
  1973. let playEndNum = 0;
  1974. for (let i = 0; i < playList.length; i++) {
  1975. let thisPlayList = playList[i];
  1976. ChengGuangYuanJing.CommonVal.find().animationGroupsEventCallback(
  1977. thisPlayList.name, 'start', thisPlayList.speed, thisPlayList.from, thisPlayList.to, false, null,
  1978. function(state, objAnimation) {
  1979. if (state == "播放完成") {
  1980. playEndNum += 1;
  1981. if (playEndNum >= playList.length) {
  1982. callback("yes");
  1983. }
  1984. }
  1985. }
  1986. );
  1987. }
  1988. }
  1989. }