taskViewDetail.vue 49 KB

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