taskViewDetail.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157
  1. <template>
  2. <div class="bg-project" @click="display = false">
  3. <el-container>
  4. <el-header class="main-header">
  5. <div class="top-page-title">
  6. <div v-if="form_query.stage === 1 || form_query.stage === 2 || form_query.stage === 3" class="task-stage">
  7. <div class="task-stage-main">
  8. <img v-if="form_query.stage === 1" :src="normalImg">
  9. <img v-if="form_query.stage === 2" :src="stageImg">
  10. <img v-if="form_query.stage === 3" :src="warningImg">
  11. <el-tooltip class="item" effect="dark" :disabled="form_query.lateMsg===null" :content="form_query.stageString + ':' + form_query.lateMsg" placement="bottom">
  12. <div class="task-stage-title">
  13. <span :class="{'small-size':form_query.stage === 2}">{{ form_query.stageString }}</span>
  14. </div>
  15. </el-tooltip>
  16. </div>
  17. </div>
  18. <div class="header-title">
  19. <span class="title-id">
  20. TASK-{{ form_query.id }}
  21. <el-tooltip v-if="form_query.isDirectlyFromDpm === 0 || form_query.isDirectlyFromDpm === 1" class="item" effect="dark" :content="`【${form_query.relatedDpmTaskInfo.taskId}】【${form_query.relatedDpmTaskInfo.name}】`" placement="top">
  22. <span class="synchronize-icon">
  23. <img src="@/assets/home_images/WX20200914-141851@2x.png" @click="dpmUrl(form_query.dpmUrl)">
  24. <i v-if="form_query.isDirectlyFromDpm === 0" class="el-icon-circle-close sty-icon" @click="deleteDpl()" />
  25. </span>
  26. </el-tooltip>
  27. <el-popover v-if="form_query.isDirectlyFromDpm === -1" placement="bottom" title="关联望岳任务" width="400" trigger="click" popper-class="synchronize">
  28. <div class="blueStr" />
  29. <div class="task-object-list">
  30. <div v-for="(item, index) in dplOption" :key="index" class="task-item" @click="throttle(item.id)">
  31. <span>{{ item.moduleInfoName }}</span>
  32. <span class="item-name">{{ item.name }}</span>
  33. <span class="item-id">{{ item.taskId }}</span>
  34. </div>
  35. </div>
  36. <el-button v-if="form_query.isDirectlyFromDpm === -1" slot="reference" size="mini" type="text" @click.once="getDplList(taskId)">关联望岳</el-button>
  37. </el-popover>
  38. </span>
  39. <el-tooltip class="item" effect="dark" :content="form_query.name" placement="bottom">
  40. <span
  41. v-clipboard:copy="form_query.name"
  42. v-clipboard:success="copyName"
  43. class="title-name"
  44. >{{ form_query.name }}</span>
  45. </el-tooltip>
  46. </div>
  47. <el-button v-show="form_query.status === -2" disabled plain size="mini">Hold</el-button>
  48. <el-dropdown v-show="form_query.status !== -2" placement="bottom" @command="updateStatus">
  49. <el-button size="mini" plainclass="el-dropdown-link drop_down">
  50. {{ getStatus.name }}
  51. <i class="el-icon-arrow-down el-icon--right" />
  52. </el-button>
  53. <el-dropdown-menu slot="dropdown" align="center">
  54. <el-dropdown-item
  55. v-for="item in allStatus"
  56. :key="item.name"
  57. :command="{status:item.code,label:item.name}"
  58. :disabled="form_query.status === item.code ? true : false"
  59. >{{ item.name }}</el-dropdown-item>
  60. </el-dropdown-menu>
  61. </el-dropdown>
  62. </div>
  63. <div class="top-tabs">
  64. <el-tabs v-model="activeName">
  65. <el-tab-pane label="概览" name="1" />
  66. <el-tab-pane label="子任务" name="2" />
  67. <el-tab-pane label="缺陷" name="3" />
  68. <el-tab-pane label="报告" name="4" />
  69. <el-tab-pane label="统计" name="5" />
  70. <el-tab-pane label="发布" name="6" />
  71. </el-tabs>
  72. </div>
  73. <div class="top-control">
  74. <el-dropdown placement="bottom">
  75. <i class="el-icon-circle-plus icon-add" />
  76. <el-dropdown-menu slot="dropdown">
  77. <el-dropdown-item @click.native="created_bug()">新建缺陷</el-dropdown-item>
  78. <el-dropdown-item @click.native="createChildren = true">新建子任务</el-dropdown-item>
  79. <el-dropdown-item @click.native="createReport(1, form_query)">新建提测报告</el-dropdown-item>
  80. <el-dropdown-item @click.native="createReport(2, form_query)">新建测试日报</el-dropdown-item>
  81. <el-dropdown-item @click.native="createReport(3, form_query)">新建准出报告</el-dropdown-item>
  82. </el-dropdown-menu>
  83. </el-dropdown>
  84. <div class="line" />
  85. <span style="vertical-align: bottom; cursor: pointer; color: #6F7C93;" @click.stop="setChild(), display = true"><img style="width: 20px; display: inline-block;" :src="image_url">&nbsp; {{ num }} &nbsp;</span>
  86. <div class="line" />
  87. <i class="el-icon-setting icon-delete" @click="open_created" />
  88. <div class="line" />
  89. <i class="el-icon-delete icon-delete" @click="deleteVisible = true" />
  90. </div>
  91. </el-header>
  92. <el-container v-show="activeName === '1'">
  93. <section class="main-section">
  94. <div class="Layout_space_between">
  95. <div class="el-main-title">
  96. <div class="title-left-icon" />
  97. <div class="title-left-name">工作流</div>
  98. </div>
  99. <div>
  100. <el-button v-if="form_query.isDirectlyFromDpm === 0 || form_query.isDirectlyFromDpm === 1" size="mini" @click="dialogVisible = true">{{ '拉取望岳状态及工作流' }}</el-button>
  101. <el-popover
  102. v-model="visible"
  103. placement="bottom-end"
  104. width="300px"
  105. :visible-arrow="false"
  106. trigger="manual"
  107. >
  108. <el-input
  109. v-model="textarea2"
  110. type="textarea"
  111. rows="5"
  112. style="width:300px"
  113. placeholder="请输入Hold原因(选填)"
  114. />
  115. <div style="text-align: right; margin-top: 10px;">
  116. <el-button size="mini" type="text" @click="visible = false">取消</el-button>
  117. <el-button type="primary" size="mini" @click="taskHold(textarea2)">确定</el-button>
  118. </div>
  119. <el-button slot="reference" class="el-btn-size" size="mini" @click="changeBtn">{{ form_query.status === -2 ? HoldTask = '解除 Hold' : HoldTask = 'Hold 任务' }}</el-button>
  120. </el-popover>
  121. </div>
  122. </div>
  123. <timeLine :id="taskId" ref="timeLine" :name="'任务'" />
  124. </section>
  125. </el-container>
  126. <!-- 概览 -->
  127. <el-container v-show="activeName === '1'" class="is-vertical">
  128. <section class="main-section">
  129. <div class="el-main-title">
  130. <div class="title-left-icon" />
  131. <div class="title-left-name">基础信息</div>
  132. </div>
  133. <div class="detail-info">
  134. <el-form :inline="true" :model="form_query" class="demo-form-inline" label-position="left" label-width="100px">
  135. <el-form-item label="所属项目:" class="module">
  136. <div v-if="form_query.projectId !== -1" @click="jump('项目详情',form_query)">{{ form_query.projectName }}</div>
  137. <template v-else>{{ form_query.projectName }}</template>
  138. </el-form-item>
  139. <el-form-item label="所属需求:" class="module">
  140. <div v-if="form_query.requireId !== -1" @click="jumps('需求详情',form_query)">{{ form_query.requireName }}</div>
  141. <template v-else>{{ form_query.requireName }}</template>
  142. </el-form-item>
  143. <el-form-item label="所属模块:" class="module">
  144. <div>{{ form_query.moduleInfoName }}</div>
  145. </el-form-item>
  146. </el-form>
  147. <el-form :inline="true" :model="form_query" class="demo-form-inline" label-position="left" label-width="100px">
  148. <el-form-item label="开发负责人:">
  149. <search-people :value.sync="form_query.rdOwner" @change="changeArea" />
  150. </el-form-item>
  151. <el-form-item label="测试负责人:">
  152. <search-people :value.sync="form_query.qaOwner" @change="changeArea" />
  153. </el-form-item>
  154. <el-form-item label="是否跟版:">
  155. <el-select v-model="form_query.followVersion" size="small" filterable placeholder="请选择" @change="changeArea">
  156. <el-option v-for="(item,index) in dependList" :key="item.msg + index" :label="item.msg" :value="item.code" />
  157. </el-select>
  158. </el-form-item>
  159. </el-form>
  160. <el-form :inline="true" :model="form_query" class="demo-form-inline" label-position="left" label-width="100px">
  161. <el-form-item label="跟版客户端:">
  162. <el-select v-if="form_query.followVersion === 1" v-model="form_query.involveApp" size="small" filterable placeholder="请选择" @change="changeArea">
  163. <el-option v-for="(item,index) in appClient" :key="item.msg + index" :label="item.msg" :value="item.code" />
  164. </el-select>
  165. </el-form-item>
  166. <el-form-item label="任务进度:">
  167. <div class="form-progress">
  168. <el-progress :percentage="Number(form_query.rate && form_query.rate.substring(0,4)) || 0" color="#409eff" />
  169. </div>
  170. </el-form-item>
  171. </el-form>
  172. <el-form :inline="true" :model="form_query" class="demo-form-inline" style="white-space: nowrap;" label-position="left" label-width="100px">
  173. <el-form-item label="技术文档:" class="module">
  174. <span class="PRD-link"><a :href="form_query.devUrl" target="_blank">{{ form_query.devUrl }}</a></span>
  175. </el-form-item>
  176. </el-form>
  177. </div>
  178. </section>
  179. <section class="main-section">
  180. <div class="el-main-title">
  181. <div class="title-left-icon" />
  182. <div class="title-left-name">
  183. <div>任务计划
  184. <el-tooltip class="item" effect="dark" :content="isScheduleLocked === 1? '点击解锁排期' : '点击锁定排期'" placement="top">
  185. <span
  186. v-if="!form_query.needGrey || isScheduleLocked === 1 "
  187. class="titleStatus"
  188. :class=" isScheduleLocked === 1 ? 'el-icon-lock' : 'el-icon-unlock'"
  189. @click="changeSchedule"
  190. >
  191. {{ isScheduleLocked === 1 ? '已锁定' : '未锁定' }}
  192. </span>
  193. </el-tooltip>
  194. <span v-if="isShowLockedTime" class="tip">
  195. <i class="el-icon-timer icon" />剩余{{ autoLockScheduleCountdown }}将自动锁定
  196. </span>
  197. </div>
  198. </div>
  199. </div>
  200. <section class="main-section">
  201. <div class="task-help-tips">
  202. <div class="tips-icon">
  203. <i class="el-icon-question" />
  204. <span> 帮助提示</span>
  205. </div>
  206. <div class="tips-context">
  207. .每个任务仅支持一次提测和一次准出,请合理拆解任务后再排期。<br>
  208. .任务状态未变更【已排期】前,排期不可锁定;状态变更为【已排期】时,任务排期将被系统自动锁定。<br>
  209. .需求排期锁定时,任务排期将全部被锁定;所有任务锁定时,需求排期将被系统自动锁定。<br>
  210. .任务排期锁定后,如果解锁了排期,排期将在24小时后再次自动锁定。请解锁后,及时进行排期调整。<br>
  211. .任务锁定时,系统会自动将任务排期及交付时间同步至望岳。若多个任务关联同一个望岳任务,同步时排期会汇总一并同步到望岳,交付时间则按最晚日期同步至望岳。<br>
  212. </div>
  213. </div>
  214. <div class="list-tips">
  215. <div class="tips">
  216. <i v-if="tips" class="el-icon-warning-outline" style="color:#e88792;" />
  217. <span v-if="tips" style="color:#e88792;">当前任务归属的需求计划排期呈锁定状态,当前任务的排期无法同步到需求计划中去,请将归属需求的排期解锁!</span>
  218. </div>
  219. <div class="schedule-control">
  220. <div v-show="BackToTheLatest === false" class="Scheduling" style="margin-right: 20px;" @click="clickBackToTheLatest"><i class="el-icon-refresh" /> 回到最新</div>
  221. <div v-show="isScheduleLocked === 0">
  222. <div v-show="BackToTheLatest === true" class="Scheduling" style="margin-right: 20px;" @click="clickAddScheduling()"><i class="el-icon-circle-plus-outline" /> 添加排期</div>
  223. </div>
  224. <div v-show="form_query.relatedDpmTaskInfo" class="Scheduling" @click="synchronizeDialog = true"><i class="el-icon-s-fold" /> 同步排期至望岳</div>
  225. <div v-show="BackToTheLatest === true" align="left" class="Scheduling" @click="scheduleHiHide"><i class="el-icon-document" /> 排期变更记录</div>
  226. <download :id="taskId" :name="'任务'" />
  227. </div>
  228. </div>
  229. </section>
  230. <el-container>
  231. <el-main style="padding: 0;">
  232. <schedule-list :id="taskId" ref="taskSchedule" :showunlock="showunlock" :type-list="taskScheduleEvent" class-name="white" @updataData="getSchedule" />
  233. </el-main>
  234. <el-aside v-if="lockHide" class="SchedulingAside">
  235. <div v-for="(item, index) in SchedulingContent" :key="index" class="SchedulingDiv" @click="clickScheduling(item)">
  236. <i v-show="index < SchedulingContent.length - 1" />
  237. <div class="timeline">
  238. <div class="SchedulingTow" :class="{'vss' : item.id === ScheduId}">
  239. <div v-if="item.operationType === 0" class="el-icon-unlock image" />
  240. <div v-if="item.operationType === 1" class="el-icon-lock image" />
  241. </div>
  242. <div class="modifyTime">{{ item.modifyTime }}</div>
  243. <div>{{ item.operatorObject.name !== null ? item.operatorObject.name : '' }} <span class="btn">{{ item.operation }}</span></div>
  244. <div v-if="item.remarkTypeName"><span class="modifyTime">{{ '解锁原因 : ' }}</span>{{ item.remarkTypeName }}</div>
  245. <div v-if="item.remark"><span class="modifyTime">{{ '具体描述 : ' }}</span>{{ item.remark }}</div>
  246. </div>
  247. </div>
  248. <div v-if="SchedulingContent.length === 0" style="width: 270px; margin: 50% 20px; text-align: center;"> 暂无排期变更记录!</div>
  249. </el-aside>
  250. </el-container>
  251. </section>
  252. <section class="main-section">
  253. <div class="el-main-title">
  254. <div class="title-left-icon" />
  255. <div class="title-left-name">任务描述</div>
  256. </div>
  257. <div>
  258. <text-area :id="'pro-desc'" :value.sync="form_query.description" :empty-text="'点击'" :input-button="'添加描述'" @change="changeArea" />
  259. </div>
  260. </section>
  261. <section class="main-section">
  262. <div class="el-main-title">
  263. <div class="title-left-icon" />
  264. <div class="title-left-name">动态</div>
  265. </div>
  266. <el-tabs v-model="tabPosition" class="sign-tabs">
  267. <el-tab-pane label="评论" name="first">
  268. <div class="detail-info">
  269. <ul class="comment-main">
  270. <li v-for="(item,index) in comments" :key="'comment'+index">
  271. <span class="comment-name">{{ item.commentInfo.name }}</span>
  272. <span class="comment-gmtCreater">{{ item.commentInfo.gmtCreater }}</span><br>
  273. <span class="comment-content">{{ item.commentInfo.content }}</span>
  274. </li>
  275. </ul>
  276. <el-input
  277. v-model="commentContent"
  278. type="textarea"
  279. placeholder="请输入评论内容"
  280. maxlength="300"
  281. show-word-limit
  282. :autosize="{ minRows: 3, maxRows: 5}"
  283. style="margin-bottom: 20px"
  284. />
  285. <el-row>
  286. <el-col :span="2" :offset="22"><el-button type="primary" size="small" @click="addComment">发表评论</el-button></el-col>
  287. </el-row>
  288. </div>
  289. </el-tab-pane>
  290. <el-tab-pane label="变更记录" name="second">
  291. <record :id="taskId" ref="record" :name="'任务'" />
  292. </el-tab-pane>
  293. </el-tabs>
  294. </section>
  295. </el-container>
  296. <!-- 概览 -->
  297. <!-- 子任务 -->
  298. <el-container v-if="activeName === '2'" class="is-vertical">
  299. <section class="main-section contain">
  300. <children-list ref="children-list" />
  301. </section>
  302. </el-container>
  303. <!-- 子任务 -->
  304. <!-- 缺陷 -->
  305. <el-container v-if="activeName === '3'" class="is-vertical">
  306. <section class="main-section contain">
  307. <bugTableDialog ref="bugTableDialog" :show-hide="true" no-show="taskName" :obj-id="{ taskId: taskId }" />
  308. </section>
  309. </el-container>
  310. <!-- 缺陷 -->
  311. <!-- 报告 -->
  312. <el-container v-if="activeName === '4'" class="is-vertical">
  313. <report-list />
  314. </el-container>
  315. <!-- 报告 -->
  316. <!-- 统计 -->
  317. <el-container v-if="activeName === '5'" class="is-vertical">
  318. <section class="main-section contain">
  319. <data-statistics ref="data-statistics" />
  320. </section>
  321. </el-container>
  322. <!-- 统计 -->
  323. <!-- 发布 -->
  324. <el-container v-if="activeName === '6'" class="is-vertical">
  325. <!-- <section class="main-section contain"> -->
  326. <publishTask
  327. :task-id="form_query.id"
  328. :task-name="form_query.name"
  329. :user-names="userNames"
  330. :user-information="userInformation"
  331. />
  332. <!-- </section> -->
  333. </el-container>
  334. <!-- 发布 -->
  335. <!-- 新建(bug) -->
  336. <createdBug v-if="bug_open" ref="createdBug" @getBugList="reloadList" />
  337. <create-children v-if="createChildren" :visible.sync="createChildren" :data="form_query" :new-add="true" @change="reloadList" />
  338. <Test-report v-if="dialogTest" ref="TestReport" />
  339. <Daily-report v-if="dialogDaily" ref="DailyReport" />
  340. <ReleaseReport v-if="dialogClient" ref="ClientReport" />
  341. <!-- 新建 -->
  342. <!-- 编辑 -->
  343. <open-dialog v-if="updateVisible" ref="task_createdUpdata" />
  344. <!-- 编辑 -->
  345. <!-- 删除 -->
  346. <el-dialog :visible.sync="deleteVisible" title="删除确认" class="public_task" width="30%" :close-on-click-modal="false">
  347. <div class="blueStripe" />
  348. <div align="center">确定要删除此 {{ form_query.name }} 任务吗?</div>
  349. <span slot="footer" class="dialog-footer">
  350. <el-button size="mini" @click="deleteVisible = false">关 闭</el-button>
  351. <el-button size="mini" type="primary" @click="taskDelete()">确 定</el-button>
  352. </span>
  353. </el-dialog>
  354. <!-- 删除 -->
  355. <task-dialog v-if="showTaskDialog" :show.sync="showTaskDialog" :task-id="taskIds.id" :status-name="taskIds.statusString" @getList="taskGet" />
  356. <!-- 排期锁定 -->
  357. <schedule ref="ScheduleEvent" :visible.sync="scheduleVisble" :name="'任务'" :is-schedule-locked="isScheduleLocked" :require-id="taskId" @updataData="getScheduleGetTaskScheduleHistory" />
  358. <!-- 排期锁定 -->
  359. <!-- 状态及工作流 -->
  360. <workflowAndStatus
  361. :visible.sync="dialogVisible"
  362. :name="'任务'"
  363. :dpmrequired="toilp"
  364. @update="taskGet(); dialogVisible=false "
  365. />
  366. <!-- 状态及工作流 -->
  367. <!-- 同步望月 -->
  368. <synchronize-dialog
  369. v-if="synchronizeDialog"
  370. :id="taskId"
  371. :data="form_query.relatedDpmTaskInfo"
  372. :visible.sync="synchronizeDialog"
  373. @change="taskGet()"
  374. />
  375. <!-- 同步望月 -->
  376. <drawer
  377. ref="drawer"
  378. title="任务成员"
  379. center
  380. :display.sync="display"
  381. width="28%"
  382. :delete="form_query"
  383. :types="false"
  384. :inner="true"
  385. :mask="false"
  386. @childValInput="childVal"
  387. @click.stop
  388. />
  389. </el-container>
  390. </div>
  391. </template>
  392. <script>
  393. const _ = require('lodash')
  394. import Vue from 'vue'
  395. import VueClipboard from 'vue-clipboard2'
  396. Vue.use(VueClipboard)
  397. import { mapGetters } from 'vuex'
  398. import { EncryptId, analysisBizId_id } from '@/utils/crypto-js.js'
  399. import {
  400. taskGet,
  401. configShowTaskEnum,
  402. tasktaskDelete,
  403. taskUpdate,
  404. commentCreate,
  405. commentList,
  406. taskHold,
  407. taskUnhold,
  408. configShowRequirementVersionEnum,
  409. scheduleGetTaskScheduleHistory
  410. } from '@/api/taskIndex'
  411. import { listByTask, taskUpdates } from '@/api/projectViewDetails'
  412. import { projectListProject, scheduleGetHistoryScheduleById, taskListAvailableDpmTask, taskSetTaskRelated, taskDeleteRelationship } from '@/api/requirement.js'
  413. import searchPeople from '@/components/select/searchPeople'
  414. import textArea from '@/components/input/textArea'
  415. import drawer from '@/views/projectManage/Drawer'
  416. import image_url from '@/assets/home_images/home_u.png'
  417. import createdBug from '@/views/projectManage/bugList/file/createdBug'
  418. import openDialog from '@/views/projectManage/dialog_vue'
  419. import createChildren from './childrenTask/createChildren'
  420. import childrenList from './childrenTask/childrenList'
  421. import scheduleList from './components/scheduleList'
  422. import reportList from './components/reportList'
  423. import dataStatistics from './components/dataStatistics'
  424. import TestReport from '@/views/reportManagement/components/TestingReport' // 提测
  425. import DailyReport from '@/views/reportManagement/components/DailyReport' // 日报
  426. import ReleaseReport from '@/views/reportManagement/components/ReleaseReport' // 准出
  427. import stage from '@/assets/detailPage/风险状态.png'
  428. import stage1 from '@/assets/detailPage/正常状态.png'
  429. import stage2 from '@/assets/detailPage/延期状态.png'
  430. import taskDialog from '@/views/projectManage/taskList/dialog/taskDialog' // 任务状态修改(已上线/已提测/已准出)
  431. import bugTableDialog from '@/views/projectManage/bugList/details/bugTableDialog' // 缺陷表格
  432. import publishTask from '@/views/projectManage/publishTask'
  433. import schedule from '@/views/projectManage/schedule' // 排期锁定弹窗
  434. import download from '@/views/projectManage/components/export.vue'
  435. import record from '@/views/projectManage/components/record.vue'
  436. import timeLine from '@/views/projectManage/components/timeLine.vue'
  437. import { dailyReportCheckStatus, reportreleaseCheckStatus, reportdelivertestCheckStatus } from '@/api/reportTemplate'
  438. import synchronizeDialog from './dialog/synchronizeDialog' // 同步弹框
  439. import workflowAndStatus from '@/views/projectManage/components/workflowAndStatus.vue'
  440. import '@/styles/PublicStyle/index.scss'
  441. import { formatHMS } from '@/utils/global'
  442. export default {
  443. components: {
  444. searchPeople,
  445. textArea,
  446. drawer,
  447. createdBug,
  448. openDialog,
  449. createChildren,
  450. childrenList,
  451. scheduleList,
  452. reportList,
  453. dataStatistics,
  454. TestReport,
  455. DailyReport,
  456. ReleaseReport,
  457. taskDialog,
  458. bugTableDialog,
  459. schedule,
  460. download,
  461. record,
  462. timeLine,
  463. workflowAndStatus,
  464. synchronizeDialog,
  465. publishTask
  466. },
  467. filters: {
  468. ellipsis(value, num) {
  469. if (!value) return ''
  470. if (value.length > num) {
  471. return value.slice(0, num) + '...'
  472. }
  473. return value
  474. }
  475. },
  476. data() {
  477. return {
  478. autoLockScheduleCountdown: '--', // 解锁剩余时间
  479. timer: null, // 定时器
  480. isShowLockedTime: false, // 是否显示解锁倒计时
  481. tabPosition: 'first',
  482. textarea2: '',
  483. HoldTask: '',
  484. visible: false, // Hold任务
  485. dialogVisible: false,
  486. showunlock: true,
  487. toilp: '',
  488. ScheduId: '', // 排期ID
  489. LockState: {}, // 锁定状态
  490. tips: '', // 后加入需求的任务排期提示
  491. scheduleVisble: false, // 排期锁定
  492. isParentRequireScheduleLocked: '',
  493. BackToTheLatest: true, // 显示添加排期按钮
  494. lockHide: false, // 隐藏排期变更记录
  495. SchedulingContent: [], // 排期历史变更记录
  496. stageImg: stage,
  497. normalImg: stage1,
  498. warningImg: stage2,
  499. activeName: '1', // 顶部tab切换
  500. userInformation: localStorage.getItem('username'),
  501. userNames: localStorage.getItem('realname'),
  502. textarea: '', // 评论
  503. showTaskDialog: false, // 状态弹窗
  504. taskId: -1, // 任务id
  505. allStatus: [], // 任务所有状态
  506. belongProjectList: [], // 所属项目列表
  507. requireList: [], // 所属需求列表
  508. appClient: [], // 跟版客户端列表
  509. taskScheduleEvent: [], // 排期类型
  510. dependList: [{ msg: '否', code: 2 }, { msg: '是', code: 1 }], // 是否跟版
  511. form_query: {},
  512. display: false, // 设置成员弹框
  513. isScheduleLocked: '', // 锁定状态1锁定0未锁定
  514. num: 0, // 成员数量
  515. image_url: image_url, // 成员icon
  516. createChildren: false, // 新建子任务弹框
  517. updateVisible: false, // 编辑任务弹框
  518. deleteVisible: false, // 删除任务弹框
  519. bug_open: false, // 新建缺陷弹框
  520. dialogTest: false, // 新建提测报告
  521. dialogDaily: false, // 新建测试日报
  522. dialogClient: false, // 新建准出报告
  523. iterationList: [], // 所属迭代列表
  524. commentContent: null, // 评论内容
  525. comments: [], // 评论列表
  526. taskIds: '', // 将要修改状态的任务id
  527. synchronizeDialog: false, // 同步任务至望月弹框
  528. dplOption: [] // 关联的望岳任务
  529. }
  530. },
  531. computed: {
  532. getStatus() {
  533. return this.allStatus.find(item => item.code === this.form_query.status) || { name: null }
  534. },
  535. ...mapGetters(['bizId'])
  536. },
  537. watch: {
  538. activeName: {
  539. handler(newV) {
  540. Number(newV) > 0
  541. ? this.$router.replace({ path: this.$route.path, query: { ...this.$route.query, page: newV }})
  542. : this.$router.replace({ path: this.$route.path, query: { ...this.$route.query, page: '1' }})
  543. }
  544. }
  545. },
  546. created() {
  547. this.analysisBizId_id()
  548. this.$nextTick(() => {
  549. this.activeName = this.$route.query.page ? this.$route.query.page : '1'
  550. })
  551. this.$store.state.data.status = true
  552. },
  553. destroyed() {
  554. clearInterval(this.timer)
  555. this.$store.state.data.status = false
  556. },
  557. methods: {
  558. analysisBizId_id() { // 解析路由中的bizId_id
  559. if (!this.$route.query.bizId_id) return
  560. const bizId_id = analysisBizId_id(this.$route.query.bizId_id)
  561. this.taskId = bizId_id[1]
  562. this.taskGet()
  563. this.getTaskStatus()
  564. this.getBelongProject()
  565. this.getRequireList()
  566. this.getCommentList()
  567. this.getScheduleGetTaskScheduleHistory()
  568. },
  569. async getScheduleGetTaskScheduleHistory() {
  570. this.scheduleVisble = false
  571. const res = await scheduleGetTaskScheduleHistory(this.taskId)
  572. this.SchedulingContent = res.data
  573. const res1 = await listByTask(this.taskId)
  574. this.isScheduleLocked = res1.data.isScheduleLocked
  575. this.isShowLockedTime = false
  576. if (res1.data.isScheduleLocked !== 1 && res1.data.autoLockScheduleCountdown > 0) {
  577. this.isShowLockedTime = true
  578. let totolTime = res1.data.autoLockScheduleCountdown || 6000
  579. clearInterval(this.timer)
  580. this.timer = setInterval(() => {
  581. totolTime = totolTime - 1000
  582. this.autoLockScheduleCountdown = formatHMS(totolTime)
  583. if (totolTime < 1000) {
  584. this.isScheduleLocked = 1
  585. clearInterval(this.timer)
  586. }
  587. }, 1000)
  588. }
  589. this.tips = res1.data.tips
  590. this.isParentRequireScheduleLocked = res1.data.isParentRequireScheduleLocked
  591. this.$refs.taskSchedule.listByTask(this.taskId)
  592. this.taskGet()
  593. },
  594. async getSchedule() {
  595. this.scheduleVisble = false
  596. const res = await scheduleGetTaskScheduleHistory(this.taskId)
  597. this.SchedulingContent = res.data
  598. const res1 = await listByTask(this.taskId)
  599. this.isScheduleLocked = res1.data.isScheduleLocked
  600. this.tips = res1.data.tips
  601. this.isParentRequireScheduleLocked = res1.data.isParentRequireScheduleLocked
  602. },
  603. async clickScheduling(ele) {
  604. this.showunlock = false
  605. this.ScheduId = ele.id
  606. const res = await scheduleGetHistoryScheduleById(ele.id)
  607. this.taskScheduleEvent = res.data.scheduleDetailRespons
  608. this.BackToTheLatest = false
  609. },
  610. clickBackToTheLatest() {
  611. this.showunlock = true
  612. this.BackToTheLatest = true
  613. this.lockHide = false
  614. this.$refs.taskSchedule.listByTask(this.taskId)
  615. },
  616. changeSchedule() { // 修改锁定状态
  617. if (this.isParentRequireScheduleLocked === 1) {
  618. this.$message({ message: '无法解锁,请先变更归属需求的排期状态为未锁定状态!', type: 'error', duration: 3000, offset: 150 })
  619. } else {
  620. this.scheduleVisble = true
  621. }
  622. },
  623. changeBtn() {
  624. if (this.HoldTask === 'Hold 任务') {
  625. this.visible = !this.visible
  626. this.textarea2 = ''
  627. }
  628. if (this.HoldTask === '解除 Hold') {
  629. this.taskHold()
  630. }
  631. },
  632. async taskHold(val) { // 锁定Hold
  633. if (this.HoldTask === 'Hold 任务') {
  634. const res = await taskHold(this.taskId, { 'remark': val })
  635. if (res.code === 200) {
  636. this.taskGet()
  637. this.$refs.timeLine.taskGetWorkFlow()
  638. this.visible = false
  639. this.$message({ message: '已修改状态为 Hold', type: 'success', duration: 1000, offset: 150 })
  640. }
  641. }
  642. if (this.HoldTask === '解除 Hold') {
  643. const res = await taskUnhold(this.taskId)
  644. if (res.code === 200) {
  645. this.taskGet()
  646. this.allStatus = []
  647. this.allStatus.push({ code: -2, msg: 'Hold' })
  648. this.$refs.timeLine.taskGetWorkFlow()
  649. this.$message({ message: 'Hold 状态已解除', type: 'success', duration: 1000, offset: 150 })
  650. }
  651. }
  652. },
  653. async changeArea(e) { // area修改
  654. const taskInfoDO = _.cloneDeep(this.form_query)
  655. taskInfoDO.rdOwner === null ? taskInfoDO.rdOwner = '' : ''
  656. taskInfoDO.qaOwner === null ? taskInfoDO.qaOwner = '' : ''
  657. const user = {
  658. name: localStorage.getItem('username'),
  659. ename: localStorage.getItem('realname'),
  660. id: ''
  661. }
  662. const res = await taskUpdate({ taskInfoDO, user })
  663. if (res.code === 200) {
  664. this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
  665. }
  666. this.taskGet()
  667. },
  668. async getBelongProject() { // 获取所属项目列表
  669. const res = await projectListProject({ bizId: this.bizId })
  670. if (res.code === 200) {
  671. this.belongProjectList = res.data
  672. }
  673. },
  674. async getRequireList() { // 获取所属需求列表
  675. const res = await configShowRequirementVersionEnum({ bizId: this.bizId })
  676. if (res.code === 200) {
  677. this.requireList = res.data
  678. }
  679. },
  680. async getTaskStatus() { // 获取任务状态列表,跟版客户端列表
  681. const res = await configShowTaskEnum()
  682. if (res.code === 200) {
  683. this.taskScheduleEvent = res.data.taskScheduleEvent || []
  684. this.appClient = res.data.appClient.map(item => {
  685. return {
  686. ...item,
  687. code: `${item.code}`
  688. }
  689. })
  690. }
  691. },
  692. async taskGet() { // 获取任务详情
  693. const res = await taskGet(this.taskId)
  694. if (res.code === 200) {
  695. this.form_query = res.data
  696. if (this.form_query.isDirectlyFromDpm === 0 || this.form_query.isDirectlyFromDpm === 1) {
  697. this.toilp = this.form_query.relatedDpmTaskInfo.taskId + this.form_query.relatedDpmTaskInfo.name
  698. }
  699. this.allStatus = res.data.availableStatusList
  700. this.$refs.timeLine.taskGetWorkFlow()
  701. this.$refs.record.operationLogTask()
  702. }
  703. },
  704. async getCommentList() { // 获取任务评论
  705. const res = await commentList({ type: 3, joinId: this.taskId })
  706. if (res.code === 200) {
  707. this.comments = res.data
  708. this.commentContent = ''
  709. }
  710. },
  711. async addComment() { // 发表任务评论
  712. if (this.commentContent.replace(/\s+/g, '') === '' || this.commentContent === null) {
  713. this.$message.warning('评论不能为空')
  714. return
  715. }
  716. const commentInfo = {
  717. joinId: this.taskId,
  718. content: this.commentContent,
  719. type: 3,
  720. fatherId: 0,
  721. name: this.userNames,
  722. email: this.userInformation
  723. }
  724. const user = { name: this.userNames, ename: this.userInformation, id: '' }
  725. const res = await commentCreate({ commentInfo, user })
  726. if (res.code === 200) {
  727. this.$message({ message: '评论成功', type: 'success', duration: 1000, offset: 150 })
  728. this.getCommentList()
  729. } else {
  730. this.$message.warning(res.msg)
  731. }
  732. },
  733. async updateStatus(e) { // 状态改变
  734. if (e.status === 70 || e.status === 90 || e.status === 100) {
  735. this.taskIds = this.form_query
  736. this.allStatus.map(item => {
  737. item.code === e.status ? this.taskIds.statusString = e.label : ''
  738. })
  739. this.showTaskDialog = true
  740. this.taskIds.status = e.status
  741. return
  742. } else {
  743. const user = {
  744. name: localStorage.getItem('username'),
  745. ename: localStorage.getItem('realname'),
  746. id: ''
  747. }
  748. const taskInfoDO = this.form_query
  749. taskInfoDO.status = e.status
  750. const resTask = await taskUpdates({ taskInfoDO, user })
  751. if (resTask.code === 200) {
  752. this.$refs.timeLine.taskGetWorkFlow()
  753. this.$refs.record.operationLogTask()
  754. this.taskGet()
  755. this.$message({ message: '修改成功', type: 'success', offset: 150 })
  756. }
  757. }
  758. },
  759. clickAddScheduling() { // 模拟调用自组件方法
  760. this.$refs.taskSchedule.addSchedule()
  761. },
  762. scheduleHiHide() { // 排期变更显示隐藏
  763. this.lockHide = !this.lockHide
  764. this.BackToTheLatest = true
  765. this.showunlock = true
  766. this.ScheduId = ''
  767. },
  768. childVal(val) {
  769. this.num = val
  770. },
  771. setChild() { // 设置成员
  772. this.$refs.drawer.getRoleList()
  773. },
  774. open_created() { // 编辑任务
  775. // 打开弹窗
  776. this.updateVisible = true
  777. this.$nextTick(() => {
  778. this.$refs.task_createdUpdata.init(3, [null, this.taskId])
  779. })
  780. },
  781. async taskDelete() { // 删除任务
  782. const user = { name: this.userNames, ename: this.userInformation, id: '' }
  783. const res = await tasktaskDelete(user, this.taskId)
  784. if (res.code === 200) {
  785. this.$message({ message: '删除成功', type: 'success', duration: 1000, offset: 150 })
  786. this.$router.push({ name: '任务', query: {}})
  787. }
  788. },
  789. created_bug() { // 缺陷创建
  790. this.bug_open = true
  791. this.$nextTick(() => {
  792. this.$refs.createdBug.init(1, { id: this.taskId })
  793. })
  794. },
  795. createReport(e, ele) { // 创建报告
  796. switch (e) {
  797. case 1: // 提测
  798. reportdelivertestCheckStatus([this.taskId]).then(res => {
  799. if (res.code === 200) {
  800. this.dialogTest = true
  801. this.$nextTick(() => { this.$refs.TestReport.init(7, [this.taskId]) })
  802. }
  803. })
  804. break
  805. case 2: // 日报
  806. dailyReportCheckStatus([this.taskId]).then(res => {
  807. if (res.code === 200) {
  808. this.dialogDaily = true
  809. this.$nextTick(() => {
  810. this.$refs.DailyReport.init(7, [this.taskId])
  811. })
  812. }
  813. })
  814. break
  815. case 3:
  816. reportreleaseCheckStatus([this.taskId]).then(res => {
  817. if (res.code === 200) {
  818. this.dialogClient = true
  819. this.$nextTick(() => { this.$refs.ClientReport.init(7, [this.taskId]) })
  820. }
  821. })
  822. break
  823. }
  824. },
  825. jump(page, id) { // 跳转
  826. const bizId_id = EncryptId(`${id.requireProjectBizId}_${id.projectId}`)
  827. this.$router.push({ name: page, query: { bizId_id: bizId_id }})
  828. },
  829. jumps(page, id) { // 跳转
  830. const bizId_id = EncryptId(`${id.requireIdBizId}_${id.requireId}`)
  831. this.$router.push({ name: page, query: { bizId_id: bizId_id }})
  832. },
  833. reloadList() {
  834. this.taskGet()
  835. if (this.$refs['bugTableDialog']) {
  836. this.$refs['bugTableDialog'].bugGetTableList()
  837. }
  838. if (this.$refs['data-statistics']) {
  839. this.$refs['data-statistics'].getRequireSumData()
  840. }
  841. if (this.$refs['children-list']) {
  842. this.$refs['children-list'].getSubTasksList()
  843. }
  844. },
  845. returnEmpty(val) {
  846. return val || ''
  847. },
  848. copyName(name) { // 复制名字
  849. this.$message({ message: '复制成功', type: 'success', duration: 1000, offset: 150 })
  850. },
  851. dpmUrl(url) {
  852. window.open(url, '_blank')
  853. },
  854. async getDplList(taskId) { // 获取关联望岳任务
  855. const res = await taskListAvailableDpmTask(taskId)
  856. if (res.code === 200) {
  857. this.dplOption = res.data
  858. }
  859. },
  860. throttle: _.throttle(function() {
  861. this.synchronize(...arguments)
  862. }, 5000, {
  863. leading: true,
  864. trailing: false
  865. }),
  866. async synchronize(id) { // 关联至望岳
  867. const res = await taskSetTaskRelated(this.taskId, id)
  868. if (res.code === 200) {
  869. this.taskGet()
  870. this.$message({ message: '关联成功', type: 'success', duration: 1000, offset: 150 })
  871. }
  872. },
  873. async deleteDpl() { // 取消关联
  874. const res = await taskDeleteRelationship(this.taskId)
  875. if (res.code === 200) {
  876. this.taskGet()
  877. this.$message({ message: '已取消关联', type: 'success', offset: 150 })
  878. }
  879. }
  880. }
  881. }
  882. </script>
  883. <style scoped lang="scss">
  884. @import '@/styles/detail-pages.scss';
  885. /deep/.el-button {
  886. cursor: pointer;
  887. }
  888. @include hide-open-header;
  889. .bg-project {
  890. @include bg-project;
  891. }
  892. .hide-sidebar .main-header {
  893. @include normal-main-header
  894. }
  895. .top-sidebar .main-header {
  896. @include top-main-header
  897. }
  898. .open-sidebar .main-header {
  899. @include left-main-header;
  900. }
  901. .main-header {
  902. @include main-header;
  903. .title-name {
  904. cursor: pointer;
  905. }
  906. .synchronize-icon {
  907. position: relative;
  908. img {
  909. width: 60px;
  910. }
  911. }
  912. .sty-icon {
  913. position: absolute;
  914. right: -5px;
  915. top: -5px;
  916. background: #eee;
  917. border-radius: 50%;
  918. }
  919. }
  920. .main-header::after {
  921. @include main-header-after;
  922. }
  923. .contain {
  924. height: calc(100vh - 140px);
  925. overflow: scroll;
  926. }
  927. .main-section {
  928. @include main-section;
  929. .require-plan {
  930. display: flex;
  931. align-items: center;
  932. span {
  933. margin-left: 20px;
  934. color: #E6A23C;
  935. font-size: 12px;
  936. }
  937. }
  938. .task-help-tips {
  939. display: flex;
  940. flex-direction: column;
  941. margin: 0 20px;
  942. padding: 20px 13px;
  943. border-radius: 4px;
  944. background-color: rgba(64, 158, 255,0.1);
  945. .tips-icon {
  946. width: 100%;
  947. font-size: 14px;
  948. font-weight: 550;
  949. line-height: 24px;
  950. color: #333333;
  951. i {
  952. background: #1890FF;
  953. color: #e0eefd;
  954. border-color: #e0eefd;
  955. border-radius: 50%;
  956. }
  957. }
  958. .tips-context {
  959. width: 100%;
  960. font-size: 12px;
  961. line-height: 20px;
  962. color: #444444;
  963. }
  964. }
  965. .schedule-control {
  966. display: flex;
  967. justify-content: flex-end;
  968. }
  969. .detail-info {
  970. padding: 0 34px 20px 34px;
  971. /deep/.el-input__inner{
  972. border: 1px solid rgba(220,223,230,0)
  973. }
  974. /deep/.el-input__inner:hover{
  975. border: 1px solid rgba(220,223,230,1)
  976. }
  977. /deep/.is-focus .el-input__inner {
  978. border: 1px solid rgb(64, 158, 255);
  979. }
  980. /deep/.el-select{
  981. .el-input__suffix-inner {
  982. visibility: hidden;
  983. }
  984. }
  985. /deep/.el-select:hover{
  986. .el-input__suffix-inner {
  987. visibility: visible;
  988. }
  989. }
  990. .demo-form-inline {
  991. .el-form-item {
  992. width: 33%;
  993. margin-right: 0;
  994. }
  995. }
  996. .comment-main {
  997. list-style: none;
  998. padding: 15px 0 0 0;
  999. margin: 0 0 20px 0;
  1000. li {
  1001. list-style: none;
  1002. padding: 0px;
  1003. margin: 0px 0px 25px 0;
  1004. }
  1005. .comment-name {
  1006. font-size:14px;
  1007. color:#333B4A;
  1008. }
  1009. .comment-gmtCreater {
  1010. margin-left:20px;
  1011. color: #9B9B9B;
  1012. font-size:12px
  1013. }
  1014. .comment-content {
  1015. font-size:14px;
  1016. color:#333B4A;
  1017. margin-top: 10px;
  1018. white-space: pre-line;
  1019. }
  1020. }
  1021. .PRD-link:hover{
  1022. color:#409EFF;
  1023. }
  1024. .PRD-link {
  1025. width: 50%;
  1026. overflow: hidden;
  1027. text-overflow:ellipsis;
  1028. white-space: nowrap;
  1029. }
  1030. }
  1031. }
  1032. .task-stage {
  1033. position: absolute;
  1034. left: 5px;
  1035. top: 0px;
  1036. z-index: 999;
  1037. .task-stage-main {
  1038. position: relative;
  1039. height: 52px;
  1040. width: 15.5px;
  1041. img{
  1042. height: 52px;
  1043. width: 15.5px;
  1044. }
  1045. .task-stage-title{
  1046. position: absolute;
  1047. left: 0;
  1048. right: 0;
  1049. top: 0;
  1050. bottom: 0;
  1051. color: #ffffff;
  1052. font-size: 10px;
  1053. text-align: center;
  1054. }
  1055. .small-size {
  1056. transform: scale(0.6);
  1057. position: absolute;
  1058. left: 0;
  1059. top: -15px;
  1060. }
  1061. }
  1062. }
  1063. >>>.module .el-form-item__content {
  1064. display: inline-block;
  1065. width: calc(100% - 100px);
  1066. div {
  1067. line-height: 18px;
  1068. padding-top: 12px;
  1069. cursor: pointer;
  1070. }
  1071. div:hover{
  1072. color: #409EFF;
  1073. }
  1074. }
  1075. .form-progress {
  1076. width: 200px;
  1077. padding-top: 12px;
  1078. padding-left: 15px;
  1079. }
  1080. >>>.el-input--small {
  1081. font-size: 14px;
  1082. }
  1083. .vss {
  1084. border:1px solid #409EFF !important;
  1085. color:#409EFF !important;
  1086. }
  1087. .sign-tabs {
  1088. padding: 0 30px;
  1089. }
  1090. .el-btn-size {
  1091. margin: 10px 30px;
  1092. }
  1093. .blueStr {
  1094. width:4px;
  1095. height:17px;
  1096. background:#409EFF;
  1097. border-radius:1px;
  1098. position: absolute;
  1099. top: 22px;
  1100. left: 15px;
  1101. }
  1102. </style>
  1103. <style lang="scss">
  1104. .bg-project {
  1105. .tip {
  1106. color: #F56C6C;
  1107. text-align: left;
  1108. padding: 0 14px;
  1109. font-size: 12px;
  1110. .icon {
  1111. margin-right: 2px;
  1112. }
  1113. }
  1114. }
  1115. .synchronize {
  1116. .el-popover__title {
  1117. color: #333333;
  1118. padding: 10px 20px;
  1119. }
  1120. .task-object-list {
  1121. width: 100%;
  1122. overflow: scroll;
  1123. cursor: pointer;
  1124. .task-item {
  1125. width: 100%;
  1126. white-space: nowrap;
  1127. color: #999999;
  1128. margin-bottom: 5px;
  1129. .item-id {
  1130. padding-right: 20px;
  1131. }
  1132. .item-name {
  1133. color: #333333;
  1134. padding-right: 20px;
  1135. }
  1136. }
  1137. }
  1138. .task-object-list::-webkit-scrollbar {
  1139. display: none;
  1140. }
  1141. }
  1142. .el-main-title .el-popper[x-placement^=bottom] {
  1143. margin: 12px 10px 0 0;
  1144. width: 300px;
  1145. }
  1146. </style>