You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

debugger.vue 86 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459
  1. <!--
  2. Copyright 2020-2021 Huawei Technologies Co., Ltd.All Rights Reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <template>
  14. <div class="deb-wrap">
  15. <div class="left-wrap"
  16. :class="{collapse:leftShow}">
  17. <div class="left"
  18. v-show="!leftShow">
  19. <div class="header">
  20. {{radio1==='tree' ? $t('debugger.nodeList') :
  21. ($t('debugger.curHitNode') + '(' + pagination.total + ')')}}
  22. <div class="outdate-tip"
  23. v-if="hitsOutdated && radio1==='hit'">
  24. <el-tooltip class="item"
  25. effect="light"
  26. :content="$t('debugger.outdateTip')"
  27. placement="top">
  28. <i class="el-icon-warning"></i>
  29. </el-tooltip>
  30. </div>
  31. <div class="radio-tabs">
  32. <el-radio-group v-model="radio1"
  33. size='mini'
  34. @change="searchWatchpointHits(true)">
  35. <el-radio-button label="tree">
  36. <i class="el-icon-s-grid"></i>
  37. </el-radio-button>
  38. <el-radio-button label="hit">
  39. <i class="el-icon-s-fold"></i>
  40. </el-radio-button>
  41. </el-radio-group>
  42. </div>
  43. </div>
  44. <div class="content"
  45. v-show="radio1==='tree'">
  46. <div class="node-type">
  47. <div class="label">{{ $t('debugger.logicCard') }}</div>
  48. <el-select v-model="logicCard.value"
  49. @change="logicCardChange"
  50. :disabled="!trainId">
  51. <el-option v-for="item in logicCard.options"
  52. :key="item"
  53. :value="item">
  54. </el-option>
  55. </el-select>
  56. </div>
  57. <div class="node-type">
  58. <div class="label">{{ $t('debugger.graphFile') }}</div>
  59. <el-select v-model="graphFiles.value"
  60. @change="queryGraphByFile">
  61. <el-option v-for="item in graphFiles.options"
  62. :key="item"
  63. :value="item">
  64. </el-option>
  65. </el-select>
  66. </div>
  67. <div class="node-type">
  68. <div class="label">{{$t('debugger.nodeTypes')}}</div>
  69. <el-select v-model="nodeTypes.value"
  70. @change="nodeTypesChange">
  71. <el-option v-for="item in nodeTypes.options"
  72. :key="item"
  73. :label="nodeTypes.label[item]"
  74. :value="item"
  75. :class="{'deb-indent': item != 'all'}">
  76. </el-option>
  77. </el-select>
  78. </div>
  79. <div class="select-wrap">
  80. <el-input :placeholder="$t('graph.inputNodeName')"
  81. v-model="searchWord"
  82. class="input-with-select"
  83. @input="filterChange"
  84. @keyup.enter.native="filter"
  85. clearable>
  86. </el-input>
  87. </div>
  88. <div class="tree-wrap">
  89. <div class="select-all-files"
  90. v-if="curWatchPointId && treeFlag">
  91. <el-button type="primary"
  92. size="mini"
  93. class="custom-btn"
  94. :disabled="metadata.state === state.running || metadata.state === state.sending"
  95. @click="selectAllFiles(true)">{{ $t('public.selectAll') }}</el-button>
  96. <el-button type="primary"
  97. size="mini"
  98. class="custom-btn"
  99. :disabled="metadata.state === state.running || metadata.state === state.sending"
  100. @click="selectAllFiles(false)">{{ $t('public.deselectAll') }}</el-button>
  101. </div>
  102. <tree v-show="treeFlag"
  103. :props="props"
  104. :load="loadNode"
  105. @node-collapse="nodeCollapse"
  106. @node-click="handleNodeClick"
  107. node-key="name"
  108. :expand-on-click-node="false"
  109. :lazy="lazy"
  110. :highlight-current="true"
  111. ref="tree"
  112. @check="check"
  113. :show-checkbox="!!curWatchPointId"
  114. :disabled="treeDisabled">
  115. <span class="custom-tree-node"
  116. slot-scope="{ node ,data }">
  117. <span :class="{const:data.type==='Const' && curWatchPointId}">
  118. <img v-if="data.type ==='name_scope'"
  119. :src="require('@/assets/images/name-scope.svg')"
  120. class="image-type" />
  121. <img v-else-if="data.type ==='Const'"
  122. :src="require('@/assets/images/constant-node.svg')"
  123. class="image-type" />
  124. <img v-else-if="data.type ==='aggregation_scope'"
  125. :src="require('@/assets/images/polymetric.svg')"
  126. class="image-type" />
  127. <img v-else
  128. :src="require('@/assets/images/operator-node.svg')"
  129. class="image-type" />
  130. </span>
  131. <span class="custom-tree-node"
  132. :title="node.label">{{ node.label }}</span>
  133. </span>
  134. </tree>
  135. <tree v-show="!treeFlag"
  136. :props="defaultProps"
  137. :load="loadSearchNode"
  138. :lazy="true"
  139. node-key="name"
  140. :expand-on-click-node="false"
  141. @node-click="handleNodeClick"
  142. :show-checkbox="!!curWatchPointId"
  143. @check="searchCheck"
  144. :disabled="treeDisabled"
  145. ref="searchTree">
  146. <span class="custom-tree-node"
  147. slot-scope="{ node ,data }">
  148. <span :class="{const:data.type==='Const' && curWatchPointId}">
  149. <img v-if="data.type ==='name_scope'"
  150. :src="require('@/assets/images/name-scope.svg')"
  151. class="image-type" />
  152. <img v-else-if="data.type ==='Const'"
  153. :src="require('@/assets/images/constant-node.svg')"
  154. class="image-type" />
  155. <img v-else-if="data.type ==='aggregation_scope'"
  156. :src="require('@/assets/images/polymetric.svg')"
  157. class="image-type" />
  158. <img v-else
  159. :src="require('@/assets/images/operator-node.svg')"
  160. class="image-type" />
  161. </span>
  162. <span class="custom-tree-node"
  163. :title="node.label">{{ node.label }}</span>
  164. </span>
  165. </tree>
  166. </div>
  167. <div class="watch-point-wrap">
  168. <div class="title-wrap">
  169. {{$t('debugger.watchList')}}
  170. <div class="check-wrap">
  171. <i class="el-icon-circle-check"
  172. :title="$t('debugger.recheck')"
  173. :class="{disable: !enableRecheck}"
  174. @click="recheckWatchpoint()"></i>
  175. </div>
  176. <div class="delete-wrap">
  177. <i class="el-icon-delete"
  178. :title="$t('debugger.clearWatchpoint')"
  179. :class="{disable: !(watchPointArr.length && metadata.state !== state.running &&
  180. metadata.state !== state.sending)}"
  181. @click="deleteWatchpoint()"></i>
  182. </div>
  183. <div class="add-wrap">
  184. <i class="el-icon-circle-plus"
  185. :title="$t('debugger.createWP')"
  186. :class="{disable: metadata.state === state.running || metadata.state === state.sending}"
  187. @click="initCondition"></i>
  188. </div>
  189. </div>
  190. <div class="content-wrap">
  191. <ul id="watch-point-list"
  192. class="list-wrap"
  193. v-show="allWatchPointFlag">
  194. <li class="list"
  195. v-for="(item,key) in watchPointArr"
  196. :key="key"
  197. :title="getWatchPointContent(item)">
  198. <div class="name"
  199. :class="{selected:item.selected}"
  200. @click="selectWatchPoint(key)">
  201. <div class="item-content">
  202. {{getWatchPointContent(item)}}
  203. </div>
  204. <i class="el-icon-check icon"
  205. v-if="item.selected"
  206. @click.stop="showOrigin()"></i>
  207. <i class="el-icon-close icon"
  208. v-if="item.selected"
  209. @click.stop="deleteWatchpoint(item)"></i>
  210. </div>
  211. </li>
  212. </ul>
  213. </div>
  214. </div>
  215. </div>
  216. <div class="content"
  217. v-show="radio1==='hit'">
  218. <div class="node-type">
  219. <div class="label">{{ $t('debugger.logicCard') }}</div>
  220. <el-select v-model="logicCard.value"
  221. :disabled="!trainId"
  222. @change="logicCardChange();searchWatchpointHits(true);">
  223. <el-option v-for="item in logicCard.options"
  224. :key="item"
  225. :value="item">
  226. </el-option>
  227. </el-select>
  228. </div>
  229. <div class="hit-list-wrap">
  230. <el-table class="watchpoint-table"
  231. :data="watchPointHits"
  232. row-key="id"
  233. :expand-row-keys="expandKeys">
  234. <el-table-column type="expand"
  235. width="40">
  236. <template slot-scope="props">
  237. <ul>
  238. <li v-for="(i, index) in props.row.lists"
  239. :key="index">{{i.name}}
  240. <div v-for="(j, ind) in i.params"
  241. :key="ind"
  242. class="param">
  243. <div class="tensor-icon"></div>
  244. {{j.content}}
  245. </div>
  246. <div class="hit-tip"
  247. v-if="i.tip">
  248. <i class="el-icon-warning"></i>{{i.tip}}
  249. </div>
  250. </li>
  251. </ul>
  252. </template>
  253. </el-table-column>
  254. <el-table-column prop="name"
  255. :label="$t('graph.name')">
  256. <template slot-scope="scope">
  257. <div class="hit-item"
  258. :class="{selected:scope.row.selected}"
  259. @click="updateTensorValue(scope.$index)">
  260. {{scope.row.graph_name}}/{{scope.row.name}}
  261. </div>
  262. </template>
  263. </el-table-column>
  264. </el-table>
  265. <el-pagination class="watchpoint-page"
  266. small
  267. @current-change="handleCurrentChange"
  268. :current-page="pagination.currentPage"
  269. :page-size="pagination.pageSize"
  270. :pager-count="pagination.pageCount"
  271. layout="prev, pager, next, jumper"
  272. :total="pagination.total"
  273. v-show="pagination.total">
  274. </el-pagination>
  275. </div>
  276. </div>
  277. <div class="btn-wrap">
  278. <div class="step">
  279. <el-tooltip class="item"
  280. effect="light"
  281. :content="$t('debugger.inputTip',{total_step_num:metadata.total_step_num})"
  282. placement="top-start">
  283. <el-input v-model="step"
  284. :placeholder="$t('debugger.inputStep')"
  285. @input="stepChange"
  286. @keyup.native.enter="control(0)">
  287. </el-input>
  288. </el-tooltip>
  289. <el-button type="primary"
  290. size="mini"
  291. class="custom-btn green"
  292. :disabled="!(step && metadata.state === state.waiting)"
  293. @click="control(0)">{{ $t('public.sure') }}</el-button>
  294. </div>
  295. <div class="btn-two">
  296. <el-button size="mini"
  297. class="custom-btn white"
  298. :disabled="metadata.state !== state.waiting"
  299. @click="control(1)">{{$t('debugger.continue')}}</el-button>
  300. <el-button size="mini"
  301. class="custom-btn white"
  302. :disabled="metadata.state !== state.running"
  303. @click="control(3)">{{$t('debugger.pause')}}</el-button>
  304. <el-button size="mini"
  305. class="custom-btn white"
  306. :disabled="metadata.state === state.pending || metadata.state === state.sending"
  307. @click="terminate">{{$t('debugger.terminate')}}</el-button>
  308. </div>
  309. </div>
  310. </div>
  311. <div class="collapse-btn"
  312. :class="{collapse:leftShow}"
  313. @click="collapseBtnClick">
  314. </div>
  315. </div>
  316. <div class="right"
  317. :class="{collapse:leftShow}">
  318. <div class="header">
  319. <span class="item">
  320. {{$t('debugger.clientIp') + $t('symbols.colon')}}
  321. <span class="content">
  322. {{ metadata.ip !== undefined ? metadata.ip : '--' }}
  323. </span>
  324. </span>
  325. <span class="item">{{$t('debugger.deviceId') + $t('symbols.colon')}}
  326. <span class="content">
  327. {{ metadata.device_name !== undefined ? metadata.device_name : '--' }}
  328. </span>
  329. </span>
  330. <span class="item">{{$t('debugger.currentStep') + $t('symbols.colon')}}
  331. <span class="content">
  332. {{ metadata.step !== undefined ? metadata.step : '--'}}
  333. </span>
  334. </span>
  335. {{ $t('debugger.stepTip')}}
  336. <el-tooltip class="tooltip"
  337. effect="light"
  338. :content="$t('debugger.stateTips.running')"
  339. placement="top"
  340. v-show="metadata.state === state.running">
  341. <i class="el-icon-loading"></i>
  342. </el-tooltip>
  343. <el-tooltip class="tooltip"
  344. effect="light"
  345. :content="$t('debugger.stateTips.sending')"
  346. placement="top"
  347. v-show="metadata.state === state.sending">
  348. <i class="el-icon-time"></i>
  349. </el-tooltip>
  350. <i class="el-icon-edit"
  351. v-if="trainId && !isShowInp"
  352. :title="$t('debugger.inpStepTip',{total_step_num:metadata.total_step_num})"
  353. @click="editStep"></i>
  354. <el-tooltip class="item"
  355. effect="light"
  356. :content="$t('debugger.inputTip',{total_step_num:metadata.total_step_num})"
  357. placement="top-start"
  358. v-if="trainId && isShowInp">
  359. <el-input v-model="newStep"
  360. type="text"
  361. @input="newStepChange"></el-input>
  362. </el-tooltip>
  363. <i class="el-icon-check"
  364. v-if="trainId && isShowInp"
  365. @click="saveStepValue"></i>
  366. <i class="el-icon-close"
  367. v-if="trainId && isShowInp"
  368. @click="isShowInp=false"></i>
  369. </div>
  370. <div class="svg-wrap"
  371. :class="{collapse: collapseTable}">
  372. <div class="graph-container">
  373. <div id="graph"></div>
  374. <div id="contextMenu">
  375. <ul>
  376. <li>{{ $t('debugger.continueTo')}}</li>
  377. </ul>
  378. </div>
  379. </div>
  380. <div class="btn-wrap">
  381. <el-button v-if="version==='Ascend'"
  382. type="primary"
  383. size="mini"
  384. class="custom-btn green notShow"
  385. @click="getNodeByBfs(false)">
  386. {{ $t('debugger.previousNode')}}
  387. </el-button>
  388. <el-button v-if="version==='GPU'"
  389. type="primary"
  390. size="mini"
  391. class="custom-btn green"
  392. :disabled="!currentNodeName"
  393. :class="{disabled:!currentNodeName}"
  394. @click="getCurrentNodeInfo">
  395. {{ $t('debugger.currentNode')}}
  396. </el-button>
  397. <el-button v-if="version==='Ascend'"
  398. type="primary"
  399. size="mini"
  400. class="custom-btn white notShow"
  401. @click="getNodeByBfs(true)">
  402. {{ $t('debugger.nextNode')}}
  403. </el-button>
  404. <el-button v-if="version==='GPU'"
  405. type="primary"
  406. size="mini"
  407. class="custom-btn white"
  408. :disabled="metadata.state === state.running ||
  409. metadata.state === state.sending"
  410. :class="{disabled: metadata.state === state.running ||
  411. metadata.state === state.sending}"
  412. @click="getNextNodeInfo">
  413. {{ $t('debugger.nextNode')}}
  414. </el-button>
  415. </div>
  416. </div>
  417. <div class="table-container"
  418. :class="{collapse: collapseTable}">
  419. <img :src="require('@/assets/images/all-drop-down.png')"
  420. v-show="collapseTable"
  421. @click="rightCollapse()"
  422. alt="" />
  423. <img :src="require('@/assets/images/all-uptake.png')"
  424. v-show="!collapseTable"
  425. @click="rightCollapse()"
  426. alt="" />
  427. <el-tabs v-model="tabs.activeName"
  428. @tab-click="tabsChange">
  429. <el-tab-pane :label="$t('debugger.tensorMsg')"
  430. name="tensor">
  431. <div class="table-content">
  432. <div class="table-wrap">
  433. <el-table ref="singleTable"
  434. :data="tableData"
  435. :header-cell-style="discountHeaderStyle"
  436. :span-method="objectSpanMethod"
  437. :row-class-name="tableRowClassName"
  438. tooltip-effect="light">
  439. <el-table-column :label="$t('graph.name')">
  440. <el-table-column property="type"
  441. width="80"></el-table-column>
  442. <el-table-column label=""
  443. show-overflow-tooltip>
  444. <template slot-scope="scope">
  445. <span class="value"
  446. @click="queryAllTreeData(scope.row.name,false,scope.row.graph_name, true)">
  447. {{ scope.row.name }}
  448. </span>
  449. </template>
  450. </el-table-column>
  451. </el-table-column>
  452. <el-table-column property="step"
  453. :label="$t('debugger.step')"
  454. width="80">
  455. </el-table-column>
  456. <el-table-column property="dtype"
  457. :label="$t('debugger.dType')"
  458. width="200">
  459. </el-table-column>
  460. <el-table-column property="shape"
  461. :label="$t('debugger.shape')"
  462. width="120">
  463. </el-table-column>
  464. <el-table-column :label="$t('debugger.value')"
  465. width="260">
  466. <template slot="header">
  467. <span class="center">{{ $t('debugger.value')}}</span>
  468. </template>
  469. <template slot-scope="scope">
  470. <div class="value-wrap">
  471. <el-button size="mini"
  472. type="text"
  473. :disabled="metadata.state === state.running || metadata.state === state.sending"
  474. v-if="scope.row.value === 'click to view'"
  475. @click="showTensor(scope.row,'value')">
  476. {{ $t('debugger.view') }}
  477. </el-button>
  478. <el-button v-else
  479. class="value-tip"
  480. size="mini"
  481. type="text"
  482. :disabled="metadata.state===state.running || metadata.state === state.sending"
  483. :title="isNaN(scope.row.value)?'':scope.row.value"
  484. @click="showTensor(scope.row,'value')">
  485. {{ scope.row.value }}</el-button>
  486. <el-button size="mini"
  487. type="text"
  488. :disabled="metadata.state===state.running || metadata.state === state.sending ||
  489. !scope.row.has_prev_step"
  490. @click="showTensor(scope.row,'compare')">
  491. {{ $t('debugger.compareToPre') }}
  492. </el-button>
  493. </div>
  494. </template>
  495. </el-table-column>
  496. </el-table>
  497. </div>
  498. </div>
  499. </el-tab-pane>
  500. <el-tab-pane :label="$t('graph.nodeInfo')"
  501. name="detail">
  502. <div class="table-content">
  503. <div class="table-wrap">
  504. <el-table ref="nodeInfo"
  505. :data="selectedNode.IOInfo"
  506. :header-cell-style="discountHeaderStyle"
  507. :span-method="objectSpanMethod"
  508. :row-class-name="tableRowClassName"
  509. tooltip-effect="light">
  510. <el-table-column :label="$t('graph.name')">
  511. <el-table-column property="IOType"
  512. width="80"></el-table-column>
  513. <el-table-column label=""
  514. show-overflow-tooltip>
  515. <template slot-scope="scope">
  516. <span class="value"
  517. @click="queryAllTreeData(scope.row.name,false,scope.row.graph_name, true)">
  518. {{ scope.row.name }}
  519. </span>
  520. </template>
  521. </el-table-column>
  522. </el-table-column>
  523. </el-table>
  524. </div>
  525. </div>
  526. </el-tab-pane>
  527. </el-tabs>
  528. </div>
  529. </div>
  530. <div class="deb-con"
  531. v-if="tensorCompareFlag">
  532. <debugger-tensor :row="curRowObj"
  533. :formateWatchpointParams="formateWatchpointParams"
  534. ref="deb-tensor"
  535. @close="closeTensor"></debugger-tensor>
  536. </div>
  537. <el-dialog :title="$t('debugger.createWP')"
  538. :visible.sync="createWPDialogVisible"
  539. :show-close="false"
  540. :close-on-click-modal="false"
  541. :modal-append-to-body="false"
  542. class="creat-watch-point-dialog"
  543. width="930px">
  544. <div class="conditions-container">
  545. <div class="condition-item"
  546. v-for="(item, index) in createWatchPointArr"
  547. :key="index">
  548. <el-select v-model="item.collection.selectedId"
  549. class="collection"
  550. @change="collectionChange(item)">
  551. <el-option v-for="i in conditionCollections"
  552. :key="i.id"
  553. :label="transCondition(i.id)"
  554. :value="i.id"
  555. :class="{'deb-indent': i.id != 'tensor_condition_collection'}">
  556. </el-option>
  557. </el-select>
  558. <el-select v-model="item.condition.selectedId"
  559. class="condition"
  560. @change="conditionChange(item)">
  561. <el-option v-for="i in item.condition.options"
  562. :key="i.id"
  563. :label="transCondition(i.id)"
  564. :value="i.id">
  565. </el-option>
  566. </el-select>
  567. <el-select v-model="item.param.name"
  568. @change="paramChange(item)"
  569. v-if="item.param.options.length"
  570. class="param">
  571. <el-option v-for="i in item.param.options"
  572. :key="i.name"
  573. :label="transCondition(i.name)"
  574. :value="i.name"
  575. v-show="i.paran_type !== 'SUPPORT_PARAM'">
  576. </el-option>
  577. </el-select>
  578. <el-tooltip class="item"
  579. effect="light"
  580. :content="$t('debugger.paramValueTip', {value: (/^(\-|\+)?\d+(\.\d+)?$/).test(item.param.value) ?
  581. Number(item.param.value) : ''})"
  582. placement="top">
  583. <el-input v-model="item.param.value"
  584. :placeholder="$t('scalar.placeHolderNumber')"
  585. v-show="item.param.options.length &&
  586. item.param.type !== 'BOOL'"
  587. @input="validateParam(item)"
  588. class="param-value"></el-input>
  589. </el-tooltip>
  590. <el-select v-model="item.param.value"
  591. v-if="item.param.options.length &&
  592. item.param.type === 'BOOL'"
  593. class="param-value">
  594. <el-option :key="true"
  595. label="true"
  596. :value="true">
  597. </el-option>
  598. <el-option :key="false"
  599. label="false"
  600. :value="false">
  601. </el-option>
  602. </el-select>
  603. <div class="percent-sign"
  604. v-show="percentParams.includes(item.param.name)">%</div>
  605. <div class="inclusive-param"
  606. v-if="item.compositeParams.selections.length">
  607. <div class="item"
  608. v-for="(i, index) in item.compositeParams.selections"
  609. :key="index">
  610. {{transCondition(i.name)}}
  611. <el-tooltip class="item"
  612. effect="light"
  613. :content="$t('debugger.paramValueTip', {value:
  614. (/^(\-|\+)?\d+(\.\d+)?$/).test(item.compositeParams.selections[index].value) ?
  615. Number(item.compositeParams.selections[index].value) : ''})"
  616. placement="top">
  617. <el-input v-model="item.compositeParams.selections[index].value"
  618. :placeholder="$t('scalar.placeHolderNumber')"
  619. v-show="i.type !== 'BOOL'"
  620. @input="validateParam(item)"
  621. class="param-value"></el-input>
  622. </el-tooltip>
  623. <el-select v-model="i.value"
  624. v-if="i.type === 'BOOL'"
  625. class="param-value">
  626. <el-option :key="true"
  627. label="true"
  628. :value="true">
  629. </el-option>
  630. <el-option :key="false"
  631. label="false"
  632. :value="false">
  633. </el-option>
  634. </el-select>
  635. </div>
  636. </div>
  637. </div>
  638. </div>
  639. <span slot="footer"
  640. class="dialog-footer">
  641. <div class="error-msg"
  642. v-show="!validPram">
  643. <i class="el-icon-warning"></i>
  644. {{$t('public.notice') + $t('symbols.colon') + paramErrorMsg}}
  645. </div>
  646. <div class="error-msg"
  647. v-if="createWPDialogVisible && createWatchPointArr[0].condition.selectedId === 'operator_overflow'">
  648. <i class="el-icon-warning"></i>
  649. {{$t('public.notice') + $t('symbols.colon') + $t('debugger.paramErrorMsg.watchOverflow')}}
  650. </div>
  651. <el-button type="primary"
  652. size="mini"
  653. class="custom-btn green"
  654. :disabled="!validPram"
  655. @click="createWatchPoint(true)">{{$t('public.sure')}}</el-button>
  656. <el-button type="primary"
  657. size="mini"
  658. class="custom-btn"
  659. @click="createWatchPoint(false)">
  660. {{ $t('public.cancel') }}
  661. </el-button>
  662. </span>
  663. </el-dialog>
  664. <el-dialog :title="$t('public.notice')"
  665. :visible.sync="dialogVisible"
  666. :show-close="false"
  667. :close-on-click-modal="false"
  668. :modal-append-to-body="false"
  669. class="pendingTips"
  670. width="420px">
  671. <span class="dialog-icon">
  672. <span class="el-icon-warning"></span>
  673. </span>
  674. <span v-if="initFail"
  675. class="dialog-content">{{ $t('debugger.debuggerError') }}</span>
  676. <span v-else
  677. class="dialog-content">{{ $t('debugger.pendingTips') }}</span>
  678. <span slot="footer"
  679. class="dialog-footer">
  680. <el-button type="primary"
  681. size="mini"
  682. class="custom-btn green"
  683. @click="toSummeryList()">{{$t('debugger.toSummeryList')}}</el-button>
  684. </span>
  685. </el-dialog>
  686. <el-dialog :title="$t('debugger.recommendTip')"
  687. :visible.sync="recommendWatchPointDialog"
  688. :show-close="false"
  689. :close-on-click-modal="false"
  690. :modal-append-to-body="false"
  691. class="pendingTips"
  692. width="420px">
  693. <span class="dialog-icon">
  694. <span class="el-icon-warning"></span>
  695. </span>
  696. <span class="dialog-content">{{ $t('debugger.recommendDetail') }}</span>
  697. <span slot="footer"
  698. class="dialog-footer">
  699. <el-button type="primary"
  700. size="mini"
  701. class="custom-btn green"
  702. @click="initRecommendWatchPoints(true)">
  703. {{$t('debugger.use')}}
  704. </el-button>
  705. <el-button type="primary"
  706. size="mini"
  707. class="custom-btn"
  708. @click="initRecommendWatchPoints(false)">
  709. {{ $t('debugger.notUse') }}
  710. </el-button>
  711. </span>
  712. </el-dialog>
  713. <el-dialog :title="$t('public.notice')"
  714. :visible.sync="conflictFlag"
  715. :show-close="false"
  716. :close-on-click-modal="false"
  717. :modal-append-to-body="false"
  718. class="pendingTips"
  719. width="420px">
  720. <span class="dialog-icon">
  721. <span class="el-icon-warning"></span>
  722. </span>
  723. <span class="dialog-content">
  724. {{ $t('debugger.versionConflictTip',{msv:debuggerVersion.ms,miv:debuggerVersion.mi}) }}
  725. </span>
  726. <span slot="footer"
  727. class="dialog-footer">
  728. <el-button type="primary"
  729. size="mini"
  730. class="custom-btn green"
  731. @click="control(2)">{{$t('public.sure')}}</el-button>
  732. </span>
  733. </el-dialog>
  734. </div>
  735. </template>
  736. <script>
  737. import {select, selectAll, zoom, dispatch} from 'd3';
  738. import 'd3-graphviz';
  739. const d3 = {select, selectAll, zoom, dispatch};
  740. import RequestService from '@/services/request-service';
  741. import commonGraph from '../../mixins/common-graph.vue';
  742. import debuggerMixin from '../../mixins/debugger-mixin.vue';
  743. import debuggerTensor from '@/components/debugger-tensor.vue';
  744. import tree from '../../components/tree.vue';
  745. export default {
  746. mixins: [commonGraph, debuggerMixin],
  747. data() {
  748. return {
  749. leftShow: false,
  750. searchWord: '',
  751. tableData: [],
  752. currentRow: null,
  753. tipsFlag: false,
  754. props: {
  755. label: 'label',
  756. children: 'children',
  757. isLeaf: 'leaf',
  758. },
  759. defaultProps: {
  760. children: 'nodes',
  761. label: 'label',
  762. isLeaf: 'leaf',
  763. },
  764. curNodeData: [],
  765. lazy: true,
  766. radio1: 'tree',
  767. nodeTypes: {
  768. options: ['all', 'weight', 'activation', 'gradient'],
  769. label: {},
  770. value: 'all',
  771. },
  772. watchPointArr: [],
  773. allWatchPointFlag: true,
  774. enableRecheck: false,
  775. dynamicTreeData: [],
  776. watchPointHits: [],
  777. defaultCheckedArr: [],
  778. origialTree: [],
  779. conditionCollections: [],
  780. createWatchPointArr: [],
  781. createWPDialogVisible: false,
  782. validPram: false,
  783. curWatchPointId: null,
  784. step: '',
  785. metadata: {},
  786. searchTreeData: [],
  787. treeFlag: true,
  788. curCheckedName: '',
  789. isSelected: false,
  790. searchCheckedArr: [],
  791. curHalfCheckedKeys: [],
  792. tensorValue: [],
  793. loadingOption: {
  794. lock: true,
  795. text: this.$t('public.dataLoading'),
  796. spinner: 'el-icon-loading',
  797. background: 'rgba(0, 0, 0, 0.3)',
  798. },
  799. outputLength: 0,
  800. inputLength: 0,
  801. curLeafNodeName: null,
  802. graphFiles: {
  803. options: [],
  804. value: '',
  805. graphs: {},
  806. },
  807. logicCard: {
  808. options: [],
  809. value: '',
  810. },
  811. devices: [],
  812. selectedNode: {},
  813. contextmenu: {
  814. point: {},
  815. id: 'contextMenu',
  816. dom: null,
  817. },
  818. code: '',
  819. version: 'Ascend',
  820. nodeName: '',
  821. pollInit: true,
  822. collapseTable: false,
  823. dialogVisible: false,
  824. initFail: false,
  825. isIntoView: true,
  826. tolerance: 0,
  827. tensorCompareFlag: false,
  828. gridType: 'compare',
  829. curRowObj: {},
  830. dims: null,
  831. node: null,
  832. resolve: null,
  833. toleranceInput: 0,
  834. showFilterInput: true,
  835. currentNodeName: '',
  836. statisticsArr: [],
  837. tabs: {
  838. activeName: 'tensor',
  839. },
  840. searchNode: null,
  841. searchResolve: null,
  842. isCurrentGraph: true, // Check whether the new and old graphs are the same.
  843. expandKeys: [],
  844. isHitIntoView: true,
  845. searchedWord: '',
  846. trainId: this.$route.query.dir,
  847. recommendWatchPointDialog: false,
  848. hitsOutdated: false,
  849. conflictFlag: false,
  850. debuggerVersion: {},
  851. checkboxStatus: {
  852. unchecked: 0,
  853. indeterminate: 1,
  854. checked: 2,
  855. noCheckbox: -1,
  856. },
  857. percentParams: ['zero_percentage_ge', 'range_percentage_lt', 'range_percentage_gt'],
  858. oldState: '',
  859. treeDisabled: false,
  860. pagination: {
  861. currentPage: 1,
  862. pageSize: 10,
  863. pageCount: 5,
  864. total: 0,
  865. },
  866. state: {
  867. running: 'running',
  868. pending: 'pending',
  869. mismatch: 'mismatch',
  870. sending: 'sending',
  871. waiting: 'waiting',
  872. },
  873. loadingInstance: null,
  874. paramErrorMsg: '',
  875. sessionId: this.$route.query.sessionId,
  876. isShowInp: false,
  877. newStep: '',
  878. };
  879. },
  880. components: {debuggerTensor, tree},
  881. mounted() {
  882. document.title = `${this.$t('debugger.debugger')}-MindInsight`;
  883. this.nodeTypes.label = this.$t('debugger.nodeType');
  884. this.pageKey = 'debugger';
  885. if (this.trainId) {
  886. document.title = `${this.trainId}-${this.$t('debugger.debugger')}-MindInsight`;
  887. this.retrieveAll();
  888. } else {
  889. this.getSession();
  890. }
  891. window.addEventListener('resize', this.initSvgSize, false);
  892. },
  893. watch: {
  894. 'metadata.state': {
  895. handler(newValue, oldValue) {
  896. if (newValue === this.state.mismatch) {
  897. this.conflictFlag = true;
  898. } else {
  899. this.conflictFlag = false;
  900. }
  901. if (newValue === this.state.pending) {
  902. if (oldValue) {
  903. location.reload();
  904. } else {
  905. this.dialogVisible = true;
  906. }
  907. } else {
  908. this.dialogVisible = false;
  909. }
  910. if (newValue === this.state.running || newValue === this.state.sending) {
  911. this.treeDisabled = true;
  912. } else {
  913. this.treeDisabled = false;
  914. }
  915. if (newValue === this.state.sending && oldValue) {
  916. this.oldState = oldValue;
  917. }
  918. if (newValue === this.state.waiting) {
  919. if (this.oldState === this.state.pending || oldValue === this.state.pending) {
  920. this.retrieveAll();
  921. } else if (this.oldState === this.state.running || oldValue === this.state.running) {
  922. this.pagination.currentPage = 1;
  923. this.watchPointHits = [];
  924. this.pagination.total = 0;
  925. this.searchWatchpointHits(true);
  926. }
  927. }
  928. },
  929. deep: true,
  930. },
  931. },
  932. methods: {
  933. showTensor(row, type) {
  934. this.curRowObj = JSON.parse(JSON.stringify(row));
  935. this.curRowObj.type = type;
  936. this.curRowObj.curFileName = this.graphFiles.value;
  937. this.curRowObj.step = this.metadata.step;
  938. this.curRowObj.rank_id = this.logicCard.value;
  939. this.curRowObj.sessionId = this.sessionId;
  940. this.tensorCompareFlag = true;
  941. },
  942. closeTensor(tensor, graphName) {
  943. this.tensorCompareFlag = false;
  944. if (tensor && graphName) {
  945. this.queryAllTreeData(tensor, true, graphName, true);
  946. }
  947. },
  948. logicCardChange() {
  949. this.graphFiles.options = JSON.parse(
  950. JSON.stringify(this.devices.find((val) => val.rank_id === this.logicCard.value).graph_names),
  951. );
  952. if (this.graphFiles.options.length > 1) {
  953. this.graphFiles.options.unshift(this.$t('debugger.all'));
  954. }
  955. this.graphFiles.value = this.graphFiles.options[0];
  956. const device = this.devices.find((val) => val.rank_id === this.logicCard.value);
  957. this.metadata.ip = device.server_ip;
  958. this.metadata.device_name = device.device_id;
  959. this.queryGraphByFile();
  960. },
  961. queryGraphByFile() {
  962. this.searchWord = '';
  963. this.nodeTypes.value = 'all';
  964. this.treeFlag = true;
  965. const params = {
  966. mode: 'node',
  967. params: {
  968. watch_point_id: this.curWatchPointId ? this.curWatchPointId : 0,
  969. graph_name: this.graphFiles.value,
  970. rank_id: this.logicCard.value,
  971. },
  972. };
  973. if (this.graphFiles.value === this.$t('debugger.all')) {
  974. delete params.params.graph_name;
  975. }
  976. RequestService.retrieve(params, this.sessionId).then(
  977. (res) => {
  978. if (res.data && res.data.metadata) {
  979. this.dealMetadata(res.data.metadata);
  980. }
  981. if (res.data && res.data.graph) {
  982. const graph = res.data.graph;
  983. this.origialTree = res.data.graph.nodes.map((val) => {
  984. return {
  985. label: val.name.split('/').pop(),
  986. leaf: val.type === 'name_scope' || val.type === 'aggregation_scope' ? false : true,
  987. ...val,
  988. showCheckbox: val.watched !== -1,
  989. };
  990. });
  991. this.node.childNodes = [];
  992. this.resolve(this.origialTree);
  993. // watched 0:unchecked 1:indeterminate 2:checked -1:no checkbox
  994. this.defaultCheckedArr = this.origialTree
  995. .filter((val) => {
  996. return val.watched === this.checkboxStatus.checked;
  997. })
  998. .map((val) => val.name);
  999. this.node.childNodes.forEach((val) => {
  1000. if (val.data.watched === this.checkboxStatus.indeterminate) {
  1001. val.indeterminate = true;
  1002. }
  1003. if (val.data.watched === this.checkboxStatus.unchecked) {
  1004. val.checked = false;
  1005. }
  1006. if (val.data.watched === this.checkboxStatus.checked) {
  1007. val.checked = true;
  1008. }
  1009. });
  1010. this.firstFloorNodes = [];
  1011. this.allGraphData = {};
  1012. d3.select('#graph svg').remove();
  1013. this.selectedNode.name = '';
  1014. this.dealGraphData(JSON.parse(JSON.stringify(graph.nodes)));
  1015. this.tableData = [];
  1016. }
  1017. },
  1018. (err) => {
  1019. this.showErrorMsg(err);
  1020. this.resolve([]);
  1021. },
  1022. );
  1023. },
  1024. selectAllFiles(type) {
  1025. if (!type && !this.$refs.tree.getCheckedKeys().length && !this.$refs.tree.getHalfCheckedKeys().length) {
  1026. return;
  1027. }
  1028. if (type && !this.node.childNodes.find((val) => val.checked === false)) {
  1029. return;
  1030. }
  1031. let watchNodes = [];
  1032. this.node.childNodes.forEach((val) => {
  1033. if (type !== val.checked || (!type && val.indeterminate)) {
  1034. watchNodes.push(val.data.name);
  1035. }
  1036. val.indeterminate = false;
  1037. val.checked = type;
  1038. if (type) {
  1039. val.data.watched = this.checkboxStatus.checked;
  1040. } else {
  1041. val.data.watched = this.checkboxStatus.unchecked;
  1042. }
  1043. if (val.childNodes) {
  1044. this.dealCheckPro(val.childNodes, type);
  1045. }
  1046. });
  1047. if (type) {
  1048. watchNodes = this.$refs.tree.getCheckedKeys();
  1049. }
  1050. if (this.curWatchPointId) {
  1051. const params = {
  1052. watch_point_id: this.curWatchPointId ? this.curWatchPointId : 0,
  1053. watch_nodes: watchNodes,
  1054. mode: type ? 1 : 0,
  1055. graph_name: this.graphFiles.value,
  1056. rank_id: this.logicCard.value,
  1057. };
  1058. if (this.graphFiles.value === this.$t('debugger.all')) {
  1059. delete params.graph_name;
  1060. }
  1061. RequestService.updateWatchpoint(params, this.sessionId).then(
  1062. (res) => {
  1063. this.defaultCheckedArr = this.$refs.tree.getCheckedKeys();
  1064. if (res && res.data && res.data.metadata && res.data.metadata.enable_recheck !== undefined) {
  1065. this.enableRecheck = res.data.metadata.enable_recheck;
  1066. }
  1067. },
  1068. (err) => {
  1069. this.showErrorMsg(err);
  1070. },
  1071. );
  1072. }
  1073. },
  1074. nodeTypesChange() {
  1075. if (this.nodeTypes.value === 'all' && !this.searchWord) {
  1076. this.treeFlag = true;
  1077. this.node.level = 0;
  1078. this.queryGraphByFile();
  1079. } else {
  1080. this.treeFlag = false;
  1081. this.filter();
  1082. }
  1083. },
  1084. /**
  1085. * Query graph data by watchpoint id
  1086. * @param {Number} id Wacthpoint id
  1087. */
  1088. queryGraphByWatchpoint(id) {
  1089. const params = {
  1090. mode: 'watchpoint',
  1091. params: {
  1092. watch_point_id: id,
  1093. graph_name: this.graphFiles.value,
  1094. rank_id: this.logicCard.value,
  1095. },
  1096. };
  1097. if (this.graphFiles.value === this.$t('debugger.all')) {
  1098. delete params.params.graph_name;
  1099. }
  1100. RequestService.retrieve(params, this.sessionId).then(
  1101. (res) => {
  1102. if (res.data && res.data.graph) {
  1103. const graph = res.data.graph;
  1104. this.origialTree = graph.nodes.map((val) => {
  1105. return {
  1106. label: val.name.split('/').pop(),
  1107. ...val,
  1108. showCheckbox: val.watched !== -1,
  1109. };
  1110. });
  1111. this.node.childNodes = [];
  1112. this.curWatchPointId = id;
  1113. this.resolve(this.origialTree);
  1114. this.$refs.tree.getCheckedKeys().forEach((val) => {
  1115. this.$refs.tree.setChecked(val, false);
  1116. });
  1117. // watched 0:unchecked 1:indeterminate 2:checked -1:no checkbox
  1118. this.defaultCheckedArr = this.origialTree
  1119. .filter((val) => {
  1120. return val.watched === this.checkboxStatus.checked;
  1121. })
  1122. .map((val) => val.name);
  1123. const halfSelectArr = this.origialTree
  1124. .filter((val) => {
  1125. return val.watched === this.checkboxStatus.indeterminate;
  1126. })
  1127. .map((val) => val.name);
  1128. this.node.childNodes.forEach((val) => {
  1129. if (halfSelectArr.indexOf(val.data.name) !== -1) {
  1130. val.indeterminate = true;
  1131. }
  1132. if (val.data.watched === this.checkboxStatus.checked) {
  1133. val.checked = true;
  1134. } else if (val.data.watched === this.checkboxStatus.unchecked) {
  1135. val.checked = false;
  1136. }
  1137. });
  1138. this.tableData = [];
  1139. this.firstFloorNodes = [];
  1140. this.allGraphData = {};
  1141. d3.select('#graph svg').remove();
  1142. this.selectedNode.name = '';
  1143. this.dealGraphData(JSON.parse(JSON.stringify(graph.nodes)));
  1144. }
  1145. },
  1146. (err) => {
  1147. this.showErrorMsg(err);
  1148. },
  1149. );
  1150. },
  1151. /**
  1152. * Get watchpoint messages
  1153. * @param {Object} item Wacthpoint data
  1154. * @return {String}
  1155. */
  1156. getWatchPointContent(item) {
  1157. let param = '';
  1158. if (item.params.length) {
  1159. param = item.params
  1160. .map((i) => {
  1161. const name = this.transCondition(i.name);
  1162. const symbol = this.percentParams.includes(i.name) ? '%' : '';
  1163. return `${name} ${i.value + symbol}`;
  1164. })
  1165. .join(', ');
  1166. param = `(${param})`;
  1167. }
  1168. return `${this.$t('debugger.watchPoint')} ${item.id}: ${this.transCondition(item.condition)} ${param}`;
  1169. },
  1170. formateWatchpointParams(params = []) {
  1171. params.forEach((i) => {
  1172. const symbol = this.percentParams.includes(i.name) ? '%' : '';
  1173. let content = `${this.transCondition(i.name)}: ${this.$t('debugger.setValue')} ${i.value + symbol}`;
  1174. content +=
  1175. i.actual_value || i.actual_value === 0
  1176. ? `, ${this.$t('debugger.actualValue')} ${i.actual_value + symbol}`
  1177. : '';
  1178. i.content = content;
  1179. });
  1180. },
  1181. /** ************************ graph **********************/
  1182. /**
  1183. * Initialization method executed after the graph rendering is complete
  1184. */
  1185. startApp() {
  1186. this.initSvgSize();
  1187. this.graph.dom = document.querySelector(`#graph #graph0`);
  1188. const graphBox = this.graph.dom.getBBox();
  1189. this.graph.size = {width: graphBox.width, height: graphBox.height};
  1190. let transform = '';
  1191. if (this.graph.dom.getAttribute('transform')) {
  1192. // transform information of graph
  1193. transform = this.graph.dom.getAttribute('transform').split(/[(,)]/);
  1194. } else {
  1195. transform = ['translate', '0', '0', ' scale', '1'];
  1196. }
  1197. this.graph.transform = {
  1198. k: parseFloat(transform[4]),
  1199. x: parseFloat(transform[1]),
  1200. y: parseFloat(transform[2]),
  1201. };
  1202. this.graph.minScale = Math.min(
  1203. this.svg.size.width / 2 / this.graph.size.width,
  1204. this.svg.size.height / 2 / this.graph.size.height
  1205. );
  1206. this.initZooming();
  1207. this.initContextMenu();
  1208. if (this.selectedNode.name) {
  1209. this.selectNode(true, true);
  1210. }
  1211. this.$nextTick(() => {
  1212. this.loadingInstance.close();
  1213. });
  1214. },
  1215. /**
  1216. * Initialize the right-click menu
  1217. */
  1218. initContextMenu() {
  1219. this.contextmenu.dom = document.querySelector('#contextMenu');
  1220. const svgDom = document.querySelector('#graph svg');
  1221. const ignoreType = ['Parameter', 'Const', 'Depend', 'make_tuple', 'tuple_getitem', 'ControlDepend'];
  1222. const dispatch = d3
  1223. .dispatch('start', 'contextmenu')
  1224. .on('start', (event) => {
  1225. this.contextmenu.dom.style.display = 'none';
  1226. this.contextmenu.point = {x: event.x, y: event.y};
  1227. })
  1228. .on('contextmenu', (target) => {
  1229. if (this.metadata.state !== this.state.waiting) {
  1230. return;
  1231. }
  1232. const svgRect = svgDom.getBoundingClientRect();
  1233. this.contextmenu.dom.style.left = `${this.contextmenu.point.x - svgRect.x}px`;
  1234. this.contextmenu.dom.style.top = `${this.contextmenu.point.y - svgRect.y}px`;
  1235. this.contextmenu.dom.style.display = 'block';
  1236. this.selectedNode.name = target.name;
  1237. this.selectNode(false, true);
  1238. });
  1239. const nodes = d3.selectAll('g.node, g.cluster');
  1240. nodes.on(
  1241. 'contextmenu',
  1242. (target, index, nodesList) => {
  1243. event.preventDefault();
  1244. const node = this.allGraphData[nodesList[index].id.replace('_unfold', '')];
  1245. if (node) {
  1246. if (
  1247. !(
  1248. this.version !== 'GPU' ||
  1249. ignoreType.includes(node.type) ||
  1250. node.type.endsWith('_scope') ||
  1251. node.type.endsWith('Summary')
  1252. )
  1253. ) {
  1254. setTimeout(() => {
  1255. dispatch.call('contextmenu', this, node);
  1256. }, 10);
  1257. }
  1258. }
  1259. },
  1260. true,
  1261. );
  1262. document.oncontextmenu = (event) => {
  1263. dispatch.apply('start', this, [event]);
  1264. };
  1265. document.onmousedown = () => {
  1266. this.contextmenu.dom.style.display = 'none';
  1267. };
  1268. this.contextmenu.dom.onmousedown = () => {
  1269. this.continueTo();
  1270. };
  1271. },
  1272. /**
  1273. * Continue to
  1274. */
  1275. continueTo() {
  1276. this.pagination.currentPage = 1;
  1277. this.watchPointHits = [];
  1278. this.pagination.total = 0;
  1279. const params = {
  1280. mode: 'continue',
  1281. level: 'node',
  1282. name: this.selectedNode.name.replace('_unfold', ''),
  1283. graph_name: this.graphFiles.value,
  1284. rank_id: this.logicCard.value,
  1285. };
  1286. if (this.graphFiles.value === this.$t('debugger.all')) {
  1287. delete params.graph_name;
  1288. }
  1289. RequestService.control(params, this.sessionId).then(
  1290. (res) => {
  1291. if (res && res.data) {
  1292. }
  1293. },
  1294. (error) => {
  1295. this.showErrorMsg(error);
  1296. },
  1297. );
  1298. },
  1299. /**
  1300. * Double-click the processing to be performed on the node to expand or narrow the namespace or aggregation node.
  1301. * @param {String} name Name of the current node (also the ID of the node)
  1302. */
  1303. dealDoubleClick(name) {
  1304. name = name.replace('_unfold', '');
  1305. this.loadingInstance = this.$loading(this.loadingOption);
  1306. this.$nextTick(() => {
  1307. // Delay is required, otherwise loading cannot be displayed
  1308. setTimeout(() => {
  1309. if (this.allGraphData[name].isUnfold) {
  1310. this.selectedNode.name = name;
  1311. this.deleteNamespace(name);
  1312. } else {
  1313. this.queryGraphData(name);
  1314. }
  1315. }, 200);
  1316. });
  1317. },
  1318. /**
  1319. * Close the expanded namespace.
  1320. * @param {String} name The name of the namespace to be closed.
  1321. */
  1322. deleteNamespace(name) {
  1323. if (!this.selectedNode.more) {
  1324. this.packageDataToObject(name, false);
  1325. this.layoutController(name);
  1326. } else {
  1327. this.allGraphData[name].isUnfold = true;
  1328. this.selectedNode.name = `${name}_unfold`;
  1329. this.layoutNamescope(name, true);
  1330. }
  1331. },
  1332. /**
  1333. * Controls the invoking method of the next step.
  1334. * @param {String} name Name of the namespace to be expanded.
  1335. */
  1336. layoutController(name) {
  1337. if (name.includes('/')) {
  1338. const subPath = name.split('/').slice(0, -1).join('/');
  1339. this.layoutNamescope(subPath, true);
  1340. } else {
  1341. const svg = document.querySelector('#graph svg');
  1342. if (svg) {
  1343. svg.remove();
  1344. }
  1345. const dot = this.packageGraphData();
  1346. this.initGraph(dot);
  1347. }
  1348. },
  1349. /**
  1350. * To obtain graph data, initialize and expand the namespace or aggregate nodes.
  1351. * @param {String} name Name of the current node.
  1352. */
  1353. queryGraphData(name) {
  1354. const type = this.allGraphData[name] ? this.allGraphData[name].type : 'name_scope';
  1355. const mode = name ? 'node' : 'all';
  1356. const params = {
  1357. mode: mode,
  1358. };
  1359. if (name) {
  1360. params.params = {
  1361. watch_point_id: this.curWatchPointId ? this.curWatchPointId : 0,
  1362. name: name,
  1363. node_type: type,
  1364. single_node: false,
  1365. graph_name: this.graphFiles.value,
  1366. rank_id: this.logicCard.value,
  1367. };
  1368. if (this.graphFiles.value === this.$t('debugger.all')) {
  1369. delete params.params.graph_name;
  1370. }
  1371. }
  1372. RequestService.retrieve(params, this.sessionId)
  1373. .then(
  1374. (response) => {
  1375. if (response && response.data && response.data.graph) {
  1376. const graph = response.data.graph;
  1377. const nodes = JSON.parse(JSON.stringify(graph.nodes));
  1378. this.nodeExpandLinkage(nodes, name);
  1379. this.dealGraphData(nodes, name);
  1380. }
  1381. },
  1382. (error) => {
  1383. this.showErrorMsg(error);
  1384. },
  1385. )
  1386. .catch((error) => {
  1387. // A non-Google Chrome browser may not work properly.
  1388. if (error && error.includes('larger than maximum 65535 allowed')) {
  1389. this.$message.error(this.$t('graph.dataTooLarge'));
  1390. } else {
  1391. this.$bus.$emit('showWarmText', true);
  1392. }
  1393. if (name && this.allGraphData[name]) {
  1394. this.allGraphData[name].isUnfold = false;
  1395. this.allGraphData[name].children = [];
  1396. this.allGraphData[name].size = [];
  1397. this.allGraphData[name].html = '';
  1398. }
  1399. });
  1400. },
  1401. /**
  1402. * Process graph data
  1403. * @param {Object} nodes Nodes data
  1404. * @param {String} name Node name
  1405. */
  1406. dealGraphData(nodes, name) {
  1407. const namescopeChildLimit = 3500;
  1408. const nodesCountLimit = name ? this.nodesCountLimit : namescopeChildLimit;
  1409. const independentLayout = this.allGraphData[name] ? this.allGraphData[name].independent_layout : false;
  1410. if (!independentLayout && nodes.length > nodesCountLimit) {
  1411. this.$message.error(this.$t('graph.tooManyNodes'));
  1412. this.packageDataToObject(name, false);
  1413. this.loadingInstance.close();
  1414. } else {
  1415. if (nodes && nodes.length) {
  1416. this.packageDataToObject(name, true, nodes);
  1417. // If the name is empty, it indicates the outermost layer.
  1418. if (!name) {
  1419. const dot = this.packageGraphData();
  1420. this.initGraph(dot);
  1421. } else {
  1422. if (this.allGraphData[name].type === 'aggregation_scope') {
  1423. this.dealAggregationNodes(name);
  1424. if (this.allGraphData[name].maxChainNum > this.maxChainNum) {
  1425. this.$message.error(this.$t('graph.tooManyChain'));
  1426. this.allGraphData[name].isUnfold = true;
  1427. this.selectedNode.name = name;
  1428. this.deleteNamespace(name);
  1429. this.loadingInstance.close();
  1430. return;
  1431. }
  1432. }
  1433. this.allGraphData[name].isUnfold = true;
  1434. this.selectedNode.name = `${name}_unfold`;
  1435. this.layoutNamescope(name, true);
  1436. }
  1437. }
  1438. }
  1439. },
  1440. /**
  1441. * Selecting a node
  1442. * @param {Boolean} needFocus Whether to focus on the node
  1443. * @param {Boolean} isQueryTensor Whether to query tensorValue
  1444. */
  1445. selectNode(needFocus = false, isQueryTensor) {
  1446. window.getSelection().removeAllRanges();
  1447. d3.selectAll('.node polygon, .node ellipse, .node rect, .node path').classed('selected', false);
  1448. const path = this.selectedNode.name.split('^');
  1449. const node = {};
  1450. let id = path[0].replace('_unfold', '');
  1451. this.selectedNode.name = id;
  1452. node.data = this.allGraphData[id];
  1453. if (node.data) {
  1454. id = this.allGraphData[id].isUnfold ? `${id}_unfold` : id;
  1455. node.dom = document.querySelector(`#graph g[id="${id}"]`);
  1456. if (node.dom) {
  1457. const needDelay = path.length > 1;
  1458. if ((needFocus || needDelay) && node.dom) {
  1459. this.selectNodePosition(id, needDelay);
  1460. }
  1461. d3.select(`#graph g[id="${id}"]`).select('polygon, rect, ellipse, path').classed('selected', true);
  1462. this.highlightProxyNodes(id.replace('_unfold', ''));
  1463. this.highLightEdges(node.data);
  1464. this.$refs.tree.setCurrentKey(id.replace('_unfold', ''));
  1465. if (this.isIntoView) {
  1466. this.$nextTick(() => {
  1467. setTimeout(() => {
  1468. const dom = document.querySelector('.el-tree-node.is-current.is-focusable');
  1469. if (dom) {
  1470. dom.scrollIntoView();
  1471. }
  1472. }, 800);
  1473. });
  1474. }
  1475. this.isIntoView = true;
  1476. const type = this.allGraphData[path[0].replace('_unfold', '')].type;
  1477. const ignoreType = ['name_scope', 'aggregation_scope'];
  1478. if (isQueryTensor && !this.selectedNode.name.includes('more...') && !ignoreType.includes(type)) {
  1479. if (this.graph.timer) {
  1480. clearTimeout(this.graph.timer);
  1481. }
  1482. this.graph.timer = setTimeout(() => {
  1483. const name = path[0].replace('_unfold', '');
  1484. if (this.graphFiles.value === this.$t('debugger.all')) {
  1485. this.retrieveTensorHistory({name: name.replace(`${name.split('/')[0]}/`, '')}, name.split('/')[0]);
  1486. } else {
  1487. this.retrieveTensorHistory(
  1488. {
  1489. name,
  1490. },
  1491. this.graphFiles.value,
  1492. );
  1493. }
  1494. }, 500);
  1495. }
  1496. if (ignoreType.includes(type)) {
  1497. this.tableData = [];
  1498. } else {
  1499. if (this.graphFiles.value === this.$t('debugger.all')) {
  1500. this.nodeName = this.selectedNode.name.replace(`${this.selectedNode.name.split('/')[0]}/`, '');
  1501. } else {
  1502. this.nodeName = this.selectedNode.name;
  1503. }
  1504. }
  1505. }
  1506. }
  1507. if (this.tabs.activeName === 'detail') {
  1508. this.setSelectedNodeData(node.data);
  1509. }
  1510. if (this.watchPointHits.length && this.radio1 === 'hit' && this.isHitIntoView) {
  1511. if (!this.focusWatchpointHit()) {
  1512. this.searchWatchpointHits(true);
  1513. }
  1514. }
  1515. this.isHitIntoView = true;
  1516. this.loadingInstance.close();
  1517. },
  1518. /**
  1519. * The node information of the selected node.
  1520. * @param {Object} selectedNode Node data
  1521. */
  1522. setSelectedNodeData(selectedNode = {}) {
  1523. const IOInfo = [];
  1524. this.selectedNode.inputNum = 0;
  1525. this.selectedNode.outputNum = 0;
  1526. if (selectedNode.output) {
  1527. Object.keys(selectedNode.output).forEach((key) => {
  1528. let graphName = this.graphFiles.value;
  1529. if (this.graphFiles.value === this.$t('debugger.all')) {
  1530. graphName = key.split('/')[0];
  1531. key = key.replace(`${graphName}/`, '');
  1532. }
  1533. const obj = {
  1534. name: key,
  1535. IOType: 'output',
  1536. graph_name: graphName,
  1537. rank_id: this.logicCard.value,
  1538. };
  1539. IOInfo.push(obj);
  1540. this.selectedNode.outputNum++;
  1541. });
  1542. }
  1543. if (selectedNode.input) {
  1544. Object.keys(selectedNode.input).forEach((key) => {
  1545. let graphName = this.graphFiles.value;
  1546. if (this.graphFiles.value === this.$t('debugger.all')) {
  1547. graphName = key.split('/')[0];
  1548. key = key.replace(`${graphName}/`, '');
  1549. }
  1550. const obj = {
  1551. name: key,
  1552. IOType: 'input',
  1553. graph_name: graphName,
  1554. rank_id: this.logicCard.value,
  1555. };
  1556. IOInfo.push(obj);
  1557. this.selectedNode.inputNum++;
  1558. });
  1559. }
  1560. this.selectedNode.IOInfo = IOInfo;
  1561. },
  1562. /**
  1563. * The position is offset to the current node in the center of the screen.
  1564. * @param {String} nodeId Selected Node id
  1565. * @param {Boolean} needDelay Delay required
  1566. */
  1567. selectNodePosition(nodeId, needDelay) {
  1568. const nodeDom = document.querySelector(`#graph0 g[id="${nodeId}"]`);
  1569. const nodeRect = nodeDom.getBoundingClientRect();
  1570. const graphObj = {};
  1571. graphObj.rect = this.graph.dom.getBoundingClientRect();
  1572. graphObj.initWidth = graphObj.rect.width / this.graph.transform.k;
  1573. graphObj.initHeight = graphObj.rect.height / this.graph.transform.k;
  1574. const screenChange = {
  1575. x: nodeRect.left + nodeRect.width / 2 - (this.svg.size.left + this.svg.size.width / 2),
  1576. y: nodeRect.top + nodeRect.height / 2 - (this.svg.size.top + this.svg.size.height / 2),
  1577. };
  1578. this.graph.transform.x -= screenChange.x * (this.graph.size.width / graphObj.initWidth);
  1579. this.graph.transform.y -= screenChange.y * (this.graph.size.height / graphObj.initHeight);
  1580. this.graph.dom.setAttribute(
  1581. 'transform',
  1582. `translate(${this.graph.transform.x},` + `${this.graph.transform.y}) scale(${this.graph.transform.k})`,
  1583. );
  1584. const transitionTime = Math.min(Math.abs(screenChange.x) * 2, Math.abs(screenChange.y) * 2, needDelay ? 800 : 0);
  1585. this.graph.dom.style.transition = `${transitionTime / 1000}s`;
  1586. this.graph.dom.style['transition-timing-function'] = 'linear';
  1587. setTimeout(() => {
  1588. this.graph.dom.style.transition = '';
  1589. }, transitionTime);
  1590. },
  1591. /**
  1592. * Reset graph and data
  1593. */
  1594. resetGraph() {
  1595. const temp = {};
  1596. this.firstFloorNodes.forEach((key) => {
  1597. const node = this.allGraphData[key];
  1598. node.isUnfold = false;
  1599. node.children = [];
  1600. node.size = [];
  1601. node.html = '';
  1602. temp[node.name] = node;
  1603. });
  1604. this.allGraphData = JSON.parse(JSON.stringify(temp));
  1605. d3.select('#graph svg').remove();
  1606. this.selectedNode.name = '';
  1607. const dot = this.packageGraphData();
  1608. this.initGraph(dot);
  1609. },
  1610. /**
  1611. * Search for all data of a specific node and its namespace.
  1612. * @param {Object} graphs Selected node data object
  1613. * @param {String} name Node name
  1614. * @param {Boolean} isQueryTensor Whether to query tensorValue
  1615. */
  1616. querySingleNode(graphs, name, isQueryTensor) {
  1617. this.selectedNode.name = name;
  1618. this.selectedNode.more = false;
  1619. // If a node exists on the map, select the node.
  1620. if (this.allGraphData[name]) {
  1621. if (d3.select(`g[id="${name}"], g[id="${name}_unfold"]`).size()) {
  1622. // If the namespace or aggregation node is expanded, you need to close it and select
  1623. this.selectNode(true, isQueryTensor);
  1624. this.loadingInstance.close();
  1625. } else {
  1626. const parentId = name.substring(0, name.lastIndexOf('/'));
  1627. if (this.allGraphData[parentId] && this.allGraphData[parentId].isUnfold) {
  1628. const aggregationNode = this.allGraphData[parentId];
  1629. if (aggregationNode && aggregationNode.childIdsList) {
  1630. for (let i = 0; i < aggregationNode.childIdsList.length; i++) {
  1631. if (aggregationNode.childIdsList[i].includes(name)) {
  1632. aggregationNode.index = i;
  1633. break;
  1634. }
  1635. }
  1636. }
  1637. this.selectedNode.name = name;
  1638. this.layoutNamescope(parentId, true);
  1639. }
  1640. }
  1641. } else {
  1642. const data = this.findStartUnfoldNode(graphs.children);
  1643. if (data) {
  1644. this.dealAutoUnfoldNamescopesData(data);
  1645. }
  1646. }
  1647. },
  1648. /**
  1649. * Processes all data of the queried node and the namespace to which the node belongs.
  1650. * @param {Object} data All data of the node and the namespace to which the node belongs
  1651. * @return {Object} The data object of the namespace to expand.
  1652. */
  1653. dealAutoUnfoldNamescopesData(data) {
  1654. if (!data.scope_name) {
  1655. return this.dealAutoUnfoldNamescopesData(data.children);
  1656. } else {
  1657. if (this.allGraphData[data.scope_name].isUnfold) {
  1658. return this.dealAutoUnfoldNamescopesData(data.children);
  1659. } else {
  1660. // If the namespace is a namespace and the number of subnodes exceeds the upper limit,
  1661. // an error is reported and the namespace is selected.
  1662. if (this.allGraphData[data.scope_name].type === 'name_scope' && data.nodes.length > this.nodesCountLimit) {
  1663. this.selectedNode.name = data.scope_name;
  1664. this.querySingleNode(data, data.scope_name, true);
  1665. this.selectNode(true, true);
  1666. this.loadingInstance.close();
  1667. this.$message.error(this.$t('graph.tooManyNodes'));
  1668. } else {
  1669. // Normal expansion
  1670. const nodes = JSON.parse(JSON.stringify(data.nodes));
  1671. this.packageDataToObject(data.scope_name, true, nodes);
  1672. if (this.allGraphData[data.scope_name].type === 'aggregation_scope') {
  1673. this.dealAggregationNodes(data.scope_name);
  1674. const aggregationNode = this.allGraphData[data.scope_name];
  1675. if (aggregationNode) {
  1676. for (let i = 0; i < aggregationNode.childIdsList.length; i++) {
  1677. if (aggregationNode.childIdsList[i].includes(this.selectedNode.name)) {
  1678. aggregationNode.index = i;
  1679. break;
  1680. }
  1681. }
  1682. }
  1683. if (this.allGraphData[data.scope_name].maxChainNum > this.maxChainNum) {
  1684. this.selectedNode.name = data.scope_name;
  1685. this.allGraphData[data.scope_name].isUnfold = false;
  1686. this.deleteNamespace(data.scope_name);
  1687. this.loadingInstance.close();
  1688. this.$message.error(this.$t('graph.tooManyChain'));
  1689. return;
  1690. }
  1691. }
  1692. if (data.children.scope_name) {
  1693. this.dealAutoUnfoldNamescopesData(data.children);
  1694. } else {
  1695. this.layoutNamescope(data.scope_name, true);
  1696. }
  1697. }
  1698. }
  1699. }
  1700. },
  1701. /**
  1702. * Show error message
  1703. * @param {Object} error Error data
  1704. */
  1705. showErrorMsg(error) {
  1706. if (error && error.response && error.response.data && error.response.data.error_code) {
  1707. if (this.$t('error')[`${error.response.data.error_code}`]) {
  1708. this.$message.error(this.$t('error')[`${error.response.data.error_code}`]);
  1709. } else {
  1710. if (error.response.data.error_code === '5054B101') {
  1711. // The error "The graph does not exist" should not display in front page;
  1712. return;
  1713. }
  1714. this.$message.error(error.response.data.error_msg);
  1715. }
  1716. }
  1717. if (this.loadingInstance) {
  1718. this.loadingInstance.close();
  1719. }
  1720. },
  1721. tabsChange() {
  1722. if (this.tabs.activeName === 'detail') {
  1723. const node = this.allGraphData[this.selectedNode.name];
  1724. this.setSelectedNodeData(node);
  1725. }
  1726. },
  1727. /**
  1728. * To summery list page
  1729. */
  1730. toSummeryList() {
  1731. this.dialogVisible = false;
  1732. this.$router.push({
  1733. path: '/summary-manage',
  1734. });
  1735. },
  1736. rightCollapse() {
  1737. this.collapseTable = !this.collapseTable;
  1738. this.initSvgSize();
  1739. },
  1740. initSvgSize() {
  1741. if (this.resizeTimer) clearTimeout(this.resizeTimer);
  1742. this.resizeTimer = setTimeout(() => {
  1743. const svgRect = document.querySelector('#graph svg').getBoundingClientRect();
  1744. this.svg.size = {width: svgRect.width, height: svgRect.height, left: svgRect.left, top: svgRect.top};
  1745. this.resizeTimer = null;
  1746. }, this.resizeDelay);
  1747. },
  1748. },
  1749. destroyed() {
  1750. window.removeEventListener('resize', this.initSvgSize);
  1751. },
  1752. };
  1753. </script>
  1754. <style>
  1755. .deb-wrap {
  1756. height: 100%;
  1757. background-color: white;
  1758. position: relative;
  1759. overflow: hidden;
  1760. }
  1761. .deb-wrap > div {
  1762. float: left;
  1763. height: 100%;
  1764. }
  1765. .deb-wrap .left-wrap {
  1766. width: 400px;
  1767. padding-right: 25px;
  1768. height: 100%;
  1769. background-color: white;
  1770. position: relative;
  1771. transition: width 0.2s;
  1772. -moz-transition: width 0.2s;
  1773. /* Firefox 4 */
  1774. -webkit-transition: width 0.2s;
  1775. /* Safari and Chrome */
  1776. -o-transition: width 0.2s;
  1777. /* Opera */
  1778. }
  1779. .deb-wrap .left-wrap .left {
  1780. height: 100%;
  1781. background: #fff;
  1782. box-shadow: 0 2px 2px rgba(0, 0, 0, 0.22);
  1783. }
  1784. .deb-wrap .left-wrap .left .header {
  1785. padding: 15px;
  1786. border-bottom: 1px solid #ebeef5;
  1787. position: relative;
  1788. font-weight: bold;
  1789. }
  1790. .deb-wrap .left-wrap .left .header .radio-tabs {
  1791. position: absolute;
  1792. right: 10px;
  1793. top: 10px;
  1794. }
  1795. .deb-wrap .left-wrap .left .header .outdate-tip {
  1796. display: inline-block;
  1797. margin-left: 7px;
  1798. }
  1799. .deb-wrap .left-wrap .left .header .outdate-tip .el-icon-warning {
  1800. color: #e6a23c;
  1801. font-size: 16px;
  1802. cursor: pointer;
  1803. }
  1804. .deb-wrap .left-wrap .left .content {
  1805. height: calc(100% - 145px);
  1806. }
  1807. .deb-wrap .left-wrap .left .content .node-type {
  1808. height: 40px;
  1809. padding: 10px 15px 0 15px;
  1810. }
  1811. .deb-wrap .left-wrap .left .content .node-type .label {
  1812. display: inline-block;
  1813. width: 80px;
  1814. }
  1815. .deb-wrap .left-wrap .left .content .node-type .el-select {
  1816. width: calc(100% - 80px);
  1817. }
  1818. .deb-wrap .left-wrap .left .content .select-wrap {
  1819. padding: 10px 15px;
  1820. font-size: 14px;
  1821. }
  1822. .deb-wrap .left-wrap .left .content .select-wrap .el-select .el-input {
  1823. width: 100%;
  1824. }
  1825. .deb-wrap .left-wrap .left .content .select-wrap .input-with-select .el-input-group__prepend {
  1826. background-color: #fff;
  1827. }
  1828. .deb-wrap .left-wrap .left .content .select-wrap .el-input--suffix .el-input__inner {
  1829. padding-left: 5px;
  1830. padding-right: 30px;
  1831. font-size: 12px;
  1832. }
  1833. .deb-wrap .left-wrap .left .content .tree-wrap {
  1834. height: calc(70% - 172px);
  1835. overflow-y: auto;
  1836. padding: 0 15px 15px;
  1837. position: relative;
  1838. z-index: 2;
  1839. }
  1840. .deb-wrap .left-wrap .left .content .tree-wrap .image-type {
  1841. width: 20px;
  1842. height: 10px;
  1843. margin-right: 10px;
  1844. }
  1845. .deb-wrap .left-wrap .left .content .tree-wrap .el-tree > .el-tree-node {
  1846. min-width: 100%;
  1847. display: inline-block;
  1848. }
  1849. .deb-wrap .left-wrap .left .content .watch-point-wrap {
  1850. height: 30%;
  1851. border-top: 1px solid #ebeef5;
  1852. }
  1853. .deb-wrap .left-wrap .left .content .watch-point-wrap .title-wrap {
  1854. height: 30px;
  1855. line-height: 30px;
  1856. padding: 0 20px;
  1857. position: relative;
  1858. border-bottom: 1px solid #ebeef5;
  1859. font-weight: bold;
  1860. }
  1861. .deb-wrap .left-wrap .left .content .watch-point-wrap .check-wrap {
  1862. position: absolute;
  1863. right: 60px;
  1864. top: 0px;
  1865. }
  1866. .deb-wrap .left-wrap .left .content .watch-point-wrap .check-wrap .el-icon-circle-check {
  1867. color: #00a5a7;
  1868. cursor: pointer;
  1869. }
  1870. .deb-wrap .left-wrap .left .content .watch-point-wrap .check-wrap .disable:before {
  1871. cursor: not-allowed;
  1872. color: #adb0b8;
  1873. }
  1874. .deb-wrap .left-wrap .left .content .watch-point-wrap .delete-wrap {
  1875. position: absolute;
  1876. right: 35px;
  1877. top: 0px;
  1878. }
  1879. .deb-wrap .left-wrap .left .content .watch-point-wrap .delete-wrap .el-icon-delete:before {
  1880. color: #00a5a7;
  1881. cursor: pointer;
  1882. }
  1883. .deb-wrap .left-wrap .left .content .watch-point-wrap .delete-wrap .disable:before {
  1884. cursor: not-allowed;
  1885. color: #adb0b8;
  1886. }
  1887. .deb-wrap .left-wrap .left .content .watch-point-wrap .add-wrap {
  1888. position: absolute;
  1889. right: 10px;
  1890. top: 0px;
  1891. }
  1892. .deb-wrap .left-wrap .left .content .watch-point-wrap .add-wrap .el-icon-circle-plus:before {
  1893. color: #00a5a7;
  1894. cursor: pointer;
  1895. }
  1896. .deb-wrap .left-wrap .left .content .watch-point-wrap .add-wrap .disable:before {
  1897. cursor: not-allowed;
  1898. color: #adb0b8;
  1899. }
  1900. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap {
  1901. padding-left: 20px;
  1902. position: relative;
  1903. height: calc(100% - 30px);
  1904. }
  1905. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap {
  1906. max-height: 100%;
  1907. overflow: auto;
  1908. padding: 10px 0;
  1909. }
  1910. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list {
  1911. margin-bottom: 10px;
  1912. }
  1913. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name .item-content {
  1914. display: inline-block;
  1915. width: 300px;
  1916. text-overflow: ellipsis;
  1917. white-space: nowrap;
  1918. overflow: hidden;
  1919. }
  1920. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name:hover {
  1921. cursor: pointer;
  1922. color: #00a5a7;
  1923. }
  1924. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected {
  1925. color: #00a5a7;
  1926. position: relative;
  1927. }
  1928. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected .el-icon-close {
  1929. right: 10px;
  1930. }
  1931. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected .el-icon-check {
  1932. right: 30px;
  1933. }
  1934. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected .icon {
  1935. position: absolute;
  1936. top: 3px;
  1937. border: solid 1px;
  1938. padding: 1px;
  1939. border-radius: 2px;
  1940. font-size: 12px;
  1941. }
  1942. .deb-wrap .left-wrap .left .content .custom-tree-node {
  1943. padding-right: 8px;
  1944. }
  1945. .deb-wrap .left-wrap .left .content .custom-tree-node .const {
  1946. margin-left: 22px;
  1947. }
  1948. .deb-wrap .left-wrap .left .content .custom-tree-node.highlight {
  1949. color: red;
  1950. }
  1951. .deb-wrap .left-wrap .left .content .hit-list-wrap {
  1952. height: calc(100% - 40px);
  1953. padding: 10px;
  1954. }
  1955. .deb-wrap .left-wrap .left .content .hit-list-wrap .watchpoint-table {
  1956. max-height: calc(100% - 45px);
  1957. overflow: auto;
  1958. margin-top: 10px;
  1959. }
  1960. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table::before {
  1961. height: 0;
  1962. }
  1963. .deb-wrap .left-wrap .left .content .hit-list-wrap .watchpoint-page {
  1964. padding-top: 20px;
  1965. }
  1966. .deb-wrap .left-wrap .left .content .hit-list-wrap .hit-item {
  1967. word-break: break-all;
  1968. line-height: 18px;
  1969. padding: 10px;
  1970. }
  1971. .deb-wrap .left-wrap .left .content .hit-list-wrap .hit-item:hover {
  1972. cursor: pointer;
  1973. }
  1974. .deb-wrap .left-wrap .left .content .hit-list-wrap .selected {
  1975. color: #00a5a7;
  1976. }
  1977. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] {
  1978. padding: 0px 10px 0 50px;
  1979. }
  1980. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul {
  1981. background-color: #f5f7fa;
  1982. }
  1983. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li {
  1984. line-height: 18px;
  1985. padding: 10px;
  1986. word-break: break-all;
  1987. border-top: 1px solid white;
  1988. border-bottom: 1px solid white;
  1989. }
  1990. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li:hover {
  1991. background-color: #ebeef5;
  1992. }
  1993. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li .param .tensor-icon {
  1994. display: inline-block;
  1995. width: 6px;
  1996. height: 6px;
  1997. border-radius: 3px;
  1998. background-color: #00a5a7;
  1999. margin-top: 8px;
  2000. }
  2001. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li .hit-tip {
  2002. margin-top: 10px;
  2003. font-size: 12px;
  2004. }
  2005. .deb-wrap
  2006. .left-wrap
  2007. .left
  2008. .content
  2009. .hit-list-wrap
  2010. .el-table__expanded-cell[class*='cell']
  2011. ul
  2012. li
  2013. .hit-tip
  2014. .el-icon-warning {
  2015. font-size: 14px;
  2016. color: #e6a23c;
  2017. padding-right: 4px;
  2018. }
  2019. .deb-wrap .left-wrap .left .btn-wrap {
  2020. padding: 10px 20px;
  2021. border-top: 1px solid #ebeef5;
  2022. }
  2023. .deb-wrap .left-wrap .left .btn-wrap .step {
  2024. width: 100%;
  2025. display: flex;
  2026. justify-content: space-between;
  2027. }
  2028. .deb-wrap .left-wrap .left .btn-wrap .step .custom-btn {
  2029. margin-left: 10px;
  2030. }
  2031. .deb-wrap .left-wrap .left .btn-wrap .btn-two {
  2032. width: 100%;
  2033. }
  2034. .deb-wrap .left-wrap .left .btn-wrap .btn-two .custom-btn {
  2035. height: 30px;
  2036. margin-top: 10px;
  2037. }
  2038. .deb-wrap .left-wrap .left .btn-wrap .el-button + .el-button {
  2039. margin-left: 0px;
  2040. }
  2041. .deb-wrap .left-wrap .left .btn-wrap .el-button:not(:last-child) {
  2042. margin-right: 10px;
  2043. }
  2044. .deb-wrap .left-wrap .collapse-btn {
  2045. position: absolute;
  2046. right: 2px;
  2047. width: 31px;
  2048. height: 100px;
  2049. top: 50%;
  2050. margin-top: -50px;
  2051. cursor: pointer;
  2052. line-height: 86px;
  2053. z-index: 1;
  2054. text-align: center;
  2055. background-image: url('../../assets/images/collapse-left.svg');
  2056. }
  2057. .deb-wrap .left-wrap .collapse-btn.collapse {
  2058. background-image: url('../../assets/images/collapse-right.svg');
  2059. }
  2060. .deb-wrap .left-wrap.collapse {
  2061. width: 0px;
  2062. }
  2063. .deb-wrap .right {
  2064. width: calc(100% - 400px);
  2065. height: 100%;
  2066. padding-right: 20px;
  2067. transition: width 0.2s;
  2068. -moz-transition: width 0.2s;
  2069. /* Firefox 4 */
  2070. -webkit-transition: width 0.2s;
  2071. /* Safari and Chrome */
  2072. -o-transition: width 0.2s;
  2073. /* Opera */
  2074. }
  2075. .deb-wrap .right .header {
  2076. line-height: 51px;
  2077. border-bottom: 1px solid #ebeef5;
  2078. position: relative;
  2079. background: #fff;
  2080. }
  2081. .deb-wrap .right .header .link {
  2082. color: #00a5a7;
  2083. }
  2084. .deb-wrap .right .header .host {
  2085. margin-left: 25px;
  2086. }
  2087. .deb-wrap .right .header span.item .content {
  2088. color: #00a5a7;
  2089. }
  2090. .deb-wrap .right .header .item + .item {
  2091. margin-left: 15px;
  2092. }
  2093. .deb-wrap .right .header .el-icon-edit {
  2094. margin-left: 5px;
  2095. }
  2096. .deb-wrap .right .header i {
  2097. font-size: 18px;
  2098. margin: 0 2px;
  2099. color: #00a5a7;
  2100. cursor: pointer;
  2101. }
  2102. .deb-wrap .right .header .el-icon-close {
  2103. color: #f56c6c;
  2104. }
  2105. .deb-wrap .right .header .el-input {
  2106. width: 45px;
  2107. }
  2108. .deb-wrap .right .header .el-input input {
  2109. padding: 0;
  2110. text-align: center;
  2111. }
  2112. .deb-wrap .right .header .tooltip {
  2113. margin-left: 5px;
  2114. cursor: pointer;
  2115. }
  2116. .deb-wrap .right .svg-wrap {
  2117. height: 50%;
  2118. border-bottom: 1px solid #ebeef5;
  2119. position: relative;
  2120. }
  2121. .deb-wrap .right .svg-wrap .btn-wrap {
  2122. position: absolute;
  2123. top: 10px;
  2124. right: 10px;
  2125. }
  2126. .deb-wrap .right .svg-wrap .graph-container {
  2127. height: 100%;
  2128. width: 100%;
  2129. position: relative;
  2130. }
  2131. .deb-wrap .right .svg-wrap .graph-container #graph {
  2132. height: 100%;
  2133. background-color: #f7faff;
  2134. }
  2135. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > path,
  2136. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > ellipse,
  2137. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > polygon,
  2138. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > rect {
  2139. stroke-width: 2px;
  2140. }
  2141. .deb-wrap .right .svg-wrap .graph-container #graph .node.cluster > rect:hover {
  2142. stroke: #8df1f2;
  2143. }
  2144. .deb-wrap .right .svg-wrap .graph-container #graph .selected {
  2145. stroke: red !important;
  2146. stroke-width: 2px;
  2147. }
  2148. .deb-wrap .right .svg-wrap .graph-container #graph #graph0 > polygon {
  2149. fill: transparent;
  2150. }
  2151. .deb-wrap .right .svg-wrap .graph-container #graph .node {
  2152. cursor: pointer;
  2153. }
  2154. .deb-wrap .right .svg-wrap .graph-container #graph .edge path {
  2155. stroke: #787878;
  2156. }
  2157. .deb-wrap .right .svg-wrap .graph-container #graph .edge polygon {
  2158. fill: #787878;
  2159. }
  2160. .deb-wrap .right .svg-wrap .graph-container #graph .edge.highlighted path {
  2161. stroke: red;
  2162. }
  2163. .deb-wrap .right .svg-wrap .graph-container #graph .edge.highlighted polygon {
  2164. stroke: red;
  2165. fill: red;
  2166. }
  2167. .deb-wrap .right .svg-wrap .graph-container #graph .edge.highlighted marker path {
  2168. fill: red;
  2169. }
  2170. .deb-wrap .right .svg-wrap .graph-container #graph .node.aggregation > polygon {
  2171. stroke: #e3aa00;
  2172. fill: #ffe794;
  2173. }
  2174. .deb-wrap .right .svg-wrap .graph-container #graph .node.cluster.aggregation > rect {
  2175. stroke: #e3aa00;
  2176. fill: #ffe794;
  2177. stroke-dasharray: 3, 3;
  2178. }
  2179. .deb-wrap .right .svg-wrap .graph-container #graph .node > polygon {
  2180. stroke: #00a5a7;
  2181. fill: #8df1f2;
  2182. }
  2183. .deb-wrap .right .svg-wrap .graph-container #graph .node > ellipse {
  2184. stroke: #4ea6e6;
  2185. fill: #b8e0ff;
  2186. }
  2187. .deb-wrap .right .svg-wrap .graph-container #graph .plain > path,
  2188. .deb-wrap .right .svg-wrap .graph-container #graph .plain ellipse {
  2189. stroke: #e6a23c;
  2190. fill: #ffd0a6;
  2191. stroke-dasharray: 1.5, 1.5;
  2192. }
  2193. .deb-wrap .right .svg-wrap .graph-container #graph .edge-point ellipse {
  2194. stroke: #a7a7a7;
  2195. fill: #a7a7a7;
  2196. }
  2197. .deb-wrap .right .svg-wrap .graph-container #graph text {
  2198. fill: black;
  2199. }
  2200. .deb-wrap .right .svg-wrap .graph-container #contextMenu {
  2201. display: none;
  2202. position: absolute;
  2203. min-width: 150px;
  2204. border: 1px solid #d4d4d4;
  2205. }
  2206. .deb-wrap .right .svg-wrap .graph-container #contextMenu ul {
  2207. background-color: #e2e2e2;
  2208. border-radius: 2px;
  2209. }
  2210. .deb-wrap .right .svg-wrap .graph-container #contextMenu ul li {
  2211. padding: 5px 18px;
  2212. cursor: pointer;
  2213. }
  2214. .deb-wrap .right .svg-wrap .graph-container #contextMenu ul li:hover {
  2215. background-color: #787878;
  2216. color: white;
  2217. }
  2218. .deb-wrap .right .table-container {
  2219. background: #fff;
  2220. height: calc(50% - 60px);
  2221. position: relative;
  2222. }
  2223. .deb-wrap .right .table-container img {
  2224. position: absolute;
  2225. right: 10px;
  2226. top: 12px;
  2227. cursor: pointer;
  2228. z-index: 99;
  2229. }
  2230. .deb-wrap .right .table-container .el-tabs.el-tabs--top {
  2231. height: 100%;
  2232. }
  2233. .deb-wrap .right .table-container .el-tabs.el-tabs--top .el-tabs__content {
  2234. height: calc(100% - 60px);
  2235. }
  2236. .deb-wrap .right .table-container .el-tabs.el-tabs--top .el-tabs__content .el-tab-pane {
  2237. height: 100%;
  2238. }
  2239. .deb-wrap .right .table-container .table-content {
  2240. height: 100%;
  2241. overflow: hidden;
  2242. position: relative;
  2243. }
  2244. .deb-wrap .right .table-container .table-content .table-wrap {
  2245. height: 100%;
  2246. overflow-y: auto;
  2247. }
  2248. .deb-wrap .right .table-container .table-content .table-wrap .el-table .success-row {
  2249. background: #f0f9eb;
  2250. }
  2251. .deb-wrap .right .table-container .table-content .value-wrap {
  2252. text-align: right;
  2253. }
  2254. .deb-wrap .right .table-container .table-content .center {
  2255. display: inline-block;
  2256. text-align: center;
  2257. width: 100%;
  2258. }
  2259. .deb-wrap .right .table-container .table-content .value {
  2260. white-space: nowrap;
  2261. overflow: hidden;
  2262. text-overflow: ellipsis;
  2263. cursor: pointer;
  2264. color: #00a5a7;
  2265. display: inline-block;
  2266. width: 100%;
  2267. }
  2268. .deb-wrap .right .table-container .table-content .value-tip {
  2269. white-space: nowrap;
  2270. overflow: hidden;
  2271. text-overflow: ellipsis;
  2272. width: 50px;
  2273. display: inline-block;
  2274. vertical-align: middle;
  2275. text-align: right;
  2276. }
  2277. .deb-wrap .right .table-container .table-content .el-table--border {
  2278. border-right: none;
  2279. border-left: none;
  2280. }
  2281. .deb-wrap .right .table-container .table-content .el-table--border td {
  2282. border-right: none;
  2283. border-left: none;
  2284. }
  2285. .deb-wrap .right .table-container .table-content .el-table--border th {
  2286. border-right: none;
  2287. border-left: none;
  2288. }
  2289. .deb-wrap .right .table-container .table-content .el-table th > .cell {
  2290. border-left: 1px solid #d9d8dd;
  2291. word-break: keep-all;
  2292. white-space: nowrap;
  2293. overflow: hidden;
  2294. text-overflow: ellipsis;
  2295. }
  2296. .deb-wrap .right .table-container .table-content .el-table-column--selection .cell {
  2297. border-left: none !important;
  2298. }
  2299. .deb-wrap .right .svg-wrap.collapse {
  2300. height: calc(100% - 100px);
  2301. }
  2302. .deb-wrap .right .table-container.collapse {
  2303. height: 35px;
  2304. }
  2305. .deb-wrap .right .table-container.collapse .el-tabs__header {
  2306. margin: 0;
  2307. }
  2308. .deb-wrap .right .table-container.collapse .table-content {
  2309. display: none;
  2310. }
  2311. .deb-wrap .right.collapse {
  2312. width: calc(100% - 25px);
  2313. }
  2314. .deb-wrap .custom-btn {
  2315. border: 1px solid #00a5a7;
  2316. border-radius: 2px;
  2317. background-color: white;
  2318. color: #00a5a7;
  2319. }
  2320. .deb-wrap .custom-btn:hover {
  2321. background-color: #e9f7f7;
  2322. }
  2323. .deb-wrap .custom-btn.green {
  2324. background-color: #00a5a7;
  2325. color: white;
  2326. }
  2327. .deb-wrap .custom-btn.green:hover {
  2328. background-color: #33b7b9;
  2329. }
  2330. .deb-wrap .is-disabled.custom-btn {
  2331. background-color: #f5f5f6;
  2332. border: 1px solid #dfe1e6 !important;
  2333. color: #adb0b8;
  2334. }
  2335. .deb-wrap .is-disabled.custom-btn:hover {
  2336. background-color: #f5f5f6;
  2337. }
  2338. .deb-wrap .notShow {
  2339. display: none;
  2340. }
  2341. .deb-wrap .creat-watch-point-dialog .conditions-container .collection {
  2342. width: 210px;
  2343. }
  2344. .deb-wrap .creat-watch-point-dialog .conditions-container .condition,
  2345. .deb-wrap .creat-watch-point-dialog .conditions-container .param,
  2346. .deb-wrap .creat-watch-point-dialog .conditions-container .param-value {
  2347. margin-left: 10px;
  2348. width: 210px;
  2349. }
  2350. .deb-wrap .creat-watch-point-dialog .conditions-container .percent-sign {
  2351. display: inline-block;
  2352. text-align: right;
  2353. width: 20px;
  2354. }
  2355. .deb-wrap .creat-watch-point-dialog .conditions-container .inclusive-param {
  2356. text-align: right;
  2357. }
  2358. .deb-wrap .creat-watch-point-dialog .conditions-container .inclusive-param .item {
  2359. margin-top: 10px;
  2360. display: inline-block;
  2361. }
  2362. .deb-wrap .creat-watch-point-dialog .conditions-container .inclusive-param .item + .item {
  2363. margin-left: 10px;
  2364. }
  2365. .deb-wrap .creat-watch-point-dialog .error-msg {
  2366. float: left;
  2367. }
  2368. .deb-wrap .creat-watch-point-dialog .error-msg .el-icon-warning {
  2369. color: #e6a23c;
  2370. font-size: 16px;
  2371. cursor: pointer;
  2372. }
  2373. .deb-wrap .el-dialog__wrapper.pendingTips {
  2374. position: absolute;
  2375. }
  2376. .deb-wrap .el-dialog__wrapper.pendingTips .dialog-icon .el-icon-warning {
  2377. font-size: 24px;
  2378. color: #e6a23c;
  2379. vertical-align: bottom;
  2380. }
  2381. .deb-wrap .el-dialog__wrapper.pendingTips .el-dialog__body {
  2382. padding: 2px 20px 32px 20px;
  2383. }
  2384. .deb-wrap .el-dialog__wrapper.pendingTips .el-dialog__body .dialog-content {
  2385. line-height: 24px;
  2386. margin-left: 10px;
  2387. }
  2388. .deb-wrap .el-dialog__wrapper.pendingTips .el-dialog__footer {
  2389. text-align: center;
  2390. padding: 10px 20px 32px;
  2391. }
  2392. .deb-wrap .el-dialog__wrapper.pendingTips + .v-modal {
  2393. position: absolute;
  2394. }
  2395. .deb-wrap .deb-con {
  2396. position: absolute;
  2397. top: 0px;
  2398. width: 100%;
  2399. height: 100%;
  2400. background-color: #fff;
  2401. z-index: 999;
  2402. }
  2403. .deb-indent {
  2404. padding-left: 40px;
  2405. }
  2406. </style>