TaskCenterPanel.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. <template>
  2. <!-- 任务中心浮动面板 -->
  3. <transition name="task-panel">
  4. <div v-if="open" class="task-panel" :class="{ expanded: showDetail }">
  5. <el-card class="task-panel-card" shadow="always">
  6. <div class="task-panel-header">
  7. <div class="title">
  8. <span class="title-icon">📋</span>
  9. 任务中心
  10. </div>
  11. <el-button text :icon="Close" @click="handleClose" />
  12. </div>
  13. <el-tabs v-model="activeTab" class="task-tabs" @tab-change="handleTabChange">
  14. <el-tab-pane label="全部" name="all" />
  15. <el-tab-pane name="processing">
  16. <template #label>
  17. <span class="tab-label">
  18. <span class="tab-text">运行中</span>
  19. <span class="tab-count" v-if="statusTotals.processing > 0">{{ statusTotals.processing }}</span>
  20. </span>
  21. </template>
  22. </el-tab-pane>
  23. <el-tab-pane label="已完成" name="completed" />
  24. <el-tab-pane name="failed">
  25. <template #label>
  26. <span class="tab-label">
  27. <span class="tab-text">失败</span>
  28. <span class="tab-count error" v-if="statusTotals.failed > 0">{{ statusTotals.failed }}</span>
  29. </span>
  30. </template>
  31. </el-tab-pane>
  32. <el-tab-pane name="pending">
  33. <template #label>
  34. <span class="tab-label">
  35. <span class="tab-text">等待中</span>
  36. <span class="tab-count" v-if="statusTotals.pending > 0">{{ statusTotals.pending }}</span>
  37. </span>
  38. </template>
  39. </el-tab-pane>
  40. </el-tabs>
  41. <div class="task-body">
  42. <!-- 左侧任务列表 -->
  43. <div class="task-list" v-loading="listLoading">
  44. <div
  45. v-for="item in list"
  46. :key="item.id"
  47. class="task-card"
  48. :class="[{ active: selectedId === item.id }, statusClass(item.status)]"
  49. @click="handleSelect(item.id)"
  50. >
  51. <div class="task-title-row">
  52. <div class="task-title">{{ item.name || `任务 ${item.id?.slice(0, 8)}` }}</div>
  53. <el-tag size="small" :type="tagType(item.status)">{{ statusText(item.status) }}</el-tag>
  54. </div>
  55. <div class="task-sub" v-if="item.documentId">
  56. <span>文档: {{ item.documentId?.slice(0, 8) }}...</span>
  57. </div>
  58. <div class="task-meta">
  59. <div class="task-meta-left">
  60. <div class="task-time">{{ formatRelativeTime(item.createdAt || item.startedAt) }}</div>
  61. <template v-if="item.status === 'processing' && item.startedAt">
  62. <span class="task-meta-separator">·</span>
  63. <div class="task-duration-inline">
  64. <span class="task-duration-value">{{ formatElapsedTime(item.startedAt) }}</span>
  65. </div>
  66. </template>
  67. </div>
  68. <div class="task-meta-right">
  69. <span class="task-step" v-if="item.currentStep">{{ stepText(item.currentStep) }}</span>
  70. </div>
  71. </div>
  72. <!-- 进度条区域 -->
  73. <div class="task-progress-section" v-if="selectedId !== item.id">
  74. <template v-if="item.status === 'processing' || item.status === 'pending'">
  75. <div class="task-progress-row" v-if="item.progress != null">
  76. <el-progress :percentage="item.progress" :stroke-width="6" />
  77. <span class="task-progress-percent">{{ item.progress }}%</span>
  78. </div>
  79. </template>
  80. <template v-else-if="item.status === 'failed'">
  81. <div class="task-progress-row" v-if="item.progress != null">
  82. <el-progress :percentage="item.progress" :stroke-width="6" status="exception" />
  83. <span class="task-progress-percent task-progress-percent--error">{{ item.progress }}%</span>
  84. </div>
  85. </template>
  86. </div>
  87. <!-- 操作按钮 -->
  88. <div class="task-actions">
  89. <el-button
  90. text
  91. type="danger"
  92. size="small"
  93. :icon="Delete"
  94. @click.stop="handleDelete(item)"
  95. >
  96. 删除
  97. </el-button>
  98. </div>
  99. </div>
  100. <el-empty v-if="!listLoading && (!list || list.length === 0)" description="暂无任务" />
  101. </div>
  102. <!-- 右侧任务详情 -->
  103. <div class="task-detail" :class="{ show: showDetail }" v-loading="detailLoading">
  104. <template v-if="detail">
  105. <div class="detail-header">
  106. <h3>{{ detail.name || `任务详情` }}</h3>
  107. <el-tag :type="tagType(detail.status)">{{ statusText(detail.status) }}</el-tag>
  108. </div>
  109. <div class="detail-meta">
  110. <span>开始时间:{{ formatDateTime(detail.startedAt) || '-' }}</span>
  111. <span v-if="detail.completedAt">| 完成时间:{{ formatDateTime(detail.completedAt) }}</span>
  112. </div>
  113. <div class="detail-progress">
  114. <el-progress :percentage="detail.progress ?? 0" :status="detail.status === 'failed' ? 'exception' : undefined" />
  115. <div class="progress-info">
  116. <div class="current-stage" v-if="detail.currentStep">
  117. <span class="current-stage-label">当前阶段:</span>
  118. <span class="current-stage-value">{{ stepText(detail.currentStep) }}</span>
  119. </div>
  120. </div>
  121. </div>
  122. <!-- 失败信息 -->
  123. <template v-if="detail.status === 'failed' && detail.errorMessage">
  124. <div class="detail-section">错误信息</div>
  125. <div class="task-error-info">
  126. <div class="error-remark">{{ detail.errorMessage }}</div>
  127. </div>
  128. </template>
  129. <!-- 执行阶段 -->
  130. <div class="detail-section">执行阶段</div>
  131. <div v-if="detail.stages && detail.stages.length" class="stages">
  132. <div v-for="s in detail.stages" :key="s.stageName" class="stage-row">
  133. <div class="stage-name">
  134. <span class="stage-icon" :class="s.status">
  135. <el-icon v-if="s.status === 'completed'"><CircleCheckFilled /></el-icon>
  136. <el-icon v-else-if="s.status === 'in_progress'"><Loading /></el-icon>
  137. <el-icon v-else-if="s.status === 'failed'"><CircleCloseFilled /></el-icon>
  138. <el-icon v-else><Clock /></el-icon>
  139. </span>
  140. {{ s.displayName }}
  141. </div>
  142. <div class="stage-meta">
  143. <span :class="['stage-status', s.status]">{{ stageStatusText(s.status) }}</span>
  144. <span v-if="s.resultSummary" class="stage-result">{{ s.resultSummary }}</span>
  145. </div>
  146. </div>
  147. </div>
  148. <el-empty v-else description="暂无阶段数据" :image-size="60" />
  149. </template>
  150. <template v-else>
  151. <el-empty description="请选择任务查看详情" :image-size="80" />
  152. </template>
  153. </div>
  154. </div>
  155. </el-card>
  156. </div>
  157. </transition>
  158. </template>
  159. <script setup>
  160. import { computed, watch, onMounted } from 'vue'
  161. import { Close, Delete, CircleCheckFilled, CircleCloseFilled, Loading, Clock } from '@element-plus/icons-vue'
  162. import { useTaskCenterStore } from '@/stores/taskCenter'
  163. import { ElMessage, ElMessageBox } from 'element-plus'
  164. const store = useTaskCenterStore()
  165. const open = computed(() => store.open)
  166. const list = computed(() => store.list)
  167. const listLoading = computed(() => store.listLoading)
  168. const detailLoading = computed(() => store.detailLoading)
  169. const selectedId = computed(() => store.selectedId)
  170. const detail = computed(() => store.detail)
  171. const showDetail = computed(() => !!store.selectedId)
  172. const statusTotals = computed(() => store.statusTotals || { processing: 0, failed: 0, pending: 0 })
  173. const activeTab = computed({
  174. get: () => store.activeTab,
  175. set: (v) => store.setActiveTab(v)
  176. })
  177. function handleClose() {
  178. store.close()
  179. }
  180. function handleTabChange() {
  181. store.selectedId = null
  182. store.detail = null
  183. store.fetchList()
  184. }
  185. function handleSelect(id) {
  186. if (store.selectedId === id) {
  187. store.selectedId = null
  188. store.detail = null
  189. return
  190. }
  191. store.selectTask(id)
  192. }
  193. watch(
  194. () => store.open,
  195. (val) => {
  196. if (val) {
  197. store.selectedId = null
  198. store.detail = null
  199. store.fetchRunningCount()
  200. store.fetchStatusTotals()
  201. store.fetchList()
  202. store.startListPolling()
  203. } else {
  204. store.stopListPolling()
  205. }
  206. }
  207. )
  208. onMounted(() => {
  209. store.fetchList({ pageNum: 1, pageSize: 20 })
  210. })
  211. // 工具函数
  212. function tagType(status) {
  213. if (status === 'processing') return 'primary'
  214. if (status === 'completed') return 'success'
  215. if (status === 'failed' || status === 'partial') return 'danger'
  216. return 'info'
  217. }
  218. function statusClass(status) {
  219. if (status === 'processing') return 'status-processing'
  220. if (status === 'completed') return 'status-completed'
  221. if (status === 'failed' || status === 'partial') return 'status-failed'
  222. return 'status-pending'
  223. }
  224. function statusText(status) {
  225. if (status === 'processing') return '运行中'
  226. if (status === 'completed') return '已完成'
  227. if (status === 'failed') return '失败'
  228. if (status === 'partial') return '部分失败'
  229. return '等待中'
  230. }
  231. function stageStatusText(status) {
  232. if (status === 'in_progress') return '进行中'
  233. if (status === 'completed') return '已完成'
  234. if (status === 'failed') return '失败'
  235. return '等待中'
  236. }
  237. function stepText(step) {
  238. const stepMap = {
  239. // 阶段名称映射(与后端 ParseTaskCenterService.buildStages 保持一致)
  240. 'upload': '文件上传',
  241. 'parse': '文本解析',
  242. 'rag': 'RAG向量化',
  243. 'structured': '结构化解析',
  244. 'ner': 'NER实体提取',
  245. 'graph': '图数据库构建',
  246. // 兼容旧的步骤名称
  247. 'parsing': '文本解析',
  248. 'pdf_extraction': 'PDF提取',
  249. 'word_extraction': 'Word提取',
  250. 'excel_extraction': 'Excel提取',
  251. 'ocr': 'OCR识别',
  252. 'saving': '保存文本',
  253. 'layout_analysis': '版面分析',
  254. 'recording': '记录存储',
  255. 'completed': '已完成',
  256. 'failed': '失败'
  257. }
  258. return stepMap[step] || step
  259. }
  260. function formatRelativeTime(v) {
  261. if (!v) return ''
  262. const d = parseDateTime(v)
  263. if (!d) return ''
  264. const now = new Date()
  265. const diffMs = now.getTime() - d.getTime()
  266. const diffSec = Math.floor(diffMs / 1000)
  267. if (diffSec < 60 && diffSec >= 0) return `${diffSec}秒前`
  268. const diffMin = Math.floor(diffSec / 60)
  269. if (diffMin < 60 && diffMin >= 0) return `${diffMin}分钟前`
  270. const diffHour = Math.floor(diffMin / 60)
  271. if (diffHour < 24 && diffHour >= 0) return `${diffHour}小时前`
  272. return formatDateTime(v)
  273. }
  274. function formatElapsedTime(startTime) {
  275. const start = parseDateTime(startTime)
  276. if (!start) return '-'
  277. const now = new Date()
  278. const diffMs = Math.max(0, now.getTime() - start.getTime())
  279. return formatMs(diffMs)
  280. }
  281. function formatDateTime(v) {
  282. if (!v) return ''
  283. if (typeof v === 'string') return v
  284. return v.toLocaleString('zh-CN')
  285. }
  286. function parseDateTime(v) {
  287. if (!v) return null
  288. if (v instanceof Date) return v
  289. if (typeof v !== 'string') return null
  290. const s = v.replace(' ', 'T')
  291. const d = new Date(s)
  292. if (isNaN(d.getTime())) return null
  293. return d
  294. }
  295. function formatMs(ms) {
  296. if (ms == null) return '-'
  297. const s = Math.floor(ms / 1000)
  298. if (s < 60) return `${s}s`
  299. const m = Math.floor(s / 60)
  300. const rs = s % 60
  301. if (m < 60) return `${m}m${rs}s`
  302. const h = Math.floor(m / 60)
  303. const rm = m % 60
  304. return `${h}h${rm}m`
  305. }
  306. async function handleDelete(item) {
  307. try {
  308. await ElMessageBox.confirm(
  309. `确认删除任务"${item.name || item.id}"吗?`,
  310. '删除确认',
  311. {
  312. confirmButtonText: '确定',
  313. cancelButtonText: '取消',
  314. type: 'warning'
  315. }
  316. )
  317. await store.deleteTask(item.id)
  318. ElMessage.success('删除成功')
  319. } catch (error) {
  320. if (error !== 'cancel') {
  321. ElMessage.error(error?.message || '删除失败')
  322. }
  323. }
  324. }
  325. </script>
  326. <style scoped>
  327. .task-panel {
  328. position: fixed;
  329. right: 16px;
  330. bottom: 16px;
  331. width: 480px;
  332. max-width: calc(100vw - 32px);
  333. z-index: 4000;
  334. transition: width 0.2s ease;
  335. }
  336. .task-panel.expanded {
  337. width: 900px;
  338. }
  339. .task-panel-card {
  340. border-radius: 12px;
  341. border: 1px solid rgba(0, 0, 0, 0.06);
  342. box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  343. }
  344. .task-panel-header {
  345. display: flex;
  346. align-items: center;
  347. justify-content: space-between;
  348. margin-bottom: 12px;
  349. }
  350. .task-panel-header .title {
  351. font-weight: 700;
  352. font-size: 16px;
  353. display: flex;
  354. align-items: center;
  355. gap: 8px;
  356. }
  357. .task-panel-header .title-icon {
  358. font-size: 20px;
  359. }
  360. .task-tabs :deep(.el-tabs__item) {
  361. font-weight: 600;
  362. }
  363. .tab-label {
  364. display: inline-flex;
  365. align-items: center;
  366. gap: 6px;
  367. }
  368. .tab-count {
  369. display: inline-flex;
  370. align-items: center;
  371. justify-content: center;
  372. min-width: 18px;
  373. height: 18px;
  374. padding: 0 6px;
  375. border-radius: 999px;
  376. font-size: 12px;
  377. color: #fff;
  378. background: var(--el-color-primary);
  379. }
  380. .tab-count.error {
  381. background: var(--el-color-danger);
  382. }
  383. .task-body {
  384. display: flex;
  385. gap: 0;
  386. height: 480px;
  387. }
  388. .task-panel.expanded .task-body {
  389. gap: 16px;
  390. }
  391. .task-list {
  392. width: 100%;
  393. overflow: auto;
  394. padding-right: 6px;
  395. transition: width 0.2s ease;
  396. }
  397. .task-panel.expanded .task-list {
  398. width: 360px;
  399. border-right: 1px solid #ebeef5;
  400. padding-right: 16px;
  401. }
  402. .task-card {
  403. padding: 12px;
  404. border: 1px solid rgba(0, 0, 0, 0.06);
  405. border-radius: 10px;
  406. margin-bottom: 10px;
  407. cursor: pointer;
  408. transition: all 0.15s ease;
  409. background: #fff;
  410. }
  411. .task-card:hover {
  412. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  413. transform: translateY(-1px);
  414. }
  415. .task-card.status-processing {
  416. background-color: rgba(64, 158, 255, 0.05);
  417. border-color: rgba(64, 158, 255, 0.2);
  418. }
  419. .task-card.status-completed {
  420. background-color: rgba(103, 194, 58, 0.05);
  421. }
  422. .task-card.status-failed {
  423. background-color: rgba(245, 108, 108, 0.05);
  424. border-color: rgba(245, 108, 108, 0.2);
  425. }
  426. .task-card.status-pending {
  427. background-color: rgba(144, 147, 153, 0.05);
  428. }
  429. .task-card.active {
  430. border-color: var(--el-color-primary);
  431. box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15);
  432. }
  433. .task-title-row {
  434. display: flex;
  435. align-items: center;
  436. justify-content: space-between;
  437. gap: 10px;
  438. margin-bottom: 4px;
  439. }
  440. .task-title {
  441. font-weight: 600;
  442. font-size: 14px;
  443. overflow: hidden;
  444. text-overflow: ellipsis;
  445. white-space: nowrap;
  446. }
  447. .task-sub {
  448. font-size: 12px;
  449. color: #909399;
  450. margin-bottom: 8px;
  451. }
  452. .task-meta {
  453. display: flex;
  454. align-items: center;
  455. justify-content: space-between;
  456. margin-bottom: 8px;
  457. }
  458. .task-meta-left {
  459. display: flex;
  460. align-items: center;
  461. gap: 6px;
  462. font-size: 12px;
  463. color: #909399;
  464. }
  465. .task-meta-separator {
  466. color: #c0c4cc;
  467. }
  468. .task-duration-inline {
  469. display: flex;
  470. align-items: center;
  471. }
  472. .task-duration-value {
  473. font-weight: 600;
  474. color: var(--el-color-primary);
  475. }
  476. .task-meta-right {
  477. display: flex;
  478. align-items: center;
  479. }
  480. .task-step {
  481. font-size: 12px;
  482. color: var(--el-color-primary);
  483. font-weight: 500;
  484. }
  485. .task-progress-section {
  486. margin-top: 8px;
  487. }
  488. .task-progress-row {
  489. display: flex;
  490. align-items: center;
  491. gap: 8px;
  492. }
  493. .task-progress-row :deep(.el-progress) {
  494. flex: 1;
  495. }
  496. .task-progress-row :deep(.el-progress__text) {
  497. display: none;
  498. }
  499. .task-progress-percent {
  500. font-size: 12px;
  501. color: #606266;
  502. font-weight: 600;
  503. min-width: 36px;
  504. text-align: right;
  505. }
  506. .task-progress-percent--error {
  507. color: var(--el-color-danger);
  508. }
  509. .task-actions {
  510. display: flex;
  511. align-items: center;
  512. justify-content: flex-end;
  513. margin-top: 8px;
  514. padding-top: 8px;
  515. border-top: 1px solid rgba(0, 0, 0, 0.06);
  516. }
  517. .task-detail {
  518. overflow: auto;
  519. width: 0;
  520. opacity: 0;
  521. pointer-events: none;
  522. transition: all 0.2s ease;
  523. }
  524. .task-detail.show {
  525. width: calc(100% - 376px);
  526. opacity: 1;
  527. pointer-events: auto;
  528. padding-left: 16px;
  529. }
  530. .detail-header {
  531. display: flex;
  532. align-items: center;
  533. justify-content: space-between;
  534. margin-bottom: 12px;
  535. }
  536. .detail-header h3 {
  537. margin: 0;
  538. font-size: 16px;
  539. }
  540. .detail-meta {
  541. font-size: 12px;
  542. color: #909399;
  543. margin-bottom: 12px;
  544. }
  545. .detail-progress {
  546. padding: 12px;
  547. border-radius: 8px;
  548. border: 1px solid rgba(0, 0, 0, 0.06);
  549. background: #fafafa;
  550. margin-bottom: 16px;
  551. }
  552. .progress-info {
  553. margin-top: 8px;
  554. }
  555. .current-stage {
  556. font-size: 13px;
  557. display: flex;
  558. align-items: center;
  559. gap: 4px;
  560. }
  561. .current-stage-label {
  562. color: #909399;
  563. }
  564. .current-stage-value {
  565. color: var(--el-color-primary);
  566. font-weight: 600;
  567. }
  568. .detail-section {
  569. margin-top: 16px;
  570. font-weight: 600;
  571. margin-bottom: 8px;
  572. font-size: 14px;
  573. }
  574. .task-error-info {
  575. padding: 12px;
  576. border-radius: 8px;
  577. border: 1px solid rgba(245, 108, 108, 0.3);
  578. background: rgba(245, 108, 108, 0.05);
  579. }
  580. .error-remark {
  581. color: var(--el-color-danger);
  582. font-size: 13px;
  583. line-height: 1.6;
  584. word-break: break-word;
  585. }
  586. .stages {
  587. border: 1px solid #ebeef5;
  588. border-radius: 8px;
  589. overflow: hidden;
  590. }
  591. .stage-row {
  592. padding: 10px 12px;
  593. border-bottom: 1px solid #ebeef5;
  594. display: flex;
  595. align-items: center;
  596. justify-content: space-between;
  597. }
  598. .stage-row:last-child {
  599. border-bottom: none;
  600. }
  601. .stage-name {
  602. display: flex;
  603. align-items: center;
  604. gap: 8px;
  605. font-size: 13px;
  606. }
  607. .stage-icon {
  608. display: flex;
  609. align-items: center;
  610. justify-content: center;
  611. width: 20px;
  612. height: 20px;
  613. }
  614. .stage-icon.completed {
  615. color: var(--el-color-success);
  616. }
  617. .stage-icon.in_progress {
  618. color: var(--el-color-primary);
  619. }
  620. .stage-icon.failed {
  621. color: var(--el-color-danger);
  622. }
  623. .stage-icon.pending {
  624. color: #c0c4cc;
  625. }
  626. .stage-meta {
  627. display: flex;
  628. align-items: center;
  629. gap: 8px;
  630. font-size: 12px;
  631. }
  632. .stage-status {
  633. padding: 2px 8px;
  634. border-radius: 4px;
  635. background: #f5f7fa;
  636. }
  637. .stage-status.completed {
  638. color: var(--el-color-success);
  639. background: rgba(103, 194, 58, 0.1);
  640. }
  641. .stage-status.in_progress {
  642. color: var(--el-color-primary);
  643. background: rgba(64, 158, 255, 0.1);
  644. }
  645. .stage-status.failed {
  646. color: var(--el-color-danger);
  647. background: rgba(245, 108, 108, 0.1);
  648. }
  649. .stage-result {
  650. color: #909399;
  651. }
  652. /* 动画 */
  653. .task-panel-enter-active,
  654. .task-panel-leave-active {
  655. transition: all 0.2s ease;
  656. }
  657. .task-panel-enter-from,
  658. .task-panel-leave-to {
  659. opacity: 0;
  660. transform: translateY(10px);
  661. }
  662. @media (max-width: 768px) {
  663. .task-panel {
  664. width: calc(100vw - 32px);
  665. left: 16px;
  666. right: 16px;
  667. }
  668. .task-body {
  669. flex-direction: column;
  670. height: 60vh;
  671. }
  672. .task-panel.expanded .task-list {
  673. width: 100%;
  674. border-right: none;
  675. border-bottom: 1px solid #ebeef5;
  676. padding-bottom: 12px;
  677. max-height: 200px;
  678. }
  679. .task-detail.show {
  680. width: 100%;
  681. padding-left: 0;
  682. padding-top: 12px;
  683. }
  684. }
  685. </style>