projectInside.vue 107 KB

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