taskViewDetail.vue 48 KB

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