projectInside.vue 108 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518
  1. <template>
  2. <section>
  3. <el-tabs v-model="activeName" @tab-click="handleClick">
  4. <el-tab-pane label="主要内容" name="project" @click="null" disabled=true>
  5. <template slot="label">
  6. <i type="default" size="mini" class="el-icon-arrow-left" @click="toList" style="margin-left:10px;cursor:pointer;"></i>
  7. <el-select v-model="curProjectId" size="mini" class="projectCls" @change="onProjectChange">
  8. <el-option v-for="item in projectList" :key="item.id" :label="item.projectName" :value="item.id"></el-option>
  9. </el-select>
  10. <el-dropdown trigger="click" style="margin-right:30px;color:#262626;cursor:pointer;">
  11. <i class="iconfont firerock-iconcaidan" ></i>
  12. <el-dropdown-menu slot="dropdown">
  13. <el-dropdown-item v-if="currentProject.status == 1" @click.native="finishPro()">
  14. <i class="iconfont firerock-iconwancheng"></i>完成项目
  15. </el-dropdown-item>
  16. <el-dropdown-item divided v-if="currentProject.status == 1" @click.native="cancelPro()">
  17. <i class="el-icon-refresh-left"></i>撤销项目
  18. </el-dropdown-item>
  19. <el-dropdown-item v-if="currentProject.status == 2 || currentProject.status == 3" @click.native="startPro()">
  20. <i class="iconfont firerock-iconqidong"></i>重启项目
  21. </el-dropdown-item>
  22. </el-dropdown-menu>
  23. </el-dropdown>
  24. </template>
  25. </el-tab-pane>
  26. <el-tab-pane label="任务看板" name="projectInside">
  27. <el-container style="padding: 0px;">
  28. <el-aside :style="'padding-left:10px;padding-right:5px;height:'+tableHeight+'px;width:'+groupWidth+'px;'">
  29. <el-input v-model="groupSearch" size="small" placeholder="搜索分组" @input="startSearchGroup" style="margin-top:10px"/>
  30. <p ><span class="heavyTxt">任务分组</span> <i class="el-icon-plus pull-right" style="color:#666;margin-right:10px;" @click="createGroup"></i></p>
  31. <el-menu :default-active="defaultGroupId" class="el-menu-vertical-demo" @select="groupChange" style="border-right:none;">
  32. <el-menu-item :index="item.id" v-for="item in groupList" :key="item.id" class="group_style">
  33. <div slot="title">
  34. <span >{{item.name}}</span>
  35. <el-dropdown trigger="click" style="float:right;margin-right:-10px;">
  36. <i class="iconfont firerock-iconcaidan" ></i>
  37. <el-dropdown-menu slot="dropdown">
  38. <el-dropdown-item @click.native="copyGroup(item)">
  39. <i class="el-icon-document-copy"></i>
  40. 复制分组</el-dropdown-item>
  41. <el-dropdown-item divided @click.native="renameGroup(item)">
  42. <i class="el-icon-edit"></i>
  43. 修改组名</el-dropdown-item>
  44. <el-dropdown-item divided @click.native="deleteGroup(item)">
  45. <i class="el-icon-delete"></i>删除分组</el-dropdown-item>
  46. </el-dropdown-menu>
  47. </el-dropdown>
  48. </div>
  49. </el-menu-item>
  50. </el-menu>
  51. <!--视图 -->
  52. <p ><span class="heavyTxt">视图</span></p>
  53. <el-menu :default-active="1" class="el-menu-vertical-demo" @select="viewChange" style="border-right:none;">
  54. <el-menu-item :index="item.id" v-for="item in viewList" :key="item.id" class="group_style">
  55. <div slot="title">
  56. <span >{{item.name}}</span>
  57. </div>
  58. </el-menu-item>
  59. </el-menu>
  60. </el-aside>
  61. <span :style="'background:#f0f0f0;width:1px;height:'+tableHeight+'px;'" @click="toggleGroup">
  62. </span>
  63. <!-- <span :style="'width:10px;height:'+tableHeight+'px;float:left;text-align:center;vertical-align:middle;'" @click="toggleGroup">
  64. <span :style="'width:1px;background:#20A0FF;height:'+tableHeight+'px;float:left;'"></span>
  65. <i class="el-icon-d-arrow-left" ></i>
  66. </span> -->
  67. <!-- 增加侧边栏的点击效果 -->
  68. <div class="sidebar" @click="retract()">
  69. <div class="etui">
  70. <i class="el-icon-arrow-left" ref="box"></i>
  71. </div>
  72. </div>
  73. <!-- 增加侧边栏的点击效果 -->
  74. <el-main style="background:#f7f7f7;padding:0px;">
  75. <el-row style="color:#999;margin-top:10px;padding: 0px 10px;" :gutter="10">
  76. <el-col :span="16">
  77. <el-link @click="toggleGroup"><i v-if="selectedGroup != null" :class="groupWidth==0?'el-icon-d-arrow-right':'el-icon-d-arrow-left'" style="margin-top:10px;">{{selectedGroup.name}}</i></el-link>
  78. </el-col>
  79. <el-col :span="4">
  80. <el-select v-model="order" size="small" style="background:#fff;display:inline-block;" @change="orderChange">
  81. <el-option v-for="item in orderList" :key="item.id" :label="item.name" :value="item.id">
  82. <span>{{item.name}}</span>
  83. </el-option>
  84. </el-select>
  85. </el-col>
  86. <el-col :span="4">
  87. <el-button icon="iconfont firerock-icondaochu" size="mini" @click="showExportDialog">导出</el-button>
  88. <el-button icon="iconfont firerock-icondaoru" size="mini" @click="importTaskDialog = true;importToStageId = stageList[0].id;">导入</el-button>
  89. </el-col>
  90. </el-row>
  91. <!-- <div style="color:#999;margin-top:10px;">
  92. <i v-if="selectedGroup != null" class="el-icon-arrow-left" style="margin-top:10px;">{{selectedGroup.name}}</i>
  93. </div> -->
  94. <div v-if="!displayTable">
  95. <draggable style="overflow-x:auto;white-space:nowrap;" @update="onMoveStage"
  96. v-model="stageList" group="stage" @start="stageDrag=true" @end="stageDrag=false;" draggable=".taskStage" >
  97. <!--每个阶段的拖拽 -->
  98. <!-- <transition-group > -->
  99. <v-flex class="taskStage" v-for="stage in stageList" :key="stage.id" :style="'height:'+stageListHeight+'px;'">
  100. <draggable group="task"
  101. class="taskList"
  102. :id="stage.id"
  103. dragClass="dragClass"
  104. ghostClass="ghost"
  105. @start="drag=true" @end="drag=false"
  106. @update="onChange" @add="onChange"
  107. draggable=".taskCard">
  108. <!--头部显示阶段名称,操作 -->
  109. <div slot="header" style="margin:10px 0px;cursor:move;" role="task">
  110. <span class="stage">{{stage.stagesName}}</span><span style="margin-left:10px;color:#303133;font-size:12px;">{{stage.taskList.length}}</span>
  111. <!-- <i class="el-icon-more" style="float:right;"></i> -->
  112. <el-dropdown trigger="click" style="float:right;cursor:pointer;">
  113. <i class="el-icon-more" ></i>
  114. <el-dropdown-menu slot="dropdown">
  115. <el-dropdown-item @click.native="renameStage(stage)">
  116. <i class="el-icon-edit"></i>
  117. 重命名列表</el-dropdown-item>
  118. <el-dropdown-item divided @click.native="deleteStage(stage)">
  119. <i class="el-icon-delete"></i>删除列表</el-dropdown-item>
  120. </el-dropdown-menu>
  121. </el-dropdown>
  122. </div>
  123. <div v-for="element in stage.taskList" :id="element.id" :key="element.id" class="taskCard" ref="tasks" @click="editTask(element)" :style="element.taskStatus==0?'':'background:#eFeFeF;'">
  124. <!--任务卡片内容显示 -->
  125. <div>
  126. <div v-if="element.taskLevel == 2" class="taskImg hong"><img src="../../assets/image/hong.png" alt=""></div>
  127. <div v-if="element.taskLevel == 1" class="taskImg huang"><img src="../../assets/image/huang.png" alt=""></div>
  128. <div v-if="element.taskLevel == 0" class="taskImg hui"><img src="../../assets/image/hui.png" alt=""></div>
  129. <el-checkbox :disabled="element.taskStatus==2 || element.subTaskList.length > element.subTaskFinishNum" :checked="element.taskStatus==1?true:false" size="large" class="cb"
  130. @change="finishTask(element)"
  131. @click.stop.native=""
  132. ></el-checkbox>
  133. <el-tooltip class="item" effect="dark" :content="element.name" placement="top">
  134. <label class="task_name" :style="'background:'+(element.taskStatus==0?'#ffffff;':'#eFeFeF;')"><span>{{element.name}}</span></label>
  135. </el-tooltip>
  136. <span v-if="element.executorName != null" :style="'background:'+element.executorColor" class="user_name_icon">{{element.executorName.length>2?element.executorName.substring(element.executorName.length-2, element.executorName.length):element.executorName}}</span>
  137. <el-button v-if="element.executorName == null" type="primary" @click.stop.native="addAsMyTask(element)" size="mini" style="float:right;width:38px;padding:5px;position: absolute;z-index: 5;right: 5px;">认领</el-button>
  138. </div>
  139. <div style="margin: 10px 0px;color:#666;" @click="timess(element.endDate)">
  140. <span v-if="element.endDate >= times || element.taskStatus == 1"><i v-if="element.endDate != null" class="el-icon-date">&nbsp;&nbsp;{{element.endDate}}</i></span>
  141. <span v-else><em v-if="element.endDate != null" style="display: inline-block;padding:3px 5px"><i v-if="element.endDate != null" class="el-icon-date"><span class="element_span"> &nbsp;&nbsp;{{element.endDate}} 截止</span></i></em></span>
  142. <i :class="taskTypeIcon[element.taskType]" :style="'float:right;color:'+taskTypeColor[element.taskType]+';margin-right:8px;'" ></i>
  143. </div>
  144. <!--子任务 -->
  145. <div v-if="element.subTaskList.length > 0">
  146. <el-tooltip class="item" effect="dark" content="查看子任务" placement="top">
  147. <el-link class="sub_task_num" @click.stop.native="showSubTaskList(element)"><i class="iconfont firerock-icontree" ></i><span style="margin-left:5px;">{{element.subTaskFinishNum}}/{{element.subTaskList.length}}</span></el-link>
  148. </el-tooltip>
  149. </div>
  150. </div>
  151. <el-button slot="footer" role="people" @click="addTask(stage)" style="width:100%;" size="small" icon="el-icon-plus"></el-button>
  152. </draggable>
  153. </v-flex>
  154. <!-- </transition-group > -->
  155. <el-button slot="footer" v-if="selectedGroup != null" @click="addStage" class="taskList" icon="el-icon-plus" style="margin-top:30px;">新建任务列表</el-button>
  156. </draggable>
  157. </div>
  158. <!--列表-->
  159. <el-table v-if="displayTable" :data="taskDataList"
  160. :header-cell-style="{'font-weight':'normal'}"
  161. highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
  162. <el-table-column fixed label="完成" width="50">
  163. <template slot-scope="scope">
  164. <el-checkbox :disabled="scope.row.taskStatus==2" v-model="scope.row.isFinish" size="large" class="cb"
  165. @change="finishTask(scope.row)"
  166. @click.stop.native=""
  167. ></el-checkbox>
  168. </template>
  169. </el-table-column>
  170. <el-table-column prop="name" fixed label="标题" width="250">
  171. <template slot-scope="scope">
  172. <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
  173. <span class="single_line" > {{scope.row.name}}</span>
  174. </el-tooltip>
  175. </template>
  176. </el-table-column>
  177. <el-table-column prop="taskType" label="任务类型" width="100">
  178. <template slot-scope="scope">
  179. {{taskTypeList[scope.row.taskType].name}}
  180. </template>
  181. </el-table-column>
  182. <el-table-column prop="taskStatus" label="任务状态" width="100" >
  183. <template slot-scope="scope">
  184. {{taskStatusList[scope.row.taskStatus]}}
  185. </template>
  186. </el-table-column>
  187. <el-table-column prop="parentName" label="父任务" width="250">
  188. <template slot-scope="scope">
  189. <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"> {{scope.row.parentTname}}</span>
  190. </template>
  191. </el-table-column>
  192. <el-table-column prop="stagesName" label="任务列表" width="100" >
  193. </el-table-column>
  194. <el-table-column prop="executorName" label="执行人" width="100" >
  195. <template slot-scope="scope">
  196. {{scope.row.executorName == null?"待分配":scope.row.executorName}}
  197. </template>
  198. </el-table-column>
  199. <!-- <el-table-column prop="endDate" label="截止时间" width="100" ></el-table-column> -->
  200. <el-table-column prop="endDate" label="截止时间" width="100" >
  201. <template slot-scope="scope">
  202. <p v-if="scope.row.endDate >= times || scope.row.taskStatus != 0">{{scope.row.endDate}}</p>
  203. <p style="border-radius: 3px; text-align: center;background: #e62412; color: #fff;" v-else><span>{{scope.row.endDate}}</span></p>
  204. </template>
  205. </el-table-column>
  206. <el-table-column prop="createDate" label="创建时间" width="100" ></el-table-column>
  207. <el-table-column prop="taskLevel" label="优先级" width="100" >
  208. <template slot-scope="scope">
  209. {{importanceList[scope.row.taskLevel].name}}
  210. </template>
  211. </el-table-column>
  212. </el-table>
  213. </el-main>
  214. </el-container>
  215. </el-tab-pane>
  216. <el-tab-pane label="文件中心" name="files"><FileCenter ref="fileCenter"></FileCenter></el-tab-pane>
  217. <el-tab-pane label="项目概览" name="info"><ProjectInfo ref="projectInfo"></ProjectInfo></el-tab-pane>
  218. <el-tab-pane label="数据统计" name="summary"><Summary ref="summary"></Summary></el-tab-pane>
  219. <el-tab-pane label="挣值分析" name="earning" v-if="user.role >= 1 && user.role<=3"><Earning ref="earning"></Earning></el-tab-pane>
  220. </el-tabs>
  221. <!--新增任务界面-->
  222. <el-dialog :class="addForm.id==null?'':'jm'" :title="title" v-if="addFormVisible" :visible.sync="addFormVisible"
  223. :close-on-click-modal="false" customClass="customWidth" width="800px">
  224. <!-- <div style="width: 200%;height:80%;position: absolute;right:-100%;top:0;background:#000;opacity: 0;" @click="sss"></div> -->
  225. <el-form ref="form1" :model="addForm" :rules="taskRules" label-width="100px">
  226. <!--子任务需要选择任务列表 -->
  227. <el-form-item label="任务列表" prop="stages" v-if="addForm.parentTid != null">
  228. <el-select v-model="addForm.stagesId" style="width:100%;" >
  229. <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
  230. </el-select>
  231. </el-form-item>
  232. <el-form-item label="类型">
  233. <el-select v-model="addForm.taskType" style="width:100%;" >
  234. <el-option v-for="item in taskTypeList" :key="item.id" :label="item.name" :value="item.id">
  235. <i :class="item.icon" ></i>
  236. <span>{{item.name}}</span>
  237. </el-option>
  238. </el-select>
  239. </el-form-item>
  240. <el-form-item label="任务内容" prop="name">
  241. <el-input v-model="addForm.name" placeholder="请输入任务内容" clearable></el-input>
  242. </el-form-item>
  243. <el-form-item label="执行人">
  244. <el-select v-model="addForm.executorId" filterable placeholder="请选择执行人" style="width:100%;" >
  245. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id"></el-option>
  246. </el-select>
  247. </el-form-item>
  248. <el-form-item label="截止时间" prop="endDate">
  249. <el-date-picker v-model="addForm.endDate" type="date" style="width:40%;" value-format="yyyy-MM-dd" placeholder="请选择日期" ></el-date-picker>
  250. <span style="margin-left:30px;margin-right:10px;">计划工时</span><el-input-number v-model="addForm.planHours" style="width:30%;" :min="1" :max="100" placeholder="请输入计划工作时长,单位小时" ></el-input-number ><span style="margin-left:10px;">小时</span>
  251. </el-form-item>
  252. <el-form-item label="优先级">
  253. <el-select v-model="addForm.taskLevel" style="width:100%;" >
  254. <el-option v-for="item in importanceList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  255. </el-select>
  256. </el-form-item>
  257. <!-- 富文本 -->
  258. <el-form-item label="详细描述" style="height: 200px">
  259. <!-- <Editor id="tinymce" v-model="tinymceHtml" :init="editorInit"></Editor> -->
  260. <!-- <el-input type="textarea" v-model="addForm.taskDesc" :rows="3"></el-input> -->
  261. <!-- <quill-edito v-model="addForm.taskDesc"></quill-edito> -->
  262. <quill-editor style="height: 150px" ref="text" v-model="addForm.taskDesc" class="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)"/>
  263. </el-form-item>
  264. <!-- 富文本 -->
  265. <div v-if="addForm.id != null">
  266. <el-divider ></el-divider>
  267. <!-- 任务进展 -->
  268. <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">任务进展</i>
  269. <span ref="addPro" style="display: block; float:right;"><el-link @click="addprogress">添加任务进展</el-link></span>
  270. </p>
  271. <!-- 任务进展展示 -->
  272. <div style="display: none;" ref="proBox" class="progress">
  273. <!-- <el-form :model="> -->
  274. <el-radio-group v-model="radio">
  275. <el-radio :label="0" class="rala1">状态正常</el-radio>
  276. <el-radio :label="1" class="rala2">存在风险</el-radio>
  277. <el-radio :label="2" class="rala3">进展预期</el-radio>
  278. </el-radio-group>
  279. <el-input
  280. type="textarea"
  281. border="0"
  282. :autosize="{ minRows: 2, maxRows: 6}"
  283. placeholder="请输入详细进展描述"
  284. v-model.trim="text2"
  285. style="margin:10px 0 0 0">
  286. </el-input>
  287. <h4 style="font-weight: normal;">提醒谁查看:{{checkLists.length}}</h4>
  288. <i class="el-icon-circle-plus pron_i" style="font-size: 28px;color: #409EFF;" @click="addI(0)"></i>
  289. <div class="remind" ref="addRem" style="display: none">
  290. <el-checkbox-group v-model="checkboxGrounp" v-for="item in users" :key="item.id">
  291. <p><el-checkbox :label="item.name" @change="kkk(item)"></el-checkbox></p>
  292. </el-checkbox-group>
  293. </div>
  294. <div class="ssp" @click="sss"></div>
  295. <!-- </el-form> -->
  296. <div class="pro_btn">
  297. <el-button size="mini" @click="shutPro">取消</el-button>
  298. <el-button size="mini" type="primary" @click="addTaskProgress">发布</el-button>
  299. </div>
  300. </div>
  301. <!-- 任务进展列表 -->
  302. <!-- <div class="ddl" v-if="ProgressList.length > 0">
  303. <div class="elCard" v-for="item in ProgressList" :key="item.id" style="margin-bottom: 10px; height:" >
  304. <i class="el-icon-success" style="color: #43d14f;" v-if="item.status == 0"></i>
  305. <i class="el-icon-success" style="color: #fd7624;" v-else-if="item.status == 1"></i>
  306. <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
  307. <span v-if="item.status == 0">状态正常</span>
  308. <span v-else-if="item.status == 1">状态正常</span>
  309. <span v-else>进展预期</span>
  310. <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
  311. <i class="el-icon-more" ></i>
  312. <el-dropdown-menu slot="dropdown">
  313. <el-dropdown-item divided>
  314. <span @click="deleteTaskProgress(item.id)"><i class="el-icon-delete"></i>删除列表</span></el-dropdown-item>
  315. </el-dropdown-menu>
  316. </el-dropdown>
  317. <div class="elCard_qu">屈经理更新于{{item.indate | relativeTime}}</div>
  318. <p style="padding-left: 20px;">{{item.content}}</p>
  319. <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">查看历史记录</el-button></div>
  320. </div>
  321. </div> -->
  322. <div class="ddl" v-if="ProgressList.length > 0">
  323. <div class="elCard" v-for="item in ProgressList" :key="item.id" style="margin-bottom: 10px; height:" >
  324. <i class="el-icon-success" style="color: #43d14f;" v-if="item.status == 0"></i>
  325. <i class="el-icon-success" style="color: #fd7624;" v-else-if="item.status == 1"></i>
  326. <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
  327. <span v-if="item.status == 0">状态正常</span>
  328. <span v-else-if="item.status == 1">状态正常</span>
  329. <span v-else>进展预期</span>
  330. <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
  331. <i class="el-icon-more" ></i>
  332. <el-dropdown-menu slot="dropdown">
  333. <el-dropdown-item divided>
  334. <span @click="deleteTaskProgress(item.id)"><i class="el-icon-delete"></i>删除列表</span></el-dropdown-item>
  335. </el-dropdown-menu>
  336. </el-dropdown>
  337. <div class="elCard_qu">屈经理更新于{{item.indate | relativeTime}}</div>
  338. <p style="padding-left: 20px;">{{item.content}}</p>
  339. <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">查看历史记录</el-button></div>
  340. </div>
  341. </div>
  342. <!-- 任务列表没有数据的时候展示 -->
  343. <div class="nones" v-if="ProgressList.length <= 0">
  344. 暂无数据
  345. </div>
  346. <!-- 任务进展完整状态 -->
  347. <el-dialog title="提示" :visible.sync="innerVisibless" append-to-body width="500px">
  348. <div class="integrity">
  349. <h3 style="font-weight: normal;display: inline-block;margin: 0 0 20px 0;">任务进展:{{ProgressList.length}}</h3>
  350. <!-- <span class="write"><i class="el-icon-circle-plus"></i>填写进展</span> -->
  351. <el-divider></el-divider>
  352. <!-- -->
  353. <div class="block" style="height: 200px;">
  354. <el-timeline style="padding:20px 0 0 0;">
  355. <el-timeline-item
  356. v-for="(activity, index) in ProgressList"
  357. :key="index">
  358. <div class="tb">
  359. <span v-if="activity.status == 0" style="color: #43D14F" class="icon"></span>
  360. <span v-if="activity.status == 1" style="color: #FD7624" class="icon"></span>
  361. <span v-if="activity.status == 2" style="color: red" class="icon"></span>
  362. <div>
  363. <span v-if="activity.status == 0" style="color: #43D14F">状态正常</span>
  364. <span v-if="activity.status == 1" style="color: #FD7624">存在风险</span>
  365. <span v-if="activity.status == 2" style="color: red">进展预期</span>
  366. <span style="display: inline-block; float: right; color: #8C8C8C">{{activity.indate | relativeTime}}</span>
  367. </div>
  368. <p style="color: #8C8C8C">{{activity.content}}</p>
  369. </div>
  370. </el-timeline-item>
  371. </el-timeline>
  372. </div>
  373. <!-- -->
  374. </div>
  375. <span slot="footer" class="dialog-footer">
  376. <el-button @click="innerVisibless = false">取 消</el-button>
  377. <el-button type="primary" @click="innerVisibless = false">确 定</el-button>
  378. </span>
  379. </el-dialog>
  380. <!-- 子任务 -->
  381. <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">子任务</i>
  382. <el-link style="float:right;" @click="addSubTask">添加子任务</el-link>
  383. </p>
  384. <!--子任务列表 -->
  385. <el-table :data="addForm.subTaskList"
  386. :header-cell-style="{'font-weight':'normal'}"
  387. highlight-current-row v-loading="listLoading" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
  388. <el-table-column prop="taskStatus" label="完成" width="50" >
  389. <template slot-scope="scope">
  390. <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb"
  391. @click.stop.native=""
  392. @change="finishTask(scope.row)"
  393. ></el-checkbox>
  394. </template>
  395. </el-table-column>
  396. <el-table-column prop="name" label="标题" >
  397. <template slot-scope="scope">
  398. <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
  399. <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.name}}</span>
  400. </el-tooltip>
  401. </template>
  402. </el-table-column>
  403. <el-table-column prop="executorName" label="执行人" width="100" >
  404. <template slot-scope="scope">
  405. {{scope.row.executorName == null?"待分配":scope.row.executorName}}
  406. </template>
  407. </el-table-column>
  408. <el-table-column prop="endDate" label="截止时间" width="100" >
  409. <template slot-scope="scope">
  410. <p v-if="scope.row.endDate >= times">{{scope.row.endDate}}</p>
  411. <p v-else style="background: #e62412; color: #fff;text-align: center; border-radius: 3px;">{{scope.row.endDate}}</p>
  412. </template>
  413. </el-table-column>
  414. </el-table>
  415. </div>
  416. </el-form>
  417. <div slot="footer" class="dialog-footer">
  418. <el-button @click.native="deleteTask" style="float:left;">删除</el-button>
  419. <el-button @click.native="addFormVisible = false">取消</el-button>
  420. <el-button type="primary" @click="submitInsert" :loading="addLoading">提交</el-button>
  421. </div>
  422. <div slot="title" v-if="addForm.parentTid != null" >
  423. <!-- <el-link @click="backToParentTask"><i class="el-icon-arrow-left single_line">返回父级任务</i> | {{addForm.parentTname}}</el-link> -->
  424. <el-page-header @back="backToParentTask" title="返回父任务" :content="addForm.parentTname"></el-page-header>
  425. </div>
  426. <!-- 评论 -->
  427. <div class="remark" v-show="addForm.id != null">
  428. <span class="zh">
  429. <span v-for="(pl, i) in critic" :key="i">
  430. <div class="player" v-if="pl">
  431. <p>参与人</p>
  432. <div class="bj">
  433. <span style="background: #778899">{{pl.length > 2 ? pl.substring(pl.length - 2, pl.length) : pl}}</span>
  434. <!-- <span style="background: #778899">{{pl.length}}</span> -->
  435. </div>
  436. </div>
  437. </span>
  438. <div class="subject">
  439. <div class="sub-all">所有动态</div>
  440. <div class="sub-details" ref="main">
  441. <ul class="infinite-list" v-infinite-scroll="load" style="overflow:auto" ref="contRoll">
  442. <div style="width: 100%" v-if="commentList.length <= 0">
  443. <img src="../../assets/image/xiao.png" alt="">
  444. </div>
  445. <li v-for="i in count" class="infinite-list-item counli" :key="i">
  446. <p><i class="el-icon-s-fold"></i> <em>屈经理完成了依赖任务</em><span>4月20日</span></p>
  447. </li>
  448. <li class="carts" v-for="item in commentList" :key="item.id">
  449. <!-- <el-image style="width: 30px; height: 30px" :src="url" :fit="fit"></el-image> -->
  450. <!-- <i :style="'background' + item.userColor"> -->
  451. <i :style="'background' + item.userColor">
  452. {{item.userName.length > 2 ? item.userName.substring(item.userName.length - 2, item.userName.length) : item.userName}}
  453. </i>
  454. <div>
  455. <!-- <p>{{item.userName}}</p> -->
  456. <p>{{item.userName}}</p>
  457. <em>{{item.content}}</em>
  458. </div>
  459. <span>{{item.createTime | relativeTime}}</span>
  460. </li>
  461. </ul>
  462. </div>
  463. </div>
  464. <div class="issue">
  465. <!-- <el-input type="textarea" class="textareays" label-width="100%" label-height="140px"></el-input> -->
  466. <div class="issue_fixation">
  467. <div class="inputDeep"><el-input
  468. type="textarea"
  469. placeholder="请输入内容"
  470. :autosize="{ minRows: 6, maxRows: 6}"
  471. v-model.trim="textarea2"
  472. class="inputDeeps"
  473. >
  474. </el-input></div>
  475. <el-button class="issue-button" type="primary" @click="release()">发布</el-button>
  476. </div>
  477. </div>
  478. </span>
  479. </div>
  480. <!-- 评论 -->
  481. </el-dialog>
  482. <!-- 子任务列表 -->
  483. <el-dialog title="查看子任务" v-if="subTaskVisible" :visible.sync="subTaskVisible" :close-on-click-modal="false" customClass="customWidth" width="800px">
  484. <el-table :data="addForm.subTaskList"
  485. :header-cell-style="{'font-weight':'normal'}"
  486. highlight-current-row v-loading="listLoading" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
  487. <el-table-column prop="taskStatus" label="完成" width="50" >
  488. <template slot-scope="scope">
  489. <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb"
  490. @click.stop.native="finishTask(scope.row)"
  491. ></el-checkbox>
  492. </template>
  493. </el-table-column>
  494. <el-table-column prop="name" label="标题" >
  495. <template slot-scope="scope">
  496. <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
  497. <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.name}}</span>
  498. </el-tooltip>
  499. </template>
  500. </el-table-column>
  501. <el-table-column prop="executorName" label="执行人" width="100" >
  502. <template slot-scope="scope">
  503. {{scope.row.executorName == null?"待分配":scope.row.executorName}}
  504. </template>
  505. </el-table-column>
  506. <el-table-column prop="endDate" label="截止时间" width="100" ></el-table-column>
  507. </el-table>
  508. </el-dialog>
  509. <!--用户详细信息弹出框-->
  510. <el-dialog title="查看详情" v-if="userDetailVisible" :visible.sync="userDetailVisible" :close-on-click-modal="false" customClass="customWidth" width="400px">
  511. <div class="line"><span>姓名</span><span>{{userDetail.name}}</span></div>
  512. <div class="line"><span>手机号码</span><span>{{userDetail.phone}}</span></div>
  513. <div class="line"><span>部门</span><span>{{userDetail.departmentName}}</span></div>
  514. <div class="line"><span>成本</span><span>{{userDetail.cost}}元/小时</span></div>
  515. <div slot="footer" class="dialog-footer">
  516. <el-button type="primary" @click="userDetailVisible = false" >确定</el-button>
  517. </div>
  518. </el-dialog>
  519. <!-- 新增任务分组弹出框 -->
  520. <el-dialog v-if="addGroupDialog" :visible.sync="addGroupDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
  521. <div slot="title" >
  522. <el-tabs v-model="createGroupWay">
  523. <el-tab-pane label="新建分组" name="new">
  524. <el-form ref="form2" :model="groupForm" :rules="rules" style="margin-top:40px;">
  525. <el-form-item prop="name">
  526. <el-input v-model="groupForm.name" placeholder="请输入分组名称" maxlength="12"
  527. show-word-limit clearable></el-input>
  528. </el-form-item>
  529. <el-button type="primary" @click="addGroup" style="width:100%;" >创建</el-button>
  530. </el-form>
  531. </el-tab-pane>
  532. <el-tab-pane label="从模板创建" name="template">
  533. <el-card class="template_box" :style="t.selected?'border: 1px solid #409eff;':''" v-for="(t,tIndex) in groupTemplateList" :key="t.id" @click.native="choseTemplate(tIndex)">
  534. <el-row >
  535. <el-col :span="22">
  536. <div >{{t.name}}</div>
  537. <div style="margin-top:10px;"><span style="color:#8c8c8c;font-size:12px;" v-for="(s,index) in t.stagesList" :key="s.id">
  538. <i class="el-icon-arrow-right" v-if="index>0"></i>
  539. {{s.stagesName}}</span></div>
  540. </el-col>
  541. <el-col :span="2">
  542. <i class="el-icon-check" v-if="t.selected" style="font-size:20px;color:#409eff;margin-top:12px;"></i>
  543. </el-col>
  544. </el-row>
  545. </el-card>
  546. <el-button type="primary" @click="addTemplateGroup" style="width:100%;" >创建</el-button>
  547. </el-tab-pane>
  548. </el-tabs>
  549. </div>
  550. </el-dialog>
  551. <el-dialog title="修改任务分组" v-if="modGroupDialog" :visible.sync="modGroupDialog" :close-on-click-modal="false" customClass="customWidth" width="300px">
  552. <el-form ref="form2" :model="groupForm" :rules="rules" style="margin-top:10px;">
  553. <el-form-item prop="name">
  554. <el-input v-model="groupForm.name" placeholder="请输入分组名称" maxlength="12"
  555. show-word-limit clearable></el-input>
  556. </el-form-item>
  557. </el-form>
  558. <div slot="footer" class="dialog-footer">
  559. <el-button type="primary" @click="addGroup" style="width:100%;" >保存</el-button>
  560. </div>
  561. </el-dialog>
  562. <!-- 新增任务列表弹出框 -->
  563. <el-dialog title="新增/修改任务列表" v-if="addStageDialog" :visible.sync="addStageDialog" :close-on-click-modal="false" customClass="customWidth" width="300px">
  564. <el-form ref="form2" :model="stageForm" :rules="rules2" >
  565. <el-form-item prop="stagesName">
  566. <el-input v-model="stageForm.stagesName" placeholder="请输入任务列表名称" maxlength="12"
  567. show-word-limit clearable></el-input>
  568. </el-form-item>
  569. </el-form>
  570. <div slot="footer" class="dialog-footer">
  571. <el-button type="primary" @click="addStagePost" style="width:100%;" >保存</el-button>
  572. </div>
  573. </el-dialog>
  574. <!--导出数据条件选择 -->
  575. <el-dialog title="工作计划导出" v-if="exportDialog" :visible.sync="exportDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
  576. <el-form ref="form3" >
  577. <el-form-item label="选择类型">
  578. <el-select v-model="exportTaskType" placeholder="全部类型" clearable style="width:350px;">
  579. <el-option label="任务" value="0"></el-option>
  580. <el-option label="里程碑" value="1"></el-option>
  581. <el-option label="风险" value="2"></el-option>
  582. </el-select>
  583. </el-form-item>
  584. </el-form>
  585. <div slot="footer" class="dialog-footer">
  586. <el-button type="primary" @click="exportTask" style="width:100%;" >导出</el-button>
  587. </div>
  588. </el-dialog>
  589. <!--导入数据,下载模板 -->
  590. <el-dialog title="工作计划导入" v-if="importTaskDialog" :visible.sync="importTaskDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
  591. <el-form ref="form4" >
  592. <el-form-item label="1. 请先下载模板并填写后上传" >
  593. <el-link type="primary" :underline="false" href="./upload/项目任务导入模板.xlsx" download="项目任务导入模板.xlsx">项目任务模板下载</el-link>
  594. </el-form-item>
  595. <el-form-item label="2. 选择要导入的任务列表">
  596. <el-select v-model="importToStageId" placeholder="任务列表" style="width:350px;">
  597. <el-option v-for="item in stageList" :label="item.stagesName" :value="item.id" :key="item.id"></el-option>
  598. </el-select>
  599. </el-form-item>
  600. <div><span style="font-size:12px;color:#999;">如导入的任务属于多个列表,可在导入后拖拽来更改所属列表</span></div>
  601. </el-form>
  602. <div slot="footer" class="dialog-footer">
  603. <el-upload ref="upload" action="#" :limit="1" :http-request="importTask" :show-file-list="false">
  604. <el-button type="primary" :underline="false" style="width:100%;">上传文件</el-button>
  605. </el-upload>
  606. </div>
  607. </el-dialog>
  608. </section>
  609. </template>
  610. <script>
  611. import util from "../../common/js/util";
  612. import draggable from 'vuedraggable';
  613. import tinymce from 'tinymce/tinymce'
  614. import 'tinymce/themes/silver/theme'
  615. import 'tinymce/skins/ui/oxide/skin.css';
  616. import FileCenter from './fileCenter.vue';
  617. import ProjectInfo from './info.vue';
  618. import Summary from './summary.vue';
  619. import Earning from './earning.vue';
  620. // import editor from '@tinymce/tinymce-vue'
  621. // 富文本样式
  622. import 'quill/dist/quill.core.css'
  623. import 'quill/dist/quill.snow.css'
  624. import 'quill/dist/quill.bubble.css'
  625. // 导入富文本
  626. import { quillEditor } from 'vue-quill-editor'
  627. let id=1;
  628. export default {
  629. name: "two-list-headerslots",
  630. display: "Two list header slot",
  631. order: 14,
  632. components: {
  633. draggable,
  634. // editor,
  635. FileCenter,
  636. ProjectInfo,
  637. Summary,
  638. Earning,
  639. quillEditor // 富文本
  640. },
  641. data() {
  642. return {
  643. importTaskDialog:false,
  644. importToStageId:null,
  645. exportDialog: false,
  646. exportTaskType:null,
  647. groupTemplateList:[],
  648. createGroupWay:'new',
  649. modGroupDialog:false,
  650. subTaskVisible:false,
  651. orderList:[{id:"seq",name:"手动拖拽顺序",isDesc:false},{id:"create_date",name:"创建时间最晚",isDesc:true},
  652. {id:"end_date",name:"截止时间最晚",isDesc:true},
  653. {id:"task_level",name:"优先级最高",isDesc:true}],
  654. order:"seq",
  655. isDesc:false,
  656. taskDataList:[],
  657. displayTable: false,
  658. viewList: [{id:1,name:"全部任务"},{id:2,name:"进行中的任务"},{id:3,name:"已完成的任务"},{id:4,name:"待安排任务"},
  659. {id:5,name:"我创建的任务"},{id:6,name:"我执行的任务"},{id:7,name:"今天的任务"},{id:8,name:"已超期的任务"}],
  660. importanceList:[{id:0,name:"一般"},{id:1,name:"重要"},{id:2,name:"紧急"},],
  661. taskTypeList:[{id:0,name:"任务", icon:"iconfont firerock-iconrenwu"},{id:1,name:"里程碑",icon:"iconfont firerock-iconicon-"},{id:2,name:"风险",icon:"iconfont firerock-iconfengxian"}],
  662. taskTypeColor:['#20A0FF','#8613ad','#bf0404'],
  663. taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
  664. taskStatusList:['进行中','已完成','已撤销'],
  665. //优先级
  666. taskLevelColor:['#262626','#E6A23C','#F56C6C'],
  667. stageListHeight:0,
  668. groupWidth:260,
  669. drag: false,
  670. stageDrag: false,
  671. dragging: false,
  672. stageList:[],
  673. selectedGroup:{},
  674. allGroupData:[],
  675. defaultGroupId:null,
  676. addGroupDialog: false,
  677. addStageDialog: false,
  678. groupSearch:null,
  679. groupType:0,//0-分组,1-视图
  680. groupList: [],
  681. groupForm:{},
  682. stageForm:[],
  683. curProjectId:null,
  684. projectList:null,
  685. activeIndex:"1",
  686. activeName:"projectInside",
  687. searchField:null,
  688. keyword:null,
  689. user: JSON.parse(sessionStorage.getItem("user")),
  690. userDetailVisible: false,
  691. userDetail:{},
  692. date: new Date(),
  693. users: [],
  694. tableHeight: 0,
  695. listLoading: false,
  696. subProjectVisible: false,
  697. subProjectList: [],//子项目列表
  698. currentProject:{},
  699. addSubProject: false,
  700. addFormVisible: false,
  701. addLoading: false,
  702. title: "",
  703. addForm: {
  704. name: '',
  705. },
  706. rules: {
  707. name: [{ required: true, message: "请输入分组名称", trigger: "blur" }],
  708. },
  709. rules2: {
  710. stagesName: [{ required: true, message: "请输入任务列表名称", trigger: "blur" }],
  711. },
  712. taskRules : {
  713. name: [{ required: true, message: "请输入任务内容", trigger: "blur" }],
  714. },
  715. sleectId: null,
  716. sleectProjectId: null,
  717. sidebarIndex: null, // 侧边栏索引
  718. url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
  719. count: 0,
  720. textarea2: '',
  721. taskId: null,
  722. commentList: [],
  723. radio: 0,
  724. critic: [], // 评论头像的数组
  725. editorOption: { // 富文本框里面的默认值
  726. placeholder: '请输入文本...',
  727. modules: {
  728. toolbar:[
  729. ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
  730. // ['blockquote', 'code-block'], //引用,代码块
  731. [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
  732. // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
  733. // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
  734. // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
  735. // [{ 'direction': 'rtl' }], // 文本方向
  736. [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
  737. [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
  738. [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
  739. // [{ 'font': [] }], //字体
  740. [{ 'align': [] }], //对齐方式
  741. ['clean'], //清除字体样式
  742. // ['image','video'] //上传图片、上传视频
  743. ['image'] //上传图片、上传视频
  744. ], //工具栏设置
  745. },
  746. theme: 'snow',
  747. },
  748. textContent: true, // 控制提交
  749. times: null,
  750. text2: '',
  751. innerVisibless: false, // 任务展示弹出层
  752. activities: [{
  753. content: '状态正常',
  754. timestamp: '7小时前',
  755. size: 'large',
  756. type: 'primary',
  757. icon: 'el-icon-circle-check',
  758. color: '#409EFF'
  759. }, {
  760. content: '进展逾期',
  761. timestamp: '八小时前',
  762. color: '#F87872'
  763. }],
  764. ProgressList: [],
  765. progres: {},
  766. checkboxGrounp: [], // 选中人的数据
  767. checkLists: [], // 选中人数据的ID
  768. taskIid: null
  769. };
  770. },
  771. methods: {
  772. // 批量导入人员
  773. importTask(item) {
  774. //首先判断文件类型
  775. let str = item.file.name.split(".");
  776. let format = str[str.length - 1];
  777. if (format != "xls" && format != "xlsx") {
  778. this.$message({
  779. message: "请选择.xls或.xlsx文件",
  780. type: "error"
  781. });
  782. } else {
  783. this.listLoading = true;
  784. let formData = new FormData();
  785. formData.append("file", item.file);
  786. formData.append("projectId", this.curProjectId);
  787. formData.append("groupId", this.selectedGroup.id);
  788. formData.append("stagesId", this.importToStageId);
  789. this.http.uploadFile('/task/importTask', formData,
  790. res => {
  791. this.$refs.upload.clearFiles();
  792. this.listLoading = false;
  793. if (res.code == "ok") {
  794. this.$message({
  795. message: "导入成功",
  796. type: "success"
  797. });
  798. //重新读取列表
  799. this.getStageList();
  800. this.importTaskDialog = false;
  801. } else {
  802. this.$message({
  803. message: res.msg,
  804. type: "error"
  805. });
  806. }
  807. },
  808. error => {
  809. this.$refs.upload.clearFiles();
  810. this.listLoading = false;
  811. this.$message({
  812. message: error,
  813. type: "error"
  814. });
  815. });
  816. }
  817. },
  818. //删除任务进展
  819. deleteTaskProgress(id) {
  820. this.http.post('/task-progress/deleteProgress', {id: id},
  821. res => {
  822. if (res.code == "ok") {
  823. this.getTaskProgressList(this.taskIid)
  824. this.$message({
  825. message: '删除成功',
  826. type: "success"
  827. });
  828. } else {
  829. this.$message({
  830. message: res.msg,
  831. type: "error"
  832. });
  833. }
  834. }
  835. );
  836. },
  837. //创建任务进展
  838. addTaskProgress() {
  839. var param = {
  840. taskId: this.taskIid,
  841. status: this.radio,
  842. content: this.text2,
  843. participatorIds: this.checkLists.toString()
  844. };
  845. this.http.post('/task-progress/addProgress', param,
  846. res => {
  847. if (res.code == "ok") {
  848. this.shutPro()
  849. this.getTaskProgressList(this.taskIid)
  850. this.$message({
  851. message: '发布成功',
  852. type: "success"
  853. });
  854. this.checkboxGrounp = [],
  855. this.checkLists = [],
  856. this.text2 = '',
  857. this.radio = 0
  858. } else {
  859. this.$message({
  860. message: res.msg,
  861. type: "error"
  862. });
  863. }
  864. }
  865. );
  866. },
  867. //获取任务进展列表
  868. getTaskProgressList(taskId) {
  869. this.taskIid = taskId
  870. this.http.post('/task-progress/list', {taskId: taskId},
  871. res => {
  872. if (res.code == "ok") {
  873. this.ProgressList = res.data;
  874. this.progres = res.data[0]
  875. } else {
  876. this.$message({
  877. message: res.msg,
  878. type: "error"
  879. });
  880. }
  881. }
  882. );
  883. },
  884. kkk(el){
  885. var k = this.checkLists.indexOf(el.id)
  886. if (k == -1) {
  887. this.checkLists.push(el.id)
  888. } else {
  889. this.checkLists.splice(k, 1)
  890. }
  891. },
  892. showExportDialog() {
  893. this.exportDialog = true;
  894. },
  895. exportTask() {
  896. let _this = this;
  897. this.http.post('/task/exportTask', {projectId: this.curProjectId, taskType: this.exportTaskType},
  898. res => {
  899. if (res.code == "ok") {
  900. location.href = res.data;
  901. } else {
  902. this.$message({
  903. message: res.msg,
  904. type: "error"
  905. });
  906. }
  907. }
  908. );
  909. },
  910. sss(){
  911. this.$refs.addRem.style.display="none"
  912. },
  913. addprogress(){ // 添加子任务进展事件
  914. this.$refs.proBox.style.display="block"
  915. this.$refs.addPro.style.display="none"
  916. },
  917. shutPro() { // 关闭任务进展
  918. this.$refs.addPro.style.display="block"
  919. this.$refs.addRem.style.display="none"
  920. this.$refs.proBox.style.display="none"
  921. },
  922. addI() { // 打开选择查看
  923. this.$refs.addRem.style.display="block"
  924. },
  925. load() {
  926. if(this.count >= 0) return
  927. this.count += 2
  928. },
  929. onEditorFocus() {
  930. this.onEditorBlur()
  931. },
  932. subMission() { // 添加
  933. },
  934. handleCheckedCitiesChange(value) {
  935. let checkedCount = value.length;
  936. this.checkAll = checkedCount === this.cities.length;
  937. this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
  938. },
  939. // 获得焦点时触发
  940. onEditorBlur(){
  941. let theEle = this.$refs.text; // 获取元素
  942. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  943. var arrImg = ''
  944. for (var j = 0; j < img.length; j++) {
  945. // 正则匹配,摘出img标签下的src里的内容,即capture
  946. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  947. arrImg += capture
  948. });
  949. }
  950. // 原来的字符流大小,单位为字节
  951. var strLen = arrImg.length;
  952. // 计算后得到的文件流大小,单位为字节
  953. var fileSize=parseInt(strLen-(strLen/8)*2);
  954. var size = "";
  955. size = (fileSize/1024/1024).toFixed(2);
  956. if (size > 2){
  957. this.textContent = false
  958. this.$message({
  959. showClose: true,
  960. message: '图片超过了2MB,请重新上传',
  961. type: 'warning'
  962. });
  963. }
  964. this.textContent = true
  965. },
  966. // 侧边栏的点击事件
  967. retract() {
  968. if (this.$refs.box.className == 'el-icon-arrow-left') {
  969. this.$refs.box.className = 'el-icon-arrow-right'
  970. } else {
  971. this.$refs.box.className = 'el-icon-arrow-left'
  972. }
  973. // this.$refs.box.className === 'el-icon-arrow-left' ? this.$refs.box.className = 'el-icon-arrow-right' || this.$refs.box.className = 'el-icon-arrow-left'
  974. this.toggleGroup()
  975. },
  976. //
  977. choseTemplate(tIndex) {
  978. this.groupTemplateList.forEach(g=>{
  979. g.selected = false;
  980. })
  981. this.sidebarIndex = tIndex
  982. this.groupTemplateList[tIndex].selected = true;
  983. },
  984. //获取分组模板列表
  985. getGroupTemplate() {
  986. this.http.post('/group-template/getList',{},
  987. res => {
  988. if (res.code == "ok") {
  989. this.groupTemplateList = res.data;
  990. this.groupTemplateList[0].selected = true;
  991. } else {
  992. this.$message({
  993. message: res.msg,
  994. type: "error"
  995. });
  996. }
  997. },
  998. error => {
  999. this.$message({
  1000. message: error,
  1001. type: "error"
  1002. });
  1003. });
  1004. },
  1005. copyGroup(item) {
  1006. this.http.post('/task-group/copy',{id: item.id},
  1007. res => {
  1008. if (res.code == "ok") {
  1009. this.getTaskGroups();
  1010. } else {
  1011. this.$message({
  1012. message: res.msg,
  1013. type: "error"
  1014. });
  1015. }
  1016. },
  1017. error => {
  1018. this.$message({
  1019. message: error,
  1020. type: "error"
  1021. });
  1022. });
  1023. },
  1024. //重启项目
  1025. startPro() {
  1026. this.http.post('/project/start',{id: this.curProjectId},
  1027. res => {
  1028. if (res.code == "ok") {
  1029. this.$message({
  1030. message: '重启成功',
  1031. type: "success"
  1032. });
  1033. this.currentProject.status = 1;
  1034. } else {
  1035. this.$message({
  1036. message: res.msg,
  1037. type: "error"
  1038. });
  1039. }
  1040. },
  1041. error => {
  1042. this.$message({
  1043. message: error,
  1044. type: "error"
  1045. });
  1046. });
  1047. },
  1048. //撤销项目
  1049. cancelPro() {
  1050. this.http.post('/project/cancel',{id: this.curProjectId},
  1051. res => {
  1052. if (res.code == "ok") {
  1053. this.$message({
  1054. message: '撤销成功',
  1055. type: "success"
  1056. });
  1057. this.currentProject.status = 3;
  1058. } else {
  1059. this.$message({
  1060. message: res.msg,
  1061. type: "error"
  1062. });
  1063. }
  1064. },
  1065. error => {
  1066. this.$message({
  1067. message: error,
  1068. type: "error"
  1069. });
  1070. });
  1071. },
  1072. //完成项目
  1073. finishPro() {
  1074. this.http.post('/project/finish',{id: this.curProjectId},
  1075. res => {
  1076. if (res.code == "ok") {
  1077. this.$message({
  1078. message: '项目完成',
  1079. type: "success"
  1080. });
  1081. this.currentProject.status = 2;
  1082. } else {
  1083. this.$message({
  1084. message: res.msg,
  1085. type: "error"
  1086. });
  1087. }
  1088. },
  1089. error => {
  1090. this.$message({
  1091. message: error,
  1092. type: "error"
  1093. });
  1094. });
  1095. },
  1096. //删除当前编辑的任务
  1097. deleteTask() {
  1098. var warning='';
  1099. if (this.addForm.subTaskList.length > 0) {
  1100. warning='您确定要删除当前任务及其子任务吗?';
  1101. } else {
  1102. warning='您确定要删除当前任务吗?';
  1103. }
  1104. this.$confirm(warning, "提示", {
  1105. //type: 'warning'
  1106. }).then(() => {
  1107. this.http.post('/task/delete',{id: this.addForm.id},
  1108. res => {
  1109. if (res.code == "ok") {
  1110. this.addFormVisible = false;
  1111. this.getStageList();
  1112. } else {
  1113. this.$message({
  1114. message: res.msg,
  1115. type: "error"
  1116. });
  1117. }
  1118. },
  1119. error => {
  1120. this.$message({
  1121. message: error,
  1122. type: "error"
  1123. });
  1124. });
  1125. });
  1126. },
  1127. //tab页签切换
  1128. handleClick(tab, event) {
  1129. let pathModel = tab.name;
  1130. this.$router.push('/'+pathModel+'/'+this.curProjectId);
  1131. },
  1132. showSubTaskList(task) {
  1133. this.subTaskVisible = true;
  1134. this.addForm = task;
  1135. },
  1136. backToParentTask() {
  1137. this.getTaskDetail(this.addForm.parentTid);
  1138. },
  1139. //显示子任务创建卡片
  1140. addSubTask() {
  1141. this.addFormVisible = true;
  1142. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  1143. this.addLoading = false;
  1144. },
  1145. //认领任务
  1146. addAsMyTask(task) {
  1147. this.http.post('/task/addAsMyTask',{id: task.id},
  1148. res => {
  1149. if (res.code == "ok") {
  1150. this.getStageList();
  1151. } else {
  1152. this.$message({
  1153. message: res.msg,
  1154. type: "error"
  1155. });
  1156. }
  1157. },
  1158. error => {
  1159. this.$message({
  1160. message: error,
  1161. type: "error"
  1162. });
  1163. });
  1164. },
  1165. taskLineClick(row, column, event) {
  1166. this.editTask(row);
  1167. },
  1168. //排序发生改变
  1169. orderChange() {
  1170. this.isDesc = this.orderList.filter(o=>o.id == this.order)[0].isDesc;
  1171. if (this.groupType == 0) {
  1172. this.getStageList();
  1173. } else {
  1174. this.getViewTaskList();
  1175. }
  1176. },
  1177. //加载视图任务列表
  1178. getViewTaskList() {
  1179. this.http.post('/task/list',{projectId: this.curProjectId, viewId: this.selectedGroup.id, order: this.order, isDesc: this.isDesc},
  1180. res => {
  1181. if (res.code == "ok") {
  1182. this.taskDataList = res.data;
  1183. this.taskDataList.forEach(t=>{
  1184. t.isFinish = t.taskStatus==1?true:false;
  1185. });
  1186. } else {
  1187. this.$message({
  1188. message: res.msg,
  1189. type: "error"
  1190. });
  1191. }
  1192. },
  1193. error => {
  1194. this.$message({
  1195. message: error,
  1196. type: "error"
  1197. });
  1198. });
  1199. },
  1200. //阶段拖拽
  1201. onMoveStage(e) {
  1202. var data = {
  1203. groupId:this.selectedGroup.id,
  1204. oldIndex: e.oldIndex,
  1205. newIndex: e.newIndex,};
  1206. this.http.post('/stages/changeStageOrder',data,
  1207. res => {
  1208. if (res.code == "ok") {
  1209. this.getStageList();
  1210. } else {
  1211. this.$message({
  1212. message: res.msg,
  1213. type: "error"
  1214. });
  1215. }
  1216. },
  1217. error => {
  1218. this.$message({
  1219. message: error,
  1220. type: "error"
  1221. });
  1222. });
  1223. },
  1224. onChange(e) {
  1225. var data = {
  1226. id:e.item.id,
  1227. oldIndex: e.oldIndex -1,
  1228. newIndex: e.newIndex -1,
  1229. oldStagesId: e.from.id,
  1230. newStagesId: e.to.id};
  1231. this.http.post('/task/changeOrder',data,
  1232. res => {
  1233. if (res.code == "ok") {
  1234. this.getStageList();
  1235. } else {
  1236. this.$message({
  1237. message: res.msg,
  1238. type: "error"
  1239. });
  1240. }
  1241. },
  1242. error => {
  1243. this.$message({
  1244. message: error,
  1245. type: "error"
  1246. });
  1247. });
  1248. },
  1249. toggleGroup() {
  1250. if (this.groupWidth == 0) {
  1251. this.groupWidth = 260;
  1252. } else {
  1253. this.groupWidth = 0;
  1254. }
  1255. },
  1256. finishTask(task) {
  1257. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  1258. res => {
  1259. if (res.code == "ok") {
  1260. if (this.groupType == 0) {
  1261. this.getStageList();
  1262. } else {
  1263. this.getViewTaskList();
  1264. }
  1265. } else {
  1266. this.$message({
  1267. message: res.msg,
  1268. type: "error"
  1269. });
  1270. }
  1271. },
  1272. error => {
  1273. this.$message({
  1274. message: error,
  1275. type: "error"
  1276. });
  1277. });
  1278. },
  1279. // 点击卡片事件
  1280. editTask(task) {
  1281. this.addFormVisible = true;
  1282. this.addLoading = false;
  1283. this.title = "编辑任务";
  1284. this.getTaskDetail(task.id);
  1285. this.getTaskProgressList(task.id); // 获取任务进展列表
  1286. this.getUsers(); // 获取名单数据
  1287. this.gain(task); // 获取评论列表
  1288. },
  1289. // 获取评论列表
  1290. gain (task) {
  1291. this.commentList = [];
  1292. this.taskId = task.id;
  1293. this.http.post('/task-comment/getList', {taskId: task.id},
  1294. res => {
  1295. if (res.code == "ok") {
  1296. this.commentList = res.data
  1297. this.sppk(this.commentList) // 获取参与人的方法
  1298. } else {
  1299. this.$message({
  1300. message: res.msg,
  1301. type: "error"
  1302. });
  1303. }
  1304. },
  1305. error => {
  1306. this.$message({
  1307. message: error,
  1308. type: "error"
  1309. });
  1310. });
  1311. },
  1312. // 获取评论参与人
  1313. sppk(comit) {
  1314. var sk = []
  1315. comit.forEach(function(e){
  1316. sk.push(e.userName)
  1317. })
  1318. this.critic = new Set(sk)
  1319. },
  1320. // 点击发布
  1321. release() {
  1322. if(this.textarea2.length <= 0) return this.$message({message: "请输入内容", type: "error"})
  1323. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  1324. res => {
  1325. if(res.code == "ok"){
  1326. this.commentList.push(res.data)
  1327. this.sppk(this.commentList)
  1328. this.textarea2 = ""
  1329. this.contRoll() // 滚动到底部
  1330. } else {
  1331. this.$message({
  1332. message: res.msg,
  1333. type: "error"
  1334. });
  1335. }
  1336. },
  1337. error => {
  1338. this.$message({
  1339. message: error,
  1340. type: "error"
  1341. });
  1342. })
  1343. },
  1344. // 滚动到底部
  1345. contRoll(){
  1346. this.$nextTick(() => {
  1347. this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  1348. })
  1349. },
  1350. getTaskDetail(id) {
  1351. this.http.post('/task/getTask',{id: id},
  1352. res => {
  1353. if (res.code == "ok") {
  1354. this.addForm = res.data;
  1355. this.addForm.createDate = null;
  1356. this.addForm.indate = null;
  1357. this.addLoading = false;
  1358. } else {
  1359. this.$message({
  1360. message: res.msg,
  1361. type: "error"
  1362. });
  1363. }
  1364. },
  1365. error => {
  1366. this.$message({
  1367. message: error,
  1368. type: "error"
  1369. });
  1370. });
  1371. },
  1372. addTask(stage) {
  1373. this.addFormVisible = true;
  1374. this.addForm = {projectId: stage.projectId, groupId: stage.groupId, stagesId: stage.id, taskLevel:0, planHours: 8, taskType: 0};
  1375. this.addLoading = false;
  1376. this.title="创建任务";
  1377. this.commentList = [];
  1378. },
  1379. renameStage(item) {
  1380. this.stageForm = JSON.parse(JSON.stringify(item));
  1381. this.addStageDialog = true;
  1382. },
  1383. deleteStage(item) {
  1384. var _this = this;
  1385. var param = {id:item.id, groupId: item.groupId};
  1386. this.$confirm("确认删除吗?", "提示", {
  1387. //type: 'warning'
  1388. }).then(() => {
  1389. this.http.post('/stages/delete',param,
  1390. res => {
  1391. if (res.code == "ok") {
  1392. this.stageList = res.data;
  1393. } else {
  1394. this.$message({
  1395. message: res.msg,
  1396. type: "error"
  1397. });
  1398. }
  1399. },
  1400. error => {
  1401. this.$message({
  1402. message: error,
  1403. type: "error"
  1404. });
  1405. });
  1406. });
  1407. },
  1408. //加载项目内的任务列表
  1409. getStageList() {
  1410. this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
  1411. res => {
  1412. if (res.code == "ok") {
  1413. this.stageList = res.data;
  1414. this.timess() // 处理时间的方法
  1415. } else {
  1416. this.$message({
  1417. message: res.msg,
  1418. type: "error"
  1419. });
  1420. }
  1421. },
  1422. error => {
  1423. this.$message({
  1424. message: error,
  1425. type: "error"
  1426. });
  1427. });
  1428. },
  1429. timess(){
  1430. var date = new Date()
  1431. let Y = date.getFullYear()
  1432. let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
  1433. let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
  1434. this.times = `${Y}-${M}-${D}`
  1435. },
  1436. addStagePost() {
  1437. let param = JSON.parse(JSON.stringify(this.stageForm));
  1438. param.taskList = [];
  1439. this.http.post('/stages/save',param,
  1440. res => {
  1441. if (res.code == "ok") {
  1442. this.stageList = res.data;
  1443. this.addStageDialog = false;
  1444. } else {
  1445. this.$message({
  1446. message: res.msg,
  1447. type: "error"
  1448. });
  1449. }
  1450. },
  1451. error => {
  1452. this.$message({
  1453. message: error,
  1454. type: "error"
  1455. });
  1456. });
  1457. },
  1458. addStage() {
  1459. this.addStageDialog = true;
  1460. this.stageForm = {groupId: this.selectedGroup.id, projectId: this.curProjectId};
  1461. },
  1462. viewChange(index, indexPath) {
  1463. this.groupType = 1;
  1464. this.order = "create_date";
  1465. this.isDesc = true;
  1466. this.selectedGroup = this.viewList.filter(g=>g.id == index)[0];
  1467. this.getViewTaskList();
  1468. this.displayTable = true;
  1469. } ,
  1470. groupChange(index, indexPath) {
  1471. this.groupType = 0;
  1472. this.order = "seq";
  1473. this.isDesc = false;
  1474. this.selectedGroup = this.groupList.filter(g=>g.id == index)[0];
  1475. this.getStageList();
  1476. this.displayTable = false;
  1477. },
  1478. //本地搜索组
  1479. startSearchGroup() {
  1480. if (this.groupSearch != null || this.groupSearch.length > 0) {
  1481. this.groupList = this.allGroupData.filter(g=>g.name.indexOf(this.groupSearch) >= 0);
  1482. } else {
  1483. this.groupList = this.allGroupData;
  1484. }
  1485. },
  1486. renameGroup(item) {
  1487. this.groupForm = JSON.parse(JSON.stringify(item));
  1488. this.modGroupDialog = true;
  1489. },
  1490. deleteGroup(item) {
  1491. var _this = this;
  1492. this.$confirm("确认删除吗?", "提示", {
  1493. //type: 'warning'
  1494. }).then(() => {
  1495. this.http.post('/task-group/delete',item,
  1496. res => {
  1497. if (res.code == "ok") {
  1498. this.groupList = res.data;
  1499. if (item.id == this.selectedGroup.id) {
  1500. //之前选中的分组被删除了
  1501. if (this.groupList.length > 0) {
  1502. this.defaultGroupId = this.groupList[0].id;
  1503. this.selectedGroup = this.groupList[0];
  1504. } else {
  1505. this.selectedGroup = {};
  1506. }
  1507. }
  1508. } else {
  1509. this.$message({
  1510. message: res.msg,
  1511. type: "error"
  1512. });
  1513. }
  1514. },
  1515. error => {
  1516. this.$message({
  1517. message: error,
  1518. type: "error"
  1519. });
  1520. });
  1521. });
  1522. },
  1523. addTemplateGroup() {
  1524. var param = JSON.parse(JSON.stringify(this.groupTemplateList.filter(g=>g.selected)[0]));
  1525. delete param.stagesList;
  1526. param.projectId = this.curProjectId;
  1527. //
  1528. var k = this.groupTemplateList[this.sidebarIndex].name
  1529. var s = null;
  1530. var xmz = this.groupList.forEach(function(a, b, c){
  1531. if (a.name == k) {
  1532. s = true
  1533. return
  1534. }
  1535. })
  1536. if (s){
  1537. this.addGroupDialog = false;
  1538. return
  1539. }
  1540. //
  1541. this.http.post('/task-group/createFromTemplate',param,
  1542. res => {
  1543. if (res.code == "ok") {
  1544. this.selectedGroup = res.data
  1545. this.sleectId = res.data.id
  1546. this.sleectProjectId = res.data.projectId
  1547. this.addGroupDialog = false;
  1548. // this.getTaskGroups();
  1549. this.getTaskGroup();
  1550. } else {
  1551. this.$message({
  1552. message: res.msg,
  1553. type: "error"
  1554. });
  1555. }
  1556. },
  1557. error => {
  1558. this.$message({
  1559. message: error,
  1560. type: "error"
  1561. });
  1562. });
  1563. },
  1564. // 重新定义了 addGroup 方法
  1565. addGroup() {
  1566. this.http.post('/task-group/save',this.groupForm,
  1567. res => {
  1568. if (res.code == "ok") {
  1569. this.groupList = res.data;
  1570. this.addGroupDialog = false;
  1571. this.modGroupDialog = false;
  1572. if (this.selectedGroup.id !== this.groupForm.id) {
  1573. this.selectedGroup = this.groupForm;
  1574. }
  1575. this.defaultGroupId = this.groupList[this.groupList.length - 1].id
  1576. // this.getTaskGroup();
  1577. this.getStageList()
  1578. } else {
  1579. this.$message({
  1580. message: res.msg,
  1581. type: "error"
  1582. });
  1583. }
  1584. },
  1585. error => {
  1586. this.$message({
  1587. message: error,
  1588. type: "error"
  1589. });
  1590. });
  1591. },
  1592. createGroup() {
  1593. this.addGroupDialog = true;
  1594. this.groupForm = {projectId: this.curProjectId};
  1595. },
  1596. getInsideData() {
  1597. this.getTaskGroups();
  1598. },
  1599. //加载项目内的任务分组
  1600. getTaskGroups() {
  1601. this.http.post('/task-group/list',{projectId: this.curProjectId},
  1602. res => {
  1603. if (res.code == "ok") {
  1604. this.allGroupData = res.data;
  1605. this.groupList = res.data;
  1606. if (this.groupList.length > 0) {
  1607. this.defaultGroupId = this.groupList[0].id;
  1608. this.selectedGroup = this.groupList[0];
  1609. this.getStageList();
  1610. } else {
  1611. //清空任务列表
  1612. this.defaultGroupId = null;
  1613. this.selectedGroup = null;
  1614. this.stageList = [];
  1615. }
  1616. } else {
  1617. this.$message({
  1618. message: res.msg,
  1619. type: "error"
  1620. });
  1621. }
  1622. },
  1623. error => {
  1624. this.$message({
  1625. message: error,
  1626. type: "error"
  1627. });
  1628. });
  1629. },
  1630. // 额外加的
  1631. getTaskGroup() {
  1632. this.http.post('/task-group/list',{projectId: this.curProjectId},
  1633. res => {
  1634. if (res.code == "ok") {
  1635. this.allGroupData = res.data;
  1636. this.groupList = res.data;
  1637. if (this.groupList.length > 0) {
  1638. this.defaultGroupId = this.sleectId;
  1639. this.selectedGroup = this.groupList[res.data.length - 1];
  1640. this.getStageList();
  1641. } else {
  1642. //清空任务列表
  1643. this.defaultGroupId = null;
  1644. this.selectedGroup = null;
  1645. this.stageList = [];
  1646. }
  1647. } else {
  1648. this.$message({
  1649. message: res.msg,
  1650. type: "error"
  1651. });
  1652. }
  1653. },
  1654. error => {
  1655. this.$message({
  1656. message: error,
  1657. type: "error"
  1658. });
  1659. });
  1660. },
  1661. //切换项目
  1662. onProjectChange() {
  1663. let path = this.$route.path;
  1664. path = path.substring(0,path.lastIndexOf('/'))+'/'+this.curProjectId;
  1665. this.$router.push(path);
  1666. this.getTaskGroups();
  1667. this.$refs.fileCenter.refreshPage();
  1668. this.$refs.projectInfo.refreshPage();
  1669. this.$refs.summary.refreshPage();
  1670. },
  1671. //获取我的项目列表
  1672. getMyProjectList() {
  1673. this.http.post('/project/getProjectList', {
  1674. },
  1675. res => {
  1676. if (res.code == "ok") {
  1677. this.projectList = res.data;
  1678. } else {
  1679. this.$message({
  1680. message: res.msg,
  1681. type: "error"
  1682. });
  1683. }
  1684. },
  1685. error => {
  1686. this.$message({
  1687. message: error,
  1688. type: "error"
  1689. });
  1690. });
  1691. },
  1692. menuSelect() {
  1693. },
  1694. toList() {
  1695. this.$router.push("/list");
  1696. },
  1697. searchList() {
  1698. this.page = 1;
  1699. this.getList();
  1700. },
  1701. //显示用户详情
  1702. showUser(userId) {
  1703. this.userDetailVisible = true;
  1704. this.http.post(this.port.manage.userDetail, {
  1705. userId: userId
  1706. },
  1707. res => {
  1708. if (res.code == "ok") {
  1709. this.userDetail = res.data;
  1710. } else {
  1711. this.$message({
  1712. message: res.msg,
  1713. type: "error"
  1714. });
  1715. }
  1716. },
  1717. error => {
  1718. this.$message({
  1719. message: error,
  1720. type: "error"
  1721. });
  1722. });
  1723. },
  1724. getUsers() {
  1725. this.http.post(this.port.manage.list, {
  1726. departmentId: -1,
  1727. pageIndex: 1,
  1728. pageSize: 99999
  1729. },
  1730. res => {
  1731. if (res.code == "ok") {
  1732. this.users = res.data.records;
  1733. } else {
  1734. this.$message({
  1735. message: res.msg,
  1736. type: "error"
  1737. });
  1738. }
  1739. },
  1740. error => {
  1741. this.$message({
  1742. message: error,
  1743. type: "error"
  1744. });
  1745. });
  1746. },
  1747. //获取项目列表
  1748. getList() {
  1749. this.listLoading = true;
  1750. this.http.post(this.port.project.listPage, {
  1751. pageIndex: this.page,
  1752. pageSize: this.size,
  1753. keyword:this.keyword,
  1754. searchField: this.searchField,
  1755. },
  1756. res => {
  1757. this.listLoading = false;
  1758. if (res.code == "ok") {
  1759. var list = res.data.records;
  1760. for(var i in list) {
  1761. var participator = list[i].participator , str = "";
  1762. for(var j in participator) {
  1763. if(j == participator.length-1) {
  1764. str += participator[j].name
  1765. } else {
  1766. str += participator[j].name + ','
  1767. }
  1768. }
  1769. list[i].userNames = str;
  1770. }
  1771. this.list = list;
  1772. this.total = res.data.total;
  1773. } else {
  1774. this.$message({
  1775. message: res.msg,
  1776. type: "error"
  1777. });
  1778. }
  1779. },
  1780. error => {
  1781. this.listLoading = false;
  1782. this.$message({
  1783. message: error,
  1784. type: "error"
  1785. });
  1786. });
  1787. },
  1788. submitInsert() {
  1789. if (this.textContent !== true) return this.$message({
  1790. showClose: true,
  1791. message: '图片太大,请重新上传',
  1792. type: 'warning'
  1793. });
  1794. this.$refs.form1.validate(valid => {
  1795. if (valid) {
  1796. delete this.addForm.subTaskList;
  1797. delete this.addForm.progress;
  1798. this.http.post('/task/save',this.addForm,
  1799. res => {
  1800. if (res.code == "ok") {
  1801. this.$message({
  1802. message: "提交成功",
  1803. type: "success"
  1804. });
  1805. if (this.addForm.parentTid == null) {
  1806. this.addFormVisible = false;
  1807. if (this.groupType == 0) {
  1808. this.getStageList();
  1809. } else {
  1810. this.getViewTaskList();
  1811. }
  1812. } else {
  1813. this.backToParentTask();
  1814. }
  1815. } else {
  1816. this.$message({
  1817. message: res.msg,
  1818. type: "error"
  1819. });
  1820. }
  1821. },
  1822. error => {
  1823. this.$message({
  1824. message: error,
  1825. type: "error"
  1826. });
  1827. }
  1828. );
  1829. }
  1830. });
  1831. },
  1832. // 删除
  1833. deletePro(i, item) {
  1834. this.$confirm("确定要项目" + item.projectName + "吗?","删除项目", {
  1835. confirmButtonText: "确定",
  1836. cancelButtonText: "取消",
  1837. type: "warning"
  1838. })
  1839. .then(() => {
  1840. this.listLoading = true;
  1841. this.http.post(this.port.project.delete,{
  1842. id: item.id
  1843. },
  1844. res => {
  1845. this.listLoading = false;
  1846. if (res.code == "ok") {
  1847. this.$message({
  1848. message: "删除成功",
  1849. type: "success"
  1850. });
  1851. this.getList();
  1852. } else {
  1853. this.$message({
  1854. message: res.msg,
  1855. type: "error"
  1856. });
  1857. }
  1858. },
  1859. error => {
  1860. this.listLoading = false;
  1861. this.$message({
  1862. message: error,
  1863. type: "error"
  1864. });
  1865. }
  1866. );
  1867. })
  1868. .catch(() => {});
  1869. },
  1870. detail(i) {
  1871. this.$router.push("/list/" + this.list[i].id + "/" + this.list[i].projectName);
  1872. },
  1873. getDetail() {
  1874. this.http.post('/project/detail',{
  1875. id: this.curProjectId
  1876. },
  1877. res => {
  1878. if (res.code == "ok") {
  1879. this.currentProject = res.data;
  1880. } else {
  1881. }
  1882. },
  1883. error => {
  1884. this.$message({
  1885. message: error,
  1886. type: "error"
  1887. });
  1888. }
  1889. );
  1890. },
  1891. },
  1892. created() {
  1893. let height = window.innerHeight;
  1894. this.tableHeight = height - 135;
  1895. this.stageListHeight = this.tableHeight - 45;
  1896. const that = this;
  1897. window.onresize = function temp() {
  1898. that.tableHeight = window.innerHeight - 135;
  1899. that.stageListHeight = that.tableHeight - 45;
  1900. };
  1901. },
  1902. mounted() {
  1903. this.curProjectId = parseInt(this.$route.params.id);
  1904. this.activeName = this.$route.path.split("/")[1];
  1905. this.getDetail();
  1906. this.getUsers();
  1907. this.getMyProjectList();
  1908. this.getInsideData();
  1909. this.getGroupTemplate();
  1910. }
  1911. };
  1912. </script>
  1913. <style >
  1914. .flip-list-move {
  1915. transition: transform 0.5s;
  1916. }
  1917. .no-move {
  1918. transition: transform 0s;
  1919. }
  1920. .taskStage {
  1921. margin:10px;
  1922. display:inline-block;
  1923. vertical-align:top;
  1924. }
  1925. .taskList {
  1926. padding:7px;
  1927. width:300px;
  1928. }
  1929. .taskList .stage {
  1930. font-weight:bold;
  1931. }
  1932. .taskCard {
  1933. background: #fff;
  1934. margin: 5px 0px;
  1935. padding:5px;
  1936. border: 1px solid #e6e6e6;
  1937. border-radius: 3px;
  1938. box-shadow: 3px 3px 3px #e6e6e6;
  1939. min-height:60px;
  1940. position: relative;
  1941. border-radius: 3px;
  1942. overflow: hidden;
  1943. }
  1944. .taskImg {
  1945. position: absolute;
  1946. box-sizing: border-box;
  1947. width: 100%;
  1948. height: 100%;
  1949. top: 0;
  1950. left: 0;
  1951. }
  1952. .taskImg img{
  1953. position: absolute;
  1954. top: -1px;
  1955. }
  1956. .hong:hover {
  1957. border-top: 1px solid #ff0000;
  1958. }
  1959. .huang:hover {
  1960. border-top: 1px solid #ff9600;
  1961. }
  1962. .hui:hover {
  1963. border-top: 1px solid #c9c9c9;
  1964. }
  1965. .taskCard:hover {
  1966. cursor: move;
  1967. }
  1968. .chosen {
  1969. background-color: #000 !important;
  1970. color: #fff;
  1971. }
  1972. .ghost {
  1973. background-color: #fafafa !important;
  1974. }
  1975. .taskCard .cb {
  1976. margin-right:5px;
  1977. }
  1978. .item {
  1979. background:#fff;
  1980. }
  1981. .input-with-select .el-input-group__prepend {
  1982. background-color: #fff;
  1983. }
  1984. .el-tabs__item {
  1985. height:45px ;
  1986. }
  1987. .projectCls {
  1988. margin-left:10px;margin-right:10px;
  1989. }
  1990. .heavyTxt {
  1991. font-weight:bold;
  1992. }
  1993. .el-tabs__nav-wrap::after {
  1994. height:0.5px;
  1995. }
  1996. .user_name_icon {
  1997. text-align:center;border-radius:50%;color:white;float:right;font-size:10px;width:30px;height:30px;line-height:30px;
  1998. transform: scale(0.8);
  1999. }
  2000. .task_name {
  2001. color:#262626;
  2002. display:inline-block;
  2003. max-width: 235px;
  2004. height: 25px;
  2005. overflow: hidden;
  2006. white-space: nowrap;
  2007. text-overflow: ellipsis;
  2008. }
  2009. .task_name span{
  2010. position: relative;
  2011. top: 8px;
  2012. }
  2013. .cb {
  2014. position: relative;
  2015. top: -2px;
  2016. }
  2017. .group_style {
  2018. border-radius: 5px;margin:2px 0px 2px 0px;height:40px;line-height:40px;
  2019. }
  2020. .el-tabs__nav-wrap::after {
  2021. height:1px;
  2022. }
  2023. .el-tabs__header {
  2024. margin:0 !important;
  2025. }
  2026. .single_line {
  2027. overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
  2028. }
  2029. .sub_task_num {
  2030. font-size:10px;
  2031. color:#666;
  2032. }
  2033. .template_box {
  2034. margin:20px 0px;
  2035. }
  2036. /* 项目阶段侧边栏样式 */
  2037. .sidebar {
  2038. width: 2px;
  2039. background: #dddddd;
  2040. position: relative;
  2041. }
  2042. .sidebar:hover {
  2043. background: #20a0ff;
  2044. }
  2045. .sidebar:hover .etui {
  2046. background: #20a0ff;
  2047. border: #20a0ff;
  2048. color: #fff;
  2049. }
  2050. .etui {
  2051. width: 15px;
  2052. height: 40px;
  2053. background: #fff;
  2054. border: 1px solid #dddddd;
  2055. position: absolute;
  2056. top: 50%;
  2057. left: 0%;
  2058. transform: translate(6%, -50%);
  2059. color: rgb(192, 191, 191);
  2060. box-sizing: border-box;
  2061. }
  2062. .etui i {
  2063. display: inline-block;
  2064. padding-top: 90%;
  2065. /* padding-left: 15%; */
  2066. font-weight: bold;
  2067. }
  2068. /* bug问题 */
  2069. .task {
  2070. box-sizing: border-box;
  2071. padding-left: 10px;
  2072. padding-right: 5px;
  2073. }
  2074. /* 评论部分 */
  2075. .remark {
  2076. width: 500px;
  2077. height: 100%;
  2078. background: #fff;
  2079. position: absolute;
  2080. top: 0;
  2081. right: -500px;
  2082. border-left: 3px solid #dddddd;
  2083. }
  2084. .jm {
  2085. margin-left: -500px;
  2086. }
  2087. .bj {
  2088. float: left;
  2089. width: 90%;
  2090. overflow: hidden;
  2091. height: 65px;
  2092. white-space: nowrap;
  2093. text-overflow: ellipsis;
  2094. }
  2095. .bj span {
  2096. width: 50px;
  2097. height: 50px;
  2098. display: inline-block;
  2099. border-radius: 50%;
  2100. color: #fff;
  2101. text-align: center;
  2102. float: left;
  2103. margin-right: 20px;
  2104. margin-top: 10px;
  2105. line-height: 50px;
  2106. }
  2107. .player {
  2108. height: 15%;
  2109. box-sizing: border-box;
  2110. padding-left: 15px;
  2111. border-bottom: 1px solid #dddddd;
  2112. }
  2113. .player p {
  2114. margin: 0;
  2115. padding: 2% 0;
  2116. font-size: 18px;
  2117. }
  2118. .player .el-image {
  2119. border-radius: 50%;
  2120. margin-right: 10px;
  2121. }
  2122. .subject {
  2123. height: 60%;
  2124. box-sizing: border-box;
  2125. }
  2126. .sub-all {
  2127. font-size: 20px;
  2128. padding: 15px 0 15px 15px;
  2129. }
  2130. .sub-details {
  2131. width: 100%;
  2132. height: 87%;
  2133. padding-right: 15px;
  2134. box-sizing: border-box;
  2135. overflow: hidden;
  2136. overflow-y: scroll
  2137. }
  2138. .sub-details li {
  2139. list-style:none
  2140. }
  2141. /* 红色背景显示日期 */
  2142. .element_span {
  2143. display: inline-block;
  2144. background: #e62412;
  2145. color: #fff;
  2146. border-radius: 5px;
  2147. padding: 3px;
  2148. /* text-align: center; */
  2149. font-size: 12px;
  2150. margin-left: 5px;
  2151. }
  2152. .pro_btn{
  2153. display: inline-block;
  2154. float: right;
  2155. }
  2156. </style>
  2157. <style lang="scss" scoped>
  2158. .counli {
  2159. em {
  2160. font-style: normal;
  2161. display: inline-block;
  2162. margin-left: 9%;
  2163. }
  2164. span {
  2165. float: right;
  2166. }
  2167. }
  2168. .carts {
  2169. position: relative;
  2170. .el-image{
  2171. border-radius: 50%;
  2172. float: left;
  2173. width: 20%;
  2174. }
  2175. i {
  2176. width: 30px;
  2177. height: 30px;
  2178. // background: #778899;
  2179. display: inline-block;
  2180. float: left;
  2181. border-radius:50%;
  2182. font-style:normal;
  2183. font-size: 12px;
  2184. line-height: 30px;
  2185. text-align: center;
  2186. color: #fff;
  2187. background: #778899;
  2188. }
  2189. div {
  2190. text-align: left;
  2191. p {
  2192. text-align: left;
  2193. margin-left: 10px;
  2194. margin-left: 13%;
  2195. }
  2196. em {
  2197. display: block;
  2198. font-style: normal;
  2199. margin-left: 13%;
  2200. }
  2201. }
  2202. span {
  2203. font-size: 10px;
  2204. float: right;
  2205. margin-top: -40px;
  2206. }
  2207. }
  2208. .issue {
  2209. // height: 20%;
  2210. // position: relative;
  2211. // z-index: 4;
  2212. .zh{
  2213. position: relative;
  2214. width: 100%;
  2215. height: 100%;
  2216. }
  2217. .textareays {
  2218. background: #000;
  2219. height: 140px;
  2220. border: 0;
  2221. .el-textarea__inner {
  2222. height: 85%;
  2223. }
  2224. }
  2225. .issue-button {
  2226. position: absolute;
  2227. bottom: 20px;
  2228. right: 20px;
  2229. }
  2230. }
  2231. .inputDeep {
  2232. position: absolute;
  2233. bottom: 85px;
  2234. width: 95%;
  2235. margin: 0 12px;
  2236. }
  2237. .inputDeep .el-textarea .el-textarea__inner{
  2238. border: 0 !important;
  2239. resize: none !important;
  2240. }
  2241. .inputDeeps .el-textarea__inner {
  2242. border: 0 !important;
  2243. resize: none !important;
  2244. }
  2245. .scop_span {
  2246. display: inline-block;
  2247. padding: 2px 5px;
  2248. }
  2249. </style>
  2250. <style>
  2251. .ql-snow .ql-picker.ql-size .ql-picker-label::before,
  2252. .ql-snow .ql-picker.ql-size .ql-picker-item::before {
  2253. content: "14px" !important;
  2254. position: relative;
  2255. top: -8px;
  2256. }
  2257. .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
  2258. .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before {
  2259. content: "10px" !important;
  2260. }
  2261. .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
  2262. .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before {
  2263. content: "18px" !important;
  2264. }
  2265. .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
  2266. .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before {
  2267. content: "32px" !important;
  2268. }
  2269. .ql-snow .ql-picker.ql-header .ql-picker-label::before,
  2270. .ql-snow .ql-picker.ql-header .ql-picker-item::before {
  2271. content: "文本" !important;
  2272. position: relative;
  2273. top: -8px;
  2274. }
  2275. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
  2276. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  2277. content: "标题1" !important;
  2278. }
  2279. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
  2280. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  2281. content: "标题2" !important;
  2282. }
  2283. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
  2284. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  2285. content: "标题3" !important;
  2286. }
  2287. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
  2288. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  2289. content: "标题4" !important;
  2290. }
  2291. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
  2292. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  2293. content: "标题5" !important;
  2294. }
  2295. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
  2296. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  2297. content: "标题6" !important;
  2298. }
  2299. .ql-snow .ql-picker.ql-font .ql-picker-label::before,
  2300. .ql-snow .ql-picker.ql-font .ql-picker-item::before {
  2301. content: "标准字体" !important;
  2302. }
  2303. .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
  2304. .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before {
  2305. content: "衬线字体" !important;
  2306. }
  2307. .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
  2308. .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
  2309. content: "等宽字体" !important;
  2310. }
  2311. /* .ql-picker-label {
  2312. position: relative;
  2313. } */
  2314. .ql-picker-label svg {
  2315. position: relative;
  2316. top: -6px;
  2317. }
  2318. /* 任务进展 */
  2319. .progress {
  2320. border: 1px solid #ddd;
  2321. border-radius: 5px;
  2322. width: 100%;
  2323. box-sizing: border-box;
  2324. padding: 15px;
  2325. position: relative;
  2326. margin-bottom: 20px;
  2327. }
  2328. .remind {
  2329. width: 95px;
  2330. height: 60%;
  2331. overflow-y:auto;
  2332. position: absolute;
  2333. background: #fff;
  2334. padding: 10px;
  2335. left: 0;
  2336. top: 0;
  2337. border: 1px solid #ddd;
  2338. z-index: 999999;
  2339. }
  2340. .rala1 .el-radio__input.is-checked + .el-radio__label {
  2341. color: #43d14f !important;
  2342. }
  2343. .rala1 .el-radio__input.is-checked .el-radio__inner {
  2344. background: #43d14f !important;
  2345. border-color: #43d14f !important;
  2346. }
  2347. .rala2 .el-radio__input.is-checked + .el-radio__label {
  2348. color: #fd7624 !important;
  2349. }
  2350. .rala2 .el-radio__input.is-checked .el-radio__inner {
  2351. background: #fd7624 !important;
  2352. border-color: #fd7624 !important;
  2353. }
  2354. .rala3 .el-radio__input.is-checked + .el-radio__label {
  2355. color: #fd4d47 !important;
  2356. }
  2357. .rala3 .el-radio__input.is-checked .el-radio__inner {
  2358. background: #fd4d47 !important;
  2359. border-color: #fd4d47 !important;
  2360. }
  2361. /* 任务进展列表 */
  2362. .elCard {
  2363. width: 100%;
  2364. padding: 15px;
  2365. box-sizing: border-box;
  2366. border: 1px solid #EBEEF5;
  2367. }
  2368. .elCard_qu {
  2369. float: right;
  2370. margin-right: 15px;
  2371. }
  2372. .integrity {
  2373. padding: 15px;
  2374. }
  2375. .write {
  2376. float: right;
  2377. color: #1B9AEE;
  2378. }
  2379. .ssp {
  2380. position: absolute;
  2381. right: 140px;
  2382. top: 95px;
  2383. width: 66%;
  2384. height: 80%;
  2385. }
  2386. .examine {
  2387. width: 100%;
  2388. text-align: center;
  2389. }
  2390. .nones {
  2391. width: 100%;
  2392. height: 50px;
  2393. text-align: center;
  2394. color: #909399;
  2395. line-height: 50px;
  2396. border-top: 1px solid #EBEEF5;
  2397. border-bottom: 1px solid #EBEEF5;
  2398. font-size: 16px;
  2399. }
  2400. .icon {
  2401. /* color: rgb(67, 209, 79); */
  2402. display: block;
  2403. width: 12px;
  2404. height: 12px;
  2405. background: #fff;
  2406. position: absolute;
  2407. top: 0;
  2408. left: -33px;
  2409. border-radius: 50%;
  2410. border: 4px solid;
  2411. }
  2412. /* ddl */
  2413. .ddl {
  2414. height: 136px;
  2415. overflow: hidden;
  2416. border: 1px solid #EBEEF5
  2417. }
  2418. .tb{
  2419. position: relative;
  2420. }
  2421. .dpl{
  2422. position: absolute;
  2423. font-size: 20px;
  2424. left: -32px;
  2425. top: 0px;
  2426. }
  2427. </style>