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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464
  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(true);
  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(immediate = false) {
  1741. const setData = () => {
  1742. const svgRect = document.querySelector('#graph svg').getBoundingClientRect();
  1743. this.svg.size = {width: svgRect.width, height: svgRect.height, left: svgRect.left, top: svgRect.top};
  1744. this.resizeTimer = null;
  1745. };
  1746. if (!immediate) {
  1747. if (this.resizeTimer) clearTimeout(this.resizeTimer);
  1748. this.resizeTimer = setTimeout(setData, this.resizeDelay);
  1749. } else {
  1750. setData();
  1751. }
  1752. },
  1753. },
  1754. destroyed() {
  1755. window.removeEventListener('resize', this.initSvgSize);
  1756. },
  1757. };
  1758. </script>
  1759. <style>
  1760. .deb-wrap {
  1761. height: 100%;
  1762. background-color: white;
  1763. position: relative;
  1764. overflow: hidden;
  1765. }
  1766. .deb-wrap > div {
  1767. float: left;
  1768. height: 100%;
  1769. }
  1770. .deb-wrap .left-wrap {
  1771. width: 400px;
  1772. padding-right: 25px;
  1773. height: 100%;
  1774. background-color: white;
  1775. position: relative;
  1776. transition: width 0.2s;
  1777. -moz-transition: width 0.2s;
  1778. /* Firefox 4 */
  1779. -webkit-transition: width 0.2s;
  1780. /* Safari and Chrome */
  1781. -o-transition: width 0.2s;
  1782. /* Opera */
  1783. }
  1784. .deb-wrap .left-wrap .left {
  1785. height: 100%;
  1786. background: #fff;
  1787. box-shadow: 0 2px 2px rgba(0, 0, 0, 0.22);
  1788. }
  1789. .deb-wrap .left-wrap .left .header {
  1790. padding: 15px;
  1791. border-bottom: 1px solid #ebeef5;
  1792. position: relative;
  1793. font-weight: bold;
  1794. }
  1795. .deb-wrap .left-wrap .left .header .radio-tabs {
  1796. position: absolute;
  1797. right: 10px;
  1798. top: 10px;
  1799. }
  1800. .deb-wrap .left-wrap .left .header .outdate-tip {
  1801. display: inline-block;
  1802. margin-left: 7px;
  1803. }
  1804. .deb-wrap .left-wrap .left .header .outdate-tip .el-icon-warning {
  1805. color: #e6a23c;
  1806. font-size: 16px;
  1807. cursor: pointer;
  1808. }
  1809. .deb-wrap .left-wrap .left .content {
  1810. height: calc(100% - 145px);
  1811. }
  1812. .deb-wrap .left-wrap .left .content .node-type {
  1813. height: 40px;
  1814. padding: 10px 15px 0 15px;
  1815. }
  1816. .deb-wrap .left-wrap .left .content .node-type .label {
  1817. display: inline-block;
  1818. width: 80px;
  1819. }
  1820. .deb-wrap .left-wrap .left .content .node-type .el-select {
  1821. width: calc(100% - 80px);
  1822. }
  1823. .deb-wrap .left-wrap .left .content .select-wrap {
  1824. padding: 10px 15px;
  1825. font-size: 14px;
  1826. }
  1827. .deb-wrap .left-wrap .left .content .select-wrap .el-select .el-input {
  1828. width: 100%;
  1829. }
  1830. .deb-wrap .left-wrap .left .content .select-wrap .input-with-select .el-input-group__prepend {
  1831. background-color: #fff;
  1832. }
  1833. .deb-wrap .left-wrap .left .content .select-wrap .el-input--suffix .el-input__inner {
  1834. padding-left: 5px;
  1835. padding-right: 30px;
  1836. font-size: 12px;
  1837. }
  1838. .deb-wrap .left-wrap .left .content .tree-wrap {
  1839. height: calc(70% - 172px);
  1840. overflow-y: auto;
  1841. padding: 0 15px 15px;
  1842. position: relative;
  1843. z-index: 2;
  1844. }
  1845. .deb-wrap .left-wrap .left .content .tree-wrap .image-type {
  1846. width: 20px;
  1847. height: 10px;
  1848. margin-right: 10px;
  1849. }
  1850. .deb-wrap .left-wrap .left .content .tree-wrap .el-tree > .el-tree-node {
  1851. min-width: 100%;
  1852. display: inline-block;
  1853. }
  1854. .deb-wrap .left-wrap .left .content .watch-point-wrap {
  1855. height: 30%;
  1856. border-top: 1px solid #ebeef5;
  1857. }
  1858. .deb-wrap .left-wrap .left .content .watch-point-wrap .title-wrap {
  1859. height: 30px;
  1860. line-height: 30px;
  1861. padding: 0 20px;
  1862. position: relative;
  1863. border-bottom: 1px solid #ebeef5;
  1864. font-weight: bold;
  1865. }
  1866. .deb-wrap .left-wrap .left .content .watch-point-wrap .check-wrap {
  1867. position: absolute;
  1868. right: 60px;
  1869. top: 0px;
  1870. }
  1871. .deb-wrap .left-wrap .left .content .watch-point-wrap .check-wrap .el-icon-circle-check {
  1872. color: #00a5a7;
  1873. cursor: pointer;
  1874. }
  1875. .deb-wrap .left-wrap .left .content .watch-point-wrap .check-wrap .disable:before {
  1876. cursor: not-allowed;
  1877. color: #adb0b8;
  1878. }
  1879. .deb-wrap .left-wrap .left .content .watch-point-wrap .delete-wrap {
  1880. position: absolute;
  1881. right: 35px;
  1882. top: 0px;
  1883. }
  1884. .deb-wrap .left-wrap .left .content .watch-point-wrap .delete-wrap .el-icon-delete:before {
  1885. color: #00a5a7;
  1886. cursor: pointer;
  1887. }
  1888. .deb-wrap .left-wrap .left .content .watch-point-wrap .delete-wrap .disable:before {
  1889. cursor: not-allowed;
  1890. color: #adb0b8;
  1891. }
  1892. .deb-wrap .left-wrap .left .content .watch-point-wrap .add-wrap {
  1893. position: absolute;
  1894. right: 10px;
  1895. top: 0px;
  1896. }
  1897. .deb-wrap .left-wrap .left .content .watch-point-wrap .add-wrap .el-icon-circle-plus:before {
  1898. color: #00a5a7;
  1899. cursor: pointer;
  1900. }
  1901. .deb-wrap .left-wrap .left .content .watch-point-wrap .add-wrap .disable:before {
  1902. cursor: not-allowed;
  1903. color: #adb0b8;
  1904. }
  1905. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap {
  1906. padding-left: 20px;
  1907. position: relative;
  1908. height: calc(100% - 30px);
  1909. }
  1910. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap {
  1911. max-height: 100%;
  1912. overflow: auto;
  1913. padding: 10px 0;
  1914. }
  1915. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list {
  1916. margin-bottom: 10px;
  1917. }
  1918. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name .item-content {
  1919. display: inline-block;
  1920. width: 300px;
  1921. text-overflow: ellipsis;
  1922. white-space: nowrap;
  1923. overflow: hidden;
  1924. }
  1925. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name:hover {
  1926. cursor: pointer;
  1927. color: #00a5a7;
  1928. }
  1929. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected {
  1930. color: #00a5a7;
  1931. position: relative;
  1932. }
  1933. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected .el-icon-close {
  1934. right: 10px;
  1935. }
  1936. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected .el-icon-check {
  1937. right: 30px;
  1938. }
  1939. .deb-wrap .left-wrap .left .content .watch-point-wrap .content-wrap .list-wrap .list .name.selected .icon {
  1940. position: absolute;
  1941. top: 3px;
  1942. border: solid 1px;
  1943. padding: 1px;
  1944. border-radius: 2px;
  1945. font-size: 12px;
  1946. }
  1947. .deb-wrap .left-wrap .left .content .custom-tree-node {
  1948. padding-right: 8px;
  1949. }
  1950. .deb-wrap .left-wrap .left .content .custom-tree-node .const {
  1951. margin-left: 22px;
  1952. }
  1953. .deb-wrap .left-wrap .left .content .custom-tree-node.highlight {
  1954. color: red;
  1955. }
  1956. .deb-wrap .left-wrap .left .content .hit-list-wrap {
  1957. height: calc(100% - 40px);
  1958. padding: 10px;
  1959. }
  1960. .deb-wrap .left-wrap .left .content .hit-list-wrap .watchpoint-table {
  1961. max-height: calc(100% - 45px);
  1962. overflow: auto;
  1963. margin-top: 10px;
  1964. }
  1965. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table::before {
  1966. height: 0;
  1967. }
  1968. .deb-wrap .left-wrap .left .content .hit-list-wrap .watchpoint-page {
  1969. padding-top: 20px;
  1970. }
  1971. .deb-wrap .left-wrap .left .content .hit-list-wrap .hit-item {
  1972. word-break: break-all;
  1973. line-height: 18px;
  1974. padding: 10px;
  1975. }
  1976. .deb-wrap .left-wrap .left .content .hit-list-wrap .hit-item:hover {
  1977. cursor: pointer;
  1978. }
  1979. .deb-wrap .left-wrap .left .content .hit-list-wrap .selected {
  1980. color: #00a5a7;
  1981. }
  1982. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] {
  1983. padding: 0px 10px 0 50px;
  1984. }
  1985. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul {
  1986. background-color: #f5f7fa;
  1987. }
  1988. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li {
  1989. line-height: 18px;
  1990. padding: 10px;
  1991. word-break: break-all;
  1992. border-top: 1px solid white;
  1993. border-bottom: 1px solid white;
  1994. }
  1995. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li:hover {
  1996. background-color: #ebeef5;
  1997. }
  1998. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li .param .tensor-icon {
  1999. display: inline-block;
  2000. width: 6px;
  2001. height: 6px;
  2002. border-radius: 3px;
  2003. background-color: #00a5a7;
  2004. margin-top: 8px;
  2005. }
  2006. .deb-wrap .left-wrap .left .content .hit-list-wrap .el-table__expanded-cell[class*='cell'] ul li .hit-tip {
  2007. margin-top: 10px;
  2008. font-size: 12px;
  2009. }
  2010. .deb-wrap
  2011. .left-wrap
  2012. .left
  2013. .content
  2014. .hit-list-wrap
  2015. .el-table__expanded-cell[class*='cell']
  2016. ul
  2017. li
  2018. .hit-tip
  2019. .el-icon-warning {
  2020. font-size: 14px;
  2021. color: #e6a23c;
  2022. padding-right: 4px;
  2023. }
  2024. .deb-wrap .left-wrap .left .btn-wrap {
  2025. padding: 10px 20px;
  2026. border-top: 1px solid #ebeef5;
  2027. }
  2028. .deb-wrap .left-wrap .left .btn-wrap .step {
  2029. width: 100%;
  2030. display: flex;
  2031. justify-content: space-between;
  2032. }
  2033. .deb-wrap .left-wrap .left .btn-wrap .step .custom-btn {
  2034. margin-left: 10px;
  2035. }
  2036. .deb-wrap .left-wrap .left .btn-wrap .btn-two {
  2037. width: 100%;
  2038. }
  2039. .deb-wrap .left-wrap .left .btn-wrap .btn-two .custom-btn {
  2040. height: 30px;
  2041. margin-top: 10px;
  2042. }
  2043. .deb-wrap .left-wrap .left .btn-wrap .el-button + .el-button {
  2044. margin-left: 0px;
  2045. }
  2046. .deb-wrap .left-wrap .left .btn-wrap .el-button:not(:last-child) {
  2047. margin-right: 10px;
  2048. }
  2049. .deb-wrap .left-wrap .collapse-btn {
  2050. position: absolute;
  2051. right: 2px;
  2052. width: 31px;
  2053. height: 100px;
  2054. top: 50%;
  2055. margin-top: -50px;
  2056. cursor: pointer;
  2057. line-height: 86px;
  2058. z-index: 1;
  2059. text-align: center;
  2060. background-image: url('../../assets/images/collapse-left.svg');
  2061. }
  2062. .deb-wrap .left-wrap .collapse-btn.collapse {
  2063. background-image: url('../../assets/images/collapse-right.svg');
  2064. }
  2065. .deb-wrap .left-wrap.collapse {
  2066. width: 0px;
  2067. }
  2068. .deb-wrap .right {
  2069. width: calc(100% - 400px);
  2070. height: 100%;
  2071. padding-right: 20px;
  2072. transition: width 0.2s;
  2073. -moz-transition: width 0.2s;
  2074. /* Firefox 4 */
  2075. -webkit-transition: width 0.2s;
  2076. /* Safari and Chrome */
  2077. -o-transition: width 0.2s;
  2078. /* Opera */
  2079. }
  2080. .deb-wrap .right .header {
  2081. line-height: 51px;
  2082. border-bottom: 1px solid #ebeef5;
  2083. position: relative;
  2084. background: #fff;
  2085. }
  2086. .deb-wrap .right .header .link {
  2087. color: #00a5a7;
  2088. }
  2089. .deb-wrap .right .header .host {
  2090. margin-left: 25px;
  2091. }
  2092. .deb-wrap .right .header span.item .content {
  2093. color: #00a5a7;
  2094. }
  2095. .deb-wrap .right .header .item + .item {
  2096. margin-left: 15px;
  2097. }
  2098. .deb-wrap .right .header .el-icon-edit {
  2099. margin-left: 5px;
  2100. }
  2101. .deb-wrap .right .header i {
  2102. font-size: 18px;
  2103. margin: 0 2px;
  2104. color: #00a5a7;
  2105. cursor: pointer;
  2106. }
  2107. .deb-wrap .right .header .el-icon-close {
  2108. color: #f56c6c;
  2109. }
  2110. .deb-wrap .right .header .el-input {
  2111. width: 45px;
  2112. }
  2113. .deb-wrap .right .header .el-input input {
  2114. padding: 0;
  2115. text-align: center;
  2116. }
  2117. .deb-wrap .right .header .tooltip {
  2118. margin-left: 5px;
  2119. cursor: pointer;
  2120. }
  2121. .deb-wrap .right .svg-wrap {
  2122. height: 50%;
  2123. border-bottom: 1px solid #ebeef5;
  2124. position: relative;
  2125. }
  2126. .deb-wrap .right .svg-wrap .btn-wrap {
  2127. position: absolute;
  2128. top: 10px;
  2129. right: 10px;
  2130. }
  2131. .deb-wrap .right .svg-wrap .graph-container {
  2132. height: 100%;
  2133. width: 100%;
  2134. position: relative;
  2135. }
  2136. .deb-wrap .right .svg-wrap .graph-container #graph {
  2137. height: 100%;
  2138. background-color: #f7faff;
  2139. }
  2140. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > path,
  2141. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > ellipse,
  2142. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > polygon,
  2143. .deb-wrap .right .svg-wrap .graph-container #graph .node:hover > rect {
  2144. stroke-width: 2px;
  2145. }
  2146. .deb-wrap .right .svg-wrap .graph-container #graph .node.cluster > rect:hover {
  2147. stroke: #8df1f2;
  2148. }
  2149. .deb-wrap .right .svg-wrap .graph-container #graph .selected {
  2150. stroke: red !important;
  2151. stroke-width: 2px;
  2152. }
  2153. .deb-wrap .right .svg-wrap .graph-container #graph #graph0 > polygon {
  2154. fill: transparent;
  2155. }
  2156. .deb-wrap .right .svg-wrap .graph-container #graph .node {
  2157. cursor: pointer;
  2158. }
  2159. .deb-wrap .right .svg-wrap .graph-container #graph .edge path {
  2160. stroke: #787878;
  2161. }
  2162. .deb-wrap .right .svg-wrap .graph-container #graph .edge polygon {
  2163. fill: #787878;
  2164. }
  2165. .deb-wrap .right .svg-wrap .graph-container #graph .edge.highlighted path {
  2166. stroke: red;
  2167. }
  2168. .deb-wrap .right .svg-wrap .graph-container #graph .edge.highlighted polygon {
  2169. stroke: red;
  2170. fill: red;
  2171. }
  2172. .deb-wrap .right .svg-wrap .graph-container #graph .edge.highlighted marker path {
  2173. fill: red;
  2174. }
  2175. .deb-wrap .right .svg-wrap .graph-container #graph .node.aggregation > polygon {
  2176. stroke: #e3aa00;
  2177. fill: #ffe794;
  2178. }
  2179. .deb-wrap .right .svg-wrap .graph-container #graph .node.cluster.aggregation > rect {
  2180. stroke: #e3aa00;
  2181. fill: #ffe794;
  2182. stroke-dasharray: 3, 3;
  2183. }
  2184. .deb-wrap .right .svg-wrap .graph-container #graph .node > polygon {
  2185. stroke: #00a5a7;
  2186. fill: #8df1f2;
  2187. }
  2188. .deb-wrap .right .svg-wrap .graph-container #graph .node > ellipse {
  2189. stroke: #4ea6e6;
  2190. fill: #b8e0ff;
  2191. }
  2192. .deb-wrap .right .svg-wrap .graph-container #graph .plain > path,
  2193. .deb-wrap .right .svg-wrap .graph-container #graph .plain ellipse {
  2194. stroke: #e6a23c;
  2195. fill: #ffd0a6;
  2196. stroke-dasharray: 1.5, 1.5;
  2197. }
  2198. .deb-wrap .right .svg-wrap .graph-container #graph .edge-point ellipse {
  2199. stroke: #a7a7a7;
  2200. fill: #a7a7a7;
  2201. }
  2202. .deb-wrap .right .svg-wrap .graph-container #graph text {
  2203. fill: black;
  2204. }
  2205. .deb-wrap .right .svg-wrap .graph-container #contextMenu {
  2206. display: none;
  2207. position: absolute;
  2208. min-width: 150px;
  2209. border: 1px solid #d4d4d4;
  2210. }
  2211. .deb-wrap .right .svg-wrap .graph-container #contextMenu ul {
  2212. background-color: #e2e2e2;
  2213. border-radius: 2px;
  2214. }
  2215. .deb-wrap .right .svg-wrap .graph-container #contextMenu ul li {
  2216. padding: 5px 18px;
  2217. cursor: pointer;
  2218. }
  2219. .deb-wrap .right .svg-wrap .graph-container #contextMenu ul li:hover {
  2220. background-color: #787878;
  2221. color: white;
  2222. }
  2223. .deb-wrap .right .table-container {
  2224. background: #fff;
  2225. height: calc(50% - 60px);
  2226. position: relative;
  2227. }
  2228. .deb-wrap .right .table-container img {
  2229. position: absolute;
  2230. right: 10px;
  2231. top: 12px;
  2232. cursor: pointer;
  2233. z-index: 99;
  2234. }
  2235. .deb-wrap .right .table-container .el-tabs.el-tabs--top {
  2236. height: 100%;
  2237. }
  2238. .deb-wrap .right .table-container .el-tabs.el-tabs--top .el-tabs__content {
  2239. height: calc(100% - 60px);
  2240. }
  2241. .deb-wrap .right .table-container .el-tabs.el-tabs--top .el-tabs__content .el-tab-pane {
  2242. height: 100%;
  2243. }
  2244. .deb-wrap .right .table-container .table-content {
  2245. height: 100%;
  2246. overflow: hidden;
  2247. position: relative;
  2248. }
  2249. .deb-wrap .right .table-container .table-content .table-wrap {
  2250. height: 100%;
  2251. overflow-y: auto;
  2252. }
  2253. .deb-wrap .right .table-container .table-content .table-wrap .el-table .success-row {
  2254. background: #f0f9eb;
  2255. }
  2256. .deb-wrap .right .table-container .table-content .value-wrap {
  2257. text-align: right;
  2258. }
  2259. .deb-wrap .right .table-container .table-content .center {
  2260. display: inline-block;
  2261. text-align: center;
  2262. width: 100%;
  2263. }
  2264. .deb-wrap .right .table-container .table-content .value {
  2265. white-space: nowrap;
  2266. overflow: hidden;
  2267. text-overflow: ellipsis;
  2268. cursor: pointer;
  2269. color: #00a5a7;
  2270. display: inline-block;
  2271. width: 100%;
  2272. }
  2273. .deb-wrap .right .table-container .table-content .value-tip {
  2274. white-space: nowrap;
  2275. overflow: hidden;
  2276. text-overflow: ellipsis;
  2277. width: 50px;
  2278. display: inline-block;
  2279. vertical-align: middle;
  2280. text-align: right;
  2281. }
  2282. .deb-wrap .right .table-container .table-content .el-table--border {
  2283. border-right: none;
  2284. border-left: none;
  2285. }
  2286. .deb-wrap .right .table-container .table-content .el-table--border td {
  2287. border-right: none;
  2288. border-left: none;
  2289. }
  2290. .deb-wrap .right .table-container .table-content .el-table--border th {
  2291. border-right: none;
  2292. border-left: none;
  2293. }
  2294. .deb-wrap .right .table-container .table-content .el-table th > .cell {
  2295. border-left: 1px solid #d9d8dd;
  2296. word-break: keep-all;
  2297. white-space: nowrap;
  2298. overflow: hidden;
  2299. text-overflow: ellipsis;
  2300. }
  2301. .deb-wrap .right .table-container .table-content .el-table-column--selection .cell {
  2302. border-left: none !important;
  2303. }
  2304. .deb-wrap .right .svg-wrap.collapse {
  2305. height: calc(100% - 100px);
  2306. }
  2307. .deb-wrap .right .table-container.collapse {
  2308. height: 35px;
  2309. }
  2310. .deb-wrap .right .table-container.collapse .el-tabs__header {
  2311. margin: 0;
  2312. }
  2313. .deb-wrap .right .table-container.collapse .table-content {
  2314. display: none;
  2315. }
  2316. .deb-wrap .right.collapse {
  2317. width: calc(100% - 25px);
  2318. }
  2319. .deb-wrap .custom-btn {
  2320. border: 1px solid #00a5a7;
  2321. border-radius: 2px;
  2322. background-color: white;
  2323. color: #00a5a7;
  2324. }
  2325. .deb-wrap .custom-btn:hover {
  2326. background-color: #e9f7f7;
  2327. }
  2328. .deb-wrap .custom-btn.green {
  2329. background-color: #00a5a7;
  2330. color: white;
  2331. }
  2332. .deb-wrap .custom-btn.green:hover {
  2333. background-color: #33b7b9;
  2334. }
  2335. .deb-wrap .is-disabled.custom-btn {
  2336. background-color: #f5f5f6;
  2337. border: 1px solid #dfe1e6 !important;
  2338. color: #adb0b8;
  2339. }
  2340. .deb-wrap .is-disabled.custom-btn:hover {
  2341. background-color: #f5f5f6;
  2342. }
  2343. .deb-wrap .notShow {
  2344. display: none;
  2345. }
  2346. .deb-wrap .creat-watch-point-dialog .conditions-container .collection {
  2347. width: 210px;
  2348. }
  2349. .deb-wrap .creat-watch-point-dialog .conditions-container .condition,
  2350. .deb-wrap .creat-watch-point-dialog .conditions-container .param,
  2351. .deb-wrap .creat-watch-point-dialog .conditions-container .param-value {
  2352. margin-left: 10px;
  2353. width: 210px;
  2354. }
  2355. .deb-wrap .creat-watch-point-dialog .conditions-container .percent-sign {
  2356. display: inline-block;
  2357. text-align: right;
  2358. width: 20px;
  2359. }
  2360. .deb-wrap .creat-watch-point-dialog .conditions-container .inclusive-param {
  2361. text-align: right;
  2362. }
  2363. .deb-wrap .creat-watch-point-dialog .conditions-container .inclusive-param .item {
  2364. margin-top: 10px;
  2365. display: inline-block;
  2366. }
  2367. .deb-wrap .creat-watch-point-dialog .conditions-container .inclusive-param .item + .item {
  2368. margin-left: 10px;
  2369. }
  2370. .deb-wrap .creat-watch-point-dialog .error-msg {
  2371. float: left;
  2372. }
  2373. .deb-wrap .creat-watch-point-dialog .error-msg .el-icon-warning {
  2374. color: #e6a23c;
  2375. font-size: 16px;
  2376. cursor: pointer;
  2377. }
  2378. .deb-wrap .el-dialog__wrapper.pendingTips {
  2379. position: absolute;
  2380. }
  2381. .deb-wrap .el-dialog__wrapper.pendingTips .dialog-icon .el-icon-warning {
  2382. font-size: 24px;
  2383. color: #e6a23c;
  2384. vertical-align: bottom;
  2385. }
  2386. .deb-wrap .el-dialog__wrapper.pendingTips .el-dialog__body {
  2387. padding: 2px 20px 32px 20px;
  2388. }
  2389. .deb-wrap .el-dialog__wrapper.pendingTips .el-dialog__body .dialog-content {
  2390. line-height: 24px;
  2391. margin-left: 10px;
  2392. }
  2393. .deb-wrap .el-dialog__wrapper.pendingTips .el-dialog__footer {
  2394. text-align: center;
  2395. padding: 10px 20px 32px;
  2396. }
  2397. .deb-wrap .el-dialog__wrapper.pendingTips + .v-modal {
  2398. position: absolute;
  2399. }
  2400. .deb-wrap .deb-con {
  2401. position: absolute;
  2402. top: 0px;
  2403. width: 100%;
  2404. height: 100%;
  2405. background-color: #fff;
  2406. z-index: 999;
  2407. }
  2408. .deb-indent {
  2409. padding-left: 40px;
  2410. }
  2411. </style>