taskComponent.vue 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222
  1. <template>
  2. <div>
  3. <div style="height: 72vh;overflow: auto;">
  4. <el-form ref="form1" :model="addForm" :rules="taskRules" label-width="120px">
  5. <el-form-item label="所属项目" v-if="showOrNot" prop="projectId">
  6. <el-select v-model="addForm.projectId" :placeholder="$t('defaultText.pleaseChoose')" @change="agentCreatesEvents(1)" filterable="true" style="width:100%;">
  7. <el-option-group v-for="group in integrationProjectList" :key="group.label" :label="group.label">
  8. <el-option v-for="item in group.peojectList" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
  9. <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
  10. <span style="float: right;">{{ item.projectName }}</span>
  11. </el-option>
  12. </el-option-group>
  13. </el-select>
  14. </el-form-item>
  15. <el-form-item label="所属任务分组" v-if="showOrNot" prop="groupId">
  16. <el-select v-model="addForm.groupId" :placeholder="$t('defaultText.pleaseChoose')" @change="agentCreatesEvents(2)" filterable="true" style="width:100%;">
  17. <el-option v-for="item in groupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  18. </el-select>
  19. </el-form-item>
  20. <el-form-item label="所属任务列表" v-if="showOrNot" prop="stagesId">
  21. <el-select v-model="addForm.stagesId" :placeholder="$t('defaultText.pleaseChoose')" filterable="true" style="width:100%;">
  22. <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
  23. </el-select>
  24. </el-form-item>
  25. <!--子任务需要选择任务列表 -->
  26. <el-form-item :label="$t('tasklist')" prop="stages" v-if="addForm.parentTid != null">
  27. <el-select v-model="addForm.stagesId" style="width:100%;" >
  28. <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
  29. </el-select>
  30. </el-form-item>
  31. <el-form-item label="前置任务" prop="aheadTidList" >
  32. <el-select v-model="addForm.aheadTidList" style="width:100%;" multiple filterable @change="$forceUpdate()">
  33. <el-option v-for="item in relationdata" :key="item.id" :label="item.name" :value="item.id"></el-option>
  34. </el-select>
  35. </el-form-item>
  36. <el-form-item :label="$t('types')">
  37. <el-select v-model="addForm.taskType" style="width:100%;" :disabled="((this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement) && !(groupResponsibleId == user.id)" @change="selchg()">
  38. <el-option v-for="item in taskTypeList" :key="item.id" :label="item.name" :value="item.id">
  39. <i :class="item.icon" ></i>
  40. <span>{{item.name}}</span>
  41. </el-option>
  42. </el-select>
  43. </el-form-item>
  44. <!-- <el-form-item v-if="this.user.companyId==3092" :label="$t('taskdefinition')" prop="serviceId">
  45. <el-select filterable style="width:100%;" v-model="addForm.serviceId" placeholder="请选择任务内容">
  46. <el-option
  47. v-for="item in sapServiceList"
  48. :key="item.serviceCode"
  49. :label="item.serviceName+'-'+item.serviceCode"
  50. :value="item.serviceCode">
  51. </el-option>
  52. </el-select>
  53. </el-form-item> -->
  54. <el-form-item :label="$t('taskdefinition')" prop="name">
  55. <el-input v-model="addForm.name" :maxlength="40" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" :placeholder="$t('enterthetaskcontent')" clearable></el-input>
  56. </el-form-item>
  57. <!-- {{timelabel}}{{mileageCup}} -->
  58. <el-form-item :label="!timelabel ? $t('starttimes') : $t('jie-zhi-shi-jian')" prop="startDate">
  59. <el-date-picker v-model="addForm.startDate" type="date" style="width:40%;" value-format="yyyy-MM-dd"
  60. :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" @change="DateChange()" v-if="!timelabel"></el-date-picker>
  61. <span style="margin-left:30px;margin-right:10px;" v-if="!timelabel">{{ $t('deadline') }}</span>
  62. <el-date-picker style="width:40%;" v-model="addForm.endDate" type="date" value-format="yyyy-MM-dd"
  63. :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" @change="DateChange()"></el-date-picker>
  64. <span style="margin-left:30px;margin-right:10px;" v-if="timelabel && mileageCup">{{ $t('wan-cheng-shi-jian') }}</span>
  65. <el-date-picker style="width:40%;" v-if="timelabel && mileageCup" v-model="addForm.finishDate" type="date" value-format="yyyy-MM-dd"
  66. :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" @change="DateChange()"></el-date-picker>
  67. </el-form-item>
  68. <div style="border: 1px solid #ddd;margin:5px 0;padding:5px 0;">
  69. <el-form-item :label="$t('zhi-hang-ren') + (index+1)" v-for="(executorItem, index) in addForm.executorListFront" :key="index">
  70. <div class="editingTask">
  71. <div style="margin-right: 30px">
  72. <el-select v-if="user.userNameNeedTranslate != 1" v-model="executorItem.executorId" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" size="small" filterable clearable :placeholder="$t('pleaseselectanexecutor')" style="width:40%;" @change="$forceUpdate()">
  73. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
  74. <span style="float: left">{{ item.name }}</span>
  75. <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
  76. </el-option>
  77. </el-select>
  78. <selectCat v-if="user.userNameNeedTranslate == 1" :size="'mini'" :filterable="true" :subject="users" :subjectId="executorItem.executorId" :distinction="'1'" @selectCal="selectCal" :index="index" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)"></selectCat>
  79. </div>
  80. <!-- 项目服务 -->
  81. <div>
  82. <span style="margin-left:30px;margin-right:10px;">{{'项目服务'}}</span>
  83. <el-select multiple clearable collapse-tags filterable v-model="executorItem.serviceId" size="small" placeholder="请选择项目服务" style="width: 300px" @change="serviceIdChange()">
  84. <el-option
  85. v-for="item in sapServiceList"
  86. :key="item.id"
  87. :label="item.serviceName+'-'+item.serviceCode"
  88. :value="item.id">
  89. </el-option>
  90. </el-select>
  91. </div>
  92. <!-- 计划工时 -->
  93. <div>
  94. <span style="margin-right:10px;">{{ $t('plantime') }}</span>
  95. <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" v-model="gstimday[index]" style="width:120px;" :min="1" :max="100" :placeholder="$t('danweitian')" @change="chggstim(0,index)"></el-input-number ><span style="margin-left:5px;">{{ $t('time.day') }}</span>
  96. <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" v-model="gstimhour[index]" style="width:120px;" :min="1" :max="999" :placeholder="$t('pleaseentertheplannedworking')" @change="chggstim(1,index)"></el-input-number ><span style="margin-left:5px;">{{ $t('time.hour') }}</span>
  97. <!-- <el-input-number v-model="numnnumnum" @change="handleChange" :min="1" :max="10" label="描述文字"></el-input-number> -->
  98. <!-- 移除执行人 -->
  99. <i class="el-icon-delete" v-if="index>0 && (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id|| permissions.projectManagement || groupResponsibleId == user.id)" style="margin-left:5px" @click="removeExecutorLine(index)"></i>
  100. </div>
  101. </div>
  102. </el-form-item>
  103. <el-link type="primary" v-if="(((addForm.executorListFront == null || addForm.executorListFront.length<100) &&
  104. (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id || permissions.projectManagement)) ||
  105. groupResponsibleId == user.id)"
  106. style="margin-left:35px;" @click="addExecutorLine">{{ $t('addinganexecutor') }}</el-link>
  107. </div>
  108. <el-form-item :label="$t('priority')">
  109. <el-select v-model="addForm.taskLevel" style="width:100%;" >
  110. <el-option v-for="item in importanceList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  111. </el-select>
  112. </el-form-item>
  113. <!-- 富文本 -->
  114. <el-form-item :label="$t('detaileddescription')" style="height: 200px">
  115. <!-- <Editor id="tinymce" v-model="tinymceHtml" :init="editorInit"></Editor> -->
  116. <!-- <el-input type="textarea" v-model="addForm.taskDesc" :rows="3"></el-input> -->
  117. <!-- <quill-edito v-model="addForm.taskDesc"></quill-edito> -->
  118. <quill-editor style="height: 150px" ref="text" v-model="addForm.taskDesc" class="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)"/>
  119. </el-form-item>
  120. <!-- 富文本 -->
  121. <div v-if="addForm.id != null">
  122. <el-divider ></el-divider>
  123. <!-- 任务进展 -->
  124. <template v-if="!timelabel || isRelationItem">
  125. <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">{{ $t('taskprogress') }}</i>
  126. <span ref="addPro" style="display: block; float:right;"><el-link @click="addprogress">{{ $t('addtaskprogress') }}</el-link></span>
  127. </p>
  128. <!-- 任务进展展示 -->
  129. <div style="display: none;" ref="proBox" class="progress">
  130. <!-- <el-form :model="> -->
  131. <el-radio-group v-model="radio">
  132. <el-radio :label="0" class="rala1">{{ $t('normals') }}</el-radio>
  133. <el-radio :label="1" class="rala2">{{ $t('atrisk') }}</el-radio>
  134. <el-radio :label="2" class="rala3">{{ $t('withinthetimelimit') }}</el-radio>
  135. </el-radio-group>
  136. <el-input
  137. type="textarea"
  138. border="0"
  139. :autosize="{ minRows: 2, maxRows: 6}"
  140. :placeholder="$t('detailedprogressdescription')"
  141. v-model="text2"
  142. style="margin:10px 0 0 0">
  143. </el-input>
  144. <h4 style="font-weight: normal;">{{ $t('tixiang') }}{{checkLists.length}}</h4>
  145. <i class="el-icon-circle-plus pron_i" style="font-size: 28px;color: #409EFF;" @click="addI(0)"></i>
  146. <div class="remind" ref="addRem" style="display: none">
  147. <el-checkbox-group v-model="checkboxGrounp" v-for="item in users" :key="item.id">
  148. <p>
  149. <el-checkbox :label="item.name" @change="kkk(item)">
  150. <span>
  151. <span v-if="user.userNameNeedTranslate != '1'">
  152. {{item.name}}
  153. </span>
  154. <span v-if="user.userNameNeedTranslate == '1'">
  155. <ww-open-data type='userName' :openid='item.name'></ww-open-data>
  156. </span>
  157. </span>
  158. </el-checkbox>
  159. </p>
  160. </el-checkbox-group>
  161. </div>
  162. <div class="ssp" @click="sss"></div>
  163. <!-- </el-form> -->
  164. <div class="pro_btn">
  165. <el-button size="mini" @click="shutPro">{{ $t('btn.cancel') }}</el-button>
  166. <el-button size="mini" type="primary" @click="addTaskProgress">{{ $t('fa-bu') }}</el-button>
  167. </div>
  168. </div>
  169. <div class="ddl" v-if="recentProgressInfo != null && recentProgressInfo.id != null">
  170. <div class="elCard" style="margin-bottom: 10px; height:" >
  171. <i class="el-icon-success" style="color: #43d14f;" v-if="recentProgressInfo.status == 0"></i>
  172. <i class="el-icon-success" style="color: #fd7624;" v-else-if="recentProgressInfo.status == 1"></i>
  173. <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
  174. <span v-if="recentProgressInfo.status == 0">{{ $t('normals') }}</span>
  175. <span v-else-if="recentProgressInfo.status == 1">{{ $t('normals') }}</span>
  176. <span v-else>{{ $t('withinthetimelimit') }}</span>
  177. <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
  178. <i class="el-icon-more" ></i>
  179. <el-dropdown-menu slot="dropdown">
  180. <el-dropdown-item divided>
  181. <span @click="deleteTaskProgress(recentProgressInfo.id)"><i class="el-icon-delete"></i>{{ $t('deleteList ') }}</span></el-dropdown-item>
  182. </el-dropdown-menu>
  183. </el-dropdown>
  184. <!-- <div class="elCard_qu">{{recentProgressInfo.creatorName}}{{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}</div> -->
  185. <div class="elCard_qu">
  186. <span>
  187. <span v-if="user.userNameNeedTranslate != '1'">
  188. {{recentProgressInfo.creatorName}}
  189. </span>
  190. <span v-if="user.userNameNeedTranslate == '1'">
  191. <ww-open-data type='userName' :openid='recentProgressInfo.creatorName'></ww-open-data>
  192. </span>
  193. </span>
  194. {{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}
  195. </div>
  196. <p style="padding-left: 20px;">{{recentProgressInfo.content}}</p>
  197. <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">{{ $t('viewingHistory') }}</el-button></div>
  198. </div>
  199. </div>
  200. <!-- 任务列表没有数据的时候展示 -->
  201. <div class="nones" v-if="ProgressList.length <= 0">
  202. {{ $t('nodata') }}
  203. </div>
  204. <!-- 任务进展完整状态 -->
  205. <el-dialog :title="$t('other.prompts')" :visible.sync="innerVisibless" append-to-body width="500px">
  206. <div class="integrity">
  207. <h3 style="font-weight: normal;display: inline-block;margin: 0 0 20px 0;">{{ $t('taskprogress') }} :{{ProgressList.length}}</h3>
  208. <!-- <span class="write"><i class="el-icon-circle-plus"></i>填写进展</span> -->
  209. <el-divider></el-divider>
  210. <!-- -->
  211. <div class="block" style="height: 200px;">
  212. <el-timeline style="padding:20px 0 0 0;">
  213. <el-timeline-item
  214. v-for="(activity, index) in ProgressList"
  215. :key="index">
  216. <div class="tb">
  217. <span v-if="activity.status == 0" style="color: #43D14F" class="icon"></span>
  218. <span v-if="activity.status == 1" style="color: #FD7624" class="icon"></span>
  219. <span v-if="activity.status == 2" style="color: red" class="icon"></span>
  220. <div>
  221. <span v-if="activity.status == 0" style="color: #43D14F">{{ $t('normals') }}</span>
  222. <span v-if="activity.status == 1" style="color: #FD7624">{{ $t('atrisk') }}</span>
  223. <span v-if="activity.status == 2" style="color: red">{{ $t('withinthetimelimit') }}</span>
  224. <span style="display: inline-block; float: right; color: #8C8C8C">{{activity.indate | relativeTime}}</span>
  225. </div>
  226. <p style="color: #8C8C8C">{{activity.content}}</p>
  227. </div>
  228. </el-timeline-item>
  229. </el-timeline>
  230. </div>
  231. <!-- -->
  232. </div>
  233. <span slot="footer" class="dialog-footer foooot">
  234. <el-button type="primary" @click="innerVisibless = false">{{ $t('Shutdown') }}</el-button>
  235. </span>
  236. </el-dialog>
  237. </template>
  238. <!-- 子任务/关联任务 -->
  239. <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">{{timelabel && !isRelationItem ? $t('guanlian') : $t('zirwu')}}</i>
  240. <el-link style="float:right;" @click="addRelation" v-if="timelabel && !isRelationItem">{{ $t('associatedTask') }}</el-link>
  241. <el-link style="float:right;" @click="addSubTask" v-else>{{ $t('addingsubtask') }}</el-link>
  242. </p>
  243. <!-- 关联任务列表 -->
  244. <el-table key="guanlian" :data="relationSubTaskList" v-if="timelabel && !isRelationItem"
  245. :header-cell-style="{'font-weight':'normal'}"
  246. highlight-current-row
  247. v-loading="listLoading"
  248. style="width: 100%;margin-top:10px;"
  249. @row-click="relationTaskClick">
  250. <el-table-column prop="taskStatus" :label="$t('wan-cheng')" width="50" >
  251. <template slot-scope="scope">
  252. <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb" @change="relationFinishTask(scope.row)"></el-checkbox>
  253. </template>
  254. </el-table-column>
  255. <el-table-column prop="taskName" :label="$t('biao-ti')" >
  256. <template slot-scope="scope">
  257. <el-tooltip class="item" effect="dark" :content="scope.row.taskName" placement="top" style="cursor:pointer;color:#409eff;">
  258. <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.taskName}}</span>
  259. </el-tooltip>
  260. </template>
  261. </el-table-column>
  262. <el-table-column :label="$t('operation')" width="130" align="left">
  263. <template slot-scope="scope">
  264. <el-button @click.stop.native="deleteRelationItem(scope.row.id)" size="mini">{{ $t('dissociated') }}</el-button>
  265. </template>
  266. </el-table-column>
  267. </el-table>
  268. <!--子任务列表 -->
  269. <el-table key="zi" :data="addForm.subTaskList" v-else
  270. :header-cell-style="{'font-weight':'normal'}"
  271. highlight-current-row v-loading="listLoading" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
  272. <el-table-column prop="taskStatus" :label="$t('wan-cheng')" width="50" >
  273. <template slot-scope="scope">
  274. <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb"
  275. @change="finishTask(scope.row)"
  276. ></el-checkbox>
  277. </template>
  278. </el-table-column>
  279. <el-table-column prop="name" :label="$t('biao-ti')" >
  280. <template slot-scope="scope">
  281. <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
  282. <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.name}}</span>
  283. </el-tooltip>
  284. </template>
  285. </el-table-column>
  286. <el-table-column prop="executorName" :label="$t('zhi-hang-ren')" width="100" >
  287. <template slot-scope="scope">
  288. <span v-if="user.userNameNeedTranslate != 1">
  289. {{scope.row.executorName == null?$t('dai-fen-pei'):scope.row.executorName}}
  290. </span>
  291. <span v-if="user.userNameNeedTranslate == 1">
  292. <span v-if="scope.row.executorName == null">
  293. {{$t('dai-fen-pei')}}
  294. </span>
  295. <span v-else>
  296. <span v-for="item,index in scope.row.executorName" :key="index">
  297. <ww-open-data type='userName' :openid='item'></ww-open-data>
  298. <span v-if="index < scope.row.executorName.length - 1">,</span>
  299. </span>
  300. </span>
  301. </span>
  302. </template>
  303. </el-table-column>
  304. <el-table-column prop="endDate" :label="$t('deadline')" width="100" >
  305. <template slot-scope="scope">
  306. <p v-if="scope.row.endDate >= times">{{scope.row.endDate}}</p>
  307. <p v-else style="background: #e62412; color: #fff;text-align: center; border-radius: 3px;">{{scope.row.endDate}}</p>
  308. </template>
  309. </el-table-column>
  310. </el-table>
  311. </div>
  312. </el-form>
  313. <!-- 关联文件列表 -->
  314. <template v-if="isEditFile">
  315. <div style="width:100%;margin:1em 0;">
  316. <i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">{{ $t('jiafuchengguo') }}</i>
  317. <el-link @click="relationFileClick()" style="float:right;margin-left:10px">{{ $t('associatedfiles') }}</el-link>
  318. <el-upload style="float:right;" action="#" :http-request="uploadFileClick" :show-file-list="false" :multiple="false">
  319. <el-link>{{ $t('uoloadFiles') }}</el-link>
  320. </el-upload>
  321. </div>
  322. <el-table
  323. v-loading="fileListLoading"
  324. ref="filetable"
  325. :data="taskFileList"
  326. :header-cell-style="{'font-weight':'normal'}"
  327. highlight-current-row
  328. max-height="240"
  329. style="width: 100%;margin-top:10px;margin-bottom:15px">
  330. <el-table-column :label="$t('headerTop.serialNumber')" prop="documentType" min-width="40" align="center">
  331. <template slot-scope="scope">
  332. <div>
  333. {{scope.$index + 1}}
  334. </div>
  335. </template>
  336. </el-table-column>
  337. <el-table-column :label="$t('filenames')" prop="documentName" min-width="180"></el-table-column>
  338. <el-table-column :label="$t('filesize')" prop="size" min-width="60" align="center"></el-table-column>
  339. <el-table-column :label="$t('founder')" prop="creatorName" min-width="60" align="center">
  340. <template slot-scope="scope">
  341. <div>
  342. <span v-if="user.userNameNeedTranslate != 1">{{scope.row.creatorName}}</span>
  343. <span v-if="user.userNameNeedTranslate == 1">
  344. <ww-open-data type='userName' :openid='scope.row.creatorName'></ww-open-data>
  345. </span>
  346. </div>
  347. </template>
  348. </el-table-column>
  349. <el-table-column :label="$t('creationtime')" prop="indate" min-width="120" align="center">
  350. <template slot-scope="scope">
  351. <span>{{scope.row.indate[0] + '-' + scope.row.indate[1] + '-' + scope.row.indate[2] + '\u0020\u0020' + scope.row.indate[3] + ':' + scope.row.indate[4] + ':' + scope.row.indate[5]}}</span>
  352. </template>
  353. </el-table-column>
  354. <el-table-column :label="$t('operation')" min-width="90">
  355. <template slot-scope="scope">
  356. <el-link :href="scope.row.url" :download="scope.row.documentName" type="primary" style="margin-right:7px">{{ $t('other.download') }}</el-link>
  357. <el-link @click="taskFileDelete(scope.row.id)">{{ $t('btn.delete') }}</el-link>
  358. </template>
  359. </el-table-column>
  360. </el-table>
  361. </template>
  362. <!-- 关联文件dialog -->
  363. <el-dialog v-if="relationFileDialog" :visible.sync="relationFileDialog" :title="$t('associatedfiles')" append-to-body>
  364. <span>{{ $t('wenjian1guanli') }}</span>
  365. <div>
  366. <span>{{ $t('xuanzwenjian') }}</span>
  367. <el-select v-model="addFileId" filterable >
  368. <el-option
  369. v-for="item in projectFileList"
  370. :key="item.id"
  371. :label="item.documentName"
  372. :value="item.id"
  373. ></el-option>
  374. </el-select>
  375. <el-button @click="addTaskFile()">{{ $t('btn.determine') }}</el-button>
  376. </div>
  377. </el-dialog>
  378. <el-dialog v-if="isRelationTab" :visible.sync="isRelationTab" :title="$t('associatedTask')" width="800px" append-to-body>
  379. <el-form ref="relationItemForm" label-width="100px">
  380. <el-form-item :label="$t('selecttask')" prop="taskType">
  381. <el-select v-model="relationvalue" multiple style="width:80%">
  382. <el-option
  383. v-for="item in relationdata"
  384. :key="item.id"
  385. :label="item.name"
  386. :value="item.id"
  387. ></el-option>
  388. </el-select>
  389. </el-form-item>
  390. </el-form>
  391. <div slot="footer" class="dialog-footer foooot">
  392. <el-button @click="isRelationTab = false">{{ $t('btn.cancel') }}</el-button>
  393. <el-button type="primary" @click="addRelationTask()">{{ $t('btn.determine') }}</el-button>
  394. </div>
  395. </el-dialog>
  396. </div>
  397. <div slot="footer" class="dialog-footer foooot">
  398. <el-button v-if="(user.id == addForm.createrId || currentProject.inchargerId == user.id || currentProject.creatorId == user.id || permissions.projectManagement) && canAddTask" @click.native="deleteTask()" style="float:left;">{{ $t('btn.delete') }}</el-button>
  399. <el-button type="primary" v-if="user.userNameNeedTranslate == 1 && !meetingId && !integrationTask.stage && addForm.executorListFront[0].executorId" @click="meetingCli()">发起会议</el-button>
  400. <el-button @click.native="closeBounceds()">{{ $t('btn.cancel') }}</el-button>
  401. <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
  402. </div>
  403. <!-- <div slot="title" v-if="addForm.parentTid != null || isRelationItem" >
  404. <el-page-header @back="backToParentTask" :title="timelabel ? $t('returnmilestone') : $t('parenttask')" :content="timelabel ? relationPar.name : addForm.parentTname"></el-page-header>
  405. </div> -->
  406. <!-- 评论 -->
  407. <div class="remark" v-show="addForm.id != null">
  408. <span class="zh">
  409. <div class="player">
  410. <p>{{ $t('participantin') }}</p>
  411. <div class="bj">
  412. <span v-for="(pl, i) in critic" :key="i">
  413. <span style="background: #778899" v-if="user.userNameNeedTranslate != 1">{{pl.length > 2 ? pl.substring(pl.length - 2, pl.length) : pl}}</span>
  414. <span v-if="user.userNameNeedTranslate == 1">
  415. <ww-open-data type='userName' :openid='pl'></ww-open-data>
  416. </span>
  417. </span>
  418. <!-- <span style="background: #778899">{{pl.length}}</span> -->
  419. </div>
  420. </div>
  421. <div class="subject">
  422. <div class="sub-all">
  423. <div :class="dynamicTab ? 'subOn' : ''" @click="dynamicTab = true">{{ $t('alldynamic') }}</div>
  424. <div :class="dynamicTab ? '' : 'subOn'" @click="dynamicTab = false">{{ $t('xiang-guan-ri-bao') }}</div>
  425. </div>
  426. <div class="sub-details" ref="main" v-if="dynamicTab">
  427. <ul class="infinite-list" v-infinite-scroll="load" ref="contRoll">
  428. <div style="width: 100%" v-if="commentList.length <= 0">
  429. <img src="../assets/image/xiao.png" alt="">
  430. </div>
  431. <li v-for="i in count" class="infinite-list-item counli" :key="i">
  432. <p><i class="el-icon-s-fold"></i> <em>{{ $t('managerQucompletedthedependencytask') }}</em><span>{{ $t('onApril20') }}</span></p>
  433. </li>
  434. <li class="carts" v-for="item in commentList" :key="item.id">
  435. <!-- <el-image style="width: 30px; height: 30px" :src="url" :fit="fit"></el-image> -->
  436. <!-- <i :style="'background' + item.userColor"> -->
  437. <i :style="'background' + item.userColor">
  438. <i v-if="user.userNameNeedTranslate != 1">
  439. {{item.userName.length > 2 ? item.userName.substring(item.userName.length - 2, item.userName.length) : item.userName}}
  440. </i>
  441. <i v-if="user.userNameNeedTranslate == 1">
  442. <ww-open-data type='userName' :openid='item.userName'></ww-open-data>
  443. </i>
  444. </i>
  445. <div>
  446. <!-- <p>{{item.userName}}</p> -->
  447. <!-- <p> -->
  448. <p v-if="user.userNameNeedTranslate != 1">
  449. {{item.userName}}
  450. </p>
  451. <p v-if="user.userNameNeedTranslate == 1">
  452. <ww-open-data type='userName' :openid='item.userName'></ww-open-data>
  453. </p>
  454. <!-- </p> -->
  455. <em>
  456. <!-- {{item.content}} -->
  457. <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate == 1">
  458. {{item.content.msg1}}
  459. <ww-open-data type='userName' :openid='item.content.msg2'></ww-open-data>
  460. {{item.content.msg3}}
  461. </p>
  462. <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate != 1">{{item.content}}</p>
  463. <!-- 重启原因和责任人 -->
  464. <span class="commentSpan" v-if="user.timeType.restartTaskNeedReason == 1 && item.reason != ''">重启原因:{{item.reason}}</span>
  465. <span class="commentSpan" v-if="user.timeType.restartTaskNeedReason == 1 && item.taskPersonLiableList.length > 0">责任人:
  466. <span v-for="responsibility, responsibilityIndex in item.taskPersonLiableList" :key="responsibilityIndex">
  467. <span v-if="user.userNameNeedTranslate == 1">
  468. <ww-open-data type='userName' :openid='responsibility.userName'></ww-open-data>
  469. </span>
  470. <span v-if="user.userNameNeedTranslate != 1">{{responsibility.userName}}</span>
  471. <span v-if="responsibilityIndex < item.taskPersonLiableList.length - 1">,</span>
  472. </span>
  473. </span>
  474. </em>
  475. </div>
  476. <span>{{item.createTime | relativeTime}}</span>
  477. </li>
  478. </ul>
  479. </div>
  480. <div class="Daily" v-if="!dynamicTab">
  481. <div class="one_daily_body DailyBody">
  482. <el-card shadow="never" v-for="(item2,index2) in dailyList" :key="index2" style="margin-bottom: 20px;">
  483. <p>
  484. {{ $t('tian-bao-ren') }}: <span v-if="user.userNameNeedTranslate != 1">{{item2.userName}}</span>
  485. <span v-if="user.userNameNeedTranslate == 1">
  486. <ww-open-data type='userName' :openid='item2.userName'></ww-open-data>
  487. </span>
  488. <span style="float: right;">{{item2.createDate}}</span>
  489. </p>
  490. <p>{{ $t('other.approvalStatus') }}:
  491. <span v-if="user.company.packageEngineering == 0">
  492. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0">
  493. <span v-if="item2.isDeptAudit==0">
  494. <span v-if="item2.projectAuditState==0">
  495. <!-- 待项目审核人 --> {{$t('other.waitForTheProjectReviewer')}}
  496. <span v-if="item2.projectAuditorName != null">(
  497. <span v-if="user.userNameNeedTranslate == '1'">
  498. <ww-open-data type='userName' :openid='item2.projectAuditorName'></ww-open-data>
  499. </span>
  500. <span v-if="user.userNameNeedTranslate != '1'">{{item2.projectAuditorName}}</span>
  501. )</span>
  502. <!-- 审核 --> {{$t('other.audit')}}
  503. </span>
  504. <span style="color:#32CD32;" v-else-if="item2.projectAuditState==1">
  505. <!-- 项目审核人 --> {{$t('other.projectAuditor')}}
  506. <span v-if="item2.projectAuditorName != null">(
  507. <!-- {{item2.projectAuditorName}} -->
  508. <span v-if="user.userNameNeedTranslate == '1'">
  509. <ww-open-data type='userName' :openid='item2.projectAuditorName'></ww-open-data>
  510. </span>
  511. <span v-if="user.userNameNeedTranslate != '1'">{{item2.projectAuditorName}}</span>
  512. )</span>
  513. <!-- 审核通过 --> {{$t('state.approved')}}
  514. </span>
  515. </span>
  516. <span v-else-if="item2.isDeptAudit==1">
  517. ({{$t('other.await')}}
  518. <span v-if="user.userNameNeedTranslate == '1'">
  519. <ww-open-data type='departmentName' :openid='item2.auditDeptName'></ww-open-data>
  520. </span>
  521. <span v-if="user.userNameNeedTranslate != '1'">{{item2.auditDeptName}}</span>
  522. {{$t('other.audit')}})
  523. </span>
  524. </span>
  525. <span style="margin-left:15px;color:#DAA520;" v-else-if="item2.state == -1">{{$t('other.importWaitingForReview')}}</span>
  526. <span style="margin-left:15px;color:#32CD32;" v-else-if="item2.state == 1">{{$t('state.alreadyPassed')}}
  527. <span style="color:#c7e944" v-if="item2.reportAutoApprove == 1">{{$t('other.automaticReview')}}</span>
  528. </span>
  529. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 2">{{$t('state.rejected')}} {{$t('other.reason')}}:{{item2.rejectReason}}</span>
  530. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 3">{{$t('state.waitingsubmit')}}</span>
  531. </span>
  532. <span v-if="user.company.packageEngineering == 1">
  533. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == -1">{{$t('other.importWaitingForReview')}}</span>
  534. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == -1">{{$t('other.waitingForProfessionalReview')}}</span>
  535. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == 0">{{$t('other.waitingForDepartmentReview')}}</span>
  536. <span style="margin-left:15px;color:#DAA520;" v-if="item2.state == 0 && item2.departmentAuditState == 1">{{$t('other.waitForTheProjectReviewer')}}<span v-if="item2.projectAuditorName != null">
  537. (
  538. <span v-if="user.userNameNeedTranslate != 1">
  539. {{item2.projectAuditorName}}
  540. </span>
  541. <span v-if="user.userNameNeedTranslate == 1">
  542. <ww-open-data type='userName' :openid='item2.projectAuditorName'></ww-open-data>
  543. </span>
  544. )
  545. </span>{{$t('other.audit')}}</span>
  546. <span style="margin-left:15px;color:#32CD32;" v-else-if="item2.state == 1">{{$t('state.alreadyPassed')}}</span>
  547. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 2">{{$t('state.rejected')}} {{$t('other.reason')}}:{{item2.rejectReason}}</span>
  548. <span style="margin-left:15px;color:#FF0000;" v-else-if="item2.state == 3">{{$t('state.waitingsubmit')}}</span>
  549. </span>
  550. </p>
  551. <p v-if="user.timeType.customDegreeActive==1 && item2.degree_id != null && item2.degree_id != -1">{{user.timeType.customDegreeName}}:{{item2.degreeName}}</p>
  552. <p v-if="user.timeType.customDataActive==1">{{user.timeType.customDataName}}:{{item2.customData}}</p>
  553. <!-- 自定义日报文本 -->
  554. <p v-if="user.timeType.customTextActive==1">{{user.timeType.customTextName}}:{{item2.customText}}</p>
  555. <p v-if="user.company.packageEngineering == 1">
  556. {{$t('other.professionalProgress')}}:
  557. <span style="margin-right:10px;" v-for="progressItem in item2.professionProgress" :key="progressItem.id">{{progressItem.professionName}}({{progressItem.progress}}%)
  558. <el-tooltip v-if="progressItem.auditState == 0" :content="$t('state.WaitingAudit')" effect="light" placement="top">
  559. <i class="iconfont firerock-icondaibandengdaishenhe"></i>
  560. </el-tooltip>
  561. <el-tooltip v-if="progressItem.auditState == 1" :content="$t('state.alreadyPassed')" effect="light" placement="top">
  562. <i class="iconfont firerock-iconshenhetongguo"></i>
  563. </el-tooltip>
  564. <el-tooltip v-if="progressItem.auditState == 2" :content="$t('state.notThrough')" effect="light" placement="top">
  565. <i class="iconfont firerock-iconshenhebohui"></i>
  566. </el-tooltip>
  567. </span>
  568. </p>
  569. <div v-if="item2.multiWorktime==0">
  570. <p style="display: inline-block;">{{$t('time.duration')}}:
  571. <span v-if="item2.reportTimeType == 0" style="margin-right:10px;">{{typeList[item2.timeType]}}</span>
  572. <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{item2.startTime+'-'+item2.endTime}}</span>
  573. {{item2.time.toFixed(1)}}h
  574. <el-tag type="danger" size="mini" style="margin-left: 65px" v-if="item2.isOvertime === 1">{{$t('other.WorkOvertime')}}<span v-if="item2.overtimeHours">{{item2.overtimeHours.toFixed(1)}}h</span></el-tag>
  575. </p>
  576. <p>{{$t('other.matters')}}:<span v-html="item2.content"></span></p>
  577. </div>
  578. <div v-if="item2.multiWorktime==1" >
  579. <p>{{$t('other.projectDuration')}}:{{item2.time.toFixed(1)}}h <el-tag type="danger" size="mini" style="margin-left: 65px" v-if="item2.isOvertime === 1">{{ $t('other.WorkOvertime') }}<span v-if="item2.overtimeHours">{{item2.overtimeHours.toFixed(1)}}h</span></el-tag></p>
  580. <div v-for="(timeItem, tIndex) in item2.worktimeList" :key="tIndex"
  581. style="border: 0.5px #ddd solid;margin-bottom:5px;padding:5px;">
  582. <p style="display: inline-block;">{{$t('time.duration')}}:
  583. <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>
  584. {{timeItem.time.toFixed(1)}}h
  585. </p>
  586. <p>{{$t('other.matters')}}:<span v-html="timeItem.content"></span></p>
  587. </div>
  588. </div>
  589. <p v-if="item2.state == 1 && user.timeType.needEvaluate == 1">{{$t('other.evaluation')}}:<span v-html="item2.evaluate"></span></p>
  590. <!--照片的显示 -->
  591. <p v-if="item2.pics != null && item2.pics.length > 0">
  592. <el-image v-for="(pic, index) in item2.pics" :key="index"
  593. style="width: 100px; height: 100px; margin-right:10px;"
  594. :src="pic"
  595. :preview-src-list="item2.pics">
  596. </el-image>
  597. </p>
  598. </el-card>
  599. </div>
  600. </div>
  601. </div>
  602. <div class="issue" v-if="dynamicTab">
  603. <!-- <el-input type="textarea" class="textareays" label-width="100%" label-height="140px"></el-input> -->
  604. <div class="issue_fixation">
  605. <div class="inputDeep"><el-input
  606. type="textarea"
  607. :placeholder="$t('pleaseentercontent')"
  608. :autosize="{ minRows: 6, maxRows: 6}"
  609. v-model="textarea2"
  610. class="inputDeeps"
  611. >
  612. </el-input></div>
  613. <el-button class="issue-button" type="primary" @click="release()">{{ $t('fa-bu') }}</el-button>
  614. </div>
  615. </div>
  616. </span>
  617. </div>
  618. </div>
  619. </template>
  620. <script>
  621. import selectCat from "@/components/select.vue"
  622. // 富文本样式
  623. import 'quill/dist/quill.core.css'
  624. import 'quill/dist/quill.snow.css'
  625. import 'quill/dist/quill.bubble.css'
  626. // 导入富文本
  627. import { quillEditor } from 'vue-quill-editor'
  628. export default {
  629. props: {
  630. integrationTask:{
  631. type: Object,
  632. default: {}
  633. },
  634. // 是否显示选择任务
  635. showOrNot: {
  636. type: Boolean,
  637. default: false
  638. }
  639. },
  640. components: {
  641. quillEditor, // 富文本
  642. selectCat
  643. },
  644. data() {
  645. return {
  646. meeting: false,
  647. numnnumnum: 2,
  648. componentFlg: false,
  649. mileageCup: false,
  650. loadingExport : false,
  651. saveTemplateLoading: false,
  652. joinMembList:[],
  653. setInchargerDialog: false,
  654. recentProgressInfo:{},
  655. addToTmpDialog:false,
  656. templateForm:{},
  657. importTaskDialog:false,
  658. importToStageId:null,
  659. exportDialog: false,
  660. exportTaskType:null,
  661. groupTemplateList:[],
  662. createGroupWay:'new',
  663. modGroupDialog:false,
  664. subTaskVisible:false,
  665. orderList:[{id:"seq",name:this.$t('manuallydragthesequence'),isDesc:false},{id:"create_date",name:this.$t('creationtimeisthelatest'),isDesc:true},
  666. {id:"end_date",name:this.$t('deadlineisthelatest'),isDesc:true},
  667. {id:"task_level",name:this.$t('highestpriority'),isDesc:true}],
  668. order:"seq",
  669. isDesc:false,
  670. taskDataList:[],
  671. displayTable: false,
  672. viewList: [{id:1,name:this.$t('alltaskss')},{id:2,name:this.$t('taskinprogress')},{id:3,name:this.$t('missionscompleted')},{id:4,name:this.$t('taskscheduled')},
  673. {id:5,name:this.$t('createdthetask')},{id:6,name:this.$t('missionIwason')},{id:7,name:this.$t('todaytask')},{id:8,name:this.$t('taskthatisoverdue')}],
  674. importanceList:[{id:0,name:this.$t('yi-ban')},{id:1,name:this.$t('zhong-yao')},{id:2,name:this.$t('jin-ji')},],
  675. taskTypeList:[{id:0,name:this.$t('other.task'), icon:"iconfont firerock-iconrenwu"},{id:1,name:this.$t('other.milestone'),icon:"iconfont firerock-iconicon-"},{id:2,name:this.$t('risk'),icon:"iconfont firerock-iconfengxian"}],
  676. taskTypeColor:['#20A0FF','#8613ad','#bf0404'],
  677. taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
  678. taskStatusList:[this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone')],
  679. //优先级
  680. taskLevelColor:['#262626','#E6A23C','#F56C6C'],
  681. stageListHeight:0,
  682. taskListinH:0,
  683. groupWidth:260,
  684. drag: false,
  685. stageDrag: false,
  686. dragging: false,
  687. stageList:[],
  688. selectedGroup:{},
  689. allGroupData:[],
  690. defaultGroupId:null,
  691. addGroupDialog: false,
  692. addStageDialog: false,
  693. groupSearch:null,
  694. groupType:0,//0-分组,1-视图
  695. groupList: [],
  696. groupForm:{},
  697. stageForm:[],
  698. curProjectId:null,
  699. projectList:null,
  700. activeIndex:"1",
  701. activeName:"projectInside",
  702. searchField:null,
  703. keyword:null,
  704. user: JSON.parse(sessionStorage.getItem("user")),
  705. permissions: JSON.parse(sessionStorage.getItem("permissions")),
  706. userDetailVisible: false,
  707. userDetail:{},
  708. date: new Date(),
  709. users: [],
  710. tableHeight: 0,
  711. listLoading: false,
  712. subProjectVisible: false,
  713. subProjectList: [],//子项目列表
  714. currentProject:{},
  715. addSubProject: false,
  716. addFormVisible: false,
  717. addLoading: false,
  718. title: "",
  719. addForm: {
  720. name: '',
  721. executorListFront: [
  722. {
  723. executorId:null
  724. }
  725. ]
  726. },
  727. rules: {
  728. name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
  729. },
  730. rules2: {
  731. stagesName: [{ required: true, message: this.$t('pleaseenteratasklistname'), trigger: "blur" }],
  732. },
  733. taskRules : {
  734. name: [{ required: true, message: this.$t('enterthetaskcontent'), trigger: "blur" }],
  735. serviceId: [{ required: true, message: '请选择任务内容', trigger: "blur" }],
  736. projectId: [{ required: true, message: '请选择所属项目', trigger: "blur" }],
  737. groupId: [{ required: true, message: '请选择所属任务分组', trigger: "blur" }],
  738. stagesId: [{ required: true, message: '请选择所属任务列表', trigger: "blur" }],
  739. },
  740. formGrouping: {
  741. name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
  742. },
  743. sleectId: null,
  744. sleectProjectId: null,
  745. sidebarIndex: 0, // 侧边栏索引
  746. url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
  747. count: 0,
  748. textarea2: '',
  749. taskId: null,
  750. commentList: [],
  751. radio: 0,
  752. critic: [], // 评论头像的数组
  753. editorOption: { // 富文本框里面的默认值
  754. placeholder: this.$t('pleaseentethetext'),
  755. modules: {
  756. toolbar:[
  757. ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
  758. // ['blockquote', 'code-block'], //引用,代码块
  759. [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
  760. // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
  761. // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
  762. // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
  763. // [{ 'direction': 'rtl' }], // 文本方向
  764. [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
  765. [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
  766. [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
  767. // [{ 'font': [] }], //字体
  768. [{ 'align': [] }], //对齐方式
  769. ['clean'], //清除字体样式
  770. // ['image','video'] //上传图片、上传视频
  771. ['image'] //上传图片、上传视频
  772. ], //工具栏设置
  773. },
  774. theme: 'snow',
  775. },
  776. textContent: true, // 控制提交
  777. times: null,
  778. text2: '',
  779. innerVisibless: false, // 任务展示弹出层
  780. activities: [{
  781. content: this.$t('normals'),
  782. timestamp: this.$t('hoursago'),
  783. size: 'large',
  784. type: 'primary',
  785. icon: 'el-icon-circle-check',
  786. color: '#409EFF'
  787. }, {
  788. content: this.$t('withinthetimelimit'),
  789. timestamp: this.$t('hoursago8'),
  790. color: '#F87872'
  791. }],
  792. ProgressList: [],
  793. checkboxGrounp: [], // 选中人的数据
  794. checkLists: [], // 选中人数据的ID
  795. taskIid: null,
  796. gstimday:[1],
  797. gstimhour:[8],
  798. timelabel: false,
  799. relationdata: [],
  800. isRelationTab: false,
  801. relationvalue:[],
  802. relationSubTaskList:[],
  803. relationItemData: null,
  804. relationPar:{name: ''},
  805. isRelationItem: false,
  806. // 关联文件
  807. fileListLoading:false,
  808. projectFileList:[],
  809. taskFileList:[],
  810. relationFileDialog: false,
  811. addFileId: null,
  812. isEditFile: false,
  813. // 设置项目参与人
  814. participantsDialog: false,
  815. participantsFilterText: '',
  816. deptMembData: [
  817. {
  818. id: 0,
  819. label: this.$t('lable.unassigned'),
  820. }
  821. ],
  822. defaultProps: {
  823. children: 'children',
  824. label: 'label'
  825. },
  826. chosenMembCount: 0,
  827. ididid:null,
  828. alreadyPartArray: [],
  829. projectCreatorId: null,
  830. projectInchargerId: null,
  831. canAddTask: false, // 是否可创建任务的判断标志
  832. canEditStageList: false, //是否可编辑列表的判断标志
  833. groupResponsibleId: '', // 分组负责人的id
  834. groupDetailsShow: false,
  835. groupDetailData: {},
  836. groupDetailTil: '',
  837. setTemplateData: {},
  838. setTemplateDialog: false,
  839. taskListPage: 1,
  840. taskListSize: 20,
  841. taskListTotal: 0,
  842. dynamicTab: true,
  843. dailyList: [],
  844. meetingId: '',
  845. integrationProjectList: [],
  846. sapServiceList:[]
  847. };
  848. },
  849. computed: {},
  850. watch: {},
  851. created() {},
  852. mounted() {
  853. console.log('我获取到的数据', this.integrationTask, this.showOrNot)
  854. this.triggerEvent(this.integrationTask)
  855. this.gstimhour = [this.user.timeType.allday]
  856. this.gstimday = [1]
  857. this.getSapServiceList()
  858. this.timess();
  859. },
  860. methods: {
  861. // 刷新数据
  862. refreshData() {
  863. this.$forceUpdate()
  864. },
  865. serviceIdChange() {
  866. this.refreshData()
  867. },
  868. // 触发外层的会议
  869. meetingCli() {
  870. this.$parent.$parent.parentMeetingCli(this.integrationTask.id)
  871. },
  872. // 触发事件
  873. triggerEvent(obj) {
  874. this.getUsers(); // 获取名单数据
  875. console.log(obj, '触发事件')
  876. this.curProjectId = obj.curProjectId
  877. this.getProjectList()
  878. if(!obj.taskVue) {
  879. this.getStageList(obj.integrationTaskNingwai)
  880. }
  881. if(obj.create) {
  882. this.mileageCup = false
  883. this.addFormVisible = true;
  884. this.curProjectId = obj.stage.projectId;
  885. this.addForm = {projectId: obj.stage.projectId, groupId: obj.stage.groupId, stagesId: obj.stage.id, taskLevel:0, planHours: 8, taskType: 0};
  886. this.addForm.executorListFront = [{executorId:null, planHours:this.user.timeType.allday}];
  887. this.gstimhour = [this.user.timeType.allday]
  888. this.gstimday = [1]
  889. this.addLoading = false;
  890. this.isEditFile = false;
  891. this.title=this.$t('createtask ');
  892. this.commentList = [];
  893. this.timelabel = false
  894. } else {
  895. if(!obj.taskVue) {
  896. this.isEditFile = true;
  897. this.getDetail(obj.curProjectId)
  898. }
  899. this.curProjectId = obj.task.projectId;
  900. setTimeout(() => {
  901. this.getTaskDetail(obj.id);
  902. }, 200)
  903. // this.getTaskDetail(obj.id);
  904. this.getTaskProgressList(obj.id); // 获取任务进展列表
  905. this.gain(obj.task); // 获取评论列表
  906. this.getDailyList(obj.id) // 获取来自日报
  907. this.getRelationTaskList(obj.num, obj.id)
  908. this.getTaskFileList(obj.num,obj.id)
  909. }
  910. this.getrelation();
  911. },
  912. // 代办任务创建事件
  913. agentCreatesEvents(num) {
  914. if(num == 1) {
  915. this.addForm.groupId = ''
  916. this.addForm.stagesId = ''
  917. this.getTaskGrouping()
  918. this.getrelation();
  919. } else if(num == 2) {
  920. this.addForm.stagesId = ''
  921. this.getTaskList()
  922. }
  923. },
  924. //获取项目列表
  925. getProjectList() {
  926. this.http.post(this.port.project.list, {},
  927. res => {
  928. if (res.code == "ok") {
  929. this.projectList = res.data;
  930. this.getRecentlyProject()
  931. } else {
  932. this.$message({
  933. message: res.msg,
  934. type: "error"
  935. });
  936. }
  937. },
  938. error => {
  939. this.$message({
  940. message: error,
  941. type: "error"
  942. });
  943. });
  944. },
  945. // 获取最近项目列表
  946. getRecentlyProject() {
  947. this.http.post('/project/nearProject',{},res => {
  948. if(res.code == 'ok'){
  949. let topObj = {
  950. label: '最近选择项目',
  951. peojectList: res.data
  952. }
  953. let botomObj = {
  954. label: '全部项目',
  955. peojectList: this.projectList
  956. }
  957. this.integrationProjectList = [topObj, botomObj]
  958. console.log(this.integrationProjectList, '整合')
  959. }else {
  960. this.$message({
  961. message: res.msg,
  962. type: 'error'
  963. })
  964. }
  965. },err => {
  966. this.$message({
  967. message: err,
  968. type: 'error'
  969. })
  970. })
  971. },
  972. // 获取任务分组
  973. getTaskGrouping() {
  974. this.http.post('/task-group/list', {projectId:this.addForm.projectId},
  975. res => {
  976. if (res.code == "ok") {
  977. this.groupList = res.data;
  978. } else {
  979. this.$message({
  980. message: res.msg,
  981. type: "error"
  982. });
  983. }
  984. },
  985. error => {
  986. this.$message({
  987. message: error,
  988. type: "error"
  989. });
  990. });
  991. },
  992. getTaskList() {
  993. let obj = {
  994. groupId: this.addForm.groupId,
  995. projectId: this.addForm.projectId,
  996. order: 'seq',
  997. isDesc: false
  998. }
  999. this.getStageList(obj)
  1000. },
  1001. // 关闭最外层弹窗
  1002. closeBounceds() {
  1003. console.log('我被触发了')
  1004. this.$emit('closeBounced', {})
  1005. },
  1006. chggstim(e,i){
  1007. if(e){
  1008. this.gstimday[i] = Math.ceil(this.gstimhour[i] / this.user.timeType.allday)
  1009. }else{
  1010. this.gstimhour[i] = this.gstimday[i] * this.user.timeType.allday
  1011. }
  1012. },
  1013. removeExecutorLine(index,e) {
  1014. if(e == 1){
  1015. this.relationItemData.executorList.splice(index,1);
  1016. this.gstimday.splice(index,1)
  1017. this.gstimhour.splice(index,1)
  1018. this.$forceUpdate();
  1019. }else{
  1020. this.addForm.executorListFront.splice(index,1);
  1021. this.gstimday.splice(index,1)
  1022. this.gstimhour.splice(index,1)
  1023. this.$forceUpdate();
  1024. }
  1025. },
  1026. addExecutorLine(e) {
  1027. if(e == 1){
  1028. if (this.relationItemData.executorList == null) {
  1029. this.relationItemData.executorList = [];//初始化
  1030. }
  1031. this.relationItemData.executorList.push({executorId:null, planHours:this.user.timeType.allday});
  1032. this.gstimday.push(1)
  1033. this.gstimhour.push(this.user.timeType.allday)
  1034. this.$forceUpdate();
  1035. }else{
  1036. if (this.addForm.executorListFront == null) {
  1037. this.addForm.executorListFront = [];//初始化
  1038. }
  1039. this.addForm.executorListFront.push({executorId:null, planHours:this.user.timeType.allday});
  1040. this.gstimday.push(1)
  1041. this.gstimhour.push(this.user.timeType.allday)
  1042. this.$forceUpdate();
  1043. }
  1044. },
  1045. getTaskDetail(id) {
  1046. this.http.post('/task/getTask',{id: id},
  1047. res => {
  1048. if (res.code == "ok") {
  1049. this.meetingId = res.data.meetingId
  1050. console.log(this.meetingId, '看看打印纸')
  1051. if(this.user.userNameNeedTranslate == 1) {
  1052. for(var i in res.data.subTaskList) {
  1053. if(res.data.subTaskList[i].executorName) {
  1054. res.data.subTaskList[i].executorName = res.data.subTaskList[i].executorName.split(',')
  1055. }
  1056. }
  1057. }
  1058. this.addForm = res.data;
  1059. if (this.addForm.aheadTid) {
  1060. this.addForm.aheadTidList = JSON.parse(this.addForm.aheadTid);
  1061. } else {
  1062. this.addForm.aheadTidList = [];
  1063. }
  1064. this.addForm.createDate = null;
  1065. this.addForm.indate = null;
  1066. this.addLoading = false;
  1067. this.canAddTask = res.data.canAddTask
  1068. this.recentProgressInfo = res.data.progress;
  1069. if(res.data.executorList.length > 0) {
  1070. for(var i in res.data.executorList){
  1071. if(res.data.executorList[i].serviceId) {
  1072. res.data.executorList[i].serviceId = JSON.parse(res.data.executorList[i].serviceId)
  1073. }
  1074. }
  1075. console.log("==================",res.data.executorList)
  1076. this.addForm.executorListFront = res.data.executorList;
  1077. } else {
  1078. this.addForm.executorListFront = [{executorId: null, planHours: 8}];
  1079. }
  1080. this.gstimday = []
  1081. this.gstimhour = []
  1082. for(let i=0;i<this.addForm.executorListFront.length;i++){
  1083. this.gstimhour.push(this.addForm.executorListFront[i].planHours)
  1084. this.gstimday.push(Math.ceil(this.addForm.executorListFront[i].planHours / this.user.timeType.allday))
  1085. }
  1086. console.log(this.gstimday, this.gstimhour)
  1087. // //删除中间传值的变量数组
  1088. delete this.addForm.executorList;
  1089. // 触发类型切换事件
  1090. this.selchg()
  1091. } else {
  1092. this.$message({
  1093. message: res.msg,
  1094. type: "error"
  1095. });
  1096. }
  1097. },
  1098. error => {
  1099. this.$message({
  1100. message: error,
  1101. type: "error"
  1102. });
  1103. });
  1104. },
  1105. //获取任务进展列表
  1106. getTaskProgressList(taskId) {
  1107. this.taskIid = taskId
  1108. this.http.post('/task-progress/list', {taskId: taskId},
  1109. res => {
  1110. if (res.code == "ok") {
  1111. this.ProgressList = res.data;
  1112. this.recentProgressInfo = res.data[0]
  1113. } else {
  1114. this.$message({
  1115. message: res.msg,
  1116. type: "error"
  1117. });
  1118. }
  1119. }
  1120. );
  1121. },
  1122. getUsers() {
  1123. this.http.post('/user/getSimpleActiveUserList', {},
  1124. res => {
  1125. if (res.code == "ok") {
  1126. this.users = res.data;
  1127. } else {
  1128. this.$message({
  1129. message: res.msg,
  1130. type: "error"
  1131. });
  1132. }
  1133. },
  1134. error => {
  1135. this.$message({
  1136. message: error,
  1137. type: "error"
  1138. });
  1139. });
  1140. },
  1141. // 获取评论列表
  1142. gain(task,e) {
  1143. this.commentList = [];
  1144. this.taskId = e == 1 ? task.taskId : task.id;
  1145. this.http.post('/task-comment/getList', {taskId: e == 1 ? task.taskId : task.id},
  1146. res => {
  1147. if (res.code == "ok") {
  1148. for(var i in res.data) {
  1149. if(res.data[i].content.indexOf('$userName=') != '-1') {
  1150. let obj = {
  1151. msg1: res.data[i].content.split('$')[0],
  1152. msg2: res.data[i].content.split('$')[1].split('=')[1],
  1153. msg3: res.data[i].content.split('$')[2]
  1154. }
  1155. res.data[i].content = obj
  1156. } else {
  1157. if(this.user.userNameNeedTranslate == 1) {
  1158. let obj = {
  1159. msg1: res.data[i].content,
  1160. msg2: '',
  1161. msg3: ''
  1162. }
  1163. res.data[i].content = obj
  1164. }
  1165. }
  1166. }
  1167. this.commentList = res.data
  1168. this.sppk(this.commentList) // 获取参与人的方法
  1169. this.contRoll()
  1170. } else {
  1171. this.$message({
  1172. message: res.msg,
  1173. type: "error"
  1174. });
  1175. }
  1176. },
  1177. error => {
  1178. this.$message({
  1179. message: error,
  1180. type: "error"
  1181. });
  1182. });
  1183. },
  1184. // 获取评论参与人
  1185. sppk(comit) {
  1186. var sk = []
  1187. comit.forEach(function(e){
  1188. sk.push(e.userName)
  1189. })
  1190. this.critic = new Set(sk)
  1191. },
  1192. getRelationTaskList(i,e){ //获取关联任务列表
  1193. let eid = null
  1194. if(i){
  1195. eid = e
  1196. }else{
  1197. eid = this.addForm.id
  1198. }
  1199. this.http.post('/task/getMilestoneTaskList',{
  1200. milestoneId: eid
  1201. },res => {
  1202. if(res.code == 'ok') {
  1203. this.relationSubTaskList = res.data
  1204. // console.log('res',res.data);
  1205. }else {
  1206. this.$message({
  1207. message: res.msg,
  1208. type: 'error'
  1209. })
  1210. }
  1211. },error => {
  1212. this.$message({
  1213. message: error,
  1214. type: 'error'
  1215. })
  1216. })
  1217. },
  1218. // 获取来自日报
  1219. getDailyList(id) {
  1220. this.http.post('/report/getTaskReportList',{
  1221. // taskId: '22131'
  1222. taskId: id
  1223. },
  1224. res => {
  1225. if (res.code == "ok") {
  1226. this.dailyList = res.data
  1227. } else {
  1228. this.$message({
  1229. message: res.msg,
  1230. type: "error"
  1231. });
  1232. }
  1233. },
  1234. error => {
  1235. this.$message({
  1236. message: error,
  1237. type: "error"
  1238. });
  1239. });
  1240. },
  1241. // 获取任务下的文档列表
  1242. getTaskFileList(e,eid){
  1243. let etaskId
  1244. if(e == 1){etaskId = eid}
  1245. else{etaskId = this.addForm.id}
  1246. this.fileListLoading = true
  1247. this.http.post('/task-files/getTaskFiles',{
  1248. taskId: etaskId
  1249. },res => {
  1250. if(res.code == 'ok'){
  1251. this.fileListLoading = false
  1252. this.taskFileList = res.data
  1253. console.log('taskFileList',res.data);
  1254. }else {
  1255. this.fileListLoading = false
  1256. this.$message({
  1257. message: res.msg,
  1258. type: 'error'
  1259. })
  1260. }
  1261. },error => {
  1262. this.fileListLoading = false
  1263. this.$message({
  1264. message: error,
  1265. type: 'error'
  1266. })
  1267. })
  1268. },
  1269. DateChange(){
  1270. if(this.addForm.startDate != undefined && this.addForm.endDate != undefined){
  1271. let stdate = Date.parse(this.addForm.startDate)
  1272. let eddate = Date.parse(this.addForm.endDate)
  1273. if(stdate <= eddate){
  1274. let days = (eddate - stdate) / (1*24*60*60*1000) + 1
  1275. for (let i=0;i<this.gstimday.length;i++) {
  1276. this.gstimday[i] = days
  1277. this.gstimhour[i] = days * this.user.timeType.allday
  1278. }
  1279. this.$forceUpdate()
  1280. }
  1281. }
  1282. },
  1283. // 自定义组件事件
  1284. selectCal(obj) {
  1285. if(obj.distinction == '1') {
  1286. this.addForm.executorListFront[obj.index].executorId = obj.id
  1287. } else if(obj.distinction == '2') {
  1288. this.groupForm.inchargerId = obj.id
  1289. }
  1290. },
  1291. getDetail(id) {
  1292. this.http.post('/project/detail',{
  1293. id: id
  1294. },
  1295. res => {
  1296. if (res.code == "ok") {
  1297. console.log('触发更新试一下')
  1298. this.currentProject = res.data;
  1299. this.getjurisdictionIds(this.currentProject)
  1300. this.joinMembList = this.currentProject.participationList;
  1301. } else {
  1302. }
  1303. },
  1304. error => {
  1305. this.$message({
  1306. message: error,
  1307. type: "error"
  1308. });
  1309. }
  1310. );
  1311. },
  1312. getjurisdictionIds(pro){
  1313. console.log('pro',pro.creatorId);
  1314. this.projectCreatorId = pro.creatorId
  1315. this.projectInchargerId = pro.inchargerId
  1316. },
  1317. //加载项目内的任务列表
  1318. getStageList(obj) {
  1319. this.http.post('/stages/list', {
  1320. groupId: obj.groupId,
  1321. projectId: obj.projectId,
  1322. order: obj.order,
  1323. isDesc: obj.isDesc
  1324. },
  1325. res => {
  1326. if (res.code == "ok") {
  1327. this.stageList = res.data.list;
  1328. this.canAddTask = res.data.canAddTask
  1329. this.canEditStageList = res.data.canEditStageList
  1330. this.timess() // 处理时间的方法
  1331. } else {
  1332. this.$message({
  1333. message: res.msg,
  1334. type: "error"
  1335. });
  1336. }
  1337. },
  1338. error => {
  1339. this.$message({
  1340. message: error,
  1341. type: "error"
  1342. });
  1343. });
  1344. },
  1345. timess(){
  1346. // console.log('timess');
  1347. var date = new Date()
  1348. let Y = date.getFullYear()
  1349. let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
  1350. let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
  1351. this.times = `${Y}-${M}-${D}`
  1352. console.log(this.times, '时间')
  1353. },
  1354. // 提交按钮
  1355. submitInsert() {
  1356. if (this.textContent !== true) return this.$message({
  1357. showClose: true,
  1358. message: this.$t('pictureistoolargepleaseuploaditagain'),
  1359. type: 'warning'
  1360. });
  1361. //检查是有重名的执行人
  1362. var exeList = this.addForm.executorListFront;
  1363. // for(let i=0;i<this.gstimhour.length;i++){
  1364. // exeList[i].planHours = this.gstimhour[i]
  1365. // }
  1366. for (var i=0;i<exeList.length;i++) {
  1367. var findSameUser = false;
  1368. exeList[i].planHours = this.gstimhour[i]
  1369. for (var j=i+1;j<exeList.length; j++) {
  1370. if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
  1371. findSameUser = true;
  1372. break;
  1373. }
  1374. }
  1375. if (findSameUser) {
  1376. return this.$message({
  1377. showClose: true,
  1378. message: this.$t('executorhasduplication'),
  1379. type: 'error'
  1380. });
  1381. }
  1382. }
  1383. if(this.addForm.startDate && this.addForm.endDate) {
  1384. if(this.addForm.endDate < this.addForm.startDate) {
  1385. return this.$message({
  1386. showClose: true,
  1387. message: this.$t('ren-wu-jie-zhi-shi-jian-bu-neng-xiao-yu-kai-shi-shi-jian'),
  1388. type: 'error'
  1389. });
  1390. }
  1391. }
  1392. this.$refs.form1.validate(valid => {
  1393. if (valid) {
  1394. delete this.addForm.subTaskList;
  1395. delete this.addForm.refTaskList;
  1396. delete this.addForm.progress;
  1397. //去掉没有执行人的.(因为要有计划工时,执行人可以暂不设置)
  1398. // this.addForm.executorListFront = this.addForm.executorListFront.filter(exe=>exe.executorId);
  1399. if(this.addForm.executorListFront.serviceId){
  1400. this.addForm.executorListFront.serviceId= JSON.stringify(this.addForm.executorListFront.serviceId);
  1401. }
  1402. this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
  1403. this.addForm.aheadTid = JSON.stringify(this.addForm.aheadTidList);
  1404. this.addLoading = true;
  1405. this.http.post('/task/save',this.addForm,
  1406. res => {
  1407. this.addLoading = false;
  1408. if (res.code == "ok") {
  1409. this.$message({
  1410. message: this.$t('message.submittedSuccessfully'),
  1411. type: "success"
  1412. });
  1413. if (this.addForm.parentTid == null) {
  1414. console.log('我是对的')
  1415. let obj = {
  1416. submitInsert: true,
  1417. showOrNot: this.showOrNot
  1418. }
  1419. this.$emit('closeBounced', obj)
  1420. } else {
  1421. console.log('我也是对的')
  1422. // this.backToParentTask();
  1423. this.$emit('closeBounced', {backToParentTaskSub: true})
  1424. }
  1425. } else {
  1426. this.$message({
  1427. message: res.msg,
  1428. type: "error"
  1429. });
  1430. }
  1431. },
  1432. error => {
  1433. this.$message({
  1434. message: error,
  1435. type: "error"
  1436. });
  1437. }
  1438. );
  1439. }
  1440. });
  1441. },
  1442. backToParentTask() {
  1443. this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
  1444. this.isEditFile = true;
  1445. if(this.timelabel){
  1446. this.isRelationItem = false
  1447. this.getRelationTaskList(1, this.relationPar.id)
  1448. this.gain(this.relationPar)
  1449. }
  1450. },
  1451. onEditorFocus() {
  1452. this.onEditorBlur()
  1453. },
  1454. // 获得焦点时触发
  1455. onEditorBlur(){
  1456. let theEle = this.$refs.text; // 获取元素
  1457. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  1458. var arrImg = ''
  1459. for (var j = 0; j < img.length; j++) {
  1460. // 正则匹配,摘出img标签下的src里的内容,即capture
  1461. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  1462. arrImg += capture
  1463. });
  1464. }
  1465. // 原来的字符流大小,单位为字节
  1466. var strLen = arrImg.length;
  1467. // 计算后得到的文件流大小,单位为字节
  1468. var fileSize=parseInt(strLen-(strLen/8)*2);
  1469. var size = "";
  1470. size = (fileSize/1024/1024).toFixed(2);
  1471. if (size > 2){
  1472. this.textContent = false
  1473. this.$message({
  1474. showClose: true,
  1475. message: this.$t('imageexceeds2MBpleaseuploaditagain'),
  1476. type: 'warning'
  1477. });
  1478. }
  1479. this.textContent = true
  1480. },
  1481. //删除当前编辑的任务
  1482. deleteTask() {
  1483. var warning='';
  1484. if (this.addForm.subTaskList.length > 0) {
  1485. warning=this.$t('currenttaskanditssubtasks');
  1486. } else {
  1487. warning=this.$t('wanttodeletethecurrent task');
  1488. }
  1489. this.$confirm(warning, this.$t('other.prompts'), {
  1490. //type: 'warning'
  1491. }).then(() => {
  1492. this.http.post('/task/delete',{id: this.addForm.id},
  1493. res => {
  1494. if (res.code == "ok") {
  1495. this.$emit('closeBounced', {deleteTask: true})
  1496. } else {
  1497. this.$message({
  1498. message: res.msg,
  1499. type: "error"
  1500. });
  1501. }
  1502. },
  1503. error => {
  1504. this.$message({
  1505. message: error,
  1506. type: "error"
  1507. });
  1508. });
  1509. });
  1510. },
  1511. addprogress(){ // 添加子任务进展事件
  1512. this.$refs.proBox.style.display="block"
  1513. this.$refs.addPro.style.display="none"
  1514. },
  1515. shutPro() { // 关闭任务进展
  1516. this.$refs.addPro.style.display="block"
  1517. this.$refs.addRem.style.display="none"
  1518. this.$refs.proBox.style.display="none"
  1519. },
  1520. //创建任务进展
  1521. addTaskProgress() {
  1522. var param = {
  1523. taskId: this.taskIid,
  1524. status: this.radio,
  1525. content: this.text2,
  1526. participatorIds: this.checkLists.toString()
  1527. };
  1528. this.http.post('/task-progress/addProgress', param,
  1529. res => {
  1530. if (res.code == "ok") {
  1531. this.shutPro()
  1532. this.getTaskProgressList(this.taskIid)
  1533. this.$message({
  1534. message: this.$t('releasesuccess'),
  1535. type: "success"
  1536. });
  1537. this.checkboxGrounp = [],
  1538. this.checkLists = [],
  1539. this.text2 = '',
  1540. this.radio = 0
  1541. let obj = {
  1542. id: this.taskIid
  1543. }
  1544. this.gain(obj)
  1545. } else {
  1546. this.$message({
  1547. message: res.msg,
  1548. type: "error"
  1549. });
  1550. }
  1551. }
  1552. );
  1553. },
  1554. addI() { // 打开选择查看
  1555. this.$refs.addRem.style.display="block"
  1556. },
  1557. selchg(){ //类型切换
  1558. if(this.addForm.taskType == 1){
  1559. this.timelabel = true
  1560. if(!this.addForm.executorListFront[0].executorId) {
  1561. console.log(this.currentProject)
  1562. this.addForm.executorListFront[0].executorId = this.currentProject.inchargerId
  1563. }
  1564. }else{
  1565. this.timelabel = false
  1566. }
  1567. },
  1568. DateChange(){
  1569. if(this.addForm.startDate != undefined && this.addForm.endDate != undefined){
  1570. let stdate = Date.parse(this.addForm.startDate)
  1571. let eddate = Date.parse(this.addForm.endDate)
  1572. if(stdate <= eddate){
  1573. let days = (eddate - stdate) / (1*24*60*60*1000) + 1
  1574. for (let i=0;i<this.gstimday.length;i++) {
  1575. this.gstimday[i] = days
  1576. this.gstimhour[i] = days * this.user.timeType.allday
  1577. }
  1578. this.$forceUpdate()
  1579. }
  1580. // console.log("gstimday",this.gstimday);
  1581. }
  1582. },
  1583. kkk(el){
  1584. var k = this.checkLists.indexOf(el.id)
  1585. if (k == -1) {
  1586. this.checkLists.push(el.id)
  1587. } else {
  1588. this.checkLists.splice(k, 1)
  1589. }
  1590. },
  1591. //删除任务进展
  1592. deleteTaskProgress(id) {
  1593. this.http.post('/task-progress/deleteProgress', {id: id},
  1594. res => {
  1595. if (res.code == "ok") {
  1596. this.getTaskProgressList(this.taskIid)
  1597. this.$message({
  1598. message: this.$t('message.successfullyDeleted'),
  1599. type: "success"
  1600. });
  1601. } else {
  1602. this.$message({
  1603. message: res.msg,
  1604. type: "error"
  1605. });
  1606. }
  1607. }
  1608. );
  1609. },
  1610. addRelation(){ //关联任务卡片
  1611. this.relationvalue = []
  1612. this.isRelationTab = true
  1613. this.getrelation()
  1614. },
  1615. getrelation(){
  1616. //获取选择关联列表
  1617. this.http.post('/task/getTaskOnlyList',{
  1618. projectId: this.curProjectId?this.curProjectId:this.addForm.projectId
  1619. },
  1620. res => {
  1621. if (res.code == "ok") {
  1622. this.relationdata = []
  1623. res.data.forEach( (item) =>{
  1624. if(item.taskType != 1){
  1625. if (item.id != this.addForm.id) {
  1626. this.relationdata.push(item)
  1627. }
  1628. }
  1629. })
  1630. // console.log('map',this.relationdata);
  1631. } else {
  1632. this.$message({
  1633. message: res.msg,
  1634. type: "error"
  1635. });
  1636. }
  1637. },
  1638. error => {
  1639. this.$message({
  1640. message: error,
  1641. type: "error"
  1642. });
  1643. });
  1644. },
  1645. //显示子任务创建卡片
  1646. addSubTask() {
  1647. if(this.isRelationItem){return}
  1648. this.addFormVisible = true;
  1649. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  1650. // this.addForm.executorListFront = [{executorId:null, planHours:8}];
  1651. this.addForm.executorListFront = [{executorId:null, planHours:8, serviceId: []}];
  1652. this.addLoading = false;
  1653. //创建子任务,非编辑状态
  1654. this.isEditFile = false;
  1655. // 触发外界子任务事件
  1656. this.$emit('closeBounced', {addSubTask: true, addForms: this.addForm})
  1657. },
  1658. // 关联任务点击事件
  1659. relationTaskClick(row,column,event){
  1660. // console.log('relationTaskClick',row);
  1661. this.relationPar = JSON.parse(JSON.stringify(this.addForm))
  1662. // console.log(this.relationPar);
  1663. this.addFormVisible = true;
  1664. this.addLoading = false;
  1665. this.isRelationItem = true;
  1666. this.isEditFile = true;
  1667. this.title = this.$t('editingtasks');
  1668. this.getTaskDetail(row.taskId);
  1669. this.getUsers();
  1670. this.gain(row,1);
  1671. this.getRelationTaskList(1, row.taskId)
  1672. this.getTaskFileList(1,row.taskId)
  1673. },
  1674. // 解除关联
  1675. deleteRelationItem(eid){
  1676. this.listLoading = true
  1677. this.http.post('/task/removeMileStoneTask',{
  1678. id: eid
  1679. },res => {
  1680. if(res.code == 'ok') {
  1681. this.getRelationTaskList()
  1682. this.listLoading = false
  1683. this.$message({
  1684. message: this.$t('jie-chu-cheng-gong'),
  1685. type: 'success'
  1686. })
  1687. }else {
  1688. this.listLoading = false
  1689. this.$message({
  1690. message: res.msg,
  1691. type: 'error'
  1692. })
  1693. }
  1694. },error => {
  1695. this.listLoading = false
  1696. this.$message({
  1697. message: error,
  1698. type: 'error'
  1699. })
  1700. })
  1701. },
  1702. // 关联任务列表是否完成修改
  1703. relationFinishTask(row){
  1704. this.http.post('/task/finish',{
  1705. id: row.taskId,
  1706. taskStatus: row.taskStatus
  1707. },res => {
  1708. if(res.code == 'ok'){
  1709. // if(this.groupType == 0){
  1710. // this.getStageList();
  1711. // }else {
  1712. // this.getViewTaskList();
  1713. let obj = {
  1714. submitInsert: true
  1715. }
  1716. this.$emit('closeBounced', obj)
  1717. // }
  1718. }else{
  1719. this.$message({
  1720. message: res.msg,
  1721. type: 'error'
  1722. })
  1723. }
  1724. },error => {
  1725. this.$message({
  1726. message: error,
  1727. type: 'error'
  1728. })
  1729. })
  1730. },
  1731. finishTask(task) {
  1732. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  1733. res => {
  1734. if (res.code == "ok") {
  1735. // if (this.groupType == 0) {
  1736. // this.getStageList();
  1737. // } else {
  1738. // this.getViewTaskList();
  1739. // }
  1740. let obj = {
  1741. submitInsert: true
  1742. }
  1743. this.$emit('closeBounced', obj)
  1744. } else {
  1745. this.$message({
  1746. message: res.msg,
  1747. type: "error"
  1748. });
  1749. }
  1750. },
  1751. error => {
  1752. this.$message({
  1753. message: error,
  1754. type: "error"
  1755. });
  1756. });
  1757. },
  1758. // 关联文件按钮
  1759. relationFileClick(){
  1760. this.relationFileDialog = true
  1761. this.addFileId = null
  1762. this.getProjectFileList()
  1763. },
  1764. // 获取项目下的文档列表
  1765. getProjectFileList(){
  1766. this.http.post('/task-files/getDocumentList',{
  1767. projectId: this.curProjectId
  1768. },res => {
  1769. if(res.code == 'ok'){
  1770. this.projectFileList = res.data
  1771. console.log('list',res.data);
  1772. }else {
  1773. this.$message({
  1774. message: res.msg,
  1775. type: 'error'
  1776. })
  1777. }
  1778. },error => {
  1779. this.$message({
  1780. message: error,
  1781. type: 'error'
  1782. })
  1783. })
  1784. },
  1785. // 列表的删除按钮
  1786. taskFileDelete(eid){
  1787. this.$confirm('是否移除此文件?', this.$t('other.prompts'), {
  1788. confirmButtonText: this.$t('btn.determine'),
  1789. cancelButtonText: this.$t('btn.cancel'),
  1790. type: 'warning'
  1791. }).then(()=>{
  1792. this.http.post('/task-files/delete',{
  1793. id: eid
  1794. },res => {
  1795. if(res.code == 'ok'){
  1796. this.$message({
  1797. message: res.data,
  1798. type: 'success'
  1799. })
  1800. this.getTaskFileList()
  1801. }else {
  1802. this.$message({
  1803. message: res.msg,
  1804. type: 'error'
  1805. })
  1806. }
  1807. },error => {
  1808. this.$message({
  1809. message: error,
  1810. type: 'error'
  1811. })
  1812. })
  1813. }).catch(()=>{
  1814. this.$message({
  1815. message: this.$t('thedeletionhasbeencancelled'),
  1816. type: 'info'
  1817. })
  1818. })
  1819. },
  1820. // 确认关联文件
  1821. addTaskFile(){
  1822. if(this.addFileId == null){
  1823. this.$message({message: this.$t('xuanzguanlianwenjian') , type: 'warning'})
  1824. return
  1825. }
  1826. this.http.post('/task-files/addDocumentRef',{
  1827. documentId: this.addFileId,
  1828. taskId: this.addForm.id,
  1829. projectId: this.curProjectId
  1830. },res => {
  1831. if(res.code == 'ok'){
  1832. this.$message({
  1833. message: this.$t('guan-lian-cheng-gong'),
  1834. type: 'success'
  1835. })
  1836. this.relationFileDialog = false
  1837. this.getTaskFileList()
  1838. }else {
  1839. this.$message({
  1840. message: res.msg,
  1841. type: 'error'
  1842. })
  1843. }
  1844. },error => {
  1845. this.$message({
  1846. message: error,
  1847. type: 'error'
  1848. })
  1849. })
  1850. },
  1851. addRelationTask(){ //添加关联任务
  1852. this.http.post('/task/addMileStoneTask',{
  1853. milestoneId: this.addForm.id,
  1854. taskIds: JSON.stringify(this.relationvalue)
  1855. },
  1856. res =>{
  1857. if(res.code == "ok") {
  1858. this.isRelationTab = false
  1859. this.$message({
  1860. message: this.$t('addsuccessful'),
  1861. type: 'success'
  1862. })
  1863. this.getRelationTaskList()
  1864. this.$forceUpdate()
  1865. }else {
  1866. this.$message({
  1867. message: res.msg,
  1868. type: 'error'
  1869. })
  1870. }
  1871. },
  1872. error => {
  1873. this.$message({
  1874. message: error,
  1875. type: 'error'
  1876. })
  1877. })
  1878. },
  1879. backToParentTask() {
  1880. // this.getTaskDetail(this.addForm.parentTid);
  1881. this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
  1882. this.isEditFile = true;
  1883. if(this.timelabel){
  1884. this.isRelationItem = false
  1885. // this.relationPar = {name: ''}
  1886. this.getRelationTaskList(1, this.relationPar.id)
  1887. this.gain(this.relationPar)
  1888. }
  1889. },
  1890. // 点击评论发布
  1891. release() {
  1892. if(this.textarea2.length <= 0) return this.$message({message: this.$t('pleaseentercontent'), type: "error"})
  1893. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  1894. res => {
  1895. if(res.code == "ok"){
  1896. if(res.data.content.indexOf('$userName=') != '-1') {
  1897. let obj = {
  1898. msg1: res.data.content.split('$')[0],
  1899. msg2: res.data.content.split('$')[1].split('=')[1],
  1900. msg3: res.data.content.split('$')[2]
  1901. }
  1902. res.data.content = obj
  1903. } else {
  1904. if(this.user.userNameNeedTranslate == 1) {
  1905. let obj = {
  1906. msg1: res.data.content,
  1907. msg2: '',
  1908. msg3: ''
  1909. }
  1910. res.data.content = obj
  1911. }
  1912. }
  1913. this.commentList.push(res.data)
  1914. console.log(this.commentList, '值☞')
  1915. this.sppk(this.commentList)
  1916. let obj = {
  1917. id: this.taskIid
  1918. }
  1919. this.gain(obj)
  1920. this.textarea2 = ""
  1921. // this.contRoll() // 滚动到底部
  1922. } else {
  1923. this.$message({
  1924. message: res.msg,
  1925. type: "error"
  1926. });
  1927. }
  1928. },
  1929. error => {
  1930. this.$message({
  1931. message: error,
  1932. type: "error"
  1933. });
  1934. })
  1935. },
  1936. // 滚动到底部
  1937. contRoll(){
  1938. // this.$nextTick(() => {
  1939. // this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  1940. // })
  1941. this.$nextTick(() => {
  1942. let scrollElem = this.$refs.main;
  1943. scrollElem.scrollTo({ top: scrollElem.scrollHeight});
  1944. });
  1945. console.log('最后执行')
  1946. },
  1947. sss(){
  1948. this.$refs.addRem.style.display="none"
  1949. },
  1950. taskLineClick(row, column, event) {
  1951. if(this.isRelationItem){return}
  1952. this.mileageCup = true
  1953. if(row.taskType == 1){
  1954. this.timelabel = true
  1955. this.isRelationItem = false
  1956. }else{
  1957. this.timelabel = false
  1958. }
  1959. this.addFormVisible = true;
  1960. this.isEditFile = true;
  1961. this.addLoading = false;
  1962. this.getTaskDetail(row.id);
  1963. this.getTaskProgressList(row.id); // 获取任务进展列表
  1964. this.getUsers(); // 获取名单数据
  1965. this.gain(row); // 获取评论列表
  1966. this.getDailyList(row.id) // 获取来自日报
  1967. this.getRelationTaskList(1, row.id)
  1968. this.getTaskFileList(1,row.id)
  1969. this.$emit('closeBounced', {taskLineClickAbs: true, items: row})
  1970. },
  1971. //获取SAP项目服务数据列表
  1972. getSapServiceList(){
  1973. this.http.post('/sap-project-service/sapServiceList', {},
  1974. res => {
  1975. if(res.code == "ok"){
  1976. this.sapServiceList=res.data
  1977. } else {
  1978. this.$message({
  1979. message: res.msg,
  1980. type: "error"
  1981. });
  1982. }
  1983. },
  1984. error => {
  1985. this.$message({
  1986. message: error,
  1987. type: "error"
  1988. });
  1989. })
  1990. },
  1991. // 列表的上传按钮
  1992. uploadFileClick(item){
  1993. console.log("upload",item.file);
  1994. let files = new FormData()
  1995. files.append("projectId",this.curProjectId);
  1996. files.append("taskId", this.addForm.id);
  1997. files.append("file", item.file);
  1998. this.http.uploadFile('/task-files/uploadFile',files,
  1999. res => {
  2000. if(res.code == 'ok'){
  2001. console.log(res);
  2002. this.$message({
  2003. message: this.$t('yi-shang-chuan'),
  2004. type: 'success'
  2005. })
  2006. this.getTaskFileList()
  2007. }else {
  2008. this.$message({
  2009. message: res.msg,
  2010. type: 'error'
  2011. })
  2012. }
  2013. },error => {
  2014. this.$message({
  2015. message: error,
  2016. type: 'error'
  2017. })
  2018. })
  2019. },
  2020. },
  2021. };
  2022. </script>
  2023. <style lang="scss" scoped>
  2024. .editingTask {
  2025. display: flex;
  2026. flex-wrap: wrap;
  2027. }
  2028. .carts .commentSpan {
  2029. float: none;
  2030. display: block;
  2031. margin-top: 0;
  2032. font-size: 14px;
  2033. span {
  2034. float: none;
  2035. display: inline-block;
  2036. margin-top: 0;
  2037. font-size: 14px;
  2038. }
  2039. }
  2040. .foooot {
  2041. padding: 10px 20px 20px;
  2042. text-align: right;
  2043. -webkit-box-sizing: border-box;
  2044. box-sizing: border-box;
  2045. }
  2046. .Daily p {
  2047. margin: 0 !important;
  2048. padding: 0 0 10px 0 !important;
  2049. }
  2050. .sub-all {
  2051. div {
  2052. display: inline-block;
  2053. padding: 0 20px;
  2054. font-size: 20px;
  2055. cursor: pointer;
  2056. }
  2057. .subOn {
  2058. color: #66b1ff;
  2059. }
  2060. }
  2061. .DailyBody {
  2062. margin: 0 20px;
  2063. }
  2064. .Daily{
  2065. height: 120%;
  2066. overflow: auto;
  2067. }
  2068. .inputDeep {
  2069. position: absolute;
  2070. bottom: 85px;
  2071. width: 95%;
  2072. margin: 0 12px;
  2073. }
  2074. .inputDeep .el-textarea .el-textarea__inner{
  2075. border: 0 !important;
  2076. resize: none !important;
  2077. }
  2078. .inputDeeps .el-textarea__inner {
  2079. border: 0 !important;
  2080. resize: none !important;
  2081. }
  2082. .scop_span {
  2083. display: inline-block;
  2084. padding: 2px 5px;
  2085. }
  2086. .counli {
  2087. em {
  2088. font-style: normal;
  2089. display: inline-block;
  2090. margin-left: 9%;
  2091. }
  2092. span {
  2093. float: right;
  2094. }
  2095. }
  2096. .carts {
  2097. position: relative;
  2098. .el-image{
  2099. border-radius: 50%;
  2100. float: left;
  2101. width: 20%;
  2102. }
  2103. i {
  2104. width: 30px;
  2105. height: 30px;
  2106. // background: #778899;
  2107. display: inline-block;
  2108. float: left;
  2109. border-radius:50%;
  2110. font-style:normal;
  2111. font-size: 12px;
  2112. line-height: 30px;
  2113. text-align: center;
  2114. color: #fff;
  2115. background: #778899;
  2116. overflow: hidden;
  2117. direction: rtl;
  2118. }
  2119. div {
  2120. text-align: left;
  2121. p {
  2122. text-align: left;
  2123. margin-left: 10px;
  2124. margin-left: 13%;
  2125. }
  2126. em {
  2127. display: block;
  2128. font-style: normal;
  2129. margin-left: 13%;
  2130. }
  2131. }
  2132. span {
  2133. font-size: 10px;
  2134. float: right;
  2135. margin-top: -40px;
  2136. }
  2137. }
  2138. .issue {
  2139. // height: 20%;
  2140. // position: relative;
  2141. // z-index: 4;
  2142. .zh{
  2143. position: relative;
  2144. width: 100%;
  2145. height: 100%;
  2146. }
  2147. .textareays {
  2148. background: #000;
  2149. height: 140px;
  2150. border: 0;
  2151. .el-textarea__inner {
  2152. height: 85%;
  2153. }
  2154. }
  2155. .issue-button {
  2156. position: absolute;
  2157. bottom: 20px;
  2158. right: 20px;
  2159. }
  2160. }
  2161. .inputDeep {
  2162. position: absolute;
  2163. bottom: 85px;
  2164. width: 95%;
  2165. margin: 0 12px;
  2166. }
  2167. .inputDeep .el-textarea .el-textarea__inner{
  2168. border: 0 !important;
  2169. resize: none !important;
  2170. }
  2171. .inputDeeps .el-textarea__inner {
  2172. border: 0 !important;
  2173. resize: none !important;
  2174. }
  2175. .scop_span {
  2176. display: inline-block;
  2177. padding: 2px 5px;
  2178. }
  2179. </style>