projectInside.vue 108 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522
  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" @basecost-change="changeBase"></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 == 2 || user.role == 3 || user.role == 5 || user.role == 6"><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. changeBase() {
  773. this.$refs.earning.refreshPage();
  774. },
  775. // 批量导入人员
  776. importTask(item) {
  777. //首先判断文件类型
  778. let str = item.file.name.split(".");
  779. let format = str[str.length - 1];
  780. if (format != "xls" && format != "xlsx") {
  781. this.$message({
  782. message: "请选择.xls或.xlsx文件",
  783. type: "error"
  784. });
  785. } else {
  786. this.listLoading = true;
  787. let formData = new FormData();
  788. formData.append("file", item.file);
  789. formData.append("projectId", this.curProjectId);
  790. formData.append("groupId", this.selectedGroup.id);
  791. formData.append("stagesId", this.importToStageId);
  792. this.http.uploadFile('/task/importTask', formData,
  793. res => {
  794. this.$refs.upload.clearFiles();
  795. this.listLoading = false;
  796. if (res.code == "ok") {
  797. this.$message({
  798. message: "导入成功",
  799. type: "success"
  800. });
  801. //重新读取列表
  802. this.getStageList();
  803. this.importTaskDialog = false;
  804. } else {
  805. this.$message({
  806. message: res.msg,
  807. type: "error"
  808. });
  809. }
  810. },
  811. error => {
  812. this.$refs.upload.clearFiles();
  813. this.listLoading = false;
  814. this.$message({
  815. message: error,
  816. type: "error"
  817. });
  818. });
  819. }
  820. },
  821. //删除任务进展
  822. deleteTaskProgress(id) {
  823. this.http.post('/task-progress/deleteProgress', {id: id},
  824. res => {
  825. if (res.code == "ok") {
  826. this.getTaskProgressList(this.taskIid)
  827. this.$message({
  828. message: '删除成功',
  829. type: "success"
  830. });
  831. } else {
  832. this.$message({
  833. message: res.msg,
  834. type: "error"
  835. });
  836. }
  837. }
  838. );
  839. },
  840. //创建任务进展
  841. addTaskProgress() {
  842. var param = {
  843. taskId: this.taskIid,
  844. status: this.radio,
  845. content: this.text2,
  846. participatorIds: this.checkLists.toString()
  847. };
  848. this.http.post('/task-progress/addProgress', param,
  849. res => {
  850. if (res.code == "ok") {
  851. this.shutPro()
  852. this.getTaskProgressList(this.taskIid)
  853. this.$message({
  854. message: '发布成功',
  855. type: "success"
  856. });
  857. this.checkboxGrounp = [],
  858. this.checkLists = [],
  859. this.text2 = '',
  860. this.radio = 0
  861. } else {
  862. this.$message({
  863. message: res.msg,
  864. type: "error"
  865. });
  866. }
  867. }
  868. );
  869. },
  870. //获取任务进展列表
  871. getTaskProgressList(taskId) {
  872. this.taskIid = taskId
  873. this.http.post('/task-progress/list', {taskId: taskId},
  874. res => {
  875. if (res.code == "ok") {
  876. this.ProgressList = res.data;
  877. this.progres = res.data[0]
  878. } else {
  879. this.$message({
  880. message: res.msg,
  881. type: "error"
  882. });
  883. }
  884. }
  885. );
  886. },
  887. kkk(el){
  888. var k = this.checkLists.indexOf(el.id)
  889. if (k == -1) {
  890. this.checkLists.push(el.id)
  891. } else {
  892. this.checkLists.splice(k, 1)
  893. }
  894. },
  895. showExportDialog() {
  896. this.exportDialog = true;
  897. },
  898. exportTask() {
  899. let _this = this;
  900. this.http.post('/task/exportTask', {projectId: this.curProjectId, taskType: this.exportTaskType},
  901. res => {
  902. if (res.code == "ok") {
  903. location.href = res.data;
  904. } else {
  905. this.$message({
  906. message: res.msg,
  907. type: "error"
  908. });
  909. }
  910. }
  911. );
  912. },
  913. sss(){
  914. this.$refs.addRem.style.display="none"
  915. },
  916. addprogress(){ // 添加子任务进展事件
  917. this.$refs.proBox.style.display="block"
  918. this.$refs.addPro.style.display="none"
  919. },
  920. shutPro() { // 关闭任务进展
  921. this.$refs.addPro.style.display="block"
  922. this.$refs.addRem.style.display="none"
  923. this.$refs.proBox.style.display="none"
  924. },
  925. addI() { // 打开选择查看
  926. this.$refs.addRem.style.display="block"
  927. },
  928. load() {
  929. if(this.count >= 0) return
  930. this.count += 2
  931. },
  932. onEditorFocus() {
  933. this.onEditorBlur()
  934. },
  935. subMission() { // 添加
  936. },
  937. handleCheckedCitiesChange(value) {
  938. let checkedCount = value.length;
  939. this.checkAll = checkedCount === this.cities.length;
  940. this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
  941. },
  942. // 获得焦点时触发
  943. onEditorBlur(){
  944. let theEle = this.$refs.text; // 获取元素
  945. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  946. var arrImg = ''
  947. for (var j = 0; j < img.length; j++) {
  948. // 正则匹配,摘出img标签下的src里的内容,即capture
  949. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  950. arrImg += capture
  951. });
  952. }
  953. // 原来的字符流大小,单位为字节
  954. var strLen = arrImg.length;
  955. // 计算后得到的文件流大小,单位为字节
  956. var fileSize=parseInt(strLen-(strLen/8)*2);
  957. var size = "";
  958. size = (fileSize/1024/1024).toFixed(2);
  959. if (size > 2){
  960. this.textContent = false
  961. this.$message({
  962. showClose: true,
  963. message: '图片超过了2MB,请重新上传',
  964. type: 'warning'
  965. });
  966. }
  967. this.textContent = true
  968. },
  969. // 侧边栏的点击事件
  970. retract() {
  971. if (this.$refs.box.className == 'el-icon-arrow-left') {
  972. this.$refs.box.className = 'el-icon-arrow-right'
  973. } else {
  974. this.$refs.box.className = 'el-icon-arrow-left'
  975. }
  976. // this.$refs.box.className === 'el-icon-arrow-left' ? this.$refs.box.className = 'el-icon-arrow-right' || this.$refs.box.className = 'el-icon-arrow-left'
  977. this.toggleGroup()
  978. },
  979. //
  980. choseTemplate(tIndex) {
  981. this.groupTemplateList.forEach(g=>{
  982. g.selected = false;
  983. })
  984. this.sidebarIndex = tIndex
  985. this.groupTemplateList[tIndex].selected = true;
  986. },
  987. //获取分组模板列表
  988. getGroupTemplate() {
  989. this.http.post('/group-template/getList',{},
  990. res => {
  991. if (res.code == "ok") {
  992. this.groupTemplateList = res.data;
  993. this.groupTemplateList[0].selected = true;
  994. } else {
  995. this.$message({
  996. message: res.msg,
  997. type: "error"
  998. });
  999. }
  1000. },
  1001. error => {
  1002. this.$message({
  1003. message: error,
  1004. type: "error"
  1005. });
  1006. });
  1007. },
  1008. copyGroup(item) {
  1009. this.http.post('/task-group/copy',{id: item.id},
  1010. res => {
  1011. if (res.code == "ok") {
  1012. this.getTaskGroups();
  1013. } else {
  1014. this.$message({
  1015. message: res.msg,
  1016. type: "error"
  1017. });
  1018. }
  1019. },
  1020. error => {
  1021. this.$message({
  1022. message: error,
  1023. type: "error"
  1024. });
  1025. });
  1026. },
  1027. //重启项目
  1028. startPro() {
  1029. this.http.post('/project/start',{id: this.curProjectId},
  1030. res => {
  1031. if (res.code == "ok") {
  1032. this.$message({
  1033. message: '重启成功',
  1034. type: "success"
  1035. });
  1036. this.currentProject.status = 1;
  1037. } else {
  1038. this.$message({
  1039. message: res.msg,
  1040. type: "error"
  1041. });
  1042. }
  1043. },
  1044. error => {
  1045. this.$message({
  1046. message: error,
  1047. type: "error"
  1048. });
  1049. });
  1050. },
  1051. //撤销项目
  1052. cancelPro() {
  1053. this.http.post('/project/cancel',{id: this.curProjectId},
  1054. res => {
  1055. if (res.code == "ok") {
  1056. this.$message({
  1057. message: '撤销成功',
  1058. type: "success"
  1059. });
  1060. this.currentProject.status = 3;
  1061. } else {
  1062. this.$message({
  1063. message: res.msg,
  1064. type: "error"
  1065. });
  1066. }
  1067. },
  1068. error => {
  1069. this.$message({
  1070. message: error,
  1071. type: "error"
  1072. });
  1073. });
  1074. },
  1075. //完成项目
  1076. finishPro() {
  1077. this.http.post('/project/finish',{id: this.curProjectId},
  1078. res => {
  1079. if (res.code == "ok") {
  1080. this.$message({
  1081. message: '项目完成',
  1082. type: "success"
  1083. });
  1084. this.currentProject.status = 2;
  1085. } else {
  1086. this.$message({
  1087. message: res.msg,
  1088. type: "error"
  1089. });
  1090. }
  1091. },
  1092. error => {
  1093. this.$message({
  1094. message: error,
  1095. type: "error"
  1096. });
  1097. });
  1098. },
  1099. //删除当前编辑的任务
  1100. deleteTask() {
  1101. var warning='';
  1102. if (this.addForm.subTaskList.length > 0) {
  1103. warning='您确定要删除当前任务及其子任务吗?';
  1104. } else {
  1105. warning='您确定要删除当前任务吗?';
  1106. }
  1107. this.$confirm(warning, "提示", {
  1108. //type: 'warning'
  1109. }).then(() => {
  1110. this.http.post('/task/delete',{id: this.addForm.id},
  1111. res => {
  1112. if (res.code == "ok") {
  1113. this.addFormVisible = false;
  1114. this.getStageList();
  1115. } else {
  1116. this.$message({
  1117. message: res.msg,
  1118. type: "error"
  1119. });
  1120. }
  1121. },
  1122. error => {
  1123. this.$message({
  1124. message: error,
  1125. type: "error"
  1126. });
  1127. });
  1128. });
  1129. },
  1130. //tab页签切换
  1131. handleClick(tab, event) {
  1132. let pathModel = tab.name;
  1133. this.$router.push('/'+pathModel+'/'+this.curProjectId);
  1134. },
  1135. showSubTaskList(task) {
  1136. this.subTaskVisible = true;
  1137. this.addForm = task;
  1138. },
  1139. backToParentTask() {
  1140. this.getTaskDetail(this.addForm.parentTid);
  1141. },
  1142. //显示子任务创建卡片
  1143. addSubTask() {
  1144. this.addFormVisible = true;
  1145. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  1146. this.addLoading = false;
  1147. },
  1148. //认领任务
  1149. addAsMyTask(task) {
  1150. this.http.post('/task/addAsMyTask',{id: task.id},
  1151. res => {
  1152. if (res.code == "ok") {
  1153. this.getStageList();
  1154. } else {
  1155. this.$message({
  1156. message: res.msg,
  1157. type: "error"
  1158. });
  1159. }
  1160. },
  1161. error => {
  1162. this.$message({
  1163. message: error,
  1164. type: "error"
  1165. });
  1166. });
  1167. },
  1168. taskLineClick(row, column, event) {
  1169. this.editTask(row);
  1170. },
  1171. //排序发生改变
  1172. orderChange() {
  1173. this.isDesc = this.orderList.filter(o=>o.id == this.order)[0].isDesc;
  1174. if (this.groupType == 0) {
  1175. this.getStageList();
  1176. } else {
  1177. this.getViewTaskList();
  1178. }
  1179. },
  1180. //加载视图任务列表
  1181. getViewTaskList() {
  1182. this.http.post('/task/list',{projectId: this.curProjectId, viewId: this.selectedGroup.id, order: this.order, isDesc: this.isDesc},
  1183. res => {
  1184. if (res.code == "ok") {
  1185. this.taskDataList = res.data;
  1186. this.taskDataList.forEach(t=>{
  1187. t.isFinish = t.taskStatus==1?true:false;
  1188. });
  1189. } else {
  1190. this.$message({
  1191. message: res.msg,
  1192. type: "error"
  1193. });
  1194. }
  1195. },
  1196. error => {
  1197. this.$message({
  1198. message: error,
  1199. type: "error"
  1200. });
  1201. });
  1202. },
  1203. //阶段拖拽
  1204. onMoveStage(e) {
  1205. var data = {
  1206. groupId:this.selectedGroup.id,
  1207. oldIndex: e.oldIndex,
  1208. newIndex: e.newIndex,};
  1209. this.http.post('/stages/changeStageOrder',data,
  1210. res => {
  1211. if (res.code == "ok") {
  1212. this.getStageList();
  1213. } else {
  1214. this.$message({
  1215. message: res.msg,
  1216. type: "error"
  1217. });
  1218. }
  1219. },
  1220. error => {
  1221. this.$message({
  1222. message: error,
  1223. type: "error"
  1224. });
  1225. });
  1226. },
  1227. onChange(e) {
  1228. var data = {
  1229. id:e.item.id,
  1230. oldIndex: e.oldIndex -1,
  1231. newIndex: e.newIndex -1,
  1232. oldStagesId: e.from.id,
  1233. newStagesId: e.to.id};
  1234. this.http.post('/task/changeOrder',data,
  1235. res => {
  1236. if (res.code == "ok") {
  1237. this.getStageList();
  1238. } else {
  1239. this.$message({
  1240. message: res.msg,
  1241. type: "error"
  1242. });
  1243. }
  1244. },
  1245. error => {
  1246. this.$message({
  1247. message: error,
  1248. type: "error"
  1249. });
  1250. });
  1251. },
  1252. toggleGroup() {
  1253. if (this.groupWidth == 0) {
  1254. this.groupWidth = 260;
  1255. } else {
  1256. this.groupWidth = 0;
  1257. }
  1258. },
  1259. finishTask(task) {
  1260. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  1261. res => {
  1262. if (res.code == "ok") {
  1263. if (this.groupType == 0) {
  1264. this.getStageList();
  1265. } else {
  1266. this.getViewTaskList();
  1267. }
  1268. } else {
  1269. this.$message({
  1270. message: res.msg,
  1271. type: "error"
  1272. });
  1273. }
  1274. },
  1275. error => {
  1276. this.$message({
  1277. message: error,
  1278. type: "error"
  1279. });
  1280. });
  1281. },
  1282. // 点击卡片事件
  1283. editTask(task) {
  1284. this.addFormVisible = true;
  1285. this.addLoading = false;
  1286. this.title = "编辑任务";
  1287. this.getTaskDetail(task.id);
  1288. this.getTaskProgressList(task.id); // 获取任务进展列表
  1289. this.getUsers(); // 获取名单数据
  1290. this.gain(task); // 获取评论列表
  1291. },
  1292. // 获取评论列表
  1293. gain (task) {
  1294. this.commentList = [];
  1295. this.taskId = task.id;
  1296. this.http.post('/task-comment/getList', {taskId: task.id},
  1297. res => {
  1298. if (res.code == "ok") {
  1299. this.commentList = res.data
  1300. this.sppk(this.commentList) // 获取参与人的方法
  1301. } else {
  1302. this.$message({
  1303. message: res.msg,
  1304. type: "error"
  1305. });
  1306. }
  1307. },
  1308. error => {
  1309. this.$message({
  1310. message: error,
  1311. type: "error"
  1312. });
  1313. });
  1314. },
  1315. // 获取评论参与人
  1316. sppk(comit) {
  1317. var sk = []
  1318. comit.forEach(function(e){
  1319. sk.push(e.userName)
  1320. })
  1321. this.critic = new Set(sk)
  1322. },
  1323. // 点击发布
  1324. release() {
  1325. if(this.textarea2.length <= 0) return this.$message({message: "请输入内容", type: "error"})
  1326. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  1327. res => {
  1328. if(res.code == "ok"){
  1329. this.commentList.push(res.data)
  1330. this.sppk(this.commentList)
  1331. this.textarea2 = ""
  1332. this.contRoll() // 滚动到底部
  1333. } else {
  1334. this.$message({
  1335. message: res.msg,
  1336. type: "error"
  1337. });
  1338. }
  1339. },
  1340. error => {
  1341. this.$message({
  1342. message: error,
  1343. type: "error"
  1344. });
  1345. })
  1346. },
  1347. // 滚动到底部
  1348. contRoll(){
  1349. this.$nextTick(() => {
  1350. this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  1351. })
  1352. },
  1353. getTaskDetail(id) {
  1354. this.http.post('/task/getTask',{id: id},
  1355. res => {
  1356. if (res.code == "ok") {
  1357. this.addForm = res.data;
  1358. this.addForm.createDate = null;
  1359. this.addForm.indate = null;
  1360. this.addLoading = false;
  1361. } else {
  1362. this.$message({
  1363. message: res.msg,
  1364. type: "error"
  1365. });
  1366. }
  1367. },
  1368. error => {
  1369. this.$message({
  1370. message: error,
  1371. type: "error"
  1372. });
  1373. });
  1374. },
  1375. addTask(stage) {
  1376. this.addFormVisible = true;
  1377. this.addForm = {projectId: stage.projectId, groupId: stage.groupId, stagesId: stage.id, taskLevel:0, planHours: 8, taskType: 0};
  1378. this.addLoading = false;
  1379. this.title="创建任务";
  1380. this.commentList = [];
  1381. },
  1382. renameStage(item) {
  1383. this.stageForm = JSON.parse(JSON.stringify(item));
  1384. this.addStageDialog = true;
  1385. },
  1386. deleteStage(item) {
  1387. var _this = this;
  1388. var param = {id:item.id, groupId: item.groupId};
  1389. this.$confirm("确认删除吗?", "提示", {
  1390. //type: 'warning'
  1391. }).then(() => {
  1392. this.http.post('/stages/delete',param,
  1393. res => {
  1394. if (res.code == "ok") {
  1395. this.stageList = res.data;
  1396. } else {
  1397. this.$message({
  1398. message: res.msg,
  1399. type: "error"
  1400. });
  1401. }
  1402. },
  1403. error => {
  1404. this.$message({
  1405. message: error,
  1406. type: "error"
  1407. });
  1408. });
  1409. });
  1410. },
  1411. //加载项目内的任务列表
  1412. getStageList() {
  1413. this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
  1414. res => {
  1415. if (res.code == "ok") {
  1416. this.stageList = res.data;
  1417. this.timess() // 处理时间的方法
  1418. } else {
  1419. this.$message({
  1420. message: res.msg,
  1421. type: "error"
  1422. });
  1423. }
  1424. },
  1425. error => {
  1426. this.$message({
  1427. message: error,
  1428. type: "error"
  1429. });
  1430. });
  1431. },
  1432. timess(){
  1433. var date = new Date()
  1434. let Y = date.getFullYear()
  1435. let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
  1436. let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
  1437. this.times = `${Y}-${M}-${D}`
  1438. },
  1439. addStagePost() {
  1440. let param = JSON.parse(JSON.stringify(this.stageForm));
  1441. param.taskList = [];
  1442. this.http.post('/stages/save',param,
  1443. res => {
  1444. if (res.code == "ok") {
  1445. this.stageList = res.data;
  1446. this.addStageDialog = false;
  1447. } else {
  1448. this.$message({
  1449. message: res.msg,
  1450. type: "error"
  1451. });
  1452. }
  1453. },
  1454. error => {
  1455. this.$message({
  1456. message: error,
  1457. type: "error"
  1458. });
  1459. });
  1460. },
  1461. addStage() {
  1462. this.addStageDialog = true;
  1463. this.stageForm = {groupId: this.selectedGroup.id, projectId: this.curProjectId};
  1464. },
  1465. viewChange(index, indexPath) {
  1466. this.groupType = 1;
  1467. this.order = "create_date";
  1468. this.isDesc = true;
  1469. this.selectedGroup = this.viewList.filter(g=>g.id == index)[0];
  1470. this.getViewTaskList();
  1471. this.displayTable = true;
  1472. } ,
  1473. groupChange(index, indexPath) {
  1474. this.groupType = 0;
  1475. this.order = "seq";
  1476. this.isDesc = false;
  1477. this.selectedGroup = this.groupList.filter(g=>g.id == index)[0];
  1478. this.getStageList();
  1479. this.displayTable = false;
  1480. },
  1481. //本地搜索组
  1482. startSearchGroup() {
  1483. if (this.groupSearch != null || this.groupSearch.length > 0) {
  1484. this.groupList = this.allGroupData.filter(g=>g.name.indexOf(this.groupSearch) >= 0);
  1485. } else {
  1486. this.groupList = this.allGroupData;
  1487. }
  1488. },
  1489. renameGroup(item) {
  1490. this.groupForm = JSON.parse(JSON.stringify(item));
  1491. this.modGroupDialog = true;
  1492. },
  1493. deleteGroup(item) {
  1494. var _this = this;
  1495. this.$confirm("确认删除吗?", "提示", {
  1496. //type: 'warning'
  1497. }).then(() => {
  1498. this.http.post('/task-group/delete',item,
  1499. res => {
  1500. if (res.code == "ok") {
  1501. this.groupList = res.data;
  1502. if (item.id == this.selectedGroup.id) {
  1503. //之前选中的分组被删除了
  1504. if (this.groupList.length > 0) {
  1505. this.defaultGroupId = this.groupList[0].id;
  1506. this.selectedGroup = this.groupList[0];
  1507. } else {
  1508. this.selectedGroup = {};
  1509. }
  1510. }
  1511. } else {
  1512. this.$message({
  1513. message: res.msg,
  1514. type: "error"
  1515. });
  1516. }
  1517. },
  1518. error => {
  1519. this.$message({
  1520. message: error,
  1521. type: "error"
  1522. });
  1523. });
  1524. });
  1525. },
  1526. addTemplateGroup() {
  1527. var param = JSON.parse(JSON.stringify(this.groupTemplateList.filter(g=>g.selected)[0]));
  1528. delete param.stagesList;
  1529. param.projectId = this.curProjectId;
  1530. //
  1531. var k = this.groupTemplateList[this.sidebarIndex].name
  1532. var s = null;
  1533. var xmz = this.groupList.forEach(function(a, b, c){
  1534. if (a.name == k) {
  1535. s = true
  1536. return
  1537. }
  1538. })
  1539. if (s){
  1540. this.addGroupDialog = false;
  1541. return
  1542. }
  1543. //
  1544. this.http.post('/task-group/createFromTemplate',param,
  1545. res => {
  1546. if (res.code == "ok") {
  1547. this.selectedGroup = res.data
  1548. this.sleectId = res.data.id
  1549. this.sleectProjectId = res.data.projectId
  1550. this.addGroupDialog = false;
  1551. // this.getTaskGroups();
  1552. this.getTaskGroup();
  1553. } else {
  1554. this.$message({
  1555. message: res.msg,
  1556. type: "error"
  1557. });
  1558. }
  1559. },
  1560. error => {
  1561. this.$message({
  1562. message: error,
  1563. type: "error"
  1564. });
  1565. });
  1566. },
  1567. // 重新定义了 addGroup 方法
  1568. addGroup() {
  1569. this.http.post('/task-group/save',this.groupForm,
  1570. res => {
  1571. if (res.code == "ok") {
  1572. this.groupList = res.data;
  1573. this.addGroupDialog = false;
  1574. this.modGroupDialog = false;
  1575. if (this.selectedGroup.id !== this.groupForm.id) {
  1576. this.selectedGroup = this.groupForm;
  1577. }
  1578. this.defaultGroupId = this.groupList[this.groupList.length - 1].id
  1579. // this.getTaskGroup();
  1580. this.getStageList()
  1581. } else {
  1582. this.$message({
  1583. message: res.msg,
  1584. type: "error"
  1585. });
  1586. }
  1587. },
  1588. error => {
  1589. this.$message({
  1590. message: error,
  1591. type: "error"
  1592. });
  1593. });
  1594. },
  1595. createGroup() {
  1596. this.addGroupDialog = true;
  1597. this.groupForm = {projectId: this.curProjectId};
  1598. },
  1599. getInsideData() {
  1600. this.getTaskGroups();
  1601. },
  1602. //加载项目内的任务分组
  1603. getTaskGroups() {
  1604. this.http.post('/task-group/list',{projectId: this.curProjectId},
  1605. res => {
  1606. if (res.code == "ok") {
  1607. this.allGroupData = res.data;
  1608. this.groupList = res.data;
  1609. if (this.groupList.length > 0) {
  1610. this.defaultGroupId = this.groupList[0].id;
  1611. this.selectedGroup = this.groupList[0];
  1612. this.getStageList();
  1613. } else {
  1614. //清空任务列表
  1615. this.defaultGroupId = null;
  1616. this.selectedGroup = null;
  1617. this.stageList = [];
  1618. }
  1619. } else {
  1620. this.$message({
  1621. message: res.msg,
  1622. type: "error"
  1623. });
  1624. }
  1625. },
  1626. error => {
  1627. this.$message({
  1628. message: error,
  1629. type: "error"
  1630. });
  1631. });
  1632. },
  1633. // 额外加的
  1634. getTaskGroup() {
  1635. this.http.post('/task-group/list',{projectId: this.curProjectId},
  1636. res => {
  1637. if (res.code == "ok") {
  1638. this.allGroupData = res.data;
  1639. this.groupList = res.data;
  1640. if (this.groupList.length > 0) {
  1641. this.defaultGroupId = this.sleectId;
  1642. this.selectedGroup = this.groupList[res.data.length - 1];
  1643. this.getStageList();
  1644. } else {
  1645. //清空任务列表
  1646. this.defaultGroupId = null;
  1647. this.selectedGroup = null;
  1648. this.stageList = [];
  1649. }
  1650. } else {
  1651. this.$message({
  1652. message: res.msg,
  1653. type: "error"
  1654. });
  1655. }
  1656. },
  1657. error => {
  1658. this.$message({
  1659. message: error,
  1660. type: "error"
  1661. });
  1662. });
  1663. },
  1664. //切换项目
  1665. onProjectChange() {
  1666. let path = this.$route.path;
  1667. path = path.substring(0,path.lastIndexOf('/'))+'/'+this.curProjectId;
  1668. this.$router.push(path);
  1669. this.getTaskGroups();
  1670. this.$refs.fileCenter.refreshPage();
  1671. this.$refs.projectInfo.refreshPage();
  1672. this.$refs.summary.refreshPage();
  1673. this.$refs.earning.refreshPage();
  1674. },
  1675. //获取我的项目列表
  1676. getMyProjectList() {
  1677. this.http.post('/project/getProjectList', {
  1678. },
  1679. res => {
  1680. if (res.code == "ok") {
  1681. this.projectList = res.data;
  1682. } else {
  1683. this.$message({
  1684. message: res.msg,
  1685. type: "error"
  1686. });
  1687. }
  1688. },
  1689. error => {
  1690. this.$message({
  1691. message: error,
  1692. type: "error"
  1693. });
  1694. });
  1695. },
  1696. menuSelect() {
  1697. },
  1698. toList() {
  1699. this.$router.push("/list");
  1700. },
  1701. searchList() {
  1702. this.page = 1;
  1703. this.getList();
  1704. },
  1705. //显示用户详情
  1706. showUser(userId) {
  1707. this.userDetailVisible = true;
  1708. this.http.post(this.port.manage.userDetail, {
  1709. userId: userId
  1710. },
  1711. res => {
  1712. if (res.code == "ok") {
  1713. this.userDetail = res.data;
  1714. } else {
  1715. this.$message({
  1716. message: res.msg,
  1717. type: "error"
  1718. });
  1719. }
  1720. },
  1721. error => {
  1722. this.$message({
  1723. message: error,
  1724. type: "error"
  1725. });
  1726. });
  1727. },
  1728. getUsers() {
  1729. this.http.post(this.port.manage.list, {
  1730. departmentId: -1,
  1731. pageIndex: 1,
  1732. pageSize: 99999
  1733. },
  1734. res => {
  1735. if (res.code == "ok") {
  1736. this.users = res.data.records;
  1737. } else {
  1738. this.$message({
  1739. message: res.msg,
  1740. type: "error"
  1741. });
  1742. }
  1743. },
  1744. error => {
  1745. this.$message({
  1746. message: error,
  1747. type: "error"
  1748. });
  1749. });
  1750. },
  1751. //获取项目列表
  1752. getList() {
  1753. this.listLoading = true;
  1754. this.http.post(this.port.project.listPage, {
  1755. pageIndex: this.page,
  1756. pageSize: this.size,
  1757. keyword:this.keyword,
  1758. searchField: this.searchField,
  1759. },
  1760. res => {
  1761. this.listLoading = false;
  1762. if (res.code == "ok") {
  1763. var list = res.data.records;
  1764. for(var i in list) {
  1765. var participator = list[i].participator , str = "";
  1766. for(var j in participator) {
  1767. if(j == participator.length-1) {
  1768. str += participator[j].name
  1769. } else {
  1770. str += participator[j].name + ','
  1771. }
  1772. }
  1773. list[i].userNames = str;
  1774. }
  1775. this.list = list;
  1776. this.total = res.data.total;
  1777. } else {
  1778. this.$message({
  1779. message: res.msg,
  1780. type: "error"
  1781. });
  1782. }
  1783. },
  1784. error => {
  1785. this.listLoading = false;
  1786. this.$message({
  1787. message: error,
  1788. type: "error"
  1789. });
  1790. });
  1791. },
  1792. submitInsert() {
  1793. if (this.textContent !== true) return this.$message({
  1794. showClose: true,
  1795. message: '图片太大,请重新上传',
  1796. type: 'warning'
  1797. });
  1798. this.$refs.form1.validate(valid => {
  1799. if (valid) {
  1800. delete this.addForm.subTaskList;
  1801. delete this.addForm.progress;
  1802. this.http.post('/task/save',this.addForm,
  1803. res => {
  1804. if (res.code == "ok") {
  1805. this.$message({
  1806. message: "提交成功",
  1807. type: "success"
  1808. });
  1809. if (this.addForm.parentTid == null) {
  1810. this.addFormVisible = false;
  1811. if (this.groupType == 0) {
  1812. this.getStageList();
  1813. } else {
  1814. this.getViewTaskList();
  1815. }
  1816. } else {
  1817. this.backToParentTask();
  1818. }
  1819. } else {
  1820. this.$message({
  1821. message: res.msg,
  1822. type: "error"
  1823. });
  1824. }
  1825. },
  1826. error => {
  1827. this.$message({
  1828. message: error,
  1829. type: "error"
  1830. });
  1831. }
  1832. );
  1833. }
  1834. });
  1835. },
  1836. // 删除
  1837. deletePro(i, item) {
  1838. this.$confirm("确定要项目" + item.projectName + "吗?","删除项目", {
  1839. confirmButtonText: "确定",
  1840. cancelButtonText: "取消",
  1841. type: "warning"
  1842. })
  1843. .then(() => {
  1844. this.listLoading = true;
  1845. this.http.post(this.port.project.delete,{
  1846. id: item.id
  1847. },
  1848. res => {
  1849. this.listLoading = false;
  1850. if (res.code == "ok") {
  1851. this.$message({
  1852. message: "删除成功",
  1853. type: "success"
  1854. });
  1855. this.getList();
  1856. } else {
  1857. this.$message({
  1858. message: res.msg,
  1859. type: "error"
  1860. });
  1861. }
  1862. },
  1863. error => {
  1864. this.listLoading = false;
  1865. this.$message({
  1866. message: error,
  1867. type: "error"
  1868. });
  1869. }
  1870. );
  1871. })
  1872. .catch(() => {});
  1873. },
  1874. detail(i) {
  1875. this.$router.push("/list/" + this.list[i].id + "/" + this.list[i].projectName);
  1876. },
  1877. getDetail() {
  1878. this.http.post('/project/detail',{
  1879. id: this.curProjectId
  1880. },
  1881. res => {
  1882. if (res.code == "ok") {
  1883. this.currentProject = res.data;
  1884. } else {
  1885. }
  1886. },
  1887. error => {
  1888. this.$message({
  1889. message: error,
  1890. type: "error"
  1891. });
  1892. }
  1893. );
  1894. },
  1895. },
  1896. created() {
  1897. let height = window.innerHeight;
  1898. this.tableHeight = height - 135;
  1899. this.stageListHeight = this.tableHeight - 45;
  1900. const that = this;
  1901. window.onresize = function temp() {
  1902. that.tableHeight = window.innerHeight - 135;
  1903. that.stageListHeight = that.tableHeight - 45;
  1904. };
  1905. },
  1906. mounted() {
  1907. this.curProjectId = parseInt(this.$route.params.id);
  1908. this.activeName = this.$route.path.split("/")[1];
  1909. this.getDetail();
  1910. this.getUsers();
  1911. this.getMyProjectList();
  1912. this.getInsideData();
  1913. this.getGroupTemplate();
  1914. }
  1915. };
  1916. </script>
  1917. <style >
  1918. .flip-list-move {
  1919. transition: transform 0.5s;
  1920. }
  1921. .no-move {
  1922. transition: transform 0s;
  1923. }
  1924. .taskStage {
  1925. margin:10px;
  1926. display:inline-block;
  1927. vertical-align:top;
  1928. }
  1929. .taskList {
  1930. padding:7px;
  1931. width:300px;
  1932. }
  1933. .taskList .stage {
  1934. font-weight:bold;
  1935. }
  1936. .taskCard {
  1937. background: #fff;
  1938. margin: 5px 0px;
  1939. padding:5px;
  1940. border: 1px solid #e6e6e6;
  1941. border-radius: 3px;
  1942. box-shadow: 3px 3px 3px #e6e6e6;
  1943. min-height:60px;
  1944. position: relative;
  1945. border-radius: 3px;
  1946. overflow: hidden;
  1947. }
  1948. .taskImg {
  1949. position: absolute;
  1950. box-sizing: border-box;
  1951. width: 100%;
  1952. height: 100%;
  1953. top: 0;
  1954. left: 0;
  1955. }
  1956. .taskImg img{
  1957. position: absolute;
  1958. top: -1px;
  1959. }
  1960. .hong:hover {
  1961. border-top: 1px solid #ff0000;
  1962. }
  1963. .huang:hover {
  1964. border-top: 1px solid #ff9600;
  1965. }
  1966. .hui:hover {
  1967. border-top: 1px solid #c9c9c9;
  1968. }
  1969. .taskCard:hover {
  1970. cursor: move;
  1971. }
  1972. .chosen {
  1973. background-color: #000 !important;
  1974. color: #fff;
  1975. }
  1976. .ghost {
  1977. background-color: #fafafa !important;
  1978. }
  1979. .taskCard .cb {
  1980. margin-right:5px;
  1981. }
  1982. .item {
  1983. background:#fff;
  1984. }
  1985. .input-with-select .el-input-group__prepend {
  1986. background-color: #fff;
  1987. }
  1988. .el-tabs__item {
  1989. height:45px ;
  1990. }
  1991. .projectCls {
  1992. margin-left:10px;margin-right:10px;
  1993. }
  1994. .heavyTxt {
  1995. font-weight:bold;
  1996. }
  1997. .el-tabs__nav-wrap::after {
  1998. height:0.5px;
  1999. }
  2000. .user_name_icon {
  2001. text-align:center;border-radius:50%;color:white;float:right;font-size:10px;width:30px;height:30px;line-height:30px;
  2002. transform: scale(0.8);
  2003. }
  2004. .task_name {
  2005. color:#262626;
  2006. display:inline-block;
  2007. max-width: 235px;
  2008. height: 25px;
  2009. overflow: hidden;
  2010. white-space: nowrap;
  2011. text-overflow: ellipsis;
  2012. }
  2013. .task_name span{
  2014. position: relative;
  2015. top: 8px;
  2016. }
  2017. .cb {
  2018. position: relative;
  2019. top: -2px;
  2020. }
  2021. .group_style {
  2022. border-radius: 5px;margin:2px 0px 2px 0px;height:40px;line-height:40px;
  2023. }
  2024. .el-tabs__nav-wrap::after {
  2025. height:1px;
  2026. }
  2027. .el-tabs__header {
  2028. margin:0 !important;
  2029. }
  2030. .single_line {
  2031. overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
  2032. }
  2033. .sub_task_num {
  2034. font-size:10px;
  2035. color:#666;
  2036. }
  2037. .template_box {
  2038. margin:20px 0px;
  2039. }
  2040. /* 项目阶段侧边栏样式 */
  2041. .sidebar {
  2042. width: 2px;
  2043. background: #dddddd;
  2044. position: relative;
  2045. }
  2046. .sidebar:hover {
  2047. background: #20a0ff;
  2048. }
  2049. .sidebar:hover .etui {
  2050. background: #20a0ff;
  2051. border: #20a0ff;
  2052. color: #fff;
  2053. }
  2054. .etui {
  2055. width: 15px;
  2056. height: 40px;
  2057. background: #fff;
  2058. border: 1px solid #dddddd;
  2059. position: absolute;
  2060. top: 50%;
  2061. left: 0%;
  2062. transform: translate(6%, -50%);
  2063. color: rgb(192, 191, 191);
  2064. box-sizing: border-box;
  2065. }
  2066. .etui i {
  2067. display: inline-block;
  2068. padding-top: 90%;
  2069. /* padding-left: 15%; */
  2070. font-weight: bold;
  2071. }
  2072. /* bug问题 */
  2073. .task {
  2074. box-sizing: border-box;
  2075. padding-left: 10px;
  2076. padding-right: 5px;
  2077. }
  2078. /* 评论部分 */
  2079. .remark {
  2080. width: 500px;
  2081. height: 100%;
  2082. background: #fff;
  2083. position: absolute;
  2084. top: 0;
  2085. right: -500px;
  2086. border-left: 3px solid #dddddd;
  2087. }
  2088. .jm {
  2089. margin-left: -500px;
  2090. }
  2091. .bj {
  2092. float: left;
  2093. width: 90%;
  2094. overflow: hidden;
  2095. height: 65px;
  2096. white-space: nowrap;
  2097. text-overflow: ellipsis;
  2098. }
  2099. .bj span {
  2100. width: 50px;
  2101. height: 50px;
  2102. display: inline-block;
  2103. border-radius: 50%;
  2104. color: #fff;
  2105. text-align: center;
  2106. float: left;
  2107. margin-right: 20px;
  2108. margin-top: 10px;
  2109. line-height: 50px;
  2110. }
  2111. .player {
  2112. height: 15%;
  2113. box-sizing: border-box;
  2114. padding-left: 15px;
  2115. border-bottom: 1px solid #dddddd;
  2116. }
  2117. .player p {
  2118. margin: 0;
  2119. padding: 2% 0;
  2120. font-size: 18px;
  2121. }
  2122. .player .el-image {
  2123. border-radius: 50%;
  2124. margin-right: 10px;
  2125. }
  2126. .subject {
  2127. height: 60%;
  2128. box-sizing: border-box;
  2129. }
  2130. .sub-all {
  2131. font-size: 20px;
  2132. padding: 15px 0 15px 15px;
  2133. }
  2134. .sub-details {
  2135. width: 100%;
  2136. height: 87%;
  2137. padding-right: 15px;
  2138. box-sizing: border-box;
  2139. overflow: hidden;
  2140. overflow-y: scroll
  2141. }
  2142. .sub-details li {
  2143. list-style:none
  2144. }
  2145. /* 红色背景显示日期 */
  2146. .element_span {
  2147. display: inline-block;
  2148. background: #e62412;
  2149. color: #fff;
  2150. border-radius: 5px;
  2151. padding: 3px;
  2152. /* text-align: center; */
  2153. font-size: 12px;
  2154. margin-left: 5px;
  2155. }
  2156. .pro_btn{
  2157. display: inline-block;
  2158. float: right;
  2159. }
  2160. </style>
  2161. <style lang="scss" scoped>
  2162. .counli {
  2163. em {
  2164. font-style: normal;
  2165. display: inline-block;
  2166. margin-left: 9%;
  2167. }
  2168. span {
  2169. float: right;
  2170. }
  2171. }
  2172. .carts {
  2173. position: relative;
  2174. .el-image{
  2175. border-radius: 50%;
  2176. float: left;
  2177. width: 20%;
  2178. }
  2179. i {
  2180. width: 30px;
  2181. height: 30px;
  2182. // background: #778899;
  2183. display: inline-block;
  2184. float: left;
  2185. border-radius:50%;
  2186. font-style:normal;
  2187. font-size: 12px;
  2188. line-height: 30px;
  2189. text-align: center;
  2190. color: #fff;
  2191. background: #778899;
  2192. }
  2193. div {
  2194. text-align: left;
  2195. p {
  2196. text-align: left;
  2197. margin-left: 10px;
  2198. margin-left: 13%;
  2199. }
  2200. em {
  2201. display: block;
  2202. font-style: normal;
  2203. margin-left: 13%;
  2204. }
  2205. }
  2206. span {
  2207. font-size: 10px;
  2208. float: right;
  2209. margin-top: -40px;
  2210. }
  2211. }
  2212. .issue {
  2213. // height: 20%;
  2214. // position: relative;
  2215. // z-index: 4;
  2216. .zh{
  2217. position: relative;
  2218. width: 100%;
  2219. height: 100%;
  2220. }
  2221. .textareays {
  2222. background: #000;
  2223. height: 140px;
  2224. border: 0;
  2225. .el-textarea__inner {
  2226. height: 85%;
  2227. }
  2228. }
  2229. .issue-button {
  2230. position: absolute;
  2231. bottom: 20px;
  2232. right: 20px;
  2233. }
  2234. }
  2235. .inputDeep {
  2236. position: absolute;
  2237. bottom: 85px;
  2238. width: 95%;
  2239. margin: 0 12px;
  2240. }
  2241. .inputDeep .el-textarea .el-textarea__inner{
  2242. border: 0 !important;
  2243. resize: none !important;
  2244. }
  2245. .inputDeeps .el-textarea__inner {
  2246. border: 0 !important;
  2247. resize: none !important;
  2248. }
  2249. .scop_span {
  2250. display: inline-block;
  2251. padding: 2px 5px;
  2252. }
  2253. </style>
  2254. <style>
  2255. .ql-snow .ql-picker.ql-size .ql-picker-label::before,
  2256. .ql-snow .ql-picker.ql-size .ql-picker-item::before {
  2257. content: "14px" !important;
  2258. position: relative;
  2259. top: -8px;
  2260. }
  2261. .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
  2262. .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before {
  2263. content: "10px" !important;
  2264. }
  2265. .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
  2266. .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before {
  2267. content: "18px" !important;
  2268. }
  2269. .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
  2270. .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before {
  2271. content: "32px" !important;
  2272. }
  2273. .ql-snow .ql-picker.ql-header .ql-picker-label::before,
  2274. .ql-snow .ql-picker.ql-header .ql-picker-item::before {
  2275. content: "文本" !important;
  2276. position: relative;
  2277. top: -8px;
  2278. }
  2279. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
  2280. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  2281. content: "标题1" !important;
  2282. }
  2283. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
  2284. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  2285. content: "标题2" !important;
  2286. }
  2287. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
  2288. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  2289. content: "标题3" !important;
  2290. }
  2291. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
  2292. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  2293. content: "标题4" !important;
  2294. }
  2295. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
  2296. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  2297. content: "标题5" !important;
  2298. }
  2299. .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
  2300. .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  2301. content: "标题6" !important;
  2302. }
  2303. .ql-snow .ql-picker.ql-font .ql-picker-label::before,
  2304. .ql-snow .ql-picker.ql-font .ql-picker-item::before {
  2305. content: "标准字体" !important;
  2306. }
  2307. .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
  2308. .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before {
  2309. content: "衬线字体" !important;
  2310. }
  2311. .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
  2312. .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
  2313. content: "等宽字体" !important;
  2314. }
  2315. /* .ql-picker-label {
  2316. position: relative;
  2317. } */
  2318. .ql-picker-label svg {
  2319. position: relative;
  2320. top: -6px;
  2321. }
  2322. /* 任务进展 */
  2323. .progress {
  2324. border: 1px solid #ddd;
  2325. border-radius: 5px;
  2326. width: 100%;
  2327. box-sizing: border-box;
  2328. padding: 15px;
  2329. position: relative;
  2330. margin-bottom: 20px;
  2331. }
  2332. .remind {
  2333. width: 95px;
  2334. height: 60%;
  2335. overflow-y:auto;
  2336. position: absolute;
  2337. background: #fff;
  2338. padding: 10px;
  2339. left: 0;
  2340. top: 0;
  2341. border: 1px solid #ddd;
  2342. z-index: 999999;
  2343. }
  2344. .rala1 .el-radio__input.is-checked + .el-radio__label {
  2345. color: #43d14f !important;
  2346. }
  2347. .rala1 .el-radio__input.is-checked .el-radio__inner {
  2348. background: #43d14f !important;
  2349. border-color: #43d14f !important;
  2350. }
  2351. .rala2 .el-radio__input.is-checked + .el-radio__label {
  2352. color: #fd7624 !important;
  2353. }
  2354. .rala2 .el-radio__input.is-checked .el-radio__inner {
  2355. background: #fd7624 !important;
  2356. border-color: #fd7624 !important;
  2357. }
  2358. .rala3 .el-radio__input.is-checked + .el-radio__label {
  2359. color: #fd4d47 !important;
  2360. }
  2361. .rala3 .el-radio__input.is-checked .el-radio__inner {
  2362. background: #fd4d47 !important;
  2363. border-color: #fd4d47 !important;
  2364. }
  2365. /* 任务进展列表 */
  2366. .elCard {
  2367. width: 100%;
  2368. padding: 15px;
  2369. box-sizing: border-box;
  2370. border: 1px solid #EBEEF5;
  2371. }
  2372. .elCard_qu {
  2373. float: right;
  2374. margin-right: 15px;
  2375. }
  2376. .integrity {
  2377. padding: 15px;
  2378. }
  2379. .write {
  2380. float: right;
  2381. color: #1B9AEE;
  2382. }
  2383. .ssp {
  2384. position: absolute;
  2385. right: 140px;
  2386. top: 95px;
  2387. width: 66%;
  2388. height: 80%;
  2389. }
  2390. .examine {
  2391. width: 100%;
  2392. text-align: center;
  2393. }
  2394. .nones {
  2395. width: 100%;
  2396. height: 50px;
  2397. text-align: center;
  2398. color: #909399;
  2399. line-height: 50px;
  2400. border-top: 1px solid #EBEEF5;
  2401. border-bottom: 1px solid #EBEEF5;
  2402. font-size: 16px;
  2403. }
  2404. .icon {
  2405. /* color: rgb(67, 209, 79); */
  2406. display: block;
  2407. width: 12px;
  2408. height: 12px;
  2409. background: #fff;
  2410. position: absolute;
  2411. top: 0;
  2412. left: -33px;
  2413. border-radius: 50%;
  2414. border: 4px solid;
  2415. }
  2416. /* ddl */
  2417. .ddl {
  2418. height: 136px;
  2419. overflow: hidden;
  2420. border: 1px solid #EBEEF5
  2421. }
  2422. .tb{
  2423. position: relative;
  2424. }
  2425. .dpl{
  2426. position: absolute;
  2427. font-size: 20px;
  2428. left: -32px;
  2429. top: 0px;
  2430. }
  2431. </style>