taskComponent.vue 99 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241
  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 && !permissions.editAnyTask) && !(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 && !permissions.editAnyTask && !(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 && !permissions.editAnyTask && !(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 && !permissions.editAnyTask && !(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 && !permissions.editAnyTask && !(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 && !permissions.editAnyTask && !(groupResponsibleId == user.id)" size="small" filterable clearable :placeholder="$t('pleaseselectanexecutor')" style="width: 150px" @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 && !permissions.editAnyTask && !(groupResponsibleId == user.id)"></selectCat>
  79. </div>
  80. <!-- 项目服务 -->
  81. <div v-if="user.companyId==3092">
  82. <span style="margin-left:30px;margin-right:10px;">{{'项目服务'}}</span>
  83. <el-select 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 && !permissions.editAnyTask && !(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 && !permissions.editAnyTask && !(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 || permissions.editAnyTask|| 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 || permissions.editAnyTask)) ||
  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. console.log(obj, '触发事件')
  875. this.curProjectId = obj.curProjectId
  876. this.getProjectList()
  877. if(!obj.taskVue) {
  878. this.getStageList(obj.integrationTaskNingwai)
  879. }
  880. this.getUsers(); // 获取名单数据
  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. // this.getTaskDetail(obj.id);
  901. this.getTaskProgressList(obj.id); // 获取任务进展列表
  902. this.gain(obj.task); // 获取评论列表
  903. this.getDailyList(obj.id) // 获取来自日报
  904. this.getRelationTaskList(obj.num, obj.id)
  905. this.getTaskFileList(obj.num,obj.id)
  906. setTimeout(() => {
  907. this.getTaskDetail(obj.id);
  908. }, 200)
  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. if(this.user.companyId==3092){
  1368. var findSameUser = false;
  1369. exeList[i].planHours = this.gstimhour[i]
  1370. for (var j=i+1;j<exeList.length; j++) {
  1371. if ((exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId)
  1372. &&(exeList[i].serviceId && exeList[j].serviceId && exeList[i].serviceId == exeList[j].serviceId)) {
  1373. findSameUser = true;
  1374. break;
  1375. }
  1376. }
  1377. if (findSameUser) {
  1378. return this.$message({
  1379. showClose: true,
  1380. message: '同一个执行人,服务不能相同',
  1381. type: 'error'
  1382. });
  1383. }
  1384. }else{
  1385. var findSameUser = false;
  1386. exeList[i].planHours = this.gstimhour[i]
  1387. for (var j=i+1;j<exeList.length; j++) {
  1388. if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
  1389. findSameUser = true;
  1390. break;
  1391. }
  1392. }
  1393. if (findSameUser) {
  1394. return this.$message({
  1395. showClose: true,
  1396. message: this.$t('executorhasduplication'),
  1397. type: 'error'
  1398. });
  1399. }
  1400. }
  1401. }
  1402. if(this.addForm.startDate && this.addForm.endDate) {
  1403. if(this.addForm.endDate < this.addForm.startDate) {
  1404. return this.$message({
  1405. showClose: true,
  1406. message: this.$t('ren-wu-jie-zhi-shi-jian-bu-neng-xiao-yu-kai-shi-shi-jian'),
  1407. type: 'error'
  1408. });
  1409. }
  1410. }
  1411. this.$refs.form1.validate(valid => {
  1412. if (valid) {
  1413. delete this.addForm.subTaskList;
  1414. delete this.addForm.refTaskList;
  1415. delete this.addForm.progress;
  1416. //去掉没有执行人的.(因为要有计划工时,执行人可以暂不设置)
  1417. // this.addForm.executorListFront = this.addForm.executorListFront.filter(exe=>exe.executorId);
  1418. if(this.addForm.executorListFront.serviceId){
  1419. this.addForm.executorListFront.serviceId= this.addForm.executorListFront.serviceId;
  1420. }
  1421. this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
  1422. this.addForm.aheadTid = JSON.stringify(this.addForm.aheadTidList);
  1423. this.addLoading = true;
  1424. this.http.post('/task/save',this.addForm,
  1425. res => {
  1426. this.addLoading = false;
  1427. if (res.code == "ok") {
  1428. this.$message({
  1429. message: this.$t('message.submittedSuccessfully'),
  1430. type: "success"
  1431. });
  1432. if (this.addForm.parentTid == null) {
  1433. console.log('我是对的')
  1434. let obj = {
  1435. submitInsert: true,
  1436. showOrNot: this.showOrNot
  1437. }
  1438. this.$emit('closeBounced', obj)
  1439. } else {
  1440. console.log('我也是对的')
  1441. // this.backToParentTask();
  1442. this.$emit('closeBounced', {backToParentTaskSub: true})
  1443. }
  1444. } else {
  1445. this.$message({
  1446. message: res.msg,
  1447. type: "error"
  1448. });
  1449. }
  1450. },
  1451. error => {
  1452. this.$message({
  1453. message: error,
  1454. type: "error"
  1455. });
  1456. }
  1457. );
  1458. }
  1459. });
  1460. },
  1461. backToParentTask() {
  1462. this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
  1463. this.isEditFile = true;
  1464. if(this.timelabel){
  1465. this.isRelationItem = false
  1466. this.getRelationTaskList(1, this.relationPar.id)
  1467. this.gain(this.relationPar)
  1468. }
  1469. },
  1470. onEditorFocus() {
  1471. this.onEditorBlur()
  1472. },
  1473. // 获得焦点时触发
  1474. onEditorBlur(){
  1475. let theEle = this.$refs.text; // 获取元素
  1476. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  1477. var arrImg = ''
  1478. for (var j = 0; j < img.length; j++) {
  1479. // 正则匹配,摘出img标签下的src里的内容,即capture
  1480. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  1481. arrImg += capture
  1482. });
  1483. }
  1484. // 原来的字符流大小,单位为字节
  1485. var strLen = arrImg.length;
  1486. // 计算后得到的文件流大小,单位为字节
  1487. var fileSize=parseInt(strLen-(strLen/8)*2);
  1488. var size = "";
  1489. size = (fileSize/1024/1024).toFixed(2);
  1490. if (size > 2){
  1491. this.textContent = false
  1492. this.$message({
  1493. showClose: true,
  1494. message: this.$t('imageexceeds2MBpleaseuploaditagain'),
  1495. type: 'warning'
  1496. });
  1497. }
  1498. this.textContent = true
  1499. },
  1500. //删除当前编辑的任务
  1501. deleteTask() {
  1502. var warning='';
  1503. if (this.addForm.subTaskList.length > 0) {
  1504. warning=this.$t('currenttaskanditssubtasks');
  1505. } else {
  1506. warning=this.$t('wanttodeletethecurrent task');
  1507. }
  1508. this.$confirm(warning, this.$t('other.prompts'), {
  1509. //type: 'warning'
  1510. }).then(() => {
  1511. this.http.post('/task/delete',{id: this.addForm.id},
  1512. res => {
  1513. if (res.code == "ok") {
  1514. this.$emit('closeBounced', {deleteTask: true})
  1515. } else {
  1516. this.$message({
  1517. message: res.msg,
  1518. type: "error"
  1519. });
  1520. }
  1521. },
  1522. error => {
  1523. this.$message({
  1524. message: error,
  1525. type: "error"
  1526. });
  1527. });
  1528. });
  1529. },
  1530. addprogress(){ // 添加子任务进展事件
  1531. this.$refs.proBox.style.display="block"
  1532. this.$refs.addPro.style.display="none"
  1533. },
  1534. shutPro() { // 关闭任务进展
  1535. this.$refs.addPro.style.display="block"
  1536. this.$refs.addRem.style.display="none"
  1537. this.$refs.proBox.style.display="none"
  1538. },
  1539. //创建任务进展
  1540. addTaskProgress() {
  1541. var param = {
  1542. taskId: this.taskIid,
  1543. status: this.radio,
  1544. content: this.text2,
  1545. participatorIds: this.checkLists.toString()
  1546. };
  1547. this.http.post('/task-progress/addProgress', param,
  1548. res => {
  1549. if (res.code == "ok") {
  1550. this.shutPro()
  1551. this.getTaskProgressList(this.taskIid)
  1552. this.$message({
  1553. message: this.$t('releasesuccess'),
  1554. type: "success"
  1555. });
  1556. this.checkboxGrounp = [],
  1557. this.checkLists = [],
  1558. this.text2 = '',
  1559. this.radio = 0
  1560. let obj = {
  1561. id: this.taskIid
  1562. }
  1563. this.gain(obj)
  1564. } else {
  1565. this.$message({
  1566. message: res.msg,
  1567. type: "error"
  1568. });
  1569. }
  1570. }
  1571. );
  1572. },
  1573. addI() { // 打开选择查看
  1574. this.$refs.addRem.style.display="block"
  1575. },
  1576. selchg(){ //类型切换
  1577. if(this.addForm.taskType == 1){
  1578. this.timelabel = true
  1579. if(!this.addForm.executorListFront[0].executorId) {
  1580. console.log(this.currentProject)
  1581. this.addForm.executorListFront[0].executorId = this.currentProject.inchargerId
  1582. }
  1583. }else{
  1584. this.timelabel = false
  1585. }
  1586. },
  1587. DateChange(){
  1588. if(this.addForm.startDate != undefined && this.addForm.endDate != undefined){
  1589. let stdate = Date.parse(this.addForm.startDate)
  1590. let eddate = Date.parse(this.addForm.endDate)
  1591. if(stdate <= eddate){
  1592. let days = (eddate - stdate) / (1*24*60*60*1000) + 1
  1593. for (let i=0;i<this.gstimday.length;i++) {
  1594. this.gstimday[i] = days
  1595. this.gstimhour[i] = days * this.user.timeType.allday
  1596. }
  1597. this.$forceUpdate()
  1598. }
  1599. // console.log("gstimday",this.gstimday);
  1600. }
  1601. },
  1602. kkk(el){
  1603. var k = this.checkLists.indexOf(el.id)
  1604. if (k == -1) {
  1605. this.checkLists.push(el.id)
  1606. } else {
  1607. this.checkLists.splice(k, 1)
  1608. }
  1609. },
  1610. //删除任务进展
  1611. deleteTaskProgress(id) {
  1612. this.http.post('/task-progress/deleteProgress', {id: id},
  1613. res => {
  1614. if (res.code == "ok") {
  1615. this.getTaskProgressList(this.taskIid)
  1616. this.$message({
  1617. message: this.$t('message.successfullyDeleted'),
  1618. type: "success"
  1619. });
  1620. } else {
  1621. this.$message({
  1622. message: res.msg,
  1623. type: "error"
  1624. });
  1625. }
  1626. }
  1627. );
  1628. },
  1629. addRelation(){ //关联任务卡片
  1630. this.relationvalue = []
  1631. this.isRelationTab = true
  1632. this.getrelation()
  1633. },
  1634. getrelation(){
  1635. //获取选择关联列表
  1636. this.http.post('/task/getTaskOnlyList',{
  1637. projectId: this.curProjectId?this.curProjectId:this.addForm.projectId
  1638. },
  1639. res => {
  1640. if (res.code == "ok") {
  1641. this.relationdata = []
  1642. res.data.forEach( (item) =>{
  1643. if(item.taskType != 1){
  1644. if (item.id != this.addForm.id) {
  1645. this.relationdata.push(item)
  1646. }
  1647. }
  1648. })
  1649. // console.log('map',this.relationdata);
  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. addSubTask() {
  1666. if(this.isRelationItem){return}
  1667. this.addFormVisible = true;
  1668. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  1669. // this.addForm.executorListFront = [{executorId:null, planHours:8}];
  1670. this.addForm.executorListFront = [{executorId:null, planHours:8, serviceId: null}];
  1671. this.addLoading = false;
  1672. //创建子任务,非编辑状态
  1673. this.isEditFile = false;
  1674. // 触发外界子任务事件
  1675. this.$emit('closeBounced', {addSubTask: true, addForms: this.addForm})
  1676. },
  1677. // 关联任务点击事件
  1678. relationTaskClick(row,column,event){
  1679. // console.log('relationTaskClick',row);
  1680. this.relationPar = JSON.parse(JSON.stringify(this.addForm))
  1681. // console.log(this.relationPar);
  1682. this.addFormVisible = true;
  1683. this.addLoading = false;
  1684. this.isRelationItem = true;
  1685. this.isEditFile = true;
  1686. this.title = this.$t('editingtasks');
  1687. this.getTaskDetail(row.taskId);
  1688. this.getUsers();
  1689. this.gain(row,1);
  1690. this.getRelationTaskList(1, row.taskId)
  1691. this.getTaskFileList(1,row.taskId)
  1692. },
  1693. // 解除关联
  1694. deleteRelationItem(eid){
  1695. this.listLoading = true
  1696. this.http.post('/task/removeMileStoneTask',{
  1697. id: eid
  1698. },res => {
  1699. if(res.code == 'ok') {
  1700. this.getRelationTaskList()
  1701. this.listLoading = false
  1702. this.$message({
  1703. message: this.$t('jie-chu-cheng-gong'),
  1704. type: 'success'
  1705. })
  1706. }else {
  1707. this.listLoading = false
  1708. this.$message({
  1709. message: res.msg,
  1710. type: 'error'
  1711. })
  1712. }
  1713. },error => {
  1714. this.listLoading = false
  1715. this.$message({
  1716. message: error,
  1717. type: 'error'
  1718. })
  1719. })
  1720. },
  1721. // 关联任务列表是否完成修改
  1722. relationFinishTask(row){
  1723. this.http.post('/task/finish',{
  1724. id: row.taskId,
  1725. taskStatus: row.taskStatus
  1726. },res => {
  1727. if(res.code == 'ok'){
  1728. // if(this.groupType == 0){
  1729. // this.getStageList();
  1730. // }else {
  1731. // this.getViewTaskList();
  1732. let obj = {
  1733. submitInsert: true
  1734. }
  1735. this.$emit('closeBounced', obj)
  1736. // }
  1737. }else{
  1738. this.$message({
  1739. message: res.msg,
  1740. type: 'error'
  1741. })
  1742. }
  1743. },error => {
  1744. this.$message({
  1745. message: error,
  1746. type: 'error'
  1747. })
  1748. })
  1749. },
  1750. finishTask(task) {
  1751. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  1752. res => {
  1753. if (res.code == "ok") {
  1754. // if (this.groupType == 0) {
  1755. // this.getStageList();
  1756. // } else {
  1757. // this.getViewTaskList();
  1758. // }
  1759. let obj = {
  1760. submitInsert: true
  1761. }
  1762. this.$emit('closeBounced', obj)
  1763. } else {
  1764. this.$message({
  1765. message: res.msg,
  1766. type: "error"
  1767. });
  1768. }
  1769. },
  1770. error => {
  1771. this.$message({
  1772. message: error,
  1773. type: "error"
  1774. });
  1775. });
  1776. },
  1777. // 关联文件按钮
  1778. relationFileClick(){
  1779. this.relationFileDialog = true
  1780. this.addFileId = null
  1781. this.getProjectFileList()
  1782. },
  1783. // 获取项目下的文档列表
  1784. getProjectFileList(){
  1785. this.http.post('/task-files/getDocumentList',{
  1786. projectId: this.curProjectId
  1787. },res => {
  1788. if(res.code == 'ok'){
  1789. this.projectFileList = res.data
  1790. console.log('list',res.data);
  1791. }else {
  1792. this.$message({
  1793. message: res.msg,
  1794. type: 'error'
  1795. })
  1796. }
  1797. },error => {
  1798. this.$message({
  1799. message: error,
  1800. type: 'error'
  1801. })
  1802. })
  1803. },
  1804. // 列表的删除按钮
  1805. taskFileDelete(eid){
  1806. this.$confirm('是否移除此文件?', this.$t('other.prompts'), {
  1807. confirmButtonText: this.$t('btn.determine'),
  1808. cancelButtonText: this.$t('btn.cancel'),
  1809. type: 'warning'
  1810. }).then(()=>{
  1811. this.http.post('/task-files/delete',{
  1812. id: eid
  1813. },res => {
  1814. if(res.code == 'ok'){
  1815. this.$message({
  1816. message: res.data,
  1817. type: 'success'
  1818. })
  1819. this.getTaskFileList()
  1820. }else {
  1821. this.$message({
  1822. message: res.msg,
  1823. type: 'error'
  1824. })
  1825. }
  1826. },error => {
  1827. this.$message({
  1828. message: error,
  1829. type: 'error'
  1830. })
  1831. })
  1832. }).catch(()=>{
  1833. this.$message({
  1834. message: this.$t('thedeletionhasbeencancelled'),
  1835. type: 'info'
  1836. })
  1837. })
  1838. },
  1839. // 确认关联文件
  1840. addTaskFile(){
  1841. if(this.addFileId == null){
  1842. this.$message({message: this.$t('xuanzguanlianwenjian') , type: 'warning'})
  1843. return
  1844. }
  1845. this.http.post('/task-files/addDocumentRef',{
  1846. documentId: this.addFileId,
  1847. taskId: this.addForm.id,
  1848. projectId: this.curProjectId
  1849. },res => {
  1850. if(res.code == 'ok'){
  1851. this.$message({
  1852. message: this.$t('guan-lian-cheng-gong'),
  1853. type: 'success'
  1854. })
  1855. this.relationFileDialog = false
  1856. this.getTaskFileList()
  1857. }else {
  1858. this.$message({
  1859. message: res.msg,
  1860. type: 'error'
  1861. })
  1862. }
  1863. },error => {
  1864. this.$message({
  1865. message: error,
  1866. type: 'error'
  1867. })
  1868. })
  1869. },
  1870. addRelationTask(){ //添加关联任务
  1871. this.http.post('/task/addMileStoneTask',{
  1872. milestoneId: this.addForm.id,
  1873. taskIds: JSON.stringify(this.relationvalue)
  1874. },
  1875. res =>{
  1876. if(res.code == "ok") {
  1877. this.isRelationTab = false
  1878. this.$message({
  1879. message: this.$t('addsuccessful'),
  1880. type: 'success'
  1881. })
  1882. this.getRelationTaskList()
  1883. this.$forceUpdate()
  1884. }else {
  1885. this.$message({
  1886. message: res.msg,
  1887. type: 'error'
  1888. })
  1889. }
  1890. },
  1891. error => {
  1892. this.$message({
  1893. message: error,
  1894. type: 'error'
  1895. })
  1896. })
  1897. },
  1898. backToParentTask() {
  1899. // this.getTaskDetail(this.addForm.parentTid);
  1900. this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
  1901. this.isEditFile = true;
  1902. if(this.timelabel){
  1903. this.isRelationItem = false
  1904. // this.relationPar = {name: ''}
  1905. this.getRelationTaskList(1, this.relationPar.id)
  1906. this.gain(this.relationPar)
  1907. }
  1908. },
  1909. // 点击评论发布
  1910. release() {
  1911. if(this.textarea2.length <= 0) return this.$message({message: this.$t('pleaseentercontent'), type: "error"})
  1912. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  1913. res => {
  1914. if(res.code == "ok"){
  1915. if(res.data.content.indexOf('$userName=') != '-1') {
  1916. let obj = {
  1917. msg1: res.data.content.split('$')[0],
  1918. msg2: res.data.content.split('$')[1].split('=')[1],
  1919. msg3: res.data.content.split('$')[2]
  1920. }
  1921. res.data.content = obj
  1922. } else {
  1923. if(this.user.userNameNeedTranslate == 1) {
  1924. let obj = {
  1925. msg1: res.data.content,
  1926. msg2: '',
  1927. msg3: ''
  1928. }
  1929. res.data.content = obj
  1930. }
  1931. }
  1932. this.commentList.push(res.data)
  1933. console.log(this.commentList, '值☞')
  1934. this.sppk(this.commentList)
  1935. let obj = {
  1936. id: this.taskIid
  1937. }
  1938. this.gain(obj)
  1939. this.textarea2 = ""
  1940. // this.contRoll() // 滚动到底部
  1941. } else {
  1942. this.$message({
  1943. message: res.msg,
  1944. type: "error"
  1945. });
  1946. }
  1947. },
  1948. error => {
  1949. this.$message({
  1950. message: error,
  1951. type: "error"
  1952. });
  1953. })
  1954. },
  1955. // 滚动到底部
  1956. contRoll(){
  1957. // this.$nextTick(() => {
  1958. // this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  1959. // })
  1960. this.$nextTick(() => {
  1961. let scrollElem = this.$refs.main;
  1962. scrollElem.scrollTo({ top: scrollElem.scrollHeight});
  1963. });
  1964. console.log('最后执行')
  1965. },
  1966. sss(){
  1967. this.$refs.addRem.style.display="none"
  1968. },
  1969. taskLineClick(row, column, event) {
  1970. if(this.isRelationItem){return}
  1971. this.mileageCup = true
  1972. if(row.taskType == 1){
  1973. this.timelabel = true
  1974. this.isRelationItem = false
  1975. }else{
  1976. this.timelabel = false
  1977. }
  1978. this.addFormVisible = true;
  1979. this.isEditFile = true;
  1980. this.addLoading = false;
  1981. this.getTaskDetail(row.id);
  1982. this.getTaskProgressList(row.id); // 获取任务进展列表
  1983. this.getUsers(); // 获取名单数据
  1984. this.gain(row); // 获取评论列表
  1985. this.getDailyList(row.id) // 获取来自日报
  1986. this.getRelationTaskList(1, row.id)
  1987. this.getTaskFileList(1,row.id)
  1988. this.$emit('closeBounced', {taskLineClickAbs: true, items: row})
  1989. },
  1990. //获取SAP项目服务数据列表
  1991. getSapServiceList(){
  1992. this.http.post('/sap-project-service/sapServiceList', {},
  1993. res => {
  1994. if(res.code == "ok"){
  1995. this.sapServiceList=res.data
  1996. } else {
  1997. this.$message({
  1998. message: res.msg,
  1999. type: "error"
  2000. });
  2001. }
  2002. },
  2003. error => {
  2004. this.$message({
  2005. message: error,
  2006. type: "error"
  2007. });
  2008. })
  2009. },
  2010. // 列表的上传按钮
  2011. uploadFileClick(item){
  2012. console.log("upload",item.file);
  2013. let files = new FormData()
  2014. files.append("projectId",this.curProjectId);
  2015. files.append("taskId", this.addForm.id);
  2016. files.append("file", item.file);
  2017. this.http.uploadFile('/task-files/uploadFile',files,
  2018. res => {
  2019. if(res.code == 'ok'){
  2020. console.log(res);
  2021. this.$message({
  2022. message: this.$t('yi-shang-chuan'),
  2023. type: 'success'
  2024. })
  2025. this.getTaskFileList()
  2026. }else {
  2027. this.$message({
  2028. message: res.msg,
  2029. type: 'error'
  2030. })
  2031. }
  2032. },error => {
  2033. this.$message({
  2034. message: error,
  2035. type: 'error'
  2036. })
  2037. })
  2038. },
  2039. },
  2040. };
  2041. </script>
  2042. <style lang="scss" scoped>
  2043. .editingTask {
  2044. display: flex;
  2045. flex-wrap: wrap;
  2046. }
  2047. .carts .commentSpan {
  2048. float: none;
  2049. display: block;
  2050. margin-top: 0;
  2051. font-size: 14px;
  2052. span {
  2053. float: none;
  2054. display: inline-block;
  2055. margin-top: 0;
  2056. font-size: 14px;
  2057. }
  2058. }
  2059. .foooot {
  2060. padding: 10px 20px 20px;
  2061. text-align: right;
  2062. -webkit-box-sizing: border-box;
  2063. box-sizing: border-box;
  2064. }
  2065. .Daily p {
  2066. margin: 0 !important;
  2067. padding: 0 0 10px 0 !important;
  2068. }
  2069. .sub-all {
  2070. div {
  2071. display: inline-block;
  2072. padding: 0 20px;
  2073. font-size: 20px;
  2074. cursor: pointer;
  2075. }
  2076. .subOn {
  2077. color: #66b1ff;
  2078. }
  2079. }
  2080. .DailyBody {
  2081. margin: 0 20px;
  2082. }
  2083. .Daily{
  2084. height: 120%;
  2085. overflow: auto;
  2086. }
  2087. .inputDeep {
  2088. position: absolute;
  2089. bottom: 85px;
  2090. width: 95%;
  2091. margin: 0 12px;
  2092. }
  2093. .inputDeep .el-textarea .el-textarea__inner{
  2094. border: 0 !important;
  2095. resize: none !important;
  2096. }
  2097. .inputDeeps .el-textarea__inner {
  2098. border: 0 !important;
  2099. resize: none !important;
  2100. }
  2101. .scop_span {
  2102. display: inline-block;
  2103. padding: 2px 5px;
  2104. }
  2105. .counli {
  2106. em {
  2107. font-style: normal;
  2108. display: inline-block;
  2109. margin-left: 9%;
  2110. }
  2111. span {
  2112. float: right;
  2113. }
  2114. }
  2115. .carts {
  2116. position: relative;
  2117. .el-image{
  2118. border-radius: 50%;
  2119. float: left;
  2120. width: 20%;
  2121. }
  2122. i {
  2123. width: 30px;
  2124. height: 30px;
  2125. // background: #778899;
  2126. display: inline-block;
  2127. float: left;
  2128. border-radius:50%;
  2129. font-style:normal;
  2130. font-size: 12px;
  2131. line-height: 30px;
  2132. text-align: center;
  2133. color: #fff;
  2134. background: #778899;
  2135. overflow: hidden;
  2136. direction: rtl;
  2137. }
  2138. div {
  2139. text-align: left;
  2140. p {
  2141. text-align: left;
  2142. margin-left: 10px;
  2143. margin-left: 13%;
  2144. }
  2145. em {
  2146. display: block;
  2147. font-style: normal;
  2148. margin-left: 13%;
  2149. }
  2150. }
  2151. span {
  2152. font-size: 10px;
  2153. float: right;
  2154. margin-top: -40px;
  2155. }
  2156. }
  2157. .issue {
  2158. // height: 20%;
  2159. // position: relative;
  2160. // z-index: 4;
  2161. .zh{
  2162. position: relative;
  2163. width: 100%;
  2164. height: 100%;
  2165. }
  2166. .textareays {
  2167. background: #000;
  2168. height: 140px;
  2169. border: 0;
  2170. .el-textarea__inner {
  2171. height: 85%;
  2172. }
  2173. }
  2174. .issue-button {
  2175. position: absolute;
  2176. bottom: 20px;
  2177. right: 20px;
  2178. }
  2179. }
  2180. .inputDeep {
  2181. position: absolute;
  2182. bottom: 85px;
  2183. width: 95%;
  2184. margin: 0 12px;
  2185. }
  2186. .inputDeep .el-textarea .el-textarea__inner{
  2187. border: 0 !important;
  2188. resize: none !important;
  2189. }
  2190. .inputDeeps .el-textarea__inner {
  2191. border: 0 !important;
  2192. resize: none !important;
  2193. }
  2194. .scop_span {
  2195. display: inline-block;
  2196. padding: 2px 5px;
  2197. }
  2198. </style>