index.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116
  1. <template>
  2. <div class="app-container">
  3. <div class="top">
  4. <div class="title">
  5. 任务列表
  6. </div>
  7. <div class="add">
  8. <div class="button" @click="addTaskDetails">
  9. <img src="../../assets/airdrop/add.svg" alt="add">
  10. 添加任务
  11. </div>
  12. </div>
  13. </div>
  14. <div class="app-container-table-screening">
  15. <div class="app-container-table-screening-item">
  16. 账号类型
  17. <img src="../../assets/address/unfold_more.svg" alt="unfold_more">
  18. </div>
  19. <div class="app-container-table-screening-item">
  20. 余额
  21. <img src="../../assets/address/unfold_more.svg" alt="unfold_more">
  22. </div>
  23. </div>
  24. <div class="app-container-table-main">
  25. <div class="app-container-table-main-item" v-for="(item,index) in missionData">
  26. <div class="head">
  27. <div class="avatar">
  28. <img class="avatar" :src="url + 'disk/file/' + item.projectLogo" alt="avatar">
  29. </div>
  30. <div class="name" @click="viewTaskDetails(item)">
  31. <div class="missionName">
  32. {{ item.taskName }}
  33. <img src="../../assets/autoplay/arrow_forward.svg" alt="arrow_forward">
  34. </div>
  35. <div class="projectName">
  36. {{ item.projectName }}
  37. </div>
  38. </div>
  39. </div>
  40. <div class="jump" @click="viewExecutionHistory(item)">
  41. 执行记录
  42. <img src="../../assets/autoplay/arrow_forward.svg" alt="arrow_forward">
  43. </div>
  44. <div class="implementationStrategy">
  45. <!-- <div class="item" v-if="item.implementationStrategy.length > 0" v-for="(item1,index) in item.implementationStrategy">-->
  46. <!-- {{item1}}-->
  47. <!-- </div>-->
  48. <div class="item-no">
  49. 暂无
  50. </div>
  51. </div>
  52. <div class="implementationStrategyText">
  53. 执行策略
  54. </div>
  55. <div class="underImplementation" v-if="item.executeStatus === 0">
  56. <div class="numberOfExecutions">
  57. <div class="text">
  58. 当前执行/计划执行次数
  59. </div>
  60. <div class="number">
  61. {{ item.executeTimes }}/{{ item.planTimes }}
  62. </div>
  63. </div>
  64. <div class="progressBar" @click="progressBarDetails(item)">
  65. <div class="progressBar-blue">
  66. <img src="../../assets/autoplay/airplanemode_active.svg" alt="airplanemode_active">
  67. 进行中
  68. </div>
  69. <div class="details">
  70. 详情
  71. <img src="../../assets/autoplay/arrow_forward.svg" alt="arrow_forward">
  72. </div>
  73. </div>
  74. </div>
  75. <div class="batchExecution" v-if="item.executeStatus !== 0">
  76. <div class="left">
  77. <div class="number">
  78. {{ item.executeTimes }}/{{ item.planTimes }}
  79. </div>
  80. <div class="text">
  81. 当前执行/计划执行次数
  82. </div>
  83. </div>
  84. <div class="right" @click="batchExecution(item)">
  85. <img src="../../assets/autoplay/autoplay.svg" alt="autoplay">
  86. 批量执行
  87. </div>
  88. </div>
  89. <div class="horizontalLine"/>
  90. <div class="time">
  91. 上次执行时间: {{ item.lastExecuteTime }}
  92. </div>
  93. </div>
  94. </div>
  95. <el-drawer
  96. :visible.sync="drawerDetails"
  97. :with-header="false">
  98. <div class="drawerAddress-container">
  99. <div class="drawerAddress-container-head">
  100. <div class="drawerAddress-container-head-left">
  101. <div class="avatar">
  102. <img class="avatar" :src="url + 'disk/file/' + currentTaskInfo.projectLogo" alt="avatar">
  103. </div>
  104. <div class="info">
  105. <div class="projectName">
  106. {{ currentTaskInfo.projectName }}
  107. </div>
  108. <div class="id">
  109. {{ currentTaskInfo.amsTaskId }}
  110. </div>
  111. </div>
  112. </div>
  113. <div class="drawerAddress-container-head-right">
  114. <div class="complete" @click="modifyTask">
  115. <img src="../../assets/address/done_all.svg" alt="done_all">
  116. 完成
  117. </div>
  118. </div>
  119. </div>
  120. <div class="drawerAddress-container-main">
  121. <div class="title">
  122. 任务详情
  123. </div>
  124. <div class="input">
  125. 任务名称
  126. <el-input v-model="currentTaskInfo.taskName" placeholder="任务名称"></el-input>
  127. </div>
  128. <div class="select">
  129. <div class="input">
  130. 选择类型
  131. <el-select style="width: 140px" v-model="currentTaskInfo.taskType" placeholder="选择类型">
  132. <el-option
  133. v-for="item in optionsTaskType"
  134. :key="item.value"
  135. :label="item.label"
  136. :value="item.value">
  137. </el-option>
  138. </el-select>
  139. </div>
  140. <div class="input">
  141. 任务code
  142. <el-input v-model="currentTaskInfo.taskCode" placeholder="任务code"></el-input>
  143. </div>
  144. </div>
  145. <div class="input">
  146. 计划任务执行次数
  147. <el-input v-model="currentTaskInfo.planTimes" placeholder="计划任务执行次数"></el-input>
  148. </div>
  149. <div class="input">
  150. 预估GAS
  151. <el-input v-model="currentTaskInfo.estimatedGas" placeholder="预估GAS"></el-input>
  152. </div>
  153. </div>
  154. </div>
  155. </el-drawer>
  156. <el-drawer
  157. :visible.sync="drawerRecord"
  158. :with-header="false"
  159. @closed="drawerRecordClosed">
  160. <div class="drawerRecord-container" v-if="drawerRecordStatus === 0">
  161. <div class="drawerAddress-container-head">
  162. <div class="drawerAddress-container-head-left">
  163. <div class="missionName">
  164. <div class="name">
  165. 任务名称
  166. </div>
  167. </div>
  168. <div class="text">
  169. 查看历史交互记录
  170. </div>
  171. </div>
  172. </div>
  173. <div class="drawerAddress-container-main">
  174. <div class="drawerAddress-container-head-left">
  175. <div class="avatar">
  176. <img class="avatar" :src="url + 'disk/file/' + currentTaskInfo.projectLogo" alt="avatar">
  177. </div>
  178. <div class="info">
  179. <div class="projectName">
  180. {{ currentTaskInfo.projectName }}
  181. </div>
  182. <div class="webLink">
  183. <img src="../../assets/autoplay/language.svg" alt="language">
  184. <!-- {{currentTaskInfo.projectUrl}}-->
  185. <a :href="currentTaskInfo.projectUrl" target="_blank">{{ currentTaskInfo.projectUrl }}</a>
  186. </div>
  187. </div>
  188. </div>
  189. <div class="horizontalLine"/>
  190. <div class="recordTitle">
  191. <div class="left">
  192. <div class="text">
  193. 执行记录
  194. </div>
  195. <div class="number">
  196. 累计执行: {{ recordData.length }}
  197. </div>
  198. </div>
  199. <div class="right">
  200. <!-- <el-date-picker-->
  201. <!-- v-model="value1"-->
  202. <!-- type="daterange"-->
  203. <!-- range-separator="至"-->
  204. <!-- start-placeholder="开始日期"-->
  205. <!-- end-placeholder="结束日期">-->
  206. <!-- </el-date-picker>-->
  207. </div>
  208. </div>
  209. <div class="table">
  210. <el-table
  211. :data="recordData"
  212. style="width: 100%">
  213. <el-table-column
  214. prop="executeId"
  215. label="执行ID">
  216. </el-table-column>
  217. <el-table-column
  218. prop="createTime"
  219. label="时间">
  220. </el-table-column>
  221. <el-table-column
  222. prop="groupName"
  223. label="钱包名称">
  224. </el-table-column>
  225. <el-table-column
  226. prop="totalGas"
  227. label="总GAS">
  228. </el-table-column>
  229. <el-table-column
  230. prop="executeStatus"
  231. label="状态"
  232. width="120"
  233. align="center">
  234. <template v-slot="scope">
  235. <div class="status" v-if="scope.row.executeStatus === 0" @click="viewRecordDetails(scope.row,1)">
  236. <div class="text" style="color: #2980FF;">
  237. <img src="../../assets/autoplay/clock_loader_60.svg" alt="clock_loader_60">
  238. 进行中
  239. </div>
  240. <img src="../../assets/autoplay/chevron_right.svg" alt="chevron_right">
  241. </div>
  242. <div class="status" v-if="scope.row.executeStatus === 1" @click="viewRecordDetails(scope.row,2)">
  243. <div class="text">
  244. <img src="../../assets/autoplay/check.svg" alt="check">
  245. 已完成
  246. </div>
  247. <img src="../../assets/autoplay/chevron_right.svg" alt="chevron_right">
  248. </div>
  249. <div class="status" v-if="scope.row.executeStatus === 2" @click="viewRecordDetails(scope.row,3)">
  250. <div class="text" style="color: #EB5757">
  251. <img src="../../assets/autoplay/cancel.svg" alt="cancel">
  252. 未完成
  253. </div>
  254. <img src="../../assets/autoplay/chevron_right.svg" alt="chevron_right">
  255. </div>
  256. </template>
  257. </el-table-column>
  258. </el-table>
  259. </div>
  260. </div>
  261. <div class="drawerView-container-footer">
  262. <div class="pagination">
  263. <el-pagination
  264. small
  265. layout="prev, pager, next"
  266. :page-size="10"
  267. :total="3">
  268. </el-pagination>
  269. </div>
  270. </div>
  271. </div>
  272. <div class="drawerRecord-container" v-if="drawerRecordStatus === 1">
  273. <div class="drawerAddress-container-head">
  274. <div class="drawerAddress-container-head-left">
  275. <div class="back" style="cursor: pointer;" @click="drawerRecordStatus = 0">
  276. <img src="../../assets/autoplay/arrow_left_alt.svg" alt="arrow_left_alt">
  277. 返回
  278. </div>
  279. <div class="missionName">
  280. <div class="id">
  281. {{ currentTaskInfo.amsTaskId }}
  282. </div>
  283. <div class="name">
  284. {{ currentTaskInfo.taskName }}
  285. </div>
  286. </div>
  287. <div class="text" style="color: #2980FF">
  288. 任务交互类型: {{ currentTaskInfo.taskType }}
  289. </div>
  290. </div>
  291. </div>
  292. <div class="drawerAddress-container-main">
  293. <div class="interactionStrategy">
  294. <div class="item">
  295. <div class="title">
  296. <img src="../../assets/autoplay/account_balance_wallet.svg" alt="account_balance_wallet">
  297. 交互钱包
  298. </div>
  299. <div class="info">
  300. {{ currentRecordData.groupName }}
  301. </div>
  302. </div>
  303. <div class="item">
  304. <div class="title">
  305. <img src="../../assets/autoplay/avg_pace.svg" alt="avg_pace">
  306. 最小间隔时间
  307. </div>
  308. <div class="info">
  309. {{ currentRecordData.intervalMin }}/分
  310. </div>
  311. </div>
  312. <div class="item">
  313. <div class="title">
  314. <img src="../../assets/autoplay/avg_pace.svg" alt="avg_pace">
  315. 最大间隔时间
  316. </div>
  317. <div class="info">
  318. {{ currentRecordData.intervalMax }}/分
  319. </div>
  320. </div>
  321. <div class="item">
  322. <div class="title">
  323. <img src="../../assets/autoplay/gas_meter.svg" alt="gas_meter">
  324. 最大 Gas fee
  325. </div>
  326. <div class="info">
  327. {{ currentRecordData.maxGas }}
  328. </div>
  329. </div>
  330. <div class="item" v-for="item in currentRecordData.airdropParams">
  331. <div class="title">
  332. {{ item.note }}
  333. </div>
  334. <div class="info">
  335. {{ item.value }}
  336. </div>
  337. </div>
  338. </div>
  339. <div class="recordTitle">
  340. <div class="left">
  341. <div class="text">
  342. 正在进行中
  343. </div>
  344. <div class="number">
  345. 总计交互地址: {{ ongoingDataTotal }}
  346. </div>
  347. </div>
  348. <!-- <div class="right" style="cursor: pointer" @click="refresh">-->
  349. <!-- <img src="../../assets/autoplay/Frame.svg" alt="Frame">-->
  350. <!-- </div>-->
  351. <div class="button" @click="refresh">
  352. <img src="../../assets/autoplay/Frame.svg" alt="Frame">
  353. 刷新
  354. </div>
  355. </div>
  356. <div class="table">
  357. <el-table
  358. :data="ongoingData"
  359. style="width: 100%">
  360. <el-table-column
  361. prop="address"
  362. label="地址"
  363. width="150">
  364. </el-table-column>
  365. <el-table-column
  366. label="金额"
  367. prop="amount">
  368. </el-table-column>
  369. <el-table-column
  370. label="Gas"
  371. prop="gas">
  372. </el-table-column>
  373. <el-table-column
  374. label="TX ID"
  375. prop="txId">
  376. </el-table-column>
  377. <el-table-column
  378. label="状态"
  379. prop="status">
  380. <template v-slot="scope">
  381. <div class="status" style="cursor: auto">
  382. <div class="text" v-if="scope.row.status === 0" style="color: #EB5757;">
  383. <img src="../../assets/autoplay/cancel.svg" alt="cancel">
  384. 未完成
  385. </div>
  386. <div class="text" v-if="scope.row.status === 1">
  387. <img src="../../assets/autoplay/check.svg" alt="check">
  388. 已完成
  389. </div>
  390. </div>
  391. </template>
  392. </el-table-column>
  393. </el-table>
  394. </div>
  395. </div>
  396. <div class="drawerView-container-footer">
  397. <div class="pagination">
  398. <el-pagination
  399. small
  400. layout="prev, pager, next"
  401. :page-size="10"
  402. :total="3">
  403. </el-pagination>
  404. </div>
  405. </div>
  406. <div class="progressBarBox">
  407. <div class="progressBar">
  408. <div class="progressBar-two">
  409. <img src="../../assets/autoplay/motion_photos_paused.svg" alt="motion_photos_paused">
  410. 当前执行进度
  411. </div>
  412. <div class="number">
  413. {{ currentTaskInfo.executeTimes }}/{{ currentTaskInfo.planTimes }}
  414. </div>
  415. </div>
  416. </div>
  417. </div>
  418. <div class="drawerRecord-container" v-if="drawerRecordStatus === 2">
  419. <div class="drawerAddress-container-head">
  420. <div class="drawerAddress-container-head-left">
  421. <div class="back" style="cursor: pointer;" @click="drawerRecordStatus = 0">
  422. <img src="../../assets/autoplay/arrow_left_alt.svg" alt="arrow_left_alt">
  423. 返回
  424. </div>
  425. <div class="missionName">
  426. <div class="id">
  427. {{ currentTaskInfo.amsTaskId }}
  428. </div>
  429. <div class="name">
  430. {{ currentTaskInfo.taskName }}
  431. </div>
  432. </div>
  433. <div class="text" style="color: #2980FF">
  434. 任务交互类型: {{ currentTaskInfo.taskType }}
  435. </div>
  436. </div>
  437. </div>
  438. <div class="drawerAddress-container-main">
  439. <div class="interactionStrategy">
  440. <div class="item">
  441. <div class="title">
  442. <img src="../../assets/autoplay/account_balance_wallet.svg" alt="account_balance_wallet">
  443. 交互钱包
  444. </div>
  445. <div class="info">
  446. {{ currentRecordData.groupName }}
  447. </div>
  448. </div>
  449. <div class="item">
  450. <div class="title">
  451. <img src="../../assets/autoplay/avg_pace.svg" alt="avg_pace">
  452. 最小间隔时间
  453. </div>
  454. <div class="info">
  455. {{ currentRecordData.intervalMin }}/分
  456. </div>
  457. </div>
  458. <div class="item">
  459. <div class="title">
  460. <img src="../../assets/autoplay/avg_pace.svg" alt="avg_pace">
  461. 最大间隔时间
  462. </div>
  463. <div class="info">
  464. {{ currentRecordData.intervalMax }}/分
  465. </div>
  466. </div>
  467. <div class="item" v-for="item in currentRecordData.airdropParams">
  468. <div class="title">
  469. {{ item.note }}
  470. </div>
  471. <div class="info">
  472. {{ item.value }}
  473. </div>
  474. </div>
  475. </div>
  476. <div class="recordTitle">
  477. <div class="left">
  478. <div class="text">
  479. 已完成
  480. </div>
  481. <div class="number">
  482. 总计交互地址: {{ ongoingDataTotal }}
  483. </div>
  484. </div>
  485. </div>
  486. <div class="table">
  487. <el-table
  488. :data="ongoingData"
  489. style="width: 100%">
  490. <el-table-column
  491. prop="address"
  492. label="地址"
  493. width="150">
  494. </el-table-column>
  495. <el-table-column
  496. label="金额"
  497. prop="amount">
  498. </el-table-column>
  499. <el-table-column
  500. label="Gas"
  501. prop="gas">
  502. </el-table-column>
  503. <el-table-column
  504. label="TX ID"
  505. prop="txId">
  506. </el-table-column>
  507. <el-table-column
  508. label="状态"
  509. prop="status">
  510. <template v-slot="scope">
  511. <div class="status" style="cursor: auto">
  512. <div class="text">
  513. <img src="../../assets/autoplay/check.svg" alt="check">
  514. 已完成
  515. </div>
  516. </div>
  517. </template>
  518. </el-table-column>
  519. </el-table>
  520. </div>
  521. </div>
  522. <div class="drawerView-container-footer">
  523. <div class="pagination">
  524. <el-pagination
  525. small
  526. layout="prev, pager, next"
  527. :page-size="10"
  528. :total="3">
  529. </el-pagination>
  530. </div>
  531. </div>
  532. <div class="progressBarBox">
  533. <div class="progressBar" style="background: black">
  534. <div class="progressBar-two" style="background: black">
  535. <img src="../../assets/autoplay/done_all.svg" alt="done_all">
  536. 执行进度已完成
  537. </div>
  538. <!-- <div class="number">-->
  539. <!-- {{ currentTaskInfo.executeTimes }}/{{ currentTaskInfo.planTimes }}-->
  540. <!-- </div>-->
  541. </div>
  542. </div>
  543. </div>
  544. <div class="drawerRecord-container" v-if="drawerRecordStatus === 3">
  545. <div class="drawerAddress-container-head">
  546. <div class="drawerAddress-container-head-left">
  547. <div class="back" style="cursor: pointer;" @click="drawerRecordStatus = 0">
  548. <img src="../../assets/autoplay/arrow_left_alt.svg" alt="arrow_left_alt">
  549. 返回
  550. </div>
  551. <div class="missionName">
  552. <div class="id">
  553. {{ currentTaskInfo.amsTaskId }}
  554. </div>
  555. <div class="name">
  556. {{ currentTaskInfo.taskName }}
  557. </div>
  558. </div>
  559. <div class="text" style="color: #2980FF">
  560. 任务交互类型: {{ currentTaskInfo.taskType }}
  561. </div>
  562. </div>
  563. </div>
  564. <div class="drawerAddress-container-main">
  565. <div class="interactionStrategy">
  566. <div class="item">
  567. <div class="title">
  568. <img src="../../assets/autoplay/account_balance_wallet.svg" alt="account_balance_wallet">
  569. 交互钱包
  570. </div>
  571. <div class="info">
  572. {{ currentRecordData.groupName }}
  573. </div>
  574. </div>
  575. <div class="item">
  576. <div class="title">
  577. <img src="../../assets/autoplay/avg_pace.svg" alt="avg_pace">
  578. 最小间隔时间
  579. </div>
  580. <div class="info">
  581. {{ currentRecordData.intervalMin }}/分
  582. </div>
  583. </div>
  584. <div class="item">
  585. <div class="title">
  586. <img src="../../assets/autoplay/avg_pace.svg" alt="avg_pace">
  587. 最大间隔时间
  588. </div>
  589. <div class="info">
  590. {{ currentRecordData.intervalMax }}/分
  591. </div>
  592. </div>
  593. <div class="item">
  594. <div class="title">
  595. <img src="../../assets/autoplay/gas_meter.svg" alt="gas_meter">
  596. 最大 Gas fee
  597. </div>
  598. <div class="info">
  599. {{ currentRecordData.maxGas }}
  600. </div>
  601. </div>
  602. <div class="item" v-for="item in currentRecordData.airdropParams">
  603. <div class="title">
  604. {{ item.note }}
  605. </div>
  606. <div class="info">
  607. {{ item.value }}
  608. </div>
  609. </div>
  610. </div>
  611. <div class="recordTitle">
  612. <div class="left">
  613. <div class="text">
  614. 正在进行中
  615. </div>
  616. <div class="number">
  617. 总计交互地址: {{ ongoingDataTotal }}
  618. </div>
  619. </div>
  620. <div style="display: flex;align-items: center;gap:32px">
  621. <div class="button" style="color: #EB5757" @click="retryPassword = true">
  622. <img src="../../assets/autoplay/retry.svg" alt="retry">
  623. 重试失败
  624. </div>
  625. <div class="button" @click="refresh">
  626. <img src="../../assets/autoplay/Frame.svg" alt="Frame">
  627. 刷新
  628. </div>
  629. </div>
  630. </div>
  631. <div class="table">
  632. <el-table
  633. :data="ongoingData"
  634. style="width: 100%">
  635. <el-table-column
  636. prop="address"
  637. label="地址"
  638. width="150">
  639. </el-table-column>
  640. <el-table-column
  641. label="金额"
  642. prop="amount">
  643. </el-table-column>
  644. <el-table-column
  645. label="Gas"
  646. prop="gas">
  647. </el-table-column>
  648. <el-table-column
  649. label="TX ID"
  650. prop="txId">
  651. </el-table-column>
  652. <el-table-column
  653. label="状态"
  654. prop="status">
  655. <template v-slot="scope">
  656. <div class="status" style="cursor: auto">
  657. <div class="text" v-if="scope.row.status === 0" style="color: #EB5757;">
  658. <img src="../../assets/autoplay/cancel.svg" alt="cancel">
  659. 未完成
  660. </div>
  661. <div class="text" v-if="scope.row.status === 1">
  662. <img src="../../assets/autoplay/check.svg" alt="check">
  663. 已完成
  664. </div>
  665. </div>
  666. </template>
  667. </el-table-column>
  668. </el-table>
  669. </div>
  670. </div>
  671. <div class="drawerView-container-footer">
  672. <div class="pagination">
  673. <el-pagination
  674. small
  675. layout="prev, pager, next"
  676. :page-size="10"
  677. :total="3">
  678. </el-pagination>
  679. </div>
  680. </div>
  681. <div class="progressBarBox">
  682. <div class="progressBar" style="background: #EB5757">
  683. <div class="progressBar-two" style="background: #EB5757">
  684. <img src="../../assets/autoplay/done_all.svg" alt="done_all">
  685. 执行进度已完成,部分失败
  686. </div>
  687. <!-- <div class="number">-->
  688. <!-- {{ currentTaskInfo.executeTimes }}/{{ currentTaskInfo.planTimes }}-->
  689. <!-- </div>-->
  690. </div>
  691. </div>
  692. <div class="accountPassword" v-if="retryPassword">
  693. <div class="title">
  694. 输入钱包密码
  695. </div>
  696. <div class="inputTitle">
  697. 钱包密码
  698. </div>
  699. <el-input type="password" :show-password="true" v-model="retryParams.password"
  700. placeholder="输入钱包密码"></el-input>
  701. <div class="confirm" @click="retry">
  702. <img src="../../assets/autoplay/check1.svg" alt="check1">
  703. 确认
  704. </div>
  705. <div class="tip">
  706. <div class="title">
  707. <img src="../../assets/address/tips_and_updates.svg" alt="tips_and_updates">
  708. 提示
  709. </div>
  710. <div class="description">
  711. 此密码为您账户钱包的 Keystore 密码,请妥善保管,
  712. 系统无法为您找回。
  713. </div>
  714. </div>
  715. </div>
  716. </div>
  717. </el-drawer>
  718. <el-drawer
  719. :visible.sync="drawerStrategy"
  720. :with-header="false"
  721. @closed="accountPassword = false">
  722. <div class="drawerStrategy-container">
  723. <div class="drawerAddress-container-head">
  724. <div class="drawerAddress-container-head-left">
  725. <div class="info">
  726. <div class="projectName">
  727. 执行策略
  728. </div>
  729. <div class="id">
  730. {{ currentTaskInfo.taskType }} | {{ currentTaskInfo.taskName }}
  731. </div>
  732. </div>
  733. </div>
  734. <div class="drawerAddress-container-head-right">
  735. <div class="complete" @click="accountPassword = true">
  736. <img src="../../assets/address/done_all.svg" alt="done_all">
  737. 下一步
  738. </div>
  739. </div>
  740. </div>
  741. <div class="drawerAddress-container-main">
  742. <div class="item">
  743. <div class="title">
  744. 交互钱包
  745. </div>
  746. <el-select v-model="batchExecutionParams.groupName" placeholder="选择交互钱包">
  747. <el-option
  748. v-for="item in optionsAddress"
  749. :key="item.value"
  750. :label="item.label"
  751. :value="item.value">
  752. </el-option>
  753. </el-select>
  754. </div>
  755. <!-- <div class="item">-->
  756. <!-- <div class="title">-->
  757. <!-- 目标资产(From)-->
  758. <!-- </div>-->
  759. <!-- <el-select v-model="chainId" placeholder="选择交互资产">-->
  760. <!-- <el-option-->
  761. <!-- v-for="item in options"-->
  762. <!-- :key="item.value"-->
  763. <!-- :label="item.label"-->
  764. <!-- :value="item.value">-->
  765. <!-- </el-option>-->
  766. <!-- </el-select>-->
  767. <!-- </div>-->
  768. <!-- <div class="item">-->
  769. <!-- <div class="title">-->
  770. <!-- 目标资产(To)-->
  771. <!-- </div>-->
  772. <!-- <el-select v-model="chainId" placeholder="选择交互资产">-->
  773. <!-- <el-option-->
  774. <!-- v-for="item in options"-->
  775. <!-- :key="item.value"-->
  776. <!-- :label="item.label"-->
  777. <!-- :value="item.value">-->
  778. <!-- </el-option>-->
  779. <!-- </el-select>-->
  780. <!-- </div>-->
  781. <div class="item">
  782. <div class="title">
  783. 间隔时间
  784. </div>
  785. <div style="display: flex;gap:24px">
  786. <el-input v-model="batchExecutionParams.intervalMin" placeholder="输入最小间隔时间/分"></el-input>
  787. <el-input v-model="batchExecutionParams.intervalMax" placeholder="输入最大间隔时间/分"></el-input>
  788. </div>
  789. </div>
  790. <!-- <div class="item">-->
  791. <!-- <div class="title">-->
  792. <!-- 交互金额-->
  793. <!-- </div>-->
  794. <!-- <el-input v-model="batchExecutionParams.amount" placeholder="输入最大交互金额"></el-input>-->
  795. <!-- </div>-->
  796. <!-- <div class="item">-->
  797. <!-- <div class="title">-->
  798. <!-- 最大 Gas fee-->
  799. <!-- </div>-->
  800. <!-- <el-input v-model="batchExecutionParams.maxGas" placeholder="输入最大 Gas fee"></el-input>-->
  801. <!-- </div>-->
  802. <div class="item" v-for="item in paramsData">
  803. <div class="title">
  804. {{ item.note }}
  805. </div>
  806. <el-input v-model="item.value"></el-input>
  807. </div>
  808. </div>
  809. <div class="accountPassword" v-if="accountPassword">
  810. <div class="title">
  811. 输入钱包密码
  812. </div>
  813. <div class="inputTitle">
  814. 钱包密码
  815. </div>
  816. <el-input type="password" :show-password="true" v-model="password"
  817. placeholder="输入钱包密码"></el-input>
  818. <div class="confirm" @click="batchExecutionTask">
  819. <img v-if="!confirmLoading" src="../../assets/autoplay/check1.svg" alt="check1">
  820. <div v-if="confirmLoading" style="width: 20px;height: 20px;margin-top: -2px">
  821. <Loading/>
  822. </div>
  823. 确认
  824. </div>
  825. <div class="tip">
  826. <div class="title">
  827. <img src="../../assets/address/tips_and_updates.svg" alt="tips_and_updates">
  828. 提示
  829. </div>
  830. <div class="description">
  831. 此密码为您账户钱包的 Keystore 密码,请妥善保管,
  832. 系统无法为您找回。
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </el-drawer>
  838. <el-drawer
  839. :visible.sync="drawerAdd"
  840. :with-header="false">
  841. <div class="drawerAddress-container">
  842. <div class="drawerAddress-container-head">
  843. <div class="drawerAddress-container-head-left" style="align-items: center">
  844. <!-- <div class="avatar">-->
  845. <!-- <img v-if="currentAddTaskInfo.projectLogo" class="avatar" :src="url + 'disk/file/' + currentAddTaskInfo.projectLogo" alt="avatar">-->
  846. <!-- </div>-->
  847. <!-- <div class="info">-->
  848. <!-- <div class="projectName">-->
  849. <!-- {{currentAddTaskInfo.projectName || '项目名称'}}-->
  850. <!-- </div>-->
  851. <!-- <div class="id">-->
  852. <!-- {{currentAddTaskInfo.amsTaskId}}-->
  853. <!-- </div>-->
  854. <!-- </div>-->
  855. </div>
  856. <div class="drawerAddress-container-head-right">
  857. <div class="complete" @click="addTask">
  858. <img src="../../assets/address/done_all.svg" alt="done_all">
  859. 完成
  860. </div>
  861. </div>
  862. </div>
  863. <div class="drawerAddress-container-main">
  864. <div class="title">
  865. 任务详情
  866. </div>
  867. <div class="input">
  868. 任务名称
  869. <el-input v-model="currentAddTaskInfo.taskName" placeholder="任务名称"></el-input>
  870. </div>
  871. <div class="input">
  872. 选择项目
  873. <el-select v-model="currentAddTaskInfo.airdropProjectId" placeholder="选择项目">
  874. <el-option
  875. v-for="item in addTaskProjectData"
  876. :key="item.amsProjectId"
  877. :label="item.projectName"
  878. :value="item.amsProjectId">
  879. </el-option>
  880. </el-select>
  881. </div>
  882. <div class="select">
  883. <div class="input">
  884. 选择类型
  885. <el-select style="width: 140px" v-model="currentAddTaskInfo.taskType" placeholder="选择类型">
  886. <el-option
  887. v-for="item in optionsTaskType"
  888. :key="item.value"
  889. :label="item.label"
  890. :value="item.value">
  891. </el-option>
  892. </el-select>
  893. </div>
  894. <div class="input">
  895. 输入合约code
  896. <el-input v-model="currentAddTaskInfo.taskCode" placeholder="输入合约code"></el-input>
  897. </div>
  898. </div>
  899. <div class="input">
  900. 计划任务执行次数
  901. <el-input v-model="currentAddTaskInfo.planTimes" placeholder="计划任务执行次数"></el-input>
  902. </div>
  903. <div class="input">
  904. 预估GAS
  905. <el-input v-model="currentAddTaskInfo.estimatedGas" placeholder="预估GAS"></el-input>
  906. </div>
  907. </div>
  908. </div>
  909. </el-drawer>
  910. </div>
  911. </template>
  912. <script>
  913. import {addTaskInfo, batchExecution, getExecutionRecord, modifyTaskInfo, parameterSearch, taskPage} from "@/api/task";
  914. import {getGroupList} from "@/api/adress";
  915. import {getInteractionRecord, retryFailed} from "@/api/record";
  916. import {projectPage} from "@/api/project";
  917. import CryptoJS from "crypto-js";
  918. import Web3 from 'web3'
  919. import Loading from "@/components/Loading";
  920. export default {
  921. components: {Loading},
  922. data() {
  923. return {
  924. missionData: [],
  925. drawerDetails: false,
  926. input: '',
  927. chainId: '',
  928. optionsTaskType: [
  929. {
  930. value: 'BRIDGE',
  931. label: 'Bridge'
  932. },
  933. {
  934. value: 'NFT',
  935. label: 'NFT'
  936. },
  937. {
  938. value: 'SWAP',
  939. label: 'MuteSwap'
  940. }
  941. ],
  942. optionsAddress: [],
  943. drawerRecord: false,
  944. drawerRecordStatus: 0,
  945. value1: '',
  946. recordData: [],
  947. ongoingData: [],//下一层
  948. ongoingDataTotal: 0,
  949. drawerStrategy: false,
  950. accountPassword: false,
  951. retryPassword: false,
  952. batchExecutionParams: {
  953. groupName: '',
  954. maxGas: '',
  955. intervalMax: 10,
  956. intervalMin: 1,
  957. amount: '',
  958. password: '',
  959. projectId: '',
  960. taskId: ''
  961. },
  962. password:'',
  963. retryParams: {
  964. executeId: '',
  965. password: ''
  966. },
  967. currentTaskInfo: {
  968. taskType: '',
  969. taskName: '',
  970. amsProjectId: '',
  971. amsTaskId: '',
  972. planTimes: '',
  973. projectName: '',
  974. taskCode: '',
  975. estimatedGas: ''
  976. },
  977. currentRecordData: {},
  978. paramsData: [],
  979. url: process.env.VUE_APP_BASE_API,
  980. drawerAdd: false,
  981. currentAddTaskInfo: {
  982. taskType: '',
  983. taskName: '',
  984. airdropProjectId: '',
  985. planTimes: '',
  986. projectName: '',
  987. taskCode: ''
  988. },
  989. addTaskProjectData: [],
  990. confirmLoading:false
  991. }
  992. },
  993. mounted() {
  994. this.getTaskList()
  995. this.getWalletAddress()
  996. },
  997. methods: {
  998. progressBarDetails(item) {
  999. console.log(item);
  1000. this.drawerRecord = true
  1001. this.drawerRecordStatus = 1
  1002. this.currentTaskInfo = JSON.parse(JSON.stringify(item))
  1003. this.currentRecordData.groupName = item.groupName
  1004. this.currentRecordData.intervalMax = item.intervalMax
  1005. this.currentRecordData.intervalMin = item.intervalMin
  1006. this.currentRecordData.maxGas = item.maxGas
  1007. this.currentRecordData.executeId = item.executeId
  1008. let params = {
  1009. page: 1,
  1010. pageSize: 10,
  1011. queryValue: item.executeId
  1012. }
  1013. getInteractionRecord(params).then(res => {
  1014. this.ongoingData = res.records
  1015. this.ongoingDataTotal = res.total
  1016. })
  1017. },
  1018. getTaskList() {
  1019. taskPage().then(res => {
  1020. this.missionData = res
  1021. })
  1022. },
  1023. batchExecution(item) {
  1024. this.drawerStrategy = true
  1025. this.currentTaskInfo.taskName = item.taskName
  1026. this.currentTaskInfo.taskType = item.taskType
  1027. this.batchExecutionParams.projectId = item.amsProjectId
  1028. this.batchExecutionParams.taskId = item.amsTaskId
  1029. if (item.taskCode) {
  1030. this.getParameterSearch(item.taskCode)
  1031. }
  1032. },
  1033. getWalletAddress() {
  1034. getGroupList().then(res => {
  1035. res.forEach((item) => {
  1036. let obj = {
  1037. value: item,
  1038. label: item
  1039. }
  1040. this.optionsAddress.push(obj)
  1041. })
  1042. })
  1043. },
  1044. batchExecutionTask() {
  1045. if (this.confirmLoading){
  1046. return
  1047. }
  1048. this.confirmLoading = true
  1049. // 要加密的数据
  1050. const dataToEncrypt = this.password;
  1051. // console.log('输入的密码:', dataToEncrypt);
  1052. // 获取当前北京时间
  1053. const beijingDate = this.getCurrentBeijingTime();
  1054. // 生成keyByte
  1055. const keyByte = this.generateKeyByteArray(beijingDate);
  1056. // console.log('生成的toHex:', keyByte);
  1057. // 加密数据
  1058. const encryptedData = this.encryptData(dataToEncrypt, keyByte);
  1059. console.log('加密后的数据:', encryptedData);
  1060. this.batchExecutionParams.password = encryptedData
  1061. this.batchExecutionParams.airdropParams = this.paramsData
  1062. batchExecution(this.batchExecutionParams).then(() => {
  1063. this.accountPassword = false
  1064. this.drawerStrategy = false
  1065. this.confirmLoading = false
  1066. this.getTaskList()
  1067. }).catch(()=>{
  1068. this.confirmLoading = false
  1069. })
  1070. },
  1071. // 获取当前北京时间并格式化为 YYYYMMDD
  1072. getCurrentBeijingTime() {
  1073. const localDate = new Date();
  1074. const localTime = localDate.getTime(); // 获取当前本地时间的时间戳
  1075. const localOffset = localDate.getTimezoneOffset() * 60000; // 本地时区偏移的毫秒数
  1076. const utcTime = localTime + localOffset; // 转换为 UTC 时间
  1077. const beijingOffset = 8 * 60 * 60000; // 北京时区偏移的毫秒数
  1078. const beijingTime = utcTime + beijingOffset; // 加上北京时区偏移
  1079. const beijingDate = new Date(beijingTime);
  1080. const year = beijingDate.getFullYear();
  1081. const month = (beijingDate.getMonth() + 1).toString().padStart(2, '0');
  1082. const day = beijingDate.getDate().toString().padStart(2, '0');
  1083. return `${year}${month}${day}${year}${month}${day}`;
  1084. },
  1085. // 生成
  1086. generateKeyByteArray(content) {
  1087. let bytes = [];
  1088. let len, c;
  1089. len = content.length;
  1090. for (let i = 0; i < len; i++) {
  1091. c = content[i];
  1092. bytes.push(parseInt(c))
  1093. }
  1094. // console.log('当前北京时间的数组',bytes);
  1095. return Web3.utils.bytesToHex(bytes).substring(2);
  1096. },
  1097. // 加密函数
  1098. encryptData(word, keyStr) {
  1099. let key = CryptoJS.enc.Hex.parse(keyStr)
  1100. // console.log('CryptoJS生成的key',key);
  1101. let encrypted = CryptoJS.AES.encrypt(word, key, {mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7}) // 加密模式为ECB,补码方式为PKCS5Padding(也就是PKCS7)
  1102. return encrypted.toString()
  1103. },
  1104. viewTaskDetails(item) {
  1105. this.currentTaskInfo = JSON.parse(JSON.stringify(item))
  1106. this.drawerDetails = true
  1107. },
  1108. modifyTask() {
  1109. let params = {
  1110. taskType: this.currentTaskInfo.taskType,
  1111. taskName: this.currentTaskInfo.taskName,
  1112. airdropProjectId: this.currentTaskInfo.amsProjectId,
  1113. amsTaskId: this.currentTaskInfo.amsTaskId,
  1114. planTimes: this.currentTaskInfo.planTimes,
  1115. taskCode: this.currentTaskInfo.taskCode,
  1116. estimatedGas: this.currentTaskInfo.estimatedGas
  1117. }
  1118. modifyTaskInfo(params).then(() => {
  1119. this.drawerDetails = false
  1120. this.getTaskList()
  1121. })
  1122. },
  1123. addTaskDetails() {
  1124. this.drawerAdd = true
  1125. this.getProjectPage()
  1126. },
  1127. getProjectPage() {
  1128. let params = {
  1129. page: 1,
  1130. pageSize: 100,
  1131. }
  1132. projectPage(params).then(res => {
  1133. this.addTaskProjectData = res.records
  1134. })
  1135. },
  1136. addTask() {
  1137. let params = {
  1138. taskType: this.currentAddTaskInfo.taskType,
  1139. taskName: this.currentAddTaskInfo.taskName,
  1140. airdropProjectId: this.currentAddTaskInfo.airdropProjectId,
  1141. planTimes: this.currentAddTaskInfo.planTimes,
  1142. taskCode: this.currentAddTaskInfo.taskCode,
  1143. estimatedGas: this.currentAddTaskInfo.estimatedGas
  1144. }
  1145. console.log(params);
  1146. addTaskInfo(params).then(() => {
  1147. this.drawerAdd = false
  1148. this.getTaskList()
  1149. })
  1150. },
  1151. viewExecutionHistory(item) {
  1152. this.currentTaskInfo = JSON.parse(JSON.stringify(item))
  1153. let params = {
  1154. page: 1,
  1155. pageSize: 10,
  1156. queryValue: item.amsTaskId
  1157. }
  1158. getExecutionRecord(params).then((res) => {
  1159. this.drawerRecord = true
  1160. this.recordData = res.records
  1161. })
  1162. },
  1163. viewRecordDetails(item, page) {
  1164. this.drawerRecordStatus = page
  1165. this.currentRecordData = item
  1166. console.log(item);
  1167. let params = {
  1168. page: 1,
  1169. pageSize: 10,
  1170. queryValue: item.executeId
  1171. }
  1172. getInteractionRecord(params).then(res => {
  1173. this.ongoingData = res.records
  1174. this.ongoingDataTotal = res.total
  1175. })
  1176. },
  1177. refresh() {
  1178. let params = {
  1179. page: 1,
  1180. pageSize: 10,
  1181. queryValue: this.currentRecordData.executeId
  1182. }
  1183. getInteractionRecord(params).then(res => {
  1184. this.ongoingData = res.records
  1185. })
  1186. },
  1187. getParameterSearch(taskCode) {
  1188. parameterSearch(taskCode).then(res => {
  1189. this.paramsData = res
  1190. })
  1191. },
  1192. retry() {
  1193. let params = {
  1194. executeId: this.currentRecordData.executeId,
  1195. password: this.retryParams.password
  1196. }
  1197. retryFailed(params).then(res => {
  1198. console.log(res);
  1199. this.refresh()
  1200. this.retryPassword = false
  1201. })
  1202. },
  1203. drawerRecordClosed() {
  1204. this.drawerRecordStatus = 0;
  1205. this.retryPassword = false
  1206. }
  1207. }
  1208. }
  1209. </script>
  1210. <style lang="scss" scoped>
  1211. .app-container {
  1212. .title {
  1213. font-weight: 700;
  1214. font-size: 21px;
  1215. line-height: 28px;
  1216. color: #181818;
  1217. }
  1218. .input {
  1219. display: flex;
  1220. flex-direction: column;
  1221. gap: 10px;
  1222. }
  1223. .top {
  1224. display: flex;
  1225. align-items: center;
  1226. justify-content: space-between;
  1227. .add {
  1228. .button {
  1229. width: 148px;
  1230. height: 52px;
  1231. display: flex;
  1232. flex-direction: row;
  1233. justify-content: center;
  1234. align-items: center;
  1235. gap: 4px;
  1236. background: #4A76FF;
  1237. border-radius: 10px;
  1238. font-weight: 700;
  1239. font-size: 15px;
  1240. line-height: 20px;
  1241. color: #FFFFFF;
  1242. cursor: pointer;
  1243. }
  1244. }
  1245. }
  1246. .app-container-table-screening {
  1247. display: flex;
  1248. align-items: center;
  1249. gap: 100px;
  1250. padding: 20px 0;
  1251. margin: 20px 0;
  1252. border-top: 1px solid #f5f5f5;
  1253. border-bottom: 1px solid #f5f5f5;
  1254. .app-container-table-screening-item {
  1255. display: flex;
  1256. align-items: center;
  1257. gap: 6px;
  1258. font-weight: 400;
  1259. font-size: 15px;
  1260. line-height: 20px;
  1261. color: #4d4d4e;
  1262. }
  1263. }
  1264. .app-container-table-main {
  1265. display: flex;
  1266. //justify-content: space-between;
  1267. gap: 20px;
  1268. flex-wrap: wrap;
  1269. height: 650px;
  1270. overflow: auto;
  1271. .app-container-table-main-item {
  1272. width: 340px;
  1273. height: 315px;
  1274. background: #FFFFFF;
  1275. border: 1px solid #2980FF;
  1276. border-radius: 10px;
  1277. padding: 24px;
  1278. position: relative;
  1279. .head {
  1280. display: flex;
  1281. gap: 8px;
  1282. .avatar {
  1283. width: 46px;
  1284. height: 46px;
  1285. background: black;
  1286. border-radius: 50%;
  1287. }
  1288. .name {
  1289. display: flex;
  1290. flex-direction: column;
  1291. gap: 8px;
  1292. cursor: pointer;
  1293. .projectName {
  1294. font-weight: 700;
  1295. font-size: 12px;
  1296. line-height: 16px;
  1297. color: #919191;
  1298. }
  1299. .missionName {
  1300. font-weight: 700;
  1301. font-size: 17px;
  1302. line-height: 22px;
  1303. color: #222222;
  1304. display: flex;
  1305. align-items: center;
  1306. gap: 8px
  1307. }
  1308. }
  1309. }
  1310. .jump {
  1311. position: absolute;
  1312. bottom: 25px;
  1313. right: 24px;
  1314. display: flex;
  1315. gap: 8px;
  1316. font-weight: 700;
  1317. font-size: 12px;
  1318. line-height: 16px;
  1319. color: #2980FF;
  1320. cursor: pointer;
  1321. }
  1322. .implementationStrategy {
  1323. display: flex;
  1324. gap: 12px;
  1325. margin-top: 32px;
  1326. .item {
  1327. width: 68px;
  1328. height: 24px;
  1329. background: #edf2ff;
  1330. border: 1px solid #2980FF;
  1331. border-radius: 4px;
  1332. display: flex;
  1333. justify-content: center;
  1334. align-items: center;
  1335. font-weight: 500;
  1336. font-size: 12px;
  1337. line-height: 16px;
  1338. color: #222222;
  1339. }
  1340. .item-no {
  1341. width: 44px;
  1342. height: 24px;
  1343. background: #F5F5F5;
  1344. border: 1px solid #E0E0E0;
  1345. border-radius: 4px;
  1346. display: flex;
  1347. justify-content: center;
  1348. align-items: center;
  1349. font-weight: 500;
  1350. font-size: 12px;
  1351. line-height: 16px;
  1352. color: #828282;
  1353. }
  1354. }
  1355. .implementationStrategyText {
  1356. font-weight: 400;
  1357. font-size: 12px;
  1358. line-height: 16px;
  1359. color: #919191;
  1360. margin-top: 8px;
  1361. }
  1362. .underImplementation {
  1363. display: flex;
  1364. flex-direction: column;
  1365. gap: 8px;
  1366. margin-top: 24px;
  1367. height: 50px;
  1368. .numberOfExecutions {
  1369. display: flex;
  1370. gap: 4px;
  1371. .text {
  1372. font-weight: 400;
  1373. font-size: 12px;
  1374. line-height: 16px;
  1375. color: #919191;
  1376. }
  1377. .number {
  1378. font-weight: 700;
  1379. font-size: 12px;
  1380. line-height: 16px;
  1381. color: #222222;
  1382. }
  1383. }
  1384. .progressBar {
  1385. width: 100%;
  1386. height: 28px;
  1387. background: #F5F5F5;
  1388. border-radius: 21px;
  1389. display: flex;
  1390. justify-content: space-between;
  1391. padding-right: 6px;
  1392. cursor: pointer;
  1393. .progressBar-blue {
  1394. width: 147px;
  1395. height: 28px;
  1396. background: #2980FF;
  1397. border-radius: 26px;
  1398. display: flex;
  1399. align-items: center;
  1400. padding-left: 10px;
  1401. gap: 4px;
  1402. font-weight: 400;
  1403. font-size: 12px;
  1404. line-height: 16px;
  1405. color: #FFFFFF;
  1406. }
  1407. .details {
  1408. display: flex;
  1409. align-items: center;
  1410. gap: 4px;
  1411. font-weight: 400;
  1412. font-size: 12px;
  1413. line-height: 16px;
  1414. color: #7b7b7b;
  1415. }
  1416. }
  1417. }
  1418. .batchExecution {
  1419. display: flex;
  1420. justify-content: space-between;
  1421. gap: 8px;
  1422. margin-top: 24px;
  1423. height: 50px;
  1424. .left {
  1425. display: flex;
  1426. gap: 8px;
  1427. flex-direction: column;
  1428. .text {
  1429. font-weight: 400;
  1430. font-size: 12px;
  1431. line-height: 16px;
  1432. color: #919191;
  1433. }
  1434. .number {
  1435. font-weight: 700;
  1436. font-size: 17px;
  1437. line-height: 22px;
  1438. color: #222222;
  1439. }
  1440. }
  1441. .right {
  1442. display: flex;
  1443. gap: 4px;
  1444. align-items: center;
  1445. font-weight: 700;
  1446. font-size: 15px;
  1447. line-height: 20px;
  1448. color: #FFFFFF;
  1449. width: 132px;
  1450. height: 44px;
  1451. justify-content: center;
  1452. background: #2980FF;
  1453. border: 1px solid #2980FF;
  1454. border-radius: 10px;
  1455. cursor: pointer;
  1456. }
  1457. }
  1458. .horizontalLine {
  1459. width: 343px;
  1460. height: 1px;
  1461. border-bottom: 1px solid #F5F5F5;
  1462. margin-left: -24px;
  1463. margin-top: 28px;
  1464. }
  1465. .time {
  1466. font-weight: 400;
  1467. font-size: 12px;
  1468. line-height: 16px;
  1469. color: #919191;
  1470. margin-top: 20px;
  1471. }
  1472. }
  1473. }
  1474. .drawerAddress-container {
  1475. display: flex;
  1476. flex-direction: column;
  1477. height: 100vh;
  1478. overflow: auto;
  1479. .drawerAddress-container-head {
  1480. padding: 56px 40px;
  1481. background: #FFFFFF;
  1482. display: flex;
  1483. align-items: center;
  1484. justify-content: space-between;
  1485. .drawerAddress-container-head-left {
  1486. display: flex;
  1487. gap: 8px;
  1488. .avatar {
  1489. width: 46px;
  1490. height: 46px;
  1491. border-radius: 50%;
  1492. background: black;
  1493. }
  1494. .info {
  1495. display: flex;
  1496. flex-direction: column;
  1497. gap: 8px;
  1498. .projectName {
  1499. font-weight: 700;
  1500. font-size: 17px;
  1501. line-height: 22px;
  1502. color: #222222;
  1503. }
  1504. .id {
  1505. font-weight: 400;
  1506. font-size: 12px;
  1507. line-height: 16px;
  1508. color: #838383;
  1509. }
  1510. }
  1511. }
  1512. .drawerAddress-container-head-right {
  1513. display: flex;
  1514. align-items: center;
  1515. gap: 48px;
  1516. .complete {
  1517. width: 118px;
  1518. height: 52px;
  1519. border: 2px solid #4A76FF;
  1520. border-radius: 10px;
  1521. gap: 4px;
  1522. display: flex;
  1523. align-items: center;
  1524. justify-content: center;
  1525. font-weight: 700;
  1526. font-size: 15px;
  1527. line-height: 20px;
  1528. color: #2980FF;
  1529. cursor: pointer;
  1530. }
  1531. }
  1532. }
  1533. .drawerAddress-container-main {
  1534. padding: 36px 40px;
  1535. background: #f9fbff;
  1536. flex-grow: 1;
  1537. display: flex;
  1538. flex-direction: column;
  1539. gap: 20px;
  1540. .select {
  1541. display: flex;
  1542. gap: 24px;
  1543. }
  1544. }
  1545. }
  1546. .drawerRecord-container {
  1547. display: flex;
  1548. flex-direction: column;
  1549. height: 100vh;
  1550. overflow: auto;
  1551. position: relative;
  1552. .drawerAddress-container-head {
  1553. padding: 56px 40px;
  1554. background: #FFFFFF;
  1555. display: flex;
  1556. align-items: center;
  1557. justify-content: space-between;
  1558. .drawerAddress-container-head-left {
  1559. display: flex;
  1560. flex-direction: column;
  1561. gap: 8px;
  1562. .back {
  1563. cursor: pointer;
  1564. display: flex;
  1565. align-items: center;
  1566. gap: 4px;
  1567. }
  1568. .missionName {
  1569. display: flex;
  1570. gap: 8px;
  1571. align-items: center;
  1572. .id {
  1573. padding: 0 8px;
  1574. height: 24px;
  1575. background: #F5F5F5;
  1576. border: 1px solid #E0E0E0;
  1577. border-radius: 4px;
  1578. font-weight: 400;
  1579. font-size: 12px;
  1580. line-height: 16px;
  1581. color: #7b7b7b;
  1582. display: flex;
  1583. align-items: center;
  1584. justify-content: center;
  1585. }
  1586. .name {
  1587. font-weight: 700;
  1588. font-size: 21px;
  1589. line-height: 28px;
  1590. color: #181818;
  1591. }
  1592. }
  1593. .text {
  1594. font-weight: 400;
  1595. font-size: 12px;
  1596. line-height: 16px;
  1597. color: #919191;
  1598. }
  1599. }
  1600. }
  1601. .drawerAddress-container-main {
  1602. padding: 36px 40px;
  1603. background: #f9fbff;
  1604. flex-grow: 1;
  1605. display: flex;
  1606. flex-direction: column;
  1607. gap: 20px;
  1608. .drawerAddress-container-head-left {
  1609. display: flex;
  1610. gap: 24px;
  1611. .avatar {
  1612. width: 46px;
  1613. height: 46px;
  1614. border-radius: 50%;
  1615. background: black;
  1616. }
  1617. .info {
  1618. display: flex;
  1619. flex-direction: column;
  1620. gap: 8px;
  1621. .projectName {
  1622. font-weight: 700;
  1623. font-size: 17px;
  1624. line-height: 22px;
  1625. color: #222222;
  1626. }
  1627. .webLink {
  1628. font-weight: 700;
  1629. font-size: 15px;
  1630. line-height: 20px;
  1631. color: #2980FF;
  1632. text-decoration-line: underline;
  1633. display: flex;
  1634. align-items: center;
  1635. gap: 8px
  1636. }
  1637. }
  1638. }
  1639. .horizontalLine {
  1640. width: 100%;
  1641. height: 1px;
  1642. border-bottom: 1px solid #f1f1f1;
  1643. margin-top: 40px;
  1644. margin-bottom: 30px;
  1645. }
  1646. .interactionStrategy {
  1647. width: 100%;
  1648. background: #FFFFFF;
  1649. border: 1px solid #F5F5F5;
  1650. border-radius: 4px;
  1651. padding: 28px;
  1652. display: flex;
  1653. justify-content: space-between;
  1654. flex-wrap: wrap;
  1655. gap: 20px;
  1656. .item {
  1657. display: flex;
  1658. flex-direction: column;
  1659. gap: 12px;
  1660. .title {
  1661. font-weight: 400;
  1662. font-size: 14px;
  1663. line-height: 18px;
  1664. color: #181818;
  1665. display: flex;
  1666. align-items: center;
  1667. gap: 6px;
  1668. }
  1669. .info {
  1670. font-weight: 700;
  1671. font-size: 17px;
  1672. line-height: 22px;
  1673. color: #222222;
  1674. }
  1675. }
  1676. }
  1677. .recordTitle {
  1678. display: flex;
  1679. justify-content: space-between;
  1680. align-items: center;
  1681. .left {
  1682. display: flex;
  1683. flex-direction: column;
  1684. gap: 8px;
  1685. .text {
  1686. font-weight: 700;
  1687. font-size: 21px;
  1688. line-height: 28px;
  1689. color: #181818;
  1690. }
  1691. .number {
  1692. font-weight: 700;
  1693. font-size: 12px;
  1694. line-height: 16px;
  1695. color: #8e8f91;
  1696. }
  1697. }
  1698. .button {
  1699. display: flex;
  1700. align-items: center;
  1701. width: fit-content;
  1702. height: 36px;
  1703. gap: 4px;
  1704. border: 1px solid #E0E0E0;
  1705. border-radius: 40px;
  1706. padding: 0 12px;
  1707. cursor: pointer;
  1708. }
  1709. }
  1710. .table {
  1711. .status {
  1712. display: flex;
  1713. justify-content: space-between;
  1714. cursor: pointer;
  1715. .text {
  1716. display: flex;
  1717. align-items: center;
  1718. gap: 4px;
  1719. font-weight: 400;
  1720. font-size: 15px;
  1721. line-height: 20px;
  1722. color: #222222;
  1723. white-space: nowrap;
  1724. }
  1725. }
  1726. }
  1727. }
  1728. .drawerView-container-footer {
  1729. height: 84px;
  1730. padding: 30px 10px;
  1731. display: flex;
  1732. align-items: center;
  1733. //justify-content: space-around;
  1734. .pagination {
  1735. width: 250px;
  1736. }
  1737. .manageAccount {
  1738. display: flex;
  1739. align-items: center;
  1740. gap: 12px;
  1741. font-weight: 700;
  1742. font-size: 17px;
  1743. line-height: 22px;
  1744. color: #222222;
  1745. }
  1746. .disassociation {
  1747. display: flex;
  1748. align-items: center;
  1749. gap: 12px;
  1750. font-weight: 700;
  1751. font-size: 17px;
  1752. line-height: 22px;
  1753. color: #EB5757;
  1754. }
  1755. }
  1756. .progressBarBox {
  1757. display: flex;
  1758. justify-content: center;
  1759. .progressBar {
  1760. position: absolute;
  1761. top: 168px;
  1762. width: 90%;
  1763. height: 50px;
  1764. background: #2980FF;
  1765. box-shadow: 0px 1px 16px rgba(15, 15, 15, 0.16);
  1766. border-radius: 144px;
  1767. display: flex;
  1768. align-items: center;
  1769. justify-content: space-between;
  1770. .progressBar-two {
  1771. width: 40%;
  1772. height: 50px;
  1773. background: #3b9ffa;
  1774. border-radius: 144px;
  1775. display: flex;
  1776. align-items: center;
  1777. padding-left: 16px;
  1778. gap: 6px;
  1779. font-weight: 400;
  1780. font-size: 14px;
  1781. line-height: 18px;
  1782. color: #FFFFFF;
  1783. }
  1784. .number {
  1785. font-weight: 700;
  1786. font-size: 17px;
  1787. line-height: 22px;
  1788. color: #FFFFFF;
  1789. padding-right: 16px;
  1790. }
  1791. }
  1792. }
  1793. .accountPassword {
  1794. width: 440px;
  1795. height: 374px;
  1796. background: #fbfdff;
  1797. border-radius: 10px;
  1798. position: fixed;
  1799. margin: auto;
  1800. left: 0;
  1801. right: 0;
  1802. top: 0;
  1803. bottom: 0;
  1804. padding: 36px 40px;
  1805. .title {
  1806. font-weight: 700;
  1807. font-size: 21px;
  1808. line-height: 28px;
  1809. color: #212121;
  1810. }
  1811. .inputTitle {
  1812. font-weight: 500;
  1813. font-size: 14px;
  1814. line-height: 18px;
  1815. color: #383838;
  1816. margin-top: 32px;
  1817. margin-bottom: 12px;
  1818. }
  1819. .confirm {
  1820. display: flex;
  1821. align-items: center;
  1822. justify-content: center;
  1823. gap: 8px;
  1824. font-weight: 700;
  1825. font-size: 15px;
  1826. line-height: 20px;
  1827. color: #FFFFFF;
  1828. width: 100%;
  1829. height: 52px;
  1830. background: #2980ff;
  1831. border-radius: 6px;
  1832. margin-top: 12px;
  1833. margin-bottom: 20px;
  1834. cursor: pointer;
  1835. }
  1836. .tip {
  1837. display: flex;
  1838. flex-direction: column;
  1839. gap: 9px;
  1840. margin-top: 36px;
  1841. .title {
  1842. display: flex;
  1843. align-items: center;
  1844. gap: 4px;
  1845. font-weight: 700;
  1846. font-size: 17px;
  1847. line-height: 22px;
  1848. color: #EB5757;
  1849. }
  1850. .description {
  1851. font-weight: 400;
  1852. font-size: 14px;
  1853. line-height: 18px;
  1854. color: #EB5757;
  1855. }
  1856. }
  1857. }
  1858. }
  1859. .drawerStrategy-container {
  1860. display: flex;
  1861. flex-direction: column;
  1862. height: 100vh;
  1863. overflow: auto;
  1864. .drawerAddress-container-head {
  1865. padding: 56px 40px;
  1866. background: #FFFFFF;
  1867. display: flex;
  1868. align-items: center;
  1869. justify-content: space-between;
  1870. .drawerAddress-container-head-left {
  1871. display: flex;
  1872. gap: 8px;
  1873. .info {
  1874. display: flex;
  1875. flex-direction: column;
  1876. gap: 8px;
  1877. .projectName {
  1878. font-weight: 700;
  1879. font-size: 17px;
  1880. line-height: 22px;
  1881. color: #222222;
  1882. }
  1883. .id {
  1884. font-weight: 400;
  1885. font-size: 12px;
  1886. line-height: 16px;
  1887. color: #838383;
  1888. }
  1889. }
  1890. }
  1891. .drawerAddress-container-head-right {
  1892. display: flex;
  1893. align-items: center;
  1894. gap: 48px;
  1895. .complete {
  1896. width: 118px;
  1897. height: 52px;
  1898. border: 2px solid #4A76FF;
  1899. border-radius: 10px;
  1900. gap: 4px;
  1901. display: flex;
  1902. align-items: center;
  1903. justify-content: center;
  1904. font-weight: 700;
  1905. font-size: 15px;
  1906. line-height: 20px;
  1907. color: #2980FF;
  1908. cursor: pointer;
  1909. }
  1910. }
  1911. }
  1912. .drawerAddress-container-main {
  1913. padding: 36px 40px;
  1914. background: #f9fbff;
  1915. flex-grow: 1;
  1916. display: flex;
  1917. flex-direction: column;
  1918. gap: 12px;
  1919. .item {
  1920. display: flex;
  1921. flex-direction: column;
  1922. gap: 12px;
  1923. .title {
  1924. font-weight: 400;
  1925. font-size: 14px;
  1926. line-height: 18px;
  1927. color: #181818;
  1928. }
  1929. }
  1930. }
  1931. .accountPassword {
  1932. width: 440px;
  1933. height: 374px;
  1934. background: #fbfdff;
  1935. border-radius: 10px;
  1936. position: fixed;
  1937. margin: auto;
  1938. left: 0;
  1939. right: 0;
  1940. top: 0;
  1941. bottom: 0;
  1942. padding: 36px 40px;
  1943. .title {
  1944. font-weight: 700;
  1945. font-size: 21px;
  1946. line-height: 28px;
  1947. color: #212121;
  1948. }
  1949. .inputTitle {
  1950. font-weight: 500;
  1951. font-size: 14px;
  1952. line-height: 18px;
  1953. color: #383838;
  1954. margin-top: 32px;
  1955. margin-bottom: 12px;
  1956. }
  1957. .confirm {
  1958. display: flex;
  1959. align-items: center;
  1960. justify-content: center;
  1961. gap: 8px;
  1962. font-weight: 700;
  1963. font-size: 15px;
  1964. line-height: 20px;
  1965. color: #FFFFFF;
  1966. width: 100%;
  1967. height: 52px;
  1968. background: #2980ff;
  1969. border-radius: 6px;
  1970. margin-top: 12px;
  1971. margin-bottom: 20px;
  1972. cursor: pointer;
  1973. }
  1974. .tip {
  1975. display: flex;
  1976. flex-direction: column;
  1977. gap: 9px;
  1978. margin-top: 36px;
  1979. .title {
  1980. display: flex;
  1981. align-items: center;
  1982. gap: 4px;
  1983. font-weight: 700;
  1984. font-size: 17px;
  1985. line-height: 22px;
  1986. color: #EB5757;
  1987. }
  1988. .description {
  1989. font-weight: 400;
  1990. font-size: 14px;
  1991. line-height: 18px;
  1992. color: #EB5757;
  1993. }
  1994. }
  1995. }
  1996. }
  1997. }
  1998. </style>