list.vue 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834
  1. <template>
  2. <section>
  3. <!--工具条-->
  4. <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
  5. <el-form :inline="true">
  6. <!-- <div style="margin-left: 20px;display: inline-block">
  7. <el-form-item label="任务列表">
  8. </el-form-item>
  9. </div> -->
  10. <el-form-item :label="$t('tasklist')">
  11. <div style="margin-left: 8px">
  12. <!-- <el-input style="float:left;" v-model="keyword" class="input-with-select" placeholder="请输入项目名称关键字" clearable="true"> -->
  13. <el-select v-model="searchField" style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')">
  14. <el-option :label="$t('ongoing')" value="0" @click.native="hiddens()"></el-option>
  15. <el-option :label="$t('state.completed')" value="1" @click.native="hiddens()"></el-option>
  16. </el-select>
  17. <!-- <el-button slot="append" @click="searchList" icon="el-icon-search"></el-button> -->
  18. <!-- </el-input> -->
  19. </div>
  20. </el-form-item>
  21. <!-- <el-form-item label="项目分组" v-if="user.companyId == '428'">
  22. <div style="margin-left: 8px">
  23. <el-select v-model="groupName" style="width:200px;" placeholder="请选择" clearable @change="hiddens()">
  24. <el-option v-for="(item, index) in groupNameList" :key="index" :label="item" :value="item"></el-option>
  25. </el-select>
  26. </div>
  27. </el-form-item> -->
  28. <el-form-item :label="$t('subordinatedepartments')" v-if="user.timeType.projectWithDept">
  29. <!-- <span style="margin-left:5px;margin-right:5px;color:#606266;">部门</span> -->
  30. <el-cascader v-model="deptId" :options="departmentList" size="small" :placeholder="$t('qing-xuan-ze-bu-men')"
  31. :props="{ checkStrictly: true, expandTrigger: 'hover' }" :show-all-levels="false" clearable filterable @change="hiddens"
  32. ></el-cascader>
  33. </el-form-item>
  34. <!-- <el-form-item style="float:right;">
  35. <el-link type="primary" :underline="false" @click="handleAdd(-1,null)">新增任务</el-link>
  36. </el-form-item> -->
  37. <!-- <div style="margin-left: 40px;display: inline-block">
  38. <el-form-item label="类型">
  39. </el-form-item>
  40. </div> -->
  41. <el-form-item :label="$t('types')">
  42. <div style="margin-left: 8px">
  43. <!-- <el-input style="float:left;" v-model="keyword" class="input-with-select" placeholder="请输入项目名称关键字" clearable="true"> -->
  44. <el-select v-model="typeField" style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="hiddens()">
  45. <!-- <el-option label="任务" value="0" @click.native="hiddens()"></el-option>
  46. <el-option label="里程碑" value="1" @click.native="hiddens()"></el-option>
  47. <el-option label="风险" value="2" @click.native="hiddens()"></el-option> -->
  48. <el-option :label="$t('other.task')" value="0"></el-option>
  49. <el-option :label="$t('other.milestone')" value="1"></el-option>
  50. <el-option :label="$t('risk')" value="2"></el-option>
  51. </el-select>
  52. <!-- <el-button slot="append" @click="searchList" icon="el-icon-search"></el-button> -->
  53. <!-- </el-input> -->
  54. </div>
  55. </el-form-item>
  56. <el-form-item >
  57. <div style="margin-left: 80px">
  58. <el-select v-model="dateType" style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')">
  59. <el-option :label="$t('starttimes')" :value="0" @click.native="hiddens(1)"></el-option>
  60. <el-option :label="$t('deadline')" :value="1" @click.native="hiddens(1)"></el-option>
  61. </el-select>
  62. </div>
  63. </el-form-item>
  64. <el-form-item >
  65. <div style="margin-left: 8px">
  66. <el-date-picker
  67. v-model="dateSelect"
  68. type="daterange"
  69. size="small"
  70. range-separator="-"
  71. :start-placeholder="$t('interval')"
  72. :end-placeholder="$t('interval')"
  73. value-format="yyyy-MM-dd"
  74. clearable
  75. @change="hiddens()">
  76. </el-date-picker>
  77. </div>
  78. </el-form-item>
  79. </el-form>
  80. </el-col>
  81. <div style="display: flex;width: 100%;">
  82. <div class="classification">
  83. <div>
  84. <p :class="idx == 0 ? 'on' : ''" @click="switchs(0)" v-if="permissions.projectView || permissions.projectManagement">{{ $t('alltaskss') }}</p>
  85. <p :class="idx == 1 ? 'on' : ''" @click="switchs(1)">{{ $t('perform') }}</p>
  86. <p :class="idx == 2 ? 'on' : ''" @click="switchs(2)">{{ $t('created') }}</p>
  87. </div>
  88. </div>
  89. <div style="max-width: 94%;min-width: 90%">
  90. <!--列表-->
  91. <el-table :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
  92. <el-table-column type="index" width="60">
  93. <template slot-scope="scope" >
  94. {{scope.$index+1+(page-1)*size}}
  95. </template>
  96. </el-table-column>
  97. <el-table-column prop="stagesName" :label="$t('taskstage')" sortable width="180" @mouseover="mouseOver">
  98. </el-table-column>
  99. <el-table-column prop="name" :label="$t('nameofthetask')" sortable width="330">
  100. <template slot-scope="scope">
  101. <div v-if="scope.row.name.length > 20">
  102. <el-popover trigger="hover" placement="top" width="330" v-if="scope.row.name">
  103. <p id="caseContent">{{scope.row.name}}</p>
  104. <div slot="reference" class="name-wrapper">
  105. <div class="cal" >
  106. <el-link type="primary" @click="editTask(scope.row)">{{scope.row.name}}</el-link>
  107. </div>
  108. </div>
  109. </el-popover>
  110. </div>
  111. <div v-else>
  112. <div class="cal">
  113. <el-link type="primary" @click="editTask(scope.row)">{{scope.row.name}}</el-link>
  114. </div>
  115. </div>
  116. </template>
  117. </el-table-column>
  118. <!-- <el-table-column prop="projectCategorySub" label="项目分组" sortable width="300" v-if="user.companyId == '428'"></el-table-column> -->
  119. <el-table-column prop="departmentName" :label="$t('subordinatedepartments')" sortable width="300" v-if="user.timeType.projectWithDept">
  120. <template slot-scope="scope">
  121. <div>
  122. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='departmentName' :openid='scope.row.departmentName'></ww-open-data></span>
  123. <span v-if="user.userNameNeedTranslate != '1'">{{departmentName}}</span>
  124. </div>
  125. </template>
  126. </el-table-column>
  127. <el-table-column prop="projectName" :label="$t('headerTop.projectName')" sortable width="260" show-overflow-tooltip>
  128. <template slot-scope="scope">
  129. <el-link type="primary" :href="'#/projectInside/'+scope.row.projectId">{{scope.row.projectName}}</el-link>
  130. </template>
  131. </el-table-column>
  132. <el-table-column prop="executorName" :label="$t('zhi-hang-ren')" sortable width="130">
  133. <template slot-scope="scope">
  134. <!-- <el-link type="primary" @click="showUser(scope.row.executorId)">{{scope.row.executorName}}</el-link> -->
  135. <span v-if="user.userNameNeedTranslate == '1'">
  136. <span v-for="(item, index) in scope.row.executorNameList" :key="index">
  137. <ww-open-data type='userName' :openid='item'></ww-open-data>
  138. <span v-if="index < scope.row.executorNameList.length - 1">,</span>
  139. </span>
  140. </span>
  141. <span v-if="user.userNameNeedTranslate != '1'">{{scope.row.executorName}}</span>
  142. </template>
  143. </el-table-column>
  144. <el-table-column prop="startDate" :label="$t('starttimes')" sortable width="180"></el-table-column>
  145. <el-table-column prop="endDate" :label="$t('deadline')" width="260" fixed="right" sortable>
  146. <template slot-scope="scope">
  147. <div style="display: flex;justify-content: space-between;padding-right: 40px">
  148. <span style="display: inline-block;margin-right: 55px">
  149. <span :class="judgedate(scope.row.endDate) && searchField == '0' && scope.row.taskStatus == 0 ? 'redwarningspan autodatespan' : 'autodatespan'">{{scope.row.endDate}}</span>
  150. </span>
  151. <el-button v-if="searchField == 0" size="small" type="primary" @click="completes(scope.row.id, 0)">{{ $t('wan-cheng') }}</el-button>
  152. <el-button v-if="searchField == 1" size="small" type="warning" @click="completes(scope.row.id, 1)">{{ $t('zhong-qi') }}</el-button>
  153. </div>
  154. </template>
  155. </el-table-column>
  156. </el-table>
  157. <!--工具条-->
  158. <el-col :span="24" class="toolbar">
  159. <el-pagination
  160. @size-change="handleSizeChange"
  161. @current-change="handleCurrentChange"
  162. :page-sizes="[20, 50 , 80 , 100]"
  163. :page-size="20"
  164. :current-page="page"
  165. layout="total, sizes, prev, pager, next"
  166. :total="total"
  167. style="float:right;"
  168. ></el-pagination>
  169. </el-col>
  170. </div>
  171. </div>
  172. <!--用户详细信息弹出框-->
  173. <el-dialog :title="$t('Checkthedetails')" v-if="userDetailVisible" :visible.sync="userDetailVisible" :close-on-click-modal="false" customClass="customWidth" width="400px">
  174. <div class="line"><span>{{ $t('lable.name') }}</span>
  175. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='userDetail.name'></ww-open-data></span>
  176. <span v-if="user.userNameNeedTranslate != '1'">{{userDetail.name}}</span>
  177. </div>
  178. <div class="line"><span>{{ $t('Worknumber') }}</span><span>{{userDetail.jobNumber}}</span></div>
  179. <div class="line"><span>{{ $t('lable.phone') }}</span><span>{{userDetail.phone}}</span></div>
  180. <div class="line"><span>{{ $t('lable.department') }}</span>
  181. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='departmentName' :openid='userDetail.name'></ww-open-data></span>
  182. <span v-if="user.userNameNeedTranslate != '1'">{{userDetail.departmentName}}</span>
  183. </div>
  184. <div class="line"><span>{{ $t('costof') }}</span><span>{{userDetail.cost}}{{ $t('Yuananhour') }}</span></div>
  185. <div slot="footer" class="dialog-footer">
  186. <el-button type="primary" @click="userDetailVisible = false" >{{ $t('btn.determine') }}</el-button>
  187. </div>
  188. </el-dialog>
  189. <!-- 子项目列表 -->
  190. <el-dialog :title="$t('listofsubitems')" show-header="false" v-if="subProjectVisible" :visible.sync="subProjectVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
  191. <el-table :data="subProjectList" highlight-current-row height="400" style="width: 100%;">
  192. <el-table-column type="index" width="60" :label="$t('headerTop.serialNumber')">
  193. <template slot-scope="scope" >
  194. {{scope.$index+1+(page-1)*size}}
  195. </template>
  196. </el-table-column>
  197. <el-table-column prop="name" :label="$t('names')" ></el-table-column>
  198. <el-table-column :label="$t('operation')" width="150">
  199. <template slot-scope="scope" >
  200. <el-button size="small" type="primary" @click="addNewSubProject(scope.row)">{{ $t('bian-ji') }}</el-button>
  201. <el-button size="small" type="danger" @click="deleteSubPro(scope.row)">{{ $t('btn.delete') }}</el-button>
  202. </template>
  203. </el-table-column>
  204. </el-table>
  205. <div slot="footer" class="dialog-footer">
  206. <el-button type="primary" @click="subProjectVisible = false" >{{ $t('Shutdown') }}</el-button>
  207. <el-button type="primary" @click="addNewSubProject()" >{{ $t('addsubitems') }}</el-button>
  208. </div>
  209. </el-dialog>
  210. <!-- 任务详情信息弹出框 -->
  211. <el-dialog :class="addForm.id==null?'':'jm'" :title="title" v-if="addFormVisible" :visible.sync="addFormVisible"
  212. :close-on-click-modal="false" customClass="customWidth" width="800px" :top="'6vh'">
  213. <!-- <div style="width: 200%;height:80%;position: absolute;right:-100%;top:0;background:#000;opacity: 0;" @click="sss"></div> -->
  214. <div style="height: 72vh;overflow: auto;">
  215. <el-form ref="form1" :model="addForm" :rules="taskRules" label-width="100px">
  216. <!--子任务需要选择任务列表 -->
  217. <el-form-item :label="$t('tasklist')" prop="stages" v-if="addForm.parentTid != null">
  218. <el-select v-model="addForm.stagesId" style="width:100%;" >
  219. <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
  220. </el-select>
  221. </el-form-item>
  222. <el-form-item :label="$t('types')">
  223. <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">
  224. <el-option v-for="item in taskTypeList" :key="item.id" :label="item.name" :value="item.id">
  225. <i :class="item.icon" ></i>
  226. <span>{{item.name}}</span>
  227. </el-option>
  228. </el-select>
  229. </el-form-item>
  230. <el-form-item :label="$t('taskdefinition')" prop="name">
  231. <el-input v-model="addForm.name" :maxlength="40" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement" :placeholder="$t('enterthetaskcontent')" clearable></el-input>
  232. </el-form-item>
  233. <el-form-item :label="addForm.taskType == 1 ? $t('deadline') : $t('starttimes')" :prop="addForm.taskType == 1 ? 'endDate' : 'startDate'">
  234. <el-date-picker v-model="addForm.startDate" type="date" style="width:40%;" value-format="yyyy-MM-dd"
  235. :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement" v-if="addForm.taskType != 1"></el-date-picker>
  236. <span style="margin-left:30px;margin-right:10px;" v-if="addForm.taskType != 1">{{ $t('deadline') }}</span>
  237. <el-date-picker v-model="addForm.endDate" type="date" value-format="yyyy-MM-dd"
  238. :placeholder="$t('pleaseselectadate')" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement"></el-date-picker>
  239. </el-form-item>
  240. <div style="border: 1px solid #ddd;margin:5px 0;padding:5px 0;">
  241. <el-form-item :label="$t('zhi-hang-ren')+(index+1)" v-for="(executorItem, index) in addForm.executorListFront" :key="index">
  242. <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" size="small" filterable clearable :placeholder="$t('pleaseselectanexecutor')" style="width:40%;" @change="$forceUpdate()">
  243. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
  244. <span style="float: left">{{ item.name }}</span>
  245. <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
  246. </el-option>
  247. </el-select>
  248. <selectCat :subject="users" :subjectId="executorItem.executorId" :index="index" @selectCal="selectCal" :size="'mini'" v-if="user.userNameNeedTranslate == '1'"></selectCat>
  249. <span style="margin-left:30px;margin-right:10px;">{{ $t('plantime') }}</span>
  250. <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement" v-model="executorItem.planHours" style="width:30%;" :min="1" :max="100" :placeholder="$t('pleaseentertheplannedworking')" ></el-input-number ><span style="margin-left:10px;">{{ $t('time.hour') }}</span>
  251. <!--移除执行人 -->
  252. <i class="el-icon-delete" v-if="index>0 && (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id|| permissions.projectManagement)" style="margin-left:5px" @click="removeExecutorLine(index)"></i>
  253. </el-form-item>
  254. <el-link type="primary" v-if="(addForm.executorListFront == null || addForm.executorListFront.length<10)&& (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id || permissions.projectManagement)" style="margin-left:35px;" @click="addExecutorLine">{{ $t('addinganexecutor') }}</el-link>
  255. </div>
  256. <el-form-item :label="$t('priority')">
  257. <el-select v-model="addForm.taskLevel" style="width:100%;" >
  258. <el-option v-for="item in importanceList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  259. </el-select>
  260. </el-form-item>
  261. <!-- 富文本 -->
  262. <el-form-item :label="$t('detaileddescription')" style="height: 200px">
  263. <!-- <Editor id="tinymce" v-model="tinymceHtml" :init="editorInit"></Editor> -->
  264. <!-- <el-input type="textarea" v-model="addForm.taskDesc" :rows="3"></el-input> -->
  265. <!-- <quill-edito v-model="addForm.taskDesc"></quill-edito> -->
  266. <quill-editor style="height: 150px" ref="text" v-model="addForm.taskDesc" class="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)"/>
  267. </el-form-item>
  268. <!-- 富文本 -->
  269. <div v-if="addForm.id != null">
  270. <el-divider ></el-divider>
  271. <!-- 任务进展 -->
  272. <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">{{ $t('taskprogress') }}</i>
  273. <span ref="addPro" style="display: block; float:right;"><el-link @click="addprogress">{{ $t('addtaskprogress') }}</el-link></span>
  274. </p>
  275. <!-- 任务进展展示 -->
  276. <div style="display: none;" ref="proBox" class="progress">
  277. <!-- <el-form :model="> -->
  278. <el-radio-group v-model="radio">
  279. <el-radio :label="0" class="rala1">{{ $t('normals') }}</el-radio>
  280. <el-radio :label="1" class="rala2">{{ $t('atrisk') }}</el-radio>
  281. <el-radio :label="2" class="rala3">{{ $t('withinthetimelimit') }}</el-radio>
  282. </el-radio-group>
  283. <el-input
  284. type="textarea"
  285. border="0"
  286. :autosize="{ minRows: 2, maxRows: 6}"
  287. :placeholder="$t('detailedprogressdescription')"
  288. v-model="text2"
  289. style="margin:10px 0 0 0">
  290. </el-input>
  291. <h4 style="font-weight: normal;">{{ $t('whotoremindtocheck') +':'}}{{checkLists.length}}</h4>
  292. <i class="el-icon-circle-plus pron_i" style="font-size: 28px;color: #409EFF;" @click="addI(0)"></i>
  293. <div class="remind" ref="addRem" style="display: none">
  294. <el-checkbox-group v-model="checkboxGrounp" v-for="item in users" :key="item.id">
  295. <p>
  296. <el-checkbox :label="item.name" @change="kkk(item)">
  297. <span>
  298. <span v-if="user.userNameNeedTranslate != '1'">
  299. {{item.name}}
  300. </span>
  301. <span v-if="user.userNameNeedTranslate == '1'">
  302. <ww-open-data type='userName' :openid='item.name'></ww-open-data>
  303. </span>
  304. </span>
  305. </el-checkbox>
  306. </p>
  307. </el-checkbox-group>
  308. </div>
  309. <div class="ssp" @click="sss"></div>
  310. <!-- </el-form> -->
  311. <div class="pro_btn">
  312. <el-button size="mini" @click="shutPro">{{ $t('btn.cancel') }}</el-button>
  313. <el-button size="mini" type="primary" @click="addTaskProgress">{{ $t('fa-bu') }}</el-button>
  314. </div>
  315. </div>
  316. <div class="ddl" v-if="recentProgressInfo != null && recentProgressInfo.id != null">
  317. <div class="elCard" style="margin-bottom: 10px; height:" >
  318. <i class="el-icon-success" style="color: #43d14f;" v-if="recentProgressInfo.status == 0"></i>
  319. <i class="el-icon-success" style="color: #fd7624;" v-else-if="recentProgressInfo.status == 1"></i>
  320. <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
  321. <span v-if="recentProgressInfo.status == 0">{{ $t('normals') }}</span>
  322. <span v-else-if="recentProgressInfo.status == 1">{{ $t('normals') }}</span>
  323. <span v-else>{{ $t('withinthetimelimit') }}</span>
  324. <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
  325. <i class="el-icon-more" ></i>
  326. <el-dropdown-menu slot="dropdown">
  327. <el-dropdown-item divided>
  328. <span @click="deleteTaskProgress(recentProgressInfo.id)"><i class="el-icon-delete"></i>{{ $t('deleteList ') }}</span></el-dropdown-item>
  329. </el-dropdown-menu>
  330. </el-dropdown>
  331. <div class="elCard_qu">{{recentProgressInfo.creatorName}}{{ $t('geng-xin-yu') }}{{recentProgressInfo.indate | relativeTime}}</div>
  332. <p style="padding-left: 20px;">{{recentProgressInfo.content}}</p>
  333. <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">{{ $t('viewingHistory') }}</el-button></div>
  334. </div>
  335. </div>
  336. <!-- 任务列表没有数据的时候展示 -->
  337. <div class="nones" v-if="ProgressList.length <= 0">
  338. {{ $t('nodata') }}
  339. </div>
  340. <!-- 任务进展完整状态 -->
  341. <el-dialog :title="$t('other.prompts')" :visible.sync="innerVisibless" append-to-body width="500px">
  342. <div class="integrity">
  343. <h3 style="font-weight: normal;display: inline-block;margin: 0 0 20px 0;">{{ $t('taskprogress') }}:{{ProgressList.length}}</h3>
  344. <!-- <span class="write"><i class="el-icon-circle-plus"></i>填写进展</span> -->
  345. <el-divider></el-divider>
  346. <!-- -->
  347. <div class="block" style="height: 200px;">
  348. <el-timeline style="padding:20px 0 0 0;">
  349. <el-timeline-item
  350. v-for="(activity, index) in ProgressList"
  351. :key="index">
  352. <div class="tb">
  353. <span v-if="activity.status == 0" style="color: #43D14F" class="icon"></span>
  354. <span v-if="activity.status == 1" style="color: #FD7624" class="icon"></span>
  355. <span v-if="activity.status == 2" style="color: red" class="icon"></span>
  356. <div>
  357. <span v-if="activity.status == 0" style="color: #43D14F">{{ $t('normals') }}</span>
  358. <span v-if="activity.status == 1" style="color: #FD7624">{{ $t('atrisk') }}</span>
  359. <span v-if="activity.status == 2" style="color: red">{{ $t('withinthetimelimit') }}</span>
  360. <span style="display: inline-block; float: right; color: #8C8C8C">{{activity.indate | relativeTime}}</span>
  361. </div>
  362. <p style="color: #8C8C8C">{{activity.content}}</p>
  363. </div>
  364. </el-timeline-item>
  365. </el-timeline>
  366. </div>
  367. <!-- -->
  368. </div>
  369. <span slot="footer" class="dialog-footer">
  370. <el-button type="primary" @click="innerVisibless = false">{{ $t('Shutdown') }}</el-button>
  371. </span>
  372. </el-dialog>
  373. </div>
  374. </el-form>
  375. </div>
  376. <div slot="footer" class="dialog-footer">
  377. <el-button v-if="user.id == addForm.createrId || currentProject.inchargerId == user.id || currentProject.creatorId == user.id || permissions.projectManagement" @click.native="deleteTask" style="float:left;">{{ $t('btn.delete') }}</el-button>
  378. <el-button @click.native="addFormVisible = false">{{ $t('btn.cancel') }}</el-button>
  379. <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
  380. </div>
  381. <div slot="title" v-if="addForm.parentTid != null" >
  382. <!-- <el-link @click="backToParentTask"><i class="el-icon-arrow-left single_line">返回父级任务</i> | {{addForm.parentTname}}</el-link> -->
  383. <el-page-header @back="backToParentTask" :title="$t('parenttask')" :content="addForm.parentTname"></el-page-header>
  384. </div>
  385. <!-- 评论 -->
  386. <div class="remark" v-show="addForm.id != null">
  387. <span class="zh">
  388. <!-- <span v-for="(pl, i) in critic" :key="i"> -->
  389. <!-- <div class="player" v-if="pl"> -->
  390. <div class="player">
  391. <p @click="chan">{{ $t('participantin') }}</p>
  392. <span v-for="(pl, i) in critic" :key="i">
  393. <div class="bj" style="width: 14%">
  394. <span style="background: #778899" v-if="user.userNameNeedTranslate != '1'">{{pl.length > 2 ? pl.substring(pl.length - 2, pl.length) : pl}}</span>
  395. <span style="background: #778899" v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='pl'></ww-open-data></span>
  396. </div>
  397. </span>
  398. </div>
  399. <!-- </span> -->
  400. <div class="subject">
  401. <div class="sub-all">{{ $t('alldynamic') }}</div>
  402. <div class="sub-details" ref="main">
  403. <ul class="infinite-list" v-infinite-scroll="load" style="overflow:auto" ref="contRoll">
  404. <div style="width: 100%" v-if="commentList.length <= 0">
  405. <img src="../../assets/image/xiao.png" alt="">
  406. </div>
  407. <li v-for="i in count" class="infinite-list-item counli" :key="i">
  408. <p><i class="el-icon-s-fold"></i> <em>{{ $t('managerQucompletedthedependencytask') }}</em><span>{{ $t('onApril20') }}</span></p>
  409. </li>
  410. <li class="carts" v-for="item in commentList" :key="item.id">
  411. <!-- <el-image style="width: 30px; height: 30px" :src="url" :fit="fit"></el-image> -->
  412. <!-- <i :style="'background' + item.userColor"> -->
  413. <i :style="'background' + item.userColor">
  414. <i v-if="user.userNameNeedTranslate != '1'">
  415. {{item.userName.length > 2 ? item.userName.substring(item.userName.length - 2, item.userName.length) : item.userName}}
  416. </i>
  417. <i v-if="user.userNameNeedTranslate == '1'">
  418. <ww-open-data type='userName' :openid='item.userName'></ww-open-data>
  419. </i>
  420. </i>
  421. <div>
  422. <!-- <p>{{item.userName}}</p> -->
  423. <p v-if="user.userNameNeedTranslate != '1'">{{item.userName}}</p>
  424. <p v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='item.userName'></ww-open-data></p>
  425. <em>
  426. <!-- {{item.content}} -->
  427. <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate == 1"><ww-open-data type='userName' :openid='item.content.name'></ww-open-data></p>
  428. <p style="display: inline-block;padding: 0;margin: 0;" v-if="user.userNameNeedTranslate != 1">{{item.content.name}}</p>
  429. {{item.content.con}}
  430. </em>
  431. </div>
  432. <span>{{item.createTime | relativeTime}}</span>
  433. </li>
  434. </ul>
  435. </div>
  436. </div>
  437. <div class="issue">
  438. <!-- <el-input type="textarea" class="textareays" label-width="100%" label-height="140px"></el-input> -->
  439. <div class="issue_fixation">
  440. <div class="inputDeep"><el-input
  441. type="textarea"
  442. :placeholder="$t('pleaseentercontent')"
  443. :autosize="{ minRows: 6, maxRows: 6}"
  444. v-model="textarea2"
  445. class="inputDeeps"
  446. >
  447. </el-input></div>
  448. <el-button class="issue-button" type="primary" @click="release()">{{ $t('fa-bu') }}</el-button>
  449. </div>
  450. </div>
  451. </span>
  452. </div>
  453. <!-- 评论 -->
  454. </el-dialog>
  455. </section>
  456. </template>
  457. <style scoped>
  458. .input-with-select .el-input-group__prepend {
  459. background-color: #fff;
  460. }
  461. .line {
  462. padding:10px;
  463. }
  464. .line span{
  465. font-size:18px;
  466. }
  467. .line span:nth-child(even){
  468. float:right;
  469. }
  470. .classification {
  471. width: 120px;
  472. border-right: 1px solid #f2f2f2;
  473. display: flex;
  474. flex-wrap: wrap;
  475. padding-top: 20px;
  476. }
  477. .classification p{
  478. width: 120px;
  479. text-align: center;
  480. line-height: 50px;
  481. margin: 0;
  482. cursor: pointer;
  483. }
  484. .classification p:hover {
  485. background: #dddddd;
  486. }
  487. .on {
  488. color: #409EFF;
  489. }
  490. .acl{
  491. display: inline-block;
  492. width: 300px;
  493. height: 22px;
  494. overflow: hidden;
  495. white-space: nowrap;
  496. text-overflow: ellipsis;
  497. display: flex;
  498. align-items: center;
  499. margin: 0;
  500. padding: 0;
  501. line-height: 0;
  502. }
  503. .cal {
  504. color: #409EFF;
  505. width: 300px;
  506. overflow: hidden;
  507. white-space: nowrap;
  508. text-overflow: ellipsis;
  509. }
  510. .autodatespan{
  511. padding: 1.5px 2.5px;
  512. width: 73px;
  513. height: 16px;
  514. line-height: 16px;
  515. text-align: center;
  516. display: block;
  517. }
  518. .redwarningspan{
  519. background: #e62412;
  520. color: #fff;
  521. border-radius: 3px;
  522. }
  523. /* p {
  524. margin: 0 !important;
  525. } */
  526. </style>
  527. <style lang="scss" scoped>
  528. .counli {
  529. em {
  530. font-style: normal;
  531. display: inline-block;
  532. margin-left: 9%;
  533. }
  534. span {
  535. float: right;
  536. }
  537. }
  538. .carts {
  539. position: relative;
  540. .el-image{
  541. border-radius: 50%;
  542. float: left;
  543. width: 20%;
  544. }
  545. i {
  546. width: 30px;
  547. height: 30px;
  548. // background: #778899;
  549. display: inline-block;
  550. float: left;
  551. border-radius:50%;
  552. font-style:normal;
  553. font-size: 12px;
  554. line-height: 30px;
  555. text-align: center;
  556. color: #fff;
  557. background: #778899;
  558. }
  559. div {
  560. text-align: left;
  561. p {
  562. text-align: left;
  563. margin-left: 10px;
  564. margin-left: 13%;
  565. }
  566. em {
  567. display: block;
  568. font-style: normal;
  569. margin-left: 13%;
  570. }
  571. }
  572. span {
  573. font-size: 10px;
  574. float: right;
  575. margin-top: -40px;
  576. }
  577. }
  578. .issue {
  579. // height: 20%;
  580. // position: relative;
  581. // z-index: 4;
  582. .zh{
  583. position: relative;
  584. width: 100%;
  585. height: 100%;
  586. }
  587. .textareays {
  588. background: #000;
  589. height: 140px;
  590. border: 0;
  591. .el-textarea__inner {
  592. height: 85%;
  593. }
  594. }
  595. .issue-button {
  596. position: absolute;
  597. bottom: 20px;
  598. right: 20px;
  599. }
  600. }
  601. .inputDeep {
  602. position: absolute;
  603. bottom: 85px;
  604. width: 95%;
  605. margin: 0 12px;
  606. }
  607. .inputDeep .el-textarea .el-textarea__inner{
  608. border: 0 !important;
  609. resize: none !important;
  610. }
  611. .inputDeeps .el-textarea__inner {
  612. border: 0 !important;
  613. resize: none !important;
  614. }
  615. .scop_span {
  616. display: inline-block;
  617. padding: 2px 5px;
  618. }
  619. </style>
  620. <script>
  621. import { error } from 'dingtalk-jsapi';
  622. import util from "../../common/js/util";
  623. // 引入自定义组件
  624. import selectCat from "@/components/select.vue"
  625. // 富文本样式
  626. import 'quill/dist/quill.core.css'
  627. import 'quill/dist/quill.snow.css'
  628. import 'quill/dist/quill.bubble.css'
  629. // 导入富文本
  630. import { quillEditor } from 'vue-quill-editor'
  631. export default {
  632. name: "two-list-headerslots",
  633. display: "Two list header slot",
  634. order: 14,
  635. components: {
  636. // draggable,
  637. // // editor,
  638. // FileCenter,
  639. // ProjectInfo,
  640. // Summary,
  641. // Earning,
  642. quillEditor, // 富文本
  643. selectCat
  644. },
  645. data() {
  646. return {
  647. typeField: null,
  648. searchField: '0',
  649. keyword:null,
  650. user: JSON.parse(sessionStorage.getItem("user")),
  651. permissions: JSON.parse(sessionStorage.getItem("permissions")),
  652. userDetailVisible: false,
  653. userDetail:{},
  654. date: new Date(),
  655. users: [],
  656. participator:[],
  657. tableHeight: 0,
  658. listLoading: false,
  659. total: 0,
  660. page: 1,
  661. size: 20,
  662. list: [],
  663. subProjectVisible: false,
  664. subProjectList: [],//子项目列表
  665. currentProject:{},
  666. addSubProject: false,
  667. addFormVisible: false,
  668. addLoading: false,
  669. title: "",
  670. addForm: {
  671. name: '',
  672. userId: [],
  673. },
  674. rules: {
  675. name: [{ required: true, message: this.$t('Pleaseenteraprojectname'), trigger: "blur" }],
  676. },
  677. idx: 1,
  678. taskDetails: false,
  679. addForm: {
  680. name: '',
  681. },
  682. rules: {
  683. name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
  684. },
  685. rules2: {
  686. stagesName: [{ required: true, message: this.$t('pleaseenteratasklistname'), trigger: "blur" }],
  687. },
  688. taskRules : {
  689. name: [{ required: true, message: this.$t('enterthetaskcontent'), trigger: "blur" }],
  690. },
  691. sleectId: null,
  692. sleectProjectId: null,
  693. sidebarIndex: null, // 侧边栏索引
  694. url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
  695. count: 0,
  696. textarea2: '',
  697. taskId: null,
  698. commentList: [],
  699. radio: 0,
  700. critic: [], // 评论头像的数组
  701. editorOption: { // 富文本框里面的默认值
  702. placeholder: this.$t('pleaseentethetext'),
  703. modules: {
  704. toolbar:[
  705. ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
  706. // ['blockquote', 'code-block'], //引用,代码块
  707. [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
  708. // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
  709. // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
  710. // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
  711. // [{ 'direction': 'rtl' }], // 文本方向
  712. [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
  713. [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
  714. [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
  715. // [{ 'font': [] }], //字体
  716. [{ 'align': [] }], //对齐方式
  717. ['clean'], //清除字体样式
  718. // ['image','video'] //上传图片、上传视频
  719. ['image'] //上传图片、上传视频
  720. ], //工具栏设置
  721. },
  722. theme: 'snow',
  723. },
  724. textContent: true, // 控制提交
  725. times: null,
  726. text2: '',
  727. innerVisibless: false, // 任务展示弹出层
  728. activities: [{
  729. content: this.$t('normals'),
  730. timestamp: this.$t('hoursago'),
  731. size: 'large',
  732. type: 'primary',
  733. icon: 'el-icon-circle-check',
  734. color: '#409EFF'
  735. }, {
  736. content: this.$t('withinthetimelimit'),
  737. timestamp: this.$t('hoursago8'),
  738. color: '#F87872'
  739. }],
  740. ProgressList: [],
  741. checkboxGrounp: [], // 选中人的数据
  742. checkLists: [], // 选中人数据的ID
  743. taskIid: null,
  744. 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')},
  745. {id:5,name:this.$t('createdthetask')},{id:6,name:this.$t('missionIwason')},{id:7,name:this.$t('todaytask')},{id:8,name:this.$t('taskthatisoverdue')}],
  746. importanceList:[{id:0,name:this.$t('yi-ban')},{id:1,name:this.$t('zhong-yao')},{id:2,name:this.$t('jin-ji')},],
  747. 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"}],
  748. taskTypeColor:['#20A0FF','#8613ad','#bf0404'],
  749. taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
  750. taskStatusList:[this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone')],
  751. //优先级
  752. taskLevelColor:['#262626','#E6A23C','#F56C6C'],
  753. stageList: '',
  754. selectedGroup:{},
  755. dateClass: true,
  756. dateType: 0,
  757. dateSelect: [],
  758. groupName: '',
  759. groupNameList: [],
  760. departmentList: [],
  761. deptId: []
  762. };
  763. },
  764. methods: {
  765. judgedate(itemD){
  766. let nowdate = new Date()
  767. let idate = new Date(itemD + " 23:59:59")
  768. return nowdate > idate ? true : false
  769. },
  770. deleteSubPro(subProject) {
  771. this.$confirm(this.$t('makesuretodeletethesubproject') + subProject.name + this.$t('ma'),this.$t('deletesubproject'), {
  772. confirmButtonText: this.$t('btn.determine'),
  773. cancelButtonText: this.$t('btn.cancel'),
  774. type: "warning"
  775. })
  776. .then(() => {
  777. this.listLoading = true;
  778. this.http.post('/sub-project/deleteProject',{
  779. id: subProject.id
  780. },
  781. res => {
  782. this.listLoading = false;
  783. if (res.code == "ok") {
  784. this.$message({
  785. message: this.$t('message.successfullyDeleted'),
  786. type: "success"
  787. });
  788. this.subProject(this.currentProject);
  789. } else {
  790. this.$message({
  791. message: res.msg,
  792. type: "error"
  793. });
  794. }
  795. },
  796. error => {
  797. this.listLoading = false;
  798. this.$message({
  799. message: error,
  800. type: "error"
  801. });
  802. }
  803. );
  804. })
  805. .catch(() => {});
  806. },
  807. searchList() {
  808. this.page = 1;
  809. this.getList();
  810. },
  811. addNewSubProject(subProject) {
  812. if (subProject == null) {
  813. this.addForm = {projectId: this.currentProject.id}
  814. } else {
  815. this.addForm = subProject;
  816. }
  817. this.addSubProject = true;
  818. },
  819. //显示子项目
  820. subProject(item) {
  821. this.subProjectVisible = true;
  822. this.currentProject = item;
  823. this.http.post('/sub-project/list', {
  824. projectId: item.id
  825. },
  826. res => {
  827. if (res.code == "ok") {
  828. this.subProjectList = res.data;
  829. } else {
  830. this.$message({
  831. message: res.msg,
  832. type: "error"
  833. });
  834. }
  835. },
  836. error => {
  837. this.$message({
  838. message: error,
  839. type: "error"
  840. });
  841. });
  842. },
  843. //显示用户详情
  844. showUser(userId) {
  845. this.userDetailVisible = true;
  846. this.http.post(this.port.manage.userDetail, {
  847. userId: userId
  848. },
  849. res => {
  850. if (res.code == "ok") {
  851. this.userDetail = res.data;
  852. } else {
  853. this.$message({
  854. message: res.msg,
  855. type: "error"
  856. });
  857. }
  858. },
  859. error => {
  860. this.$message({
  861. message: error,
  862. type: "error"
  863. });
  864. });
  865. },
  866. //选择参与人
  867. changeParticipator() {
  868. //检查是否在参与人中,如果没有需要加入到参与人中
  869. // console.log(this.addForm.userId);
  870. var find = false;
  871. this.participator = [];
  872. this.addForm.userId.forEach(u=>{
  873. var findUser = this.users.filter(au=>au.id == u)[0];
  874. this.participator.push(findUser);
  875. })
  876. },
  877. getUsers() {
  878. // this.http.post(this.port.manage.list, {
  879. // departmentId: -1,
  880. // pageIndex: 1,
  881. // // pageSize: 99999
  882. // pageSize: -1
  883. // },
  884. this.http.post('/user/getSimpleActiveUserList', {},
  885. res => {
  886. if (res.code == "ok") {
  887. this.users = res.data;
  888. } else {
  889. this.$message({
  890. message: res.msg,
  891. type: "error"
  892. });
  893. }
  894. },
  895. error => {
  896. this.$message({
  897. message: error,
  898. type: "error"
  899. });
  900. });
  901. },
  902. addStagePost() {
  903. let param = JSON.parse(JSON.stringify(this.stageForm));
  904. param.taskList = [];
  905. this.http.post('/stages/save',param,
  906. res => {
  907. if (res.code == "ok") {
  908. this.stageList = res.data;
  909. this.addStageDialog = false;
  910. } else {
  911. this.$message({
  912. message: res.msg,
  913. type: "error"
  914. });
  915. }
  916. },
  917. error => {
  918. this.$message({
  919. message: error,
  920. type: "error"
  921. });
  922. });
  923. },
  924. //分页
  925. handleCurrentChange(val) {
  926. this.page = val;
  927. this.getList();
  928. },
  929. handleSizeChange(val) {
  930. this.size = val;
  931. this.getList();
  932. },
  933. //获取项目列表
  934. getList() {
  935. this.listLoading = true;
  936. let parameter = {
  937. status: this.searchField,
  938. viewId: this.idx,
  939. pageIndex: this.page,
  940. pageSize: this.size,
  941. // type: this.typeField
  942. }
  943. if(this.typeField != 'null' && this.typeField != null && this.typeField != '') {
  944. parameter.type = this.typeField
  945. }
  946. if(this.dateSelect != null && this.dateSelect.length != 0){
  947. parameter.dateType = this.dateType
  948. parameter.startDate = this.dateSelect[0]
  949. parameter.endDate = this.dateSelect[1]
  950. }
  951. // if(this.user.companyId == '428') {
  952. // parameter.groupName = this.groupName
  953. // }
  954. if(this.deptId.length > 0) {
  955. parameter.deptId = this.deptId[this.deptId.length - 1]
  956. } else {
  957. parameter.deptId = ''
  958. }
  959. this.http.post('/task/listByPage', parameter,
  960. res => {
  961. this.listLoading = false;
  962. if(res.code == 'ok') {
  963. if(this.user.userNameNeedTranslate == 1) {
  964. for(var i in res.data.records) {
  965. let arr = []
  966. if(res.data.records[i].executorName) {
  967. arr = res.data.records[i].executorName.split(',')
  968. }
  969. res.data.records[i].executorNameList = arr
  970. }
  971. }
  972. this.list = res.data.records
  973. this.total = res.data.total
  974. } else {
  975. this.$message({
  976. message: res.msg,
  977. type: "error"
  978. });
  979. }
  980. // console.log(res)
  981. },
  982. error => {
  983. this.listLoading = false;
  984. this.$message({
  985. message: error,
  986. type: "error"
  987. });
  988. })
  989. },
  990. //显示新增界面
  991. handleAdd(i, item) {
  992. if(i == -1) {
  993. this.title = this.$t('addWork');
  994. this.addForm = {
  995. name: '',
  996. userId: [],
  997. code:'',
  998. inchargerId:null,
  999. }
  1000. } else {
  1001. this.title = this.$t('modifytheproject');
  1002. var list = item.participator , arr = [];
  1003. for(var j in list) {
  1004. arr.push(list[j].id)
  1005. }
  1006. this.addForm = {
  1007. id: item.id,
  1008. name: item.projectName,
  1009. userId: arr,
  1010. code:item.projectCode,
  1011. inchargerId: item.inchargerId
  1012. }
  1013. this.changeParticipator();
  1014. }
  1015. this.addFormVisible = true;
  1016. },
  1017. //提交子项目创建修改请求
  1018. submitInsertSubProject () {
  1019. this.$refs.form2.validate(valid => {
  1020. if (valid) {
  1021. this.http.post('/sub-project/saveOrUpdate',this.addForm,
  1022. res => {
  1023. if (res.code == "ok") {
  1024. this.$message({
  1025. message: this.$t('operationissuccessful'),
  1026. type: "success"
  1027. });
  1028. this.subProject(this.currentProject);
  1029. this.addSubProject = false;
  1030. } else {
  1031. this.$message({
  1032. message: res.msg,
  1033. type: "error"
  1034. });
  1035. }
  1036. },
  1037. error => {
  1038. this.listLoading = false;
  1039. this.$message({
  1040. message: error,
  1041. type: "error"
  1042. });
  1043. }
  1044. );
  1045. }
  1046. });
  1047. },
  1048. // submitInsert() {
  1049. // console.log("111");
  1050. // this.$refs.form1.validate(valid => {
  1051. // if (valid) {
  1052. // this.addLoading = true;
  1053. // let formData = new FormData();
  1054. // formData.append("name", this.addForm.name);
  1055. // if(this.addForm.id != null) {
  1056. // formData.append("id", this.addForm.id);
  1057. // }
  1058. // if(this.addForm.userId.length != 0) {
  1059. // for(var j in this.addForm.userId) {
  1060. // formData.append("userId", this.addForm.userId[j]);
  1061. // }
  1062. // }
  1063. // if(this.addForm.inchargerId != null) {
  1064. // formData.append("inchargerId", this.addForm.inchargerId);
  1065. // }
  1066. // if(this.addForm.code != null) {
  1067. // formData.append("code", this.addForm.code);
  1068. // }
  1069. // formData.delete("refTaskList")
  1070. // console.log('走了')
  1071. // this.http.uploadFile(this.port.project.add,formData,
  1072. // res => {
  1073. // this.addLoading = false;
  1074. // if (res.code == "ok") {
  1075. // this.$message({
  1076. // message: this.addForm.id!=null?'修改':'创建'+"成功",
  1077. // type: "success"
  1078. // });
  1079. // this.addFormVisible = false;
  1080. // this.getList();
  1081. // } else {
  1082. // this.$message({
  1083. // message: res.msg,
  1084. // type: "error"
  1085. // });
  1086. // }
  1087. // },
  1088. // error => {
  1089. // this.addLoading = false;
  1090. // this.$message({
  1091. // message: error,
  1092. // type: "error"
  1093. // });
  1094. // });
  1095. // }
  1096. // });
  1097. // },
  1098. // 删除
  1099. deletePro(i, item) {
  1100. this.$confirm(this.$t('identifytheproject') + item.projectName + this.$t('ma'),this.$t('deletetheproject'), {
  1101. confirmButtonText: this.$t('btn.determine'),
  1102. cancelButtonText: this.$t('btn.cancel'),
  1103. type: "warning"
  1104. })
  1105. .then(() => {
  1106. this.listLoading = true;
  1107. this.http.post(this.port.project.delete,{
  1108. id: item.id
  1109. },
  1110. res => {
  1111. this.listLoading = false;
  1112. if (res.code == "ok") {
  1113. this.$message({
  1114. message: this.$t('message.successfullyDeleted'),
  1115. type: "success"
  1116. });
  1117. this.getList();
  1118. } else {
  1119. this.$message({
  1120. message: res.msg,
  1121. type: "error"
  1122. });
  1123. }
  1124. },
  1125. error => {
  1126. this.listLoading = false;
  1127. this.$message({
  1128. message: error,
  1129. type: "error"
  1130. });
  1131. }
  1132. );
  1133. })
  1134. .catch(() => {});
  1135. },
  1136. detail(i) {
  1137. this.$router.push("/list/" + this.list[i].id + "/" + this.list[i].projectName);
  1138. },
  1139. // 切换当前选项的索引
  1140. switchs(e) {
  1141. this.idx = e
  1142. this.page = 1
  1143. // console.log(this.searchField)
  1144. this.getList()
  1145. },
  1146. // 下拉框选择
  1147. hiddens(e) {
  1148. if(e == 1 && (this.dateSelect == null || this.dateSelect.length == 0)){
  1149. return
  1150. }
  1151. // console.log(this.searchField)
  1152. this.page = 1
  1153. this.getList()
  1154. },
  1155. // 完成
  1156. completes(e, el) {
  1157. this.http.post('/task/finish', {
  1158. id: e,
  1159. taskStatus: el
  1160. },
  1161. res => {
  1162. if (res.code == "ok") {
  1163. this.$message({
  1164. message: this.$t('operationissuccessful'),
  1165. type: "success"
  1166. });
  1167. this.getList();
  1168. } else {
  1169. this.$message({
  1170. message: res.msg,
  1171. type: "error"
  1172. });
  1173. }
  1174. },
  1175. error => {
  1176. this.listLoading = false;
  1177. this.$message({
  1178. message: error,
  1179. type: "error"
  1180. });
  1181. }
  1182. )
  1183. },
  1184. // 点击任务事件
  1185. editTask(task) {
  1186. // console.log(task)
  1187. this.addFormVisible = true;
  1188. // this.addLoading = false;
  1189. this.title = this.$t('editingtasks');
  1190. this.getTaskDetail(task.id);
  1191. this.getTaskProgressList(task.id); // 获取任务进展列表
  1192. this.getUsers(); // 获取名单数据
  1193. this.gain(task); // 获取评论列表
  1194. // this.getStageList()
  1195. },
  1196. addExecutorLine() {
  1197. this.addForm.executorListFront.push({executorId:null, planHours:8});
  1198. this.$forceUpdate();
  1199. },
  1200. removeExecutorLine(index) {
  1201. this.addForm.executorListFront.splice(index,1);
  1202. this.$forceUpdate();
  1203. },
  1204. getTaskDetail(id) {
  1205. this.http.post('/task/getTask',{id: id},
  1206. res => {
  1207. if (res.code == "ok") {
  1208. this.addForm = res.data;
  1209. this.addForm.createDate = null;
  1210. this.addForm.indate = null;
  1211. this.addLoading = false;
  1212. this.recentProgressInfo = this.addForm.progress;
  1213. this.addForm.executorListFront = this.addForm.executorList;
  1214. //删除中间传值的变量数组
  1215. delete this.addForm.executorList;
  1216. } else {
  1217. this.$message({
  1218. message: res.msg,
  1219. type: "error"
  1220. });
  1221. }
  1222. },
  1223. error => {
  1224. this.$message({
  1225. message: error,
  1226. type: "error"
  1227. });
  1228. });
  1229. },
  1230. //获取任务进展列表
  1231. getTaskProgressList(taskId) {
  1232. this.taskIid = taskId
  1233. this.http.post('/task-progress/list', {taskId: taskId},
  1234. res => {
  1235. if (res.code == "ok") {
  1236. this.ProgressList = res.data;
  1237. this.recentProgressInfo = res.data[0]
  1238. } else {
  1239. this.$message({
  1240. message: res.msg,
  1241. type: "error"
  1242. });
  1243. }
  1244. }
  1245. );
  1246. },
  1247. getUsers() {
  1248. // console.log(this.port.manage.list)
  1249. // this.http.post(this.port.manage.list, {
  1250. // departmentId: -1,
  1251. // pageIndex: 1,
  1252. // pageSize: 99999
  1253. // },
  1254. this.http.post('/user/getSimpleActiveUserList', {},
  1255. res => {
  1256. if (res.code == "ok") {
  1257. this.users = res.data;
  1258. } else {
  1259. this.$message({
  1260. message: res.msg,
  1261. type: "error"
  1262. });
  1263. }
  1264. },
  1265. error => {
  1266. this.$message({
  1267. message: error,
  1268. type: "error"
  1269. });
  1270. });
  1271. },
  1272. // 获取评论列表
  1273. gain (task) {
  1274. this.commentList = [];
  1275. this.taskId = task.id;
  1276. this.http.post('/task-comment/getList', {taskId: task.id},
  1277. res => {
  1278. if (res.code == "ok") {
  1279. for(var i in res.data) {
  1280. if(res.data[i].content.indexOf(res.data[i].userName) != '-1') {
  1281. let obj = {
  1282. name: res.data[i].userName,
  1283. con: res.data[i].content.split(res.data[i].userName)[1]
  1284. }
  1285. res.data[i].content = obj
  1286. } else {
  1287. let obj = {
  1288. name: '',
  1289. con: res.data[i].content
  1290. }
  1291. res.data[i].content = obj
  1292. }
  1293. }
  1294. this.commentList = res.data
  1295. console.log(res.data, '数据')
  1296. this.sppk(this.commentList) // 获取参与人的方法
  1297. } else {
  1298. this.$message({
  1299. message: res.msg,
  1300. type: "error"
  1301. });
  1302. }
  1303. },
  1304. error => {
  1305. this.$message({
  1306. message: error,
  1307. type: "error"
  1308. });
  1309. });
  1310. },
  1311. // 获取评论参与人
  1312. sppk(comit) {
  1313. var sk = []
  1314. comit.forEach(function(e){
  1315. sk.push(e.userName)
  1316. })
  1317. this.critic = new Set(sk)
  1318. },
  1319. sss(){
  1320. this.$refs.addRem.style.display="none"
  1321. },
  1322. addprogress(){ // 添加子任务进展事件
  1323. this.$refs.proBox.style.display="block"
  1324. this.$refs.addPro.style.display="none"
  1325. },
  1326. shutPro() { // 关闭任务进展
  1327. this.$refs.addPro.style.display="block"
  1328. this.$refs.addRem.style.display="none"
  1329. this.$refs.proBox.style.display="none"
  1330. },
  1331. addI() { // 打开选择查看
  1332. this.$refs.addRem.style.display="block"
  1333. },
  1334. load() {
  1335. if(this.count >= 0) return
  1336. this.count += 2
  1337. },
  1338. onEditorFocus() {
  1339. this.onEditorBlur()
  1340. },
  1341. kkk(el){
  1342. var k = this.checkLists.indexOf(el.id)
  1343. if (k == -1) {
  1344. this.checkLists.push(el.id)
  1345. } else {
  1346. this.checkLists.splice(k, 1)
  1347. }
  1348. },
  1349. shutPro() { // 关闭任务进展
  1350. this.$refs.addPro.style.display="block"
  1351. this.$refs.addRem.style.display="none"
  1352. this.$refs.proBox.style.display="none"
  1353. },
  1354. addTaskProgress() { //创建任务进展
  1355. var param = {
  1356. taskId: this.taskIid,
  1357. status: this.radio,
  1358. content: this.text2,
  1359. participatorIds: this.checkLists.toString()
  1360. };
  1361. this.http.post('/task-progress/addProgress', param,
  1362. res => {
  1363. if (res.code == "ok") {
  1364. this.shutPro()
  1365. this.getTaskProgressList(this.taskIid)
  1366. this.$message({
  1367. message: this.$t('releasesuccess'),
  1368. type: "success"
  1369. });
  1370. this.checkboxGrounp = [],
  1371. this.checkLists = [],
  1372. this.text2 = '',
  1373. this.radio = 0
  1374. } else {
  1375. this.$message({
  1376. message: res.msg,
  1377. type: "error"
  1378. });
  1379. }
  1380. }
  1381. );
  1382. },
  1383. //删除任务进展
  1384. deleteTaskProgress(id) {
  1385. this.http.post('/task-progress/deleteProgress', {id: id},
  1386. res => {
  1387. if (res.code == "ok") {
  1388. this.getTaskProgressList(this.taskIid)
  1389. this.$message({
  1390. message: this.$t('message.successfullyDeleted'),
  1391. type: "success"
  1392. });
  1393. } else {
  1394. this.$message({
  1395. message: res.msg,
  1396. type: "error"
  1397. });
  1398. }
  1399. }
  1400. );
  1401. },
  1402. //显示子任务创建卡片
  1403. addSubTask() {
  1404. this.addFormVisible = true;
  1405. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  1406. this.addLoading = false;
  1407. },
  1408. taskLineClick(row, column, event) {
  1409. this.editTask(row);
  1410. },
  1411. finishTask(task) {
  1412. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  1413. res => {
  1414. if (res.code == "ok") {
  1415. if (this.groupType == 0) {
  1416. this.getStageList();
  1417. } else {
  1418. // this.getViewTaskList();
  1419. }
  1420. } else {
  1421. this.$message({
  1422. message: res.msg,
  1423. type: "error"
  1424. });
  1425. }
  1426. },
  1427. error => {
  1428. this.$message({
  1429. message: error,
  1430. type: "error"
  1431. });
  1432. });
  1433. },
  1434. //认领任务
  1435. addAsMyTask(task) {
  1436. this.http.post('/task/addAsMyTask',{id: task.id},
  1437. res => {
  1438. if (res.code == "ok") {
  1439. this.getStageList();
  1440. } else {
  1441. this.$message({
  1442. message: res.msg,
  1443. type: "error"
  1444. });
  1445. }
  1446. },
  1447. error => {
  1448. this.$message({
  1449. message: error,
  1450. type: "error"
  1451. });
  1452. });
  1453. },
  1454. timess(){
  1455. var date = new Date()
  1456. let Y = date.getFullYear()
  1457. let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
  1458. let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
  1459. this.times = `${Y}-${M}-${D}`
  1460. },
  1461. showSubTaskList(task) {
  1462. this.subTaskVisible = true;
  1463. this.addForm = task;
  1464. },
  1465. addTask(stage) {
  1466. this.addFormVisible = true;
  1467. this.addForm = {projectId: stage.projectId, groupId: stage.groupId, stagesId: stage.id, taskLevel:0, planHours: 8, taskType: 0};
  1468. this.addLoading = false;
  1469. this.title=this.$t('createtask ');
  1470. this.commentList = [];
  1471. },
  1472. addStage() {
  1473. this.addStageDialog = true;
  1474. this.stageForm = {groupId: this.selectedGroup.id, projectId: this.curProjectId};
  1475. },
  1476. // 获得焦点时触发
  1477. onEditorBlur(){
  1478. let theEle = this.$refs.text; // 获取元素
  1479. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  1480. var arrImg = ''
  1481. for (var j = 0; j < img.length; j++) {
  1482. // 正则匹配,摘出img标签下的src里的内容,即capture
  1483. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  1484. arrImg += capture
  1485. });
  1486. }
  1487. // 原来的字符流大小,单位为字节
  1488. var strLen = arrImg.length;
  1489. // 计算后得到的文件流大小,单位为字节
  1490. var fileSize=parseInt(strLen-(strLen/8)*2);
  1491. var size = "";
  1492. size = (fileSize/1024/1024).toFixed(2);
  1493. if (size > 2){
  1494. this.textContent = false
  1495. this.$message({
  1496. showClose: true,
  1497. message: this.$t('imageexceeds2MBpleaseuploaditagain'),
  1498. type: 'warning'
  1499. });
  1500. }
  1501. this.textContent = true
  1502. },
  1503. backToParentTask() {
  1504. this.getTaskDetail(this.addForm.parentTid);
  1505. },
  1506. // 点击发布
  1507. release() {
  1508. if(this.textarea2.length <= 0) return this.$message({message: this.$t('pleaseentercontent'), type: "error"})
  1509. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  1510. res => {
  1511. if(res.code == "ok"){
  1512. this.commentList.push(res.data)
  1513. this.sppk(this.commentList)
  1514. this.textarea2 = ""
  1515. this.contRoll() // 滚动到底部
  1516. } else {
  1517. this.$message({
  1518. message: res.msg,
  1519. type: "error"
  1520. });
  1521. }
  1522. },
  1523. error => {
  1524. this.$message({
  1525. message: error,
  1526. type: "error"
  1527. });
  1528. })
  1529. },
  1530. // 滚动到底部
  1531. contRoll(){
  1532. this.$nextTick(() => {
  1533. this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  1534. })
  1535. },
  1536. submitInsert() {
  1537. if (this.textContent !== true) return this.$message({
  1538. showClose: true,
  1539. message: this.$t('pictureistoolargepleaseuploaditagain'),
  1540. type: 'warning'
  1541. });
  1542. //检查是有重名的执行人
  1543. var exeList = this.addForm.executorListFront;
  1544. for (var i=0;i<exeList.length;i++) {
  1545. var findSameUser = false;
  1546. for (var j=i+1;j<exeList.length; j++) {
  1547. if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
  1548. findSameUser = true;
  1549. break;
  1550. }
  1551. }
  1552. if (findSameUser) {
  1553. return this.$message({
  1554. showClose: true,
  1555. message: this.$t('executorhasduplication'),
  1556. type: 'error'
  1557. });
  1558. }
  1559. }
  1560. this.$refs.form1.validate(valid => {
  1561. if (valid) {
  1562. delete this.addForm.subTaskList;
  1563. delete this.addForm.progress;
  1564. delete this.addForm.refTaskList;
  1565. this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
  1566. this.http.post('/task/save',this.addForm,
  1567. res => {
  1568. if (res.code == "ok") {
  1569. this.$message({
  1570. message: this.$t('message.submittedSuccessfully'),
  1571. type: "success"
  1572. });
  1573. if (this.addForm.parentTid == null) {
  1574. this.addFormVisible = false;
  1575. if (this.groupType == 0) {
  1576. this.getStageList();
  1577. } else {
  1578. // this.getViewTaskList();
  1579. }
  1580. } else {
  1581. this.backToParentTask();
  1582. }
  1583. this.getList()
  1584. } else {
  1585. this.$message({
  1586. message: res.msg,
  1587. type: "error"
  1588. });
  1589. }
  1590. },
  1591. error => {
  1592. this.$message({
  1593. message: error,
  1594. type: "error"
  1595. });
  1596. }
  1597. );
  1598. }
  1599. });
  1600. },
  1601. //加载项目内的任务列表
  1602. getStageList() {
  1603. // console.log('进来了')
  1604. this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
  1605. res => {
  1606. if (res.code == "ok") {
  1607. this.stageList = res.data.list;
  1608. // console.log('触发获取任务列表函数')
  1609. this.timess() // 处理时间的方法
  1610. } else {
  1611. this.$message({
  1612. message: res.msg,
  1613. type: "error"
  1614. });
  1615. }
  1616. },
  1617. error => {
  1618. this.$message({
  1619. message: error,
  1620. type: "error"
  1621. });
  1622. });
  1623. },
  1624. //删除当前编辑的任务
  1625. deleteTask() {
  1626. var warning='';
  1627. if (this.addForm.subTaskList.length > 0) {
  1628. warning=this.$t('currenttaskanditssubtasks');
  1629. } else {
  1630. warning=this.$t('wanttodeletethecurrent task');
  1631. }
  1632. this.$confirm(warning, this.$t('other.prompts'), {
  1633. //type: 'warning'
  1634. }).then(() => {
  1635. this.http.post('/task/delete',{id: this.addForm.id},
  1636. res => {
  1637. if (res.code == "ok") {
  1638. this.addFormVisible = false;
  1639. // this.getStageList();
  1640. this.getList();
  1641. } else {
  1642. this.$message({
  1643. message: res.msg,
  1644. type: "error"
  1645. });
  1646. }
  1647. },
  1648. error => {
  1649. this.$message({
  1650. message: error,
  1651. type: "error"
  1652. });
  1653. });
  1654. });
  1655. },
  1656. chan() {
  1657. // console.log(this.critic)
  1658. },
  1659. getSthForSb() {
  1660. this.http.post('/task/getGroupNameList ',{},
  1661. res => {
  1662. if (res.code == "ok") {
  1663. console.log('看看是', res.data)
  1664. this.groupNameList = res.data
  1665. } else {
  1666. this.$message({
  1667. message: res.msg,
  1668. type: "error"
  1669. });
  1670. }
  1671. },
  1672. error => {
  1673. this.$message({
  1674. message: error,
  1675. type: "error"
  1676. });
  1677. });
  1678. },
  1679. // 获取部门
  1680. getDepartmentList() {
  1681. this.http.post( this.port.manage.depList, {},
  1682. res => {
  1683. if (res.code == "ok") {
  1684. let dptlist = JSON.parse(JSON.stringify(res.data));
  1685. this.departmentList = this.changeArr(dptlist);
  1686. } else {
  1687. this.$message({
  1688. message: res.msg,
  1689. type: "error"
  1690. });
  1691. }
  1692. },error => {
  1693. this.$message({
  1694. message: error,
  1695. type: "error"
  1696. });
  1697. });
  1698. },
  1699. changeArr(arr) {
  1700. for (var i = 0; i < arr.length; i++) {
  1701. if(arr[i].id != -1 && arr[i].id != 0) {
  1702. if (arr[i].children != null && arr[i].children.length>0) {
  1703. arr[i].children = this.changeArr(arr[i].children);
  1704. }
  1705. arr[i].id && (arr[i].value = arr[i].id);
  1706. delete arr[i].id;
  1707. }
  1708. }
  1709. for(var i in arr) {
  1710. if(arr[i].id == -1 || arr[i].id == 0) {
  1711. arr.splice(i,1)
  1712. }
  1713. }
  1714. return arr;
  1715. },
  1716. selectCal(obj) {
  1717. if(obj.distinction == '1') {
  1718. this.addForm.executorListFront[obj.index].executorId = obj.id
  1719. }
  1720. }
  1721. },
  1722. created() {
  1723. let height = window.innerHeight;
  1724. this.tableHeight = height - 195;
  1725. const that = this;
  1726. window.onresize = function temp() {
  1727. that.tableHeight = window.innerHeight - 195;
  1728. };
  1729. },
  1730. mounted() {
  1731. this.getList();
  1732. this.getUsers();
  1733. if(this.user.timeType.projectWithDept) {
  1734. this.getDepartmentList()
  1735. }
  1736. if(this.user.companyId == '428') {
  1737. this.getSthForSb()
  1738. }
  1739. },
  1740. };
  1741. </script>
  1742. <style lang="scss" scoped>
  1743. // .classification {
  1744. // width: 120px;
  1745. // // height: 100%;
  1746. // border-right: 1px solid #f2f2f2;
  1747. // display: flex;
  1748. // flex-wrap: wrap;
  1749. // // align-items: center;
  1750. // // justify-content: center;
  1751. // padding-top: 20px;
  1752. // }
  1753. // .classification p{
  1754. // width: 120px;
  1755. // text-align: center;
  1756. // line-height: 50px;
  1757. // margin: 0;
  1758. // cursor: pointer;
  1759. // }
  1760. // .classification p:hover {
  1761. // background: #dddddd;
  1762. // }
  1763. // .on {
  1764. // // background: #dddddd;
  1765. // color: #409EFF;
  1766. // }
  1767. // .acl{
  1768. // display: inline-block;
  1769. // width: 300px;
  1770. // height: 22px;
  1771. // // line-height: 22px;
  1772. // overflow: hidden;
  1773. // white-space: nowrap;
  1774. // text-overflow: ellipsis;
  1775. // margin: 0;
  1776. // padding: 0;
  1777. // line-height: 0;
  1778. // }
  1779. // .cal {
  1780. // width: 300px;
  1781. // overflow: hidden;
  1782. // white-space: nowrap;
  1783. // text-overflow: ellipsis;
  1784. // cursor: pointer;
  1785. // }
  1786. </style>