list.vue 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526
  1. <template>
  2. <section>
  3. <!--工具条-->
  4. <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
  5. <el-form :inline="true">
  6. <el-form-item :label="$t('tasklist')">
  7. <div style="margin-left: 8px">
  8. <!-- <el-input style="float:left;" v-model="keyword" class="input-with-select" placeholder="请输入项目名称关键字" clearable="true"> -->
  9. <el-select v-model="searchField" style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" v-if="idx != 3">
  10. <el-option :label="$t('ongoing')" value="0" @click.native="hiddens()"></el-option>
  11. <el-option :label="$t('state.completed')" value="1" @click.native="hiddens()"></el-option>
  12. </el-select>
  13. <!-- <el-button slot="append" @click="searchList" icon="el-icon-search"></el-button> -->
  14. <!-- </el-input> -->
  15. </div>
  16. </el-form-item>
  17. <el-form-item v-if="idx == 3">
  18. <el-input placeholder="请输入任务名称" v-model="auditFileTaskName" size="small" style="margin-top: 6px">
  19. <el-button slot="append" icon="el-icon-search" @click="getFilesAwaitingReview()"></el-button>
  20. </el-input>
  21. </el-form-item>
  22. <el-form-item :label="$t('subordinatedepartments')" v-if="user.timeType.projectWithDept && idx != 3">
  23. <el-cascader v-model="deptId" :options="departmentList" size="small" :placeholder="$t('qing-xuan-ze-bu-men')"
  24. :props="{ checkStrictly: true, expandTrigger: 'hover' }" :show-all-levels="false" clearable filterable @change="hiddens"
  25. ></el-cascader>
  26. </el-form-item>
  27. <el-form-item :label="$t('lable.department')" v-if="!user.timeType.projectWithDept">
  28. <div style="margin-left: 8px">
  29. <el-cascader v-if="user.userNameNeedTranslate != 1" v-model="screenDeptId" :placeholder="$t('defaultText.pleaseChoose')" style="width: 125px"
  30. :options="departmentList" :props="{ checkStrictly: true,expandTrigger: 'hover' }" :show-all-levels="false" clearable
  31. @change="getList()" size="mini"></el-cascader>
  32. <vueCascader :size="'mini'" :widthStr="'125'" :clearable="true" :subject="departmentList" :radios="true" :distinction="'1'" @vueCasader="vueCasader" v-if="user.userNameNeedTranslate == 1"></vueCascader>
  33. </div>
  34. </el-form-item>
  35. <el-form-item :label="$t('types')" v-if="idx != 3">
  36. <div style="margin-left: 8px">
  37. <el-select v-model="typeField" style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="hiddens()">
  38. <el-option :label="$t('other.task')" value="0"></el-option>
  39. <el-option :label="$t('other.milestone')" value="1"></el-option>
  40. <el-option :label="$t('risk')" value="2"></el-option>
  41. </el-select>
  42. </div>
  43. </el-form-item>
  44. <el-form-item :label="$t('other.project')">
  45. <div style="margin-left: 8px">
  46. <el-select v-model="screenProjectId" filterable style="width:150px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="screenProjectChange">
  47. <el-option v-for="item in allProjectList" :key="item.id" :label="item.projectName" :value="item.id"></el-option>
  48. </el-select>
  49. </div>
  50. </el-form-item>
  51. <el-form-item :label="$t('lable.taskGrouping')" v-if="idx != 3">
  52. <div style="margin-left: 8px">
  53. <el-select v-model="screenTaskGroupingId" style="width:150px;" size="small" :disabled="!screenProjectId" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="hiddens()">
  54. <el-option v-for="item in taskGroupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  55. </el-select>
  56. </div>
  57. </el-form-item>
  58. <el-form-item :label="$t('ren-yuan')" v-if="idx != 3">
  59. <div style="margin-left: 8px">
  60. <el-select v-model="screenPersonnelId" filterable style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')" clearable @change="hiddens()" v-if="user.userNameNeedTranslate != '1'">
  61. <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id"></el-option>
  62. </el-select>
  63. <selectCat :subject="users" :subjectId="screenPersonnelId" :filterable="true" :clearable="true" @selectCal="selectCal" :size="'small'" :distinction="'10'" v-if="user.userNameNeedTranslate == '1'"></selectCat>
  64. </div>
  65. </el-form-item>
  66. <el-form-item v-if="idx == 3 && permissions.viewFilesReviewedByOthers">
  67. <el-radio-group v-model="documentRadios" size="small" @input="documentRadioInput">
  68. <el-radio-button label="待我审核"></el-radio-button>
  69. <el-radio-button label="待他人审核"></el-radio-button>
  70. </el-radio-group>
  71. </el-form-item>
  72. <el-form-item v-if="idx != 3">
  73. <div style="display: flex;">
  74. <div style="margin-left: 20px">
  75. <el-select v-model="dateType" style="width:120px;" size="small" slot="prepend" :placeholder="$t('defaultText.pleaseChoose')">
  76. <el-option :label="$t('starttimes')" :value="0" @click.native="hiddens(1)"></el-option>
  77. <el-option :label="$t('deadline')" :value="1" @click.native="hiddens(1)"></el-option>
  78. </el-select>
  79. </div>
  80. <div style="margin-left: 8px">
  81. <el-date-picker
  82. v-model="dateSelect"
  83. type="daterange"
  84. size="small"
  85. range-separator="-"
  86. :start-placeholder="$t('interval')"
  87. :end-placeholder="$t('interval')"
  88. value-format="yyyy-MM-dd"
  89. clearable
  90. @change="hiddens()">
  91. </el-date-picker>
  92. </div>
  93. </div>
  94. </el-form-item>
  95. <el-form-item style="float: right;" v-if="user.companyId != '3092'">
  96. <el-link type="primary" icon="el-icon-circle-plus-outline" :underline="false" @click="addTask()" v-if="idx != 3">{{ $t('xinJianRenWu') }}</el-link>
  97. <el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 20px;" v-loading="exportTaskLoading" v-if="idx != 3">{{ $t('export.export') }}</el-link>
  98. </el-form-item>
  99. </el-form>
  100. </el-col>
  101. <div style="display: flex;width: 100%;">
  102. <div class="classification">
  103. <div>
  104. <p :class="idx == 0 ? 'on' : ''" @click="switchs(0)" v-if="permissions.projectView || permissions.projectManagement || permissions.projectViewAllTasks">{{ $t('alltaskss') }}</p>
  105. <p :class="idx == 1 ? 'on' : ''" @click="switchs(1)">{{ $t('perform') }}</p>
  106. <p :class="idx == 2 ? 'on' : ''" @click="switchs(2)">{{ $t('created') }}</p>
  107. <p :class="idx == 3 ? 'on' : ''" @click="switchs(3)" v-if="(user.timeType.taskFileCharge == 1 || user.timeType.taskFileCharge == 2) && permissions.tasksReviewTaskFile">待审核文件</p>
  108. </div>
  109. </div>
  110. <div style="max-width: 94%;min-width: 90%">
  111. <!--列表-->
  112. <el-table :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;" v-if="[0, 1, 2].includes(idx)" :key="tablesKey">
  113. <el-table-column type="index" width="60">
  114. <template slot-scope="scope" >
  115. {{scope.$index+1+(page-1)*size}}
  116. </template>
  117. </el-table-column>
  118. <el-table-column prop="projectName" :label="$t('headerTop.projectName')" sortable width="260" show-overflow-tooltip>
  119. <template slot-scope="scope">
  120. <el-link type="primary" :href="'#/projectInside/'+scope.row.projectId">{{scope.row.projectName}}</el-link>
  121. </template>
  122. </el-table-column>
  123. <el-table-column prop="stagesName" :label="$t('taskstage')" sortable width="180" @mouseover="mouseOver">
  124. <template slot-scope="scope">
  125. {{ scope.row.stagesName }}
  126. </template>
  127. </el-table-column>
  128. <el-table-column prop="taskLevel" :label="$t('priority')" sortable width="100">
  129. <template slot-scope="scope">
  130. <div>
  131. <span v-if="scope.row.taskLevel == 0">{{ $t('yi-ban') }}</span>
  132. <span v-if="scope.row.taskLevel == 1" style="color: #E6A23C">{{ $t('zhong-yao') }}</span>
  133. <span v-if="scope.row.taskLevel == 2" style="color: #F56C6C">{{ $t('jin-ji') }}</span>
  134. </div>
  135. </template>
  136. </el-table-column>
  137. <el-table-column prop="name" :label="$t('nameofthetask')" sortable width="330">
  138. <template slot-scope="scope">
  139. <div v-if="scope.row.name.length > 20">
  140. <el-popover trigger="hover" placement="top" width="330" v-if="scope.row.name">
  141. <p id="caseContent">{{scope.row.name}}</p>
  142. <div slot="reference" class="name-wrapper">
  143. <div class="cal" >
  144. <el-link type="primary" @click="editTask(scope.row)">{{scope.row.name}}</el-link>
  145. </div>
  146. </div>
  147. </el-popover>
  148. </div>
  149. <div v-else>
  150. <div class="cal">
  151. <el-link type="primary" @click="editTask(scope.row)">{{scope.row.name}}</el-link>
  152. </div>
  153. </div>
  154. </template>
  155. </el-table-column>
  156. <el-table-column prop="finalChargeStatusText" label="文件审核状态" width="210" sortable v-if="(user.timeType.taskFileCharge == 1 || user.timeType.taskFileCharge == 2) && [0, 1, 2].includes(idx)">
  157. <template slot-scope="scope">
  158. <template v-if="scope.row.fileChargeStatus != 2">
  159. <el-link :type="{'0': 'warning', '1': 'info', '2': 'danger'}[scope.row.fileChargeStatus]" :underline="false">
  160. {{ scope.row.finalChargeStatusTextList[0] || '' }}
  161. <template v-if="(scope.row.finalChargeStatusTextList || []).length > 1">
  162. <TranslationOpenDataText :openid='scope.row.finalChargeStatusTextList[1]'></TranslationOpenDataText>
  163. {{ scope.row.finalChargeStatusTextList[2] || '' }}
  164. </template>
  165. </el-link>
  166. </template>
  167. <template v-else>
  168. <el-tooltip class="item" effect="dark" content="点击查看" placement="top">
  169. <el-link :type="'danger'" :underline="false" @click="showReasonForRejection(scope.row)">
  170. {{ scope.row.finalChargeStatusTextList[0] || '' }}
  171. <template v-if="(scope.row.finalChargeStatusTextList || []).length > 1">
  172. <TranslationOpenDataText :openid='scope.row.finalChargeStatusTextList[1]'></TranslationOpenDataText>
  173. {{ scope.row.finalChargeStatusTextList[2] || '' }}
  174. </template>
  175. </el-link>
  176. </el-tooltip>
  177. </template>
  178. </template>
  179. </el-table-column>
  180. <!-- <el-table-column prop="projectCategorySub" label="项目分组" sortable width="300" v-if="user.companyId == '428'"></el-table-column> -->
  181. <el-table-column prop="departmentName" :label="$t('subordinatedepartments')" sortable width="300" v-if="user.timeType.projectWithDept">
  182. <template slot-scope="scope">
  183. <div>
  184. <span v-if="user.userNameNeedTranslate == '1'"><TranslationOpenDataText type='departmentName' :openid='scope.row.departmentName'></TranslationOpenDataText></span>
  185. <span v-if="user.userNameNeedTranslate != '1'">{{departmentName}}</span>
  186. </div>
  187. </template>
  188. </el-table-column>
  189. <el-table-column prop="executorName" :label="$t('zhi-hang-ren')" sortable width="130">
  190. <template slot-scope="scope">
  191. <!-- <el-link type="primary" @click="showUser(scope.row.executorId)">{{scope.row.executorName}}</el-link> -->
  192. <span v-if="user.userNameNeedTranslate == '1'">
  193. <span v-for="(item, index) in scope.row.executorNameList" :key="index">
  194. <TranslationOpenDataText type='userName' :openid='item'></TranslationOpenDataText>
  195. <span v-if="index < scope.row.executorNameList.length - 1">,</span>
  196. </span>
  197. </span>
  198. <span v-if="user.userNameNeedTranslate != '1'">{{scope.row.executorName}}</span>
  199. </template>
  200. </el-table-column>
  201. <el-table-column prop="startDate" :label="$t('starttimes')" sortable width="180"></el-table-column>
  202. <el-table-column prop="endDate" :label="$t('deadline')" width="310" fixed="right" sortable>
  203. <template slot-scope="scope">
  204. <div style="display: flex;justify-content: space-between;padding-right: 40px">
  205. <span style="display: inline-block;margin-right: 55px">
  206. <span :class="judgedate(scope.row.endDate) && searchField == '0' && scope.row.taskStatus == 0 ? 'redwarningspan autodatespan' : 'autodatespan'">{{scope.row.endDate}}</span>
  207. </span>
  208. <el-button v-if="searchField == 0" size="small" type="primary" @click="completes(scope.row.id, 0, scope.row)">{{ $t('wan-cheng') }}</el-button>
  209. <el-button v-if="searchField == 1" size="small" type="warning" @click="completes(scope.row.id, 1, scope.row)">{{ $t('zhong-qi') }}</el-button>
  210. </div>
  211. </template>
  212. </el-table-column>
  213. </el-table>
  214. <el-table v-if="[3].includes(idx)" :data="documentReview" highlight-current-row v-loading="documentReviewLoading" :height="tableHeight" style="width: 100%;" :key="tablesTwoKey" @selection-change="agentSelectChange">
  215. <el-table-column type="selection" width="55" v-if="documentRadios == '待他人审核'"></el-table-column>
  216. <el-table-column prop="projectName" :label="$t('headerTop.projectName')" sortable width="260" show-overflow-tooltip>
  217. <template slot-scope="scope">
  218. <el-link type="primary" :href="'#/projectInside/'+scope.row.projectId">{{scope.row.projectName}}</el-link>
  219. </template>
  220. </el-table-column>
  221. <el-table-column prop="name" :label="$t('nameofthetask')" sortable>
  222. <template slot-scope="scope">
  223. <div v-if="scope.row.taskName.length > 20">
  224. <el-popover trigger="hover" placement="top" width="330" v-if="scope.row.taskName">
  225. <p id="caseContent">{{scope.row.taskName}}</p>
  226. <div slot="reference" class="name-wrapper">
  227. <div class="cal" >
  228. <el-link type="primary" @click="editTask(scope.row)">{{scope.row.taskName}}</el-link>
  229. </div>
  230. </div>
  231. </el-popover>
  232. </div>
  233. <div v-else>
  234. <div class="cal">
  235. <el-link type="primary" @click="editTask(scope.row)">{{scope.row.taskName}}</el-link>
  236. </div>
  237. </div>
  238. </template>
  239. </el-table-column>
  240. <el-table-column label="文件名称" v-if="documentRadios == '待他人审核'" prop="documentName">
  241. <template slot-scope="scope">
  242. <el-link @click.stop.native="viewOnline(scope.row)">
  243. {{scope.row.documentName}}
  244. </el-link>
  245. </template>
  246. </el-table-column>
  247. <el-table-column prop="executorName" :label="$t('zhi-hang-ren')" sortable>
  248. <template slot-scope="scope">
  249. <span v-for="(item, index) in scope.row.executorList" :key="index">
  250. <template v-if="user.userNameNeedTranslate == 1">
  251. <TranslationOpenDataText type='userName' :openid='item.executorName'></TranslationOpenDataText>
  252. </template>
  253. <template v-if="user.userNameNeedTranslate != 1">
  254. {{ item.executorName }}
  255. </template>
  256. <span v-if="index < scope.row.executorList.length - 1">,</span>
  257. </span>
  258. </template>
  259. </el-table-column>
  260. <el-table-column label="文件审核" width="140" v-if="documentRadios == '待我审核'">
  261. <template slot-scope="scope">
  262. <el-button type="primary" size="mini" @click="viewFilesAndReviewThem(scope.row)">查看文件并审核</el-button>
  263. </template>
  264. </el-table-column>
  265. <el-table-column label="审核人" width="140" v-if="documentRadios == '待他人审核'">
  266. <template slot-scope="scope">
  267. <template v-if="user.userNameNeedTranslate == 1">
  268. <TranslationOpenDataText type='userName' :openid='scope.row.finalChargeName'></TranslationOpenDataText>
  269. </template>
  270. <template v-if="user.userNameNeedTranslate != 1">
  271. {{ scope.row.finalChargeName }}
  272. </template>
  273. </template>
  274. </el-table-column>
  275. </el-table>
  276. <!-- 重启时输入原因 -->
  277. <el-dialog :title="$t('zhongQiRenWu')" :visible.sync="causeRejectionDialog" width="600px" :before-close="handleClose">
  278. <div>
  279. <el-form ref="causeRejectionForm" :model="causeRejectionForm" label-width="80px">
  280. <el-form-item :label="$t('zhongQiYuanYin')">
  281. <el-input type="textarea" v-model.trim="causeRejectionForm.cause"></el-input>
  282. </el-form-item>
  283. <el-form-item :label="$t('zeRenRen')">
  284. <el-select v-if="user.userNameNeedTranslate != '1'" multiple collapse-tags v-model="causeRejectionForm.responsible" size="small" filterable clearable :placeholder="$t('qingXuanZeZeRenRen')" @change="$forceUpdate()">
  285. <el-option v-for="item in causeRejectionForm.users" :key="item.id" :label="item.name" :value="item.id">
  286. <span style="float: left">{{ item.name }}</span>
  287. <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px;margin-right: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
  288. </el-option>
  289. </el-select>
  290. <selectCat :subject="causeRejectionForm.users" :subjectId="causeRejectionForm.responsible" :multiSelect="true" :filterable="true" @selectCal="selectCal" :size="'small'" :distinction="'5'" v-if="user.userNameNeedTranslate == '1'"></selectCat>
  291. <!-- <selectCat :subject="causeRejectionForm.users" :subjectId="causeRejectionForm.responsible" :multiSelect="true" :filterable="true" @selectCal="selectCal" :size="'small'" :distinction="'5'"></selectCat> -->
  292. </el-form-item>
  293. </el-form>
  294. </div>
  295. <span slot="footer" class="dialog-footer">
  296. <el-button @click="causeRejectionDialog = false">{{ $t('quXiao') }}</el-button>
  297. <el-button type="primary" @click="causeRejectionClick()">{{ $t('queDing') }}</el-button>
  298. </span>
  299. </el-dialog>
  300. <!--工具条-->
  301. <el-col :span="24" class="toolbar bottomToolbar">
  302. <div>
  303. <el-button type="primary" size="small" :disabled="!selectFilesed.length" :loading="urgingLoading" v-if="documentRadios == '待他人审核'" @click="urgingCli()">催办</el-button>
  304. </div>
  305. <el-pagination
  306. @size-change="handleSizeChange"
  307. @current-change="handleCurrentChange"
  308. :page-sizes="[20, 50 , 80 , 100]"
  309. :page-size="20"
  310. :current-page="page"
  311. layout="total, sizes, prev, pager, next"
  312. :total="total"
  313. style="float:right;"
  314. ></el-pagination>
  315. </el-col>
  316. </div>
  317. </div>
  318. <!--用户详细信息弹出框-->
  319. <el-dialog :title="$t('Checkthedetails')" v-if="userDetailVisible" :visible.sync="userDetailVisible" :close-on-click-modal="false" customClass="customWidth" width="400px">
  320. <div class="line"><span>{{ $t('lable.name') }}</span>
  321. <span v-if="user.userNameNeedTranslate == '1'"><TranslationOpenDataText type='userName' :openid='userDetail.name'></TranslationOpenDataText></span>
  322. <span v-if="user.userNameNeedTranslate != '1'">{{userDetail.name}}</span>
  323. </div>
  324. <div class="line"><span>{{ $t('Worknumber') }}</span><span>{{userDetail.jobNumber}}</span></div>
  325. <div class="line"><span>{{ $t('lable.phone') }}</span><span>{{userDetail.phone}}</span></div>
  326. <div class="line"><span>{{ $t('lable.department') }}</span>
  327. <span v-if="user.userNameNeedTranslate == '1'"><TranslationOpenDataText type='departmentName' :openid='userDetail.name'></TranslationOpenDataText></span>
  328. <span v-if="user.userNameNeedTranslate != '1'">{{userDetail.departmentName}}</span>
  329. </div>
  330. <div class="line"><span>{{ $t('costof') }}</span><span>{{userDetail.cost}}{{ $t('Yuananhour') }}</span></div>
  331. <div slot="footer" class="dialog-footer">
  332. <el-button type="primary" @click="userDetailVisible = false" >{{ $t('btn.determine') }}</el-button>
  333. </div>
  334. </el-dialog>
  335. <!-- 子项目列表 -->
  336. <el-dialog :title="$t('listofsubitems')" show-header="false" v-if="subProjectVisible" :visible.sync="subProjectVisible" :close-on-click-modal="false" customClass="customWidth" width="500px">
  337. <el-table :data="subProjectList" highlight-current-row height="400" style="width: 100%;">
  338. <el-table-column type="index" width="60" :label="$t('headerTop.serialNumber')">
  339. <template slot-scope="scope" >
  340. {{scope.$index+1+(page-1)*size}}
  341. </template>
  342. </el-table-column>
  343. <el-table-column prop="name" :label="$t('names')" ></el-table-column>
  344. <el-table-column :label="$t('operation')" width="150">
  345. <template slot-scope="scope" >
  346. <el-button size="small" type="primary" @click="addNewSubProject(scope.row)">{{ $t('bian-ji') }}</el-button>
  347. <el-button size="small" type="danger" @click="deleteSubPro(scope.row)">{{ $t('btn.delete') }}</el-button>
  348. </template>
  349. </el-table-column>
  350. </el-table>
  351. <div slot="footer" class="dialog-footer">
  352. <el-button type="primary" @click="subProjectVisible = false" >{{ $t('Shutdown') }}</el-button>
  353. <el-button type="primary" @click="addNewSubProject()" >{{ $t('addsubitems') }}</el-button>
  354. </div>
  355. </el-dialog>
  356. <!-- 任务详情信息弹出框 -->
  357. <el-dialog :class="addForm.id==null?'':'jm'" :title="title" v-if="addFormVisible" :visible.sync="addFormVisible"
  358. :close-on-click-modal="false" customClass="customWidth" width="840px" :top="'6vh'">
  359. <!-- <div style="width: 200%;height:80%;position: absolute;right:-100%;top:0;background:#000;opacity: 0;" @click="sss"></div> -->
  360. <!-- 整合 -->
  361. <taskComponent ref="thskComponents" :integrationTask="integrationTask" :showOrNot="showOrNot" @closeBounced="closeBounced"></taskComponent>
  362. <div slot="title" v-if="addForm.parentTid != null">
  363. <el-page-header @back="backToParentTask" :title="$t('parenttask')" :content="addForm.parentTname"></el-page-header>
  364. </div>
  365. </el-dialog>
  366. <!-- 发起会议 -->
  367. <el-dialog :title="$t('faQiHuiYi')" :visible.sync="meeting" width="500px" :before-close="handleClose" style="z-index: 2020 !important ">
  368. <div class="block">
  369. <div>
  370. <span class="demonstration">{{ $t('huiYiKaiShiShiJian') }}</span>
  371. <el-date-picker
  372. v-model="meetingStartValue"
  373. type="datetime"
  374. :placeholder="$t('xuanZeRiQiShiJian')"
  375. value-format="yyyy-MM-dd HH:mm:ss"
  376. clearable
  377. default-time="10:00:00">
  378. </el-date-picker>
  379. </div>
  380. <div style="margin-top: 20px">
  381. <span class="demonstration">{{ $t('huiYiJieShuShiJian') }}</span>
  382. <el-date-picker
  383. v-model="meetingEndValue"
  384. type="datetime"
  385. :placeholder="$t('xuanZeRiQiShiJian')"
  386. value-format="yyyy-MM-dd HH:mm:ss"
  387. clearable.
  388. default-time="11:00:00">
  389. </el-date-picker>
  390. </div>
  391. </div>
  392. <span slot="footer" class="dialog-footer">
  393. <el-button @click="meeting = false">{{ $t('quXiao') }}</el-button>
  394. <el-button type="primary" @click="confirmMeeting()">{{ $t('queDing') }}</el-button>
  395. </span>
  396. </el-dialog>
  397. <!-- 文件审核 -->
  398. <el-dialog title="文件审核" :visible.sync="viewFilesAndReviewThemVisable" width="1000px">
  399. <el-table :data="viewFilesAndReviewThemRejectList" style="width: 100%" height="500px" @selection-change="handleSelectionChange" :key="viewFilesAndReviewThemkey">
  400. <el-table-column type="selection" width="55"></el-table-column>
  401. <el-table-column :label="$t('filenames')" prop="documentName" min-width="180">
  402. <template slot-scope="scope">
  403. <el-link @click.stop.native="viewOnline(scope.row)">
  404. {{scope.row.documentName}}
  405. </el-link>
  406. </template>
  407. </el-table-column>
  408. <el-table-column :label="$t('filesize')" prop="size" min-width="80" align="center"></el-table-column>
  409. <el-table-column :label="$t('founder')" prop="creatorName" min-width="60" align="center">
  410. <template slot-scope="scope">
  411. <div>
  412. <span v-if="user.userNameNeedTranslate != 1">{{scope.row.creatorName}}</span>
  413. <span v-if="user.userNameNeedTranslate == 1">
  414. <TranslationOpenDataText type='userName' :openid='scope.row.creatorName'></TranslationOpenDataText>
  415. </span>
  416. </div>
  417. </template>
  418. </el-table-column>
  419. <el-table-column :label="$t('creationtime')" prop="indate" min-width="140" align="center">
  420. <template slot-scope="scope">
  421. <span>{{scope.row.indate}}</span>
  422. </template>
  423. </el-table-column>
  424. <el-table-column :label="$t('operation')" min-width="40" fixed="right">
  425. <template slot-scope="scope">
  426. <el-link :href="scope.row.url" :download="scope.row.documentName" type="primary" style="margin-right:7px">{{ $t('other.download') }}</el-link>
  427. </template>
  428. </el-table-column>
  429. </el-table>
  430. <div slot="footer" class="dialog-footer">
  431. <el-button type="primary" size="small" :disabled="tableMultipleSelection.length == 0" :loading="viewFilesAndReviewThemAdoptLoading" @click="viewFilesAndReviewThemRejectCli(1)">通过</el-button>
  432. <el-button type="danger" size="small" :disabled="tableMultipleSelection.length == 0" @click="viewFilesAndReviewThemReject()">驳回</el-button>
  433. </div>
  434. </el-dialog>
  435. <el-dialog title="文件驳回" :visible.sync="viewFilesAndReviewThemRejectVisable" width="800px">
  436. <el-input type="textarea" :rows="5" placeholder="请输入驳回原因" v-model.trim="viewFilesAndReviewThemRejectVal" :maxlength="50">
  437. </el-input>
  438. <div slot="footer" class="dialog-footer">
  439. <el-button type="primary" size="small" @click="viewFilesAndReviewThemRejectCli(2)" :loading="viewFilesAndReviewThemRejectValLoading">确定</el-button>
  440. </div>
  441. </el-dialog>
  442. </section>
  443. </template>
  444. <style scoped lang="scss">
  445. @import "../../assets/scss/handle";
  446. .input-with-select .el-input-group__prepend {
  447. background-color: #fff;
  448. }
  449. .line {
  450. padding:10px;
  451. }
  452. .line span{
  453. font-size:18px;
  454. }
  455. .line span:nth-child(even){
  456. float:right;
  457. }
  458. .classification {
  459. width: 120px;
  460. border-right: 1px solid #f2f2f2;
  461. display: flex;
  462. flex-wrap: wrap;
  463. padding-top: 20px;
  464. }
  465. .classification p{
  466. width: 120px;
  467. text-align: center;
  468. line-height: 50px;
  469. margin: 0;
  470. cursor: pointer;
  471. }
  472. .classification p:hover {
  473. background: #dddddd;
  474. }
  475. .on {
  476. @include font_color("color");
  477. }
  478. .acl{
  479. display: inline-block;
  480. width: 300px;
  481. height: 22px;
  482. overflow: hidden;
  483. white-space: nowrap;
  484. text-overflow: ellipsis;
  485. display: flex;
  486. align-items: center;
  487. margin: 0;
  488. padding: 0;
  489. line-height: 0;
  490. }
  491. .cal {
  492. @include font_color("color");
  493. width: 300px;
  494. overflow: hidden;
  495. white-space: nowrap;
  496. text-overflow: ellipsis;
  497. }
  498. .autodatespan{
  499. padding: 1.5px 2.5px;
  500. width: 90px;
  501. height: 16px;
  502. line-height: 16px;
  503. text-align: center;
  504. display: block;
  505. }
  506. .redwarningspan{
  507. background: #e62412;
  508. color: #fff;
  509. border-radius: 3px;
  510. }
  511. /* p {
  512. margin: 0 !important;
  513. } */
  514. </style>
  515. <style lang="scss" scoped>
  516. .counli {
  517. em {
  518. font-style: normal;
  519. display: inline-block;
  520. margin-left: 9%;
  521. }
  522. span {
  523. float: right;
  524. }
  525. }
  526. .carts {
  527. position: relative;
  528. .el-image{
  529. border-radius: 50%;
  530. float: left;
  531. width: 20%;
  532. }
  533. i {
  534. width: 30px;
  535. height: 30px;
  536. // background: #778899;
  537. display: inline-block;
  538. float: left;
  539. border-radius:50%;
  540. font-style:normal;
  541. font-size: 12px;
  542. line-height: 30px;
  543. text-align: center;
  544. color: #fff;
  545. background: #778899;
  546. overflow: hidden;
  547. }
  548. div {
  549. text-align: left;
  550. p {
  551. text-align: left;
  552. margin-left: 10px;
  553. margin-left: 13%;
  554. }
  555. em {
  556. display: block;
  557. font-style: normal;
  558. margin-left: 13%;
  559. }
  560. }
  561. span {
  562. font-size: 10px;
  563. float: right;
  564. margin-top: -40px;
  565. }
  566. }
  567. .issue {
  568. // height: 20%;
  569. // position: relative;
  570. // z-index: 4;
  571. .zh{
  572. position: relative;
  573. width: 100%;
  574. height: 100%;
  575. }
  576. .textareays {
  577. background: #000;
  578. height: 140px;
  579. border: 0;
  580. .el-textarea__inner {
  581. height: 85%;
  582. }
  583. }
  584. .issue-button {
  585. position: absolute;
  586. bottom: 20px;
  587. right: 20px;
  588. }
  589. }
  590. .inputDeep {
  591. position: absolute;
  592. bottom: 85px;
  593. width: 95%;
  594. margin: 0 12px;
  595. }
  596. .inputDeep .el-textarea .el-textarea__inner{
  597. border: 0 !important;
  598. resize: none !important;
  599. }
  600. .inputDeeps .el-textarea__inner {
  601. border: 0 !important;
  602. resize: none !important;
  603. }
  604. .scop_span {
  605. display: inline-block;
  606. padding: 2px 5px;
  607. }
  608. </style>
  609. <script>
  610. import { error } from 'dingtalk-jsapi';
  611. import util from "../../common/js/util";
  612. // 引入自定义组件
  613. import selectCat from "@/components/select.vue"
  614. // 引入自定义级联组件
  615. import vueCascader from "@/components/cascader.vue"
  616. import cascaderOption from "@/components/cascaderOption.vue"
  617. import taskComponent from "@/components/taskComponent.vue"
  618. // 富文本样式
  619. import 'quill/dist/quill.core.css'
  620. import 'quill/dist/quill.snow.css'
  621. import 'quill/dist/quill.bubble.css'
  622. // 导入富文本
  623. import { quillEditor } from 'vue-quill-editor'
  624. import { getThemeColor } from '@/utils/commonMethod.js'
  625. export default {
  626. name: "two-list-headerslots",
  627. display: "Two list header slot",
  628. order: 14,
  629. components: {
  630. // draggable,
  631. // // editor,
  632. // FileCenter,
  633. // ProjectInfo,
  634. // Summary,
  635. // Earning,
  636. quillEditor, // 富文本
  637. selectCat,
  638. taskComponent,
  639. vueCascader,
  640. cascaderOption
  641. },
  642. data() {
  643. return {
  644. meeting: false,
  645. causeRejectionDialog: false,
  646. causeRejectionForm: {
  647. cause: '',
  648. responsible: []
  649. },
  650. isDeleting: true,
  651. showOrNot: false,
  652. typeField: null,
  653. searchField: '0',
  654. keyword:null,
  655. user: JSON.parse(sessionStorage.getItem("user")),
  656. permissions: JSON.parse(sessionStorage.getItem("permissions")),
  657. userDetailVisible: false,
  658. userDetail:{},
  659. date: new Date(),
  660. users: [],
  661. participator:[],
  662. tableHeight: 0,
  663. listLoading: false,
  664. total: 0,
  665. page: 1,
  666. size: 20,
  667. list: [],
  668. subProjectVisible: false,
  669. subProjectList: [],//子项目列表
  670. currentProject:{},
  671. addSubProject: false,
  672. addFormVisible: false,
  673. addLoading: false,
  674. title: "",
  675. addForm: {
  676. name: '',
  677. userId: [],
  678. },
  679. rules: {
  680. name: [{ required: true, message: this.$t('Pleaseenteraprojectname'), trigger: "blur" }],
  681. },
  682. idx: 1,
  683. taskDetails: false,
  684. addForm: {
  685. name: '',
  686. },
  687. rules: {
  688. name: [{ required: true, message: this.$t('pleaseenteragroupname'), trigger: "blur" }],
  689. },
  690. rules2: {
  691. stagesName: [{ required: true, message: this.$t('pleaseenteratasklistname'), trigger: "blur" }],
  692. },
  693. taskRules : {
  694. name: [{ required: true, message: this.$t('enterthetaskcontent'), trigger: "blur" }],
  695. },
  696. sleectId: null,
  697. sleectProjectId: null,
  698. sidebarIndex: null, // 侧边栏索引
  699. url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
  700. count: 0,
  701. textarea2: '',
  702. taskId: null,
  703. commentList: [],
  704. radio: 0,
  705. critic: [], // 评论头像的数组
  706. editorOption: { // 富文本框里面的默认值
  707. placeholder: this.$t('pleaseentethetext'),
  708. modules: {
  709. toolbar:[
  710. ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
  711. // ['blockquote', 'code-block'], //引用,代码块
  712. [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
  713. // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
  714. // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
  715. // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
  716. // [{ 'direction': 'rtl' }], // 文本方向
  717. [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
  718. [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
  719. [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
  720. // [{ 'font': [] }], //字体
  721. [{ 'align': [] }], //对齐方式
  722. ['clean'], //清除字体样式
  723. // ['image','video'] //上传图片、上传视频
  724. ['image'] //上传图片、上传视频
  725. ], //工具栏设置
  726. },
  727. theme: 'snow',
  728. },
  729. textContent: true, // 控制提交
  730. times: null,
  731. text2: '',
  732. innerVisibless: false, // 任务展示弹出层
  733. activities: [{
  734. content: this.$t('normals'),
  735. timestamp: this.$t('hoursago'),
  736. size: 'large',
  737. type: 'primary',
  738. icon: 'el-icon-circle-check',
  739. color: '#409EFF'
  740. }, {
  741. content: this.$t('withinthetimelimit'),
  742. timestamp: this.$t('hoursago8'),
  743. color: '#F87872'
  744. }],
  745. ProgressList: [],
  746. checkboxGrounp: [], // 选中人的数据
  747. checkLists: [], // 选中人数据的ID
  748. taskIid: null,
  749. 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')},
  750. {id:5,name:this.$t('createdthetask')},{id:6,name:this.$t('missionIwason')},{id:7,name:this.$t('todaytask')},{id:8,name:this.$t('taskthatisoverdue')}],
  751. importanceList:[{id:0,name:this.$t('yi-ban')},{id:1,name:this.$t('zhong-yao')},{id:2,name:this.$t('jin-ji')},],
  752. 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"}],
  753. taskTypeColor:[getThemeColor(),'#8613ad','#bf0404'],
  754. taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
  755. taskStatusList:[this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone')],
  756. //优先级
  757. taskLevelColor:['#262626','#E6A23C','#F56C6C'],
  758. stageList: '',
  759. selectedGroup:{},
  760. dateClass: true,
  761. dateType: 0,
  762. dateSelect: [],
  763. groupName: '',
  764. groupNameList: [],
  765. departmentList: [],
  766. deptId: [],
  767. dynamicTab: true,
  768. dailyList: [],
  769. askComponentFlg: false,
  770. integrationTask: {},
  771. integrationTaskNingwai: {},
  772. // 会议时间
  773. meetingStartValue: '',
  774. meetingEndValue: '',
  775. toMeetTaskId:'',
  776. // 筛选条件
  777. screenProjectId: '',
  778. screenTaskGroupingId: '',
  779. screenPersonnelId: '',
  780. allProjectList: [],
  781. exportTaskLoading: false,
  782. screenDeptId: [],
  783. // 待审核文件
  784. documentRadios: '待我审核',
  785. documentReview: [],
  786. documentReviewLoading: false,
  787. auditFileTaskName: '',
  788. viewFilesAndReviewThemVisable: false,
  789. viewFilesAndReviewThemList: [],
  790. viewFilesAndReviewThemTableLoading: false,
  791. viewFilesAndReviewThemRejectVisable: false,
  792. viewFilesAndReviewThemRejectList: [],
  793. viewFilesAndReviewThemRejectVal: '',
  794. viewFilesAndReviewThemRejectValLoading: false,
  795. viewFilesAndReviewThemRejectRow: {},
  796. viewFilesAndReviewThemAdoptLoading: false,
  797. viewFilesAndReviewThemkey: 902,
  798. selectFilesed: [], // 列表选择
  799. urgingLoading: false,
  800. tablesKey: 1,
  801. tablesTwoKey: 300,
  802. tableMultipleSelection: []
  803. };
  804. },
  805. methods: {
  806. viewOnline(row) {
  807. sessionStorage.setItem("fileName",row.documentName);
  808. sessionStorage.setItem("fileUrl",row.url);
  809. let routeUrl;
  810. if (row.documentName.endsWith('.doc') || row.documentName.endsWith('.docx')) {
  811. routeUrl = this.$router.resolve({
  812. path: "/viewWord",
  813. params: {}
  814. });
  815. } else if (row.documentName.endsWith('.xls') || row.documentName.endsWith('.xlsx')) {
  816. routeUrl = this.$router.resolve({
  817. path: "/viewExcel",
  818. params: {}
  819. });
  820. }
  821. if (routeUrl != null) {
  822. console.log(routeUrl.href);
  823. window.open(routeUrl.href, '_blank');
  824. } else {
  825. window.open(row.url, '_blank');
  826. }
  827. },
  828. urgingCli() {
  829. const ids = this.selectFilesed.map(item => item.finalChargeId).join(',')
  830. this.urgingLoading = true
  831. this.http.post('/task/sendMsgToChargers',{
  832. ids
  833. },res => {
  834. this.urgingLoading = false
  835. if(res.code == 'ok'){
  836. this.$message.success('催办成功')
  837. this.selectFilesed = []
  838. }else {
  839. this.$message.error(res.msg)
  840. }
  841. },error => { this.$message.error(error), this.urgingLoading = false })
  842. },
  843. documentRadioInput(val) {
  844. this.tablesTwoKey++
  845. this.page = 1
  846. if(val == '待我审核') {
  847. this.getFilesAwaitingReview()
  848. return
  849. }
  850. this.getFilesAwaitingReviewTwo()
  851. },
  852. agentSelectChange(rows) {
  853. this.selectFilesed = rows
  854. },
  855. handleSelectionChange(val) {
  856. this.tableMultipleSelection = val;
  857. },
  858. showReasonForRejection(item) {
  859. const taskId = item.id
  860. this.http.post('/task/getFileRejectReason',{
  861. taskId
  862. },res => {
  863. if(res.code == 'ok'){
  864. // this.$alert(res.data, '驳回原因');
  865. const text = (res.data || []).map(item => {
  866. return `文件【${item.documentName}】的驳回原因为:${item.fileRejectReason}<br/>`
  867. })
  868. this.$alert(text.join(''), '驳回原因', { dangerouslyUseHTMLString: true });
  869. }else {
  870. this.$message.error(res.msg)
  871. }
  872. },error => { this.$message.error(error) })
  873. },
  874. viewFilesAndReviewThemRejectCli(auditStatus = 1) {
  875. if(!this.viewFilesAndReviewThemRejectVal && auditStatus == 2) {
  876. this.$message.error('请输入驳回原因')
  877. return
  878. }
  879. const taskFileIds = this.tableMultipleSelection.map(item => item.id).join(',')
  880. this.viewFilesAndReviewThemRejectValLoading = true
  881. const { id, projectId } = this.viewFilesAndReviewThemRejectRow
  882. this.http.post(auditStatus == 1 ? '/task-files/approveFile' : '/task-files/rejectFile',{
  883. taskFileIds,
  884. reason: auditStatus == 1 ? '' : this.viewFilesAndReviewThemRejectVal
  885. },
  886. res => {
  887. if (res.code == "ok") {
  888. this.viewFilesAndReviewThemRejectList = res.data || []
  889. this.viewFilesAndReviewThemRejectVisable = false
  890. this.viewFilesAndReviewThemVisable = false
  891. this.$message.success('操作成功')
  892. this.getFilesAwaitingReview()
  893. } else {
  894. this.$message({
  895. message: res.msg,
  896. type: "error"
  897. });
  898. }
  899. this.viewFilesAndReviewThemRejectValLoading=false
  900. },
  901. error => {
  902. this.viewFilesAndReviewThemRejectValLoading=false
  903. this.$message({
  904. message: error,
  905. type: "error"
  906. });
  907. });
  908. },
  909. viewFilesAndReviewThemReject() {
  910. this.viewFilesAndReviewThemRejectVal = ''
  911. this.viewFilesAndReviewThemRejectVisable = true
  912. },
  913. parentMeetingCli(id) {
  914. this.meeting = true
  915. if(id) {
  916. this.toMeetTaskId = id
  917. }
  918. console.log(id)
  919. },
  920. getViewFilesAndReviewThemList() {
  921. this.viewFilesAndReviewThemTableLoading = false
  922. // this.http.post('/task-files/getTaskFiles',{taskId:this.viewFilesAndReviewThemRejectRow.id},
  923. this.http.post('/task-files/getUnChargedFilesByTaskId',{taskId:this.viewFilesAndReviewThemRejectRow.id},
  924. res => {
  925. if (res.code == "ok") {
  926. this.viewFilesAndReviewThemkey++
  927. this.viewFilesAndReviewThemRejectList = res.data || []
  928. } else {
  929. this.$message({
  930. message: res.msg,
  931. type: "error"
  932. });
  933. }
  934. this.viewFilesAndReviewThemTableLoading=false
  935. },
  936. error => {
  937. this.viewFilesAndReviewThemTableLoading=false
  938. this.$message({
  939. message: error,
  940. type: "error"
  941. });
  942. });
  943. },
  944. confirmMeeting() {
  945. var date = new Date();
  946. let startTime = this.meetingStartValue
  947. let endTime = this.meetingEndValue
  948. this.http.post('/task//operateMeeting',{taskId:this.toMeetTaskId,startTime:startTime,endTime:endTime},
  949. res => {
  950. if (res.code == "ok") {
  951. this.meeting=false,
  952. this.$message({
  953. message: this.$t('chengGongFaQiHuiYi'),
  954. type: "success"
  955. });
  956. } else {
  957. this.$message({
  958. message: res.msg,
  959. type: "error"
  960. });
  961. }
  962. },
  963. error => {
  964. this.$message({
  965. message: error,
  966. type: "error"
  967. });
  968. });
  969. },
  970. closeBounced(obj) {
  971. if(!obj.backToParentTaskSub) {
  972. this.addFormVisible = false
  973. this.taskComponentFlg = false
  974. if(obj.addSubTask) {
  975. this.addSubTask()
  976. }
  977. if(obj.taskLineClickAbs) {
  978. this.taskLineClick(obj.items)
  979. }
  980. if(obj.deleteTask) {
  981. this.getList()
  982. }
  983. if(obj.showOrNot) {
  984. this.getList()
  985. }
  986. if(obj.submitInsert) {
  987. this.getList()
  988. }
  989. } else {
  990. this.backToParentTask()
  991. }
  992. },
  993. // 获取来自日报
  994. getDailyList(id) {
  995. this.http.post('/report/getTaskReportList',{
  996. // taskId: '22131'
  997. taskId: id
  998. },
  999. res => {
  1000. if (res.code == "ok") {
  1001. this.dailyList = res.data
  1002. } else {
  1003. this.$message({
  1004. message: res.msg,
  1005. type: "error"
  1006. });
  1007. }
  1008. },
  1009. error => {
  1010. this.$message({
  1011. message: error,
  1012. type: "error"
  1013. });
  1014. });
  1015. },
  1016. judgedate(itemD){
  1017. let nowdate = new Date()
  1018. let idate = new Date(itemD + " 23:59:59")
  1019. return nowdate > idate ? true : false
  1020. },
  1021. deleteSubPro(subProject) {
  1022. this.$confirm(this.$t('makesuretodeletethesubproject') + subProject.name + this.$t('ma'),this.$t('deletesubproject'), {
  1023. confirmButtonText: this.$t('btn.determine'),
  1024. cancelButtonText: this.$t('btn.cancel'),
  1025. type: "warning"
  1026. })
  1027. .then(() => {
  1028. this.listLoading = true;
  1029. this.http.post('/sub-project/deleteProject',{
  1030. id: subProject.id
  1031. },
  1032. res => {
  1033. this.listLoading = false;
  1034. if (res.code == "ok") {
  1035. this.$message({
  1036. message: this.$t('message.successfullyDeleted'),
  1037. type: "success"
  1038. });
  1039. this.subProject(this.currentProject);
  1040. } else {
  1041. this.$message({
  1042. message: res.msg,
  1043. type: "error"
  1044. });
  1045. }
  1046. },
  1047. error => {
  1048. this.listLoading = false;
  1049. this.$message({
  1050. message: error,
  1051. type: "error"
  1052. });
  1053. }
  1054. );
  1055. })
  1056. .catch(() => {});
  1057. },
  1058. searchList() {
  1059. this.page = 1;
  1060. this.getList();
  1061. },
  1062. addNewSubProject(subProject) {
  1063. if (subProject == null) {
  1064. this.addForm = {projectId: this.currentProject.id}
  1065. } else {
  1066. this.addForm = subProject;
  1067. }
  1068. this.addSubProject = true;
  1069. },
  1070. exportTaskList(){
  1071. let parameter = {
  1072. status: this.searchField,
  1073. viewId: this.idx,
  1074. pageIndex: this.page,
  1075. pageSize: this.size,
  1076. // type: this.typeField
  1077. projectId: this.screenProjectId,
  1078. groupId: this.screenTaskGroupingId,
  1079. targetUserId: this.screenPersonnelId
  1080. }
  1081. if(this.typeField != 'null' && this.typeField != null && this.typeField != '') {
  1082. parameter.type = this.typeField
  1083. }
  1084. if(this.dateSelect != null && this.dateSelect.length != 0){
  1085. parameter.dateType = this.dateType
  1086. parameter.startDate = this.dateSelect[0]
  1087. parameter.endDate = this.dateSelect[1]
  1088. }
  1089. if(this.deptId.length > 0) {
  1090. parameter.deptId = this.deptId[this.deptId.length - 1]
  1091. } else {
  1092. parameter.deptId = ''
  1093. }
  1094. this.http.post('/task/exportTaskList', parameter,
  1095. res => {
  1096. if (res.code == "ok") {
  1097. var filePath = res.data;
  1098. var fName = this.$t('daiBanRenWuDaoChuXlsx')
  1099. const a = document.createElement('a'); // 创建a标签
  1100. a.setAttribute('download', fName);// download属性
  1101. a.setAttribute('href', filePath);// href链接
  1102. a.click(); //自执行点击事件
  1103. a.remove();
  1104. this.exportLoading = false
  1105. this.byQuarterDialog = false
  1106. } else {
  1107. this.$message({
  1108. message: res.msg,
  1109. type: "error"
  1110. });
  1111. }
  1112. },
  1113. error => {
  1114. this.$message({
  1115. message: error,
  1116. type: "error"
  1117. });
  1118. });
  1119. },
  1120. //显示子项目
  1121. subProject(item) {
  1122. this.subProjectVisible = true;
  1123. this.currentProject = item;
  1124. this.http.post('/sub-project/list', {
  1125. projectId: item.id
  1126. },
  1127. res => {
  1128. if (res.code == "ok") {
  1129. this.subProjectList = res.data;
  1130. } else {
  1131. this.$message({
  1132. message: res.msg,
  1133. type: "error"
  1134. });
  1135. }
  1136. },
  1137. error => {
  1138. this.$message({
  1139. message: error,
  1140. type: "error"
  1141. });
  1142. });
  1143. },
  1144. //显示用户详情
  1145. showUser(userId) {
  1146. this.userDetailVisible = true;
  1147. this.http.post(this.port.manage.userDetail, {
  1148. userId: userId
  1149. },
  1150. res => {
  1151. if (res.code == "ok") {
  1152. this.userDetail = res.data;
  1153. } else {
  1154. this.$message({
  1155. message: res.msg,
  1156. type: "error"
  1157. });
  1158. }
  1159. },
  1160. error => {
  1161. this.$message({
  1162. message: error,
  1163. type: "error"
  1164. });
  1165. });
  1166. },
  1167. //选择参与人
  1168. changeParticipator() {
  1169. //检查是否在参与人中,如果没有需要加入到参与人中
  1170. // console.log(this.addForm.userId);
  1171. var find = false;
  1172. this.participator = [];
  1173. this.addForm.userId.forEach(u=>{
  1174. var findUser = this.users.filter(au=>au.id == u)[0];
  1175. this.participator.push(findUser);
  1176. })
  1177. },
  1178. getUsers() {
  1179. // this.http.post(this.port.manage.list, {
  1180. // departmentId: -1,
  1181. // pageIndex: 1,
  1182. // // pageSize: 99999
  1183. // pageSize: -1
  1184. // },
  1185. this.http.post('/user/getSimpleActiveUserList', {},
  1186. res => {
  1187. if (res.code == "ok") {
  1188. this.users = res.data;
  1189. } else {
  1190. this.$message({
  1191. message: res.msg,
  1192. type: "error"
  1193. });
  1194. }
  1195. },
  1196. error => {
  1197. this.$message({
  1198. message: error,
  1199. type: "error"
  1200. });
  1201. });
  1202. },
  1203. addStagePost() {
  1204. let param = JSON.parse(JSON.stringify(this.stageForm));
  1205. param.taskList = [];
  1206. this.http.post('/stages/save',param,
  1207. res => {
  1208. if (res.code == "ok") {
  1209. this.stageList = res.data;
  1210. this.addStageDialog = false;
  1211. } else {
  1212. this.$message({
  1213. message: res.msg,
  1214. type: "error"
  1215. });
  1216. }
  1217. },
  1218. error => {
  1219. this.$message({
  1220. message: error,
  1221. type: "error"
  1222. });
  1223. });
  1224. },
  1225. //分页
  1226. handleCurrentChange(val) {
  1227. this.page = val;
  1228. this.getList();
  1229. },
  1230. handleSizeChange(val) {
  1231. this.size = val;
  1232. this.getList();
  1233. },
  1234. //获取项目列表
  1235. getList() {
  1236. console.log('执行函数', this.screenDeptId)
  1237. this.listLoading = true;
  1238. let parameter = {
  1239. status: this.searchField,
  1240. viewId: this.idx,
  1241. pageIndex: this.page,
  1242. pageSize: this.size,
  1243. // type: this.typeField
  1244. projectId: this.screenProjectId,
  1245. groupId: this.screenTaskGroupingId,
  1246. targetUserId: this.screenPersonnelId
  1247. }
  1248. console.log(parameter)
  1249. if(this.typeField != 'null' && this.typeField != null && this.typeField != '') {
  1250. parameter.type = this.typeField
  1251. }
  1252. if(this.dateSelect != null && this.dateSelect.length != 0){
  1253. parameter.dateType = this.dateType
  1254. parameter.startDate = this.dateSelect[0]
  1255. parameter.endDate = this.dateSelect[1]
  1256. }
  1257. // if(this.user.companyId == '428') {
  1258. // parameter.groupName = this.groupName
  1259. // }
  1260. if(this.deptId.length > 0) {
  1261. parameter.deptId = this.deptId[this.deptId.length - 1]
  1262. } else {
  1263. parameter.deptId = ''
  1264. }
  1265. if(this.screenDeptId.length > 0) {
  1266. parameter.deptId = this.screenDeptId[this.screenDeptId.length - 1]
  1267. }
  1268. this.http.post('/task/listByPage', parameter,
  1269. res => {
  1270. this.listLoading = false;
  1271. if(res.code == 'ok') {
  1272. if(this.user.userNameNeedTranslate == 1) {
  1273. for(var i in res.data.records) {
  1274. let arr = []
  1275. if(res.data.records[i].executorName) {
  1276. arr = res.data.records[i].executorName.split(',')
  1277. }
  1278. res.data.records[i].executorNameList = arr
  1279. }
  1280. }
  1281. // this.tablesKey++
  1282. this.list = (res.data.records || []).map(item => {
  1283. let str = item.finalChargeStatusText || ''
  1284. let arr = str.split(/\$|=/).filter(item => item && item !== 'userName');
  1285. return {
  1286. ...item,
  1287. finalChargeStatusTextList: arr || []
  1288. }
  1289. })
  1290. this.total = res.data.total
  1291. } else {
  1292. this.$message({
  1293. message: res.msg,
  1294. type: "error"
  1295. });
  1296. }
  1297. },
  1298. error => {
  1299. this.listLoading = false;
  1300. this.$message({
  1301. message: error,
  1302. type: "error"
  1303. });
  1304. })
  1305. },
  1306. getFilesAwaitingReview() {
  1307. this.documentReviewLoading = true;
  1308. let parameter = {
  1309. pageIndex: this.page,
  1310. pageSize: this.size,
  1311. projectId: this.screenProjectId,
  1312. taskName: this.auditFileTaskName
  1313. }
  1314. if(this.deptId.length > 0) {
  1315. parameter.deptId = this.deptId[this.deptId.length - 1]
  1316. } else {
  1317. parameter.deptId = ''
  1318. }
  1319. this.http.post('/task/getTaskChargePage', parameter,
  1320. res => {
  1321. this.documentReviewLoading = false;
  1322. if(res.code == 'ok') {
  1323. this.documentReview = (res.data.records || []).map((item) => {
  1324. return {
  1325. ...item,
  1326. id: item.taskId
  1327. }
  1328. })
  1329. // this.tablesTwoKey++
  1330. this.total = res.data.total
  1331. } else {
  1332. this.$message({
  1333. message: res.msg,
  1334. type: "error"
  1335. });
  1336. }
  1337. },
  1338. error => {
  1339. this.documentReviewLoading = false;
  1340. this.$message({
  1341. message: error,
  1342. type: "error"
  1343. });
  1344. })
  1345. },
  1346. getFilesAwaitingReviewTwo() {
  1347. this.documentReviewLoading = true;
  1348. let parameter = {
  1349. pageIndex: this.page,
  1350. pageSize: this.size,
  1351. projectId: this.screenProjectId,
  1352. taskName: this.auditFileTaskName
  1353. }
  1354. if(this.deptId.length > 0) {
  1355. parameter.deptId = this.deptId[this.deptId.length - 1]
  1356. } else {
  1357. parameter.deptId = ''
  1358. }
  1359. this.http.post('/task/getOtherTaskChargePage', parameter,
  1360. res => {
  1361. this.documentReviewLoading = false;
  1362. if(res.code == 'ok') {
  1363. this.documentReview = (res.data.records || []).map((item) => {
  1364. return {
  1365. ...item,
  1366. executorList: [{ executorName: item.creatorName }],
  1367. id: item.taskId
  1368. }
  1369. })
  1370. // this.tablesTwoKey++
  1371. this.total = res.data.total
  1372. } else {
  1373. this.$message({
  1374. message: res.msg,
  1375. type: "error"
  1376. });
  1377. }
  1378. },
  1379. error => {
  1380. this.documentReviewLoading = false;
  1381. this.$message({
  1382. message: error,
  1383. type: "error"
  1384. });
  1385. })
  1386. },
  1387. // 导出任务
  1388. exportTask() {
  1389. // console.log('执行代码')
  1390. this.exportTaskLoading = true
  1391. let url = '' // 导出连接
  1392. let parameter = {
  1393. status: this.searchField,
  1394. viewId: this.idx,
  1395. pageIndex: this.page,
  1396. pageSize: this.size,
  1397. // type: this.typeField
  1398. projectId: this.screenProjectId,
  1399. groupId: this.screenTaskGroupingId,
  1400. targetUserId: this.screenPersonnelId
  1401. }
  1402. if(this.typeField != 'null' && this.typeField != null && this.typeField != '') {
  1403. parameter.type = this.typeField
  1404. }
  1405. if(this.dateSelect != null && this.dateSelect.length != 0){
  1406. parameter.dateType = this.dateType
  1407. parameter.startDate = this.dateSelect[0]
  1408. parameter.endDate = this.dateSelect[1]
  1409. }
  1410. if(this.deptId.length > 0) {
  1411. parameter.deptId = this.deptId[this.deptId.length - 1]
  1412. } else {
  1413. parameter.deptId = ''
  1414. }
  1415. this.http.post(url, parameter,
  1416. res => {
  1417. if (res.code == "ok") {
  1418. this.exportTaskLoading = false;
  1419. var aTag = document.createElement('a');
  1420. aTag.download = this.$t('navigation.upcomingTasks');
  1421. aTag.href = res.data;
  1422. aTag.click();
  1423. } else {
  1424. this.exportTaskLoading = false;
  1425. this.$message({
  1426. message: res.msg,
  1427. type: "error"
  1428. });
  1429. }
  1430. },
  1431. error => {
  1432. this.$message({
  1433. message: error,
  1434. type: "error"
  1435. });
  1436. this.exportTaskLoading = false;
  1437. });
  1438. },
  1439. //显示新增界面
  1440. handleAdd(i, item) {
  1441. if(i == -1) {
  1442. this.title = this.$t('addWork');
  1443. this.addForm = {
  1444. name: '',
  1445. userId: [],
  1446. code:'',
  1447. inchargerId:null,
  1448. }
  1449. } else {
  1450. this.title = this.$t('modifytheproject');
  1451. var list = item.participator , arr = [];
  1452. for(var j in list) {
  1453. arr.push(list[j].id)
  1454. }
  1455. this.addForm = {
  1456. id: item.id,
  1457. name: item.projectName,
  1458. userId: arr,
  1459. code:item.projectCode,
  1460. inchargerId: item.inchargerId
  1461. }
  1462. this.changeParticipator();
  1463. }
  1464. this.addFormVisible = true;
  1465. },
  1466. //提交子项目创建修改请求
  1467. submitInsertSubProject () {
  1468. this.$refs.form2.validate(valid => {
  1469. if (valid) {
  1470. this.http.post('/sub-project/saveOrUpdate',this.addForm,
  1471. res => {
  1472. if (res.code == "ok") {
  1473. this.$message({
  1474. message: this.$t('operationissuccessful'),
  1475. type: "success"
  1476. });
  1477. this.subProject(this.currentProject);
  1478. this.addSubProject = false;
  1479. } else {
  1480. this.$message({
  1481. message: res.msg,
  1482. type: "error"
  1483. });
  1484. }
  1485. },
  1486. error => {
  1487. this.listLoading = false;
  1488. this.$message({
  1489. message: error,
  1490. type: "error"
  1491. });
  1492. }
  1493. );
  1494. }
  1495. });
  1496. },
  1497. // submitInsert() {
  1498. // console.log("111");
  1499. // this.$refs.form1.validate(valid => {
  1500. // if (valid) {
  1501. // this.addLoading = true;
  1502. // let formData = new FormData();
  1503. // formData.append("name", this.addForm.name);
  1504. // if(this.addForm.id != null) {
  1505. // formData.append("id", this.addForm.id);
  1506. // }
  1507. // if(this.addForm.userId.length != 0) {
  1508. // for(var j in this.addForm.userId) {
  1509. // formData.append("userId", this.addForm.userId[j]);
  1510. // }
  1511. // }
  1512. // if(this.addForm.inchargerId != null) {
  1513. // formData.append("inchargerId", this.addForm.inchargerId);
  1514. // }
  1515. // if(this.addForm.code != null) {
  1516. // formData.append("code", this.addForm.code);
  1517. // }
  1518. // formData.delete("refTaskList")
  1519. // console.log('走了')
  1520. // this.http.uploadFile(this.port.project.add,formData,
  1521. // res => {
  1522. // this.addLoading = false;
  1523. // if (res.code == "ok") {
  1524. // this.$message({
  1525. // message: this.addForm.id!=null?'修改':'创建'+"成功",
  1526. // type: "success"
  1527. // });
  1528. // this.addFormVisible = false;
  1529. // this.getList();
  1530. // } else {
  1531. // this.$message({
  1532. // message: res.msg,
  1533. // type: "error"
  1534. // });
  1535. // }
  1536. // },
  1537. // error => {
  1538. // this.addLoading = false;
  1539. // this.$message({
  1540. // message: error,
  1541. // type: "error"
  1542. // });
  1543. // });
  1544. // }
  1545. // });
  1546. // },
  1547. // 删除
  1548. deletePro(i, item) {
  1549. this.$confirm(this.$t('identifytheproject') + item.projectName + this.$t('ma'),this.$t('deletetheproject'), {
  1550. confirmButtonText: this.$t('btn.determine'),
  1551. cancelButtonText: this.$t('btn.cancel'),
  1552. type: "warning"
  1553. })
  1554. .then(() => {
  1555. this.listLoading = true;
  1556. this.http.post(this.port.project.delete,{
  1557. id: item.id
  1558. },
  1559. res => {
  1560. this.listLoading = false;
  1561. if (res.code == "ok") {
  1562. this.$message({
  1563. message: this.$t('message.successfullyDeleted'),
  1564. type: "success"
  1565. });
  1566. this.getList();
  1567. } else {
  1568. this.$message({
  1569. message: res.msg,
  1570. type: "error"
  1571. });
  1572. }
  1573. },
  1574. error => {
  1575. this.listLoading = false;
  1576. this.$message({
  1577. message: error,
  1578. type: "error"
  1579. });
  1580. }
  1581. );
  1582. })
  1583. .catch(() => {});
  1584. },
  1585. detail(i) {
  1586. this.$router.push("/list/" + this.list[i].id + "/" + this.list[i].projectName);
  1587. },
  1588. // 切换当前选项的索引
  1589. switchs(e) {
  1590. this.idx = e
  1591. this.page = 1
  1592. // console.log(this.searchField)
  1593. if([3].includes(e)) {
  1594. this.documentRadios = '待我审核'
  1595. this.getFilesAwaitingReview()
  1596. } else {
  1597. this.getList()
  1598. }
  1599. },
  1600. viewFilesAndReviewThem(item) {
  1601. this.viewFilesAndReviewThemRejectRow = item
  1602. this.viewFilesAndReviewThemVisable = true
  1603. this.tableMultipleSelection = []
  1604. this.getViewFilesAndReviewThemList()
  1605. },
  1606. // 下拉框选择
  1607. hiddens(e) {
  1608. if(e == 1 && (this.dateSelect == null || this.dateSelect.length == 0)){
  1609. return
  1610. }
  1611. // console.log(this.searchField)
  1612. this.page = 1
  1613. if([3].includes(this.idx)) {
  1614. this.getFilesAwaitingReview()
  1615. } else {
  1616. this.getList()
  1617. }
  1618. },
  1619. // 完成
  1620. completes(e, el, obj) {
  1621. console.log(obj)
  1622. let arr = []
  1623. let userArr = []
  1624. if(obj.executorList) {
  1625. for(let i in obj.executorList) {
  1626. if(i == 0) {
  1627. userArr.push(obj.executorList[0].executorId)
  1628. }
  1629. let oobj = {
  1630. name: obj.executorList[i].executorName,
  1631. id: obj.executorList[i].executorId
  1632. }
  1633. arr.push(oobj)
  1634. }
  1635. }
  1636. this.causeRejectionForm = {
  1637. id: e,
  1638. taskStatus: el,
  1639. cause: '',
  1640. responsible: userArr.length > 0 ? userArr : '',
  1641. users: arr
  1642. }
  1643. if(el == 1 && this.user.timeType.restartTaskNeedReason == 1) {
  1644. this.causeRejectionDialog = true
  1645. } else {
  1646. this.restart(this.causeRejectionForm)
  1647. }
  1648. },
  1649. // 重启 和 完成
  1650. restart(obj) {
  1651. let from = {
  1652. id: obj.id,
  1653. taskStatus: obj.taskStatus,
  1654. personLiableIds: obj.userList,
  1655. reason: obj.cause
  1656. }
  1657. this.http.post('/task/finish', from,
  1658. res => {
  1659. this.causeRejectionDialog = false
  1660. if (res.code == "ok") {
  1661. this.$message({
  1662. message: this.$t('operationissuccessful'),
  1663. type: "success"
  1664. });
  1665. this.getList();
  1666. } else {
  1667. this.$message({
  1668. message: res.msg,
  1669. type: "error"
  1670. });
  1671. }
  1672. },
  1673. error => {
  1674. this.causeRejectionDialog = false
  1675. this.listLoading = false;
  1676. this.$message({
  1677. message: error,
  1678. type: "error"
  1679. });
  1680. })
  1681. },
  1682. // 重启任务点击事件
  1683. causeRejectionClick() {
  1684. this.causeRejectionForm.userList = this.causeRejectionForm.responsible.toString()
  1685. console.log(this.causeRejectionForm)
  1686. // return
  1687. this.restart(this.causeRejectionForm)
  1688. },
  1689. // 点击任务事件
  1690. editTask(task) {
  1691. this.addFormVisible = true;
  1692. // this.addLoading = false;
  1693. this.title = this.$t('editingtasks');
  1694. this.dynamicTab = true
  1695. this.showOrNot = false
  1696. console.log(task, '<=== 点击的数据', this.integrationTaskNingwai.length)
  1697. const { projectId } = task
  1698. // 自定义组件
  1699. this.integrationTask = {
  1700. id: task.id,
  1701. task: task,
  1702. num: 1,
  1703. curProjectId: projectId || '',
  1704. create: false,
  1705. integrationTaskNingwai: {
  1706. groupId: task.groupId,
  1707. isDesc: false,
  1708. order: "seq",
  1709. projectId: projectId || '',
  1710. },
  1711. taskVue: projectId ? false : true,
  1712. meetingId: this.addForm.meetingId
  1713. }
  1714. this.taskComponentFlg = true
  1715. this.getTaskDetail(task.id);
  1716. // this.getTaskProgressList(task.id); // 获取任务进展列表
  1717. // this.getUsers(); // 获取名单数据
  1718. // this.gain(task); // 获取评论列表
  1719. // this.getDailyList(task.id) // 获取来自日报
  1720. // this.getStageList()
  1721. },
  1722. addExecutorLine() {
  1723. this.addForm.executorListFront.push({executorId:null, planHours:8});
  1724. this.$forceUpdate();
  1725. },
  1726. removeExecutorLine(index) {
  1727. this.addForm.executorListFront.splice(index,1);
  1728. this.$forceUpdate();
  1729. },
  1730. getTaskDetail(id) {
  1731. this.http.post('/task/getTask',{id: id},
  1732. res => {
  1733. if (res.code == "ok") {
  1734. this.addForm = res.data;
  1735. this.addForm.createDate = null;
  1736. this.addForm.indate = null;
  1737. this.addLoading = false;
  1738. this.recentProgressInfo = this.addForm.progress;
  1739. this.addForm.executorListFront = this.addForm.executorList;
  1740. //删除中间传值的变量数组
  1741. delete this.addForm.executorList;
  1742. } else {
  1743. this.$message({
  1744. message: res.msg,
  1745. type: "error"
  1746. });
  1747. }
  1748. },
  1749. error => {
  1750. this.$message({
  1751. message: error,
  1752. type: "error"
  1753. });
  1754. });
  1755. },
  1756. //获取任务进展列表
  1757. getTaskProgressList(taskId) {
  1758. this.taskIid = taskId
  1759. this.http.post('/task-progress/list', {taskId: taskId},
  1760. res => {
  1761. if (res.code == "ok") {
  1762. this.ProgressList = res.data;
  1763. this.recentProgressInfo = res.data[0]
  1764. } else {
  1765. this.$message({
  1766. message: res.msg,
  1767. type: "error"
  1768. });
  1769. }
  1770. }
  1771. );
  1772. },
  1773. getUsers() {
  1774. // console.log(this.port.manage.list)
  1775. // this.http.post(this.port.manage.list, {
  1776. // departmentId: -1,
  1777. // pageIndex: 1,
  1778. // pageSize: 99999
  1779. // },
  1780. this.http.post('/user/getSimpleActiveUserList', {},
  1781. res => {
  1782. if (res.code == "ok") {
  1783. this.users = res.data;
  1784. } else {
  1785. this.$message({
  1786. message: res.msg,
  1787. type: "error"
  1788. });
  1789. }
  1790. },
  1791. error => {
  1792. this.$message({
  1793. message: error,
  1794. type: "error"
  1795. });
  1796. });
  1797. },
  1798. // 获取评论列表
  1799. gain (task) {
  1800. this.commentList = [];
  1801. this.taskId = task.id;
  1802. this.http.post('/task-comment/getList', {taskId: task.id},
  1803. res => {
  1804. if (res.code == "ok") {
  1805. for(var i in res.data) {
  1806. if(res.data[i].content.indexOf('$userName=') != '-1') {
  1807. let obj = {
  1808. msg1: res.data[i].content.split('$')[0],
  1809. msg2: res.data[i].content.split('$')[1].split('=')[1],
  1810. msg3: res.data[i].content.split('$')[2]
  1811. }
  1812. res.data[i].content = obj
  1813. } else {
  1814. if(this.user.userNameNeedTranslate == 1) {
  1815. let obj = {
  1816. msg1: res.data[i].content,
  1817. msg2: '',
  1818. msg3: ''
  1819. }
  1820. res.data[i].content = obj
  1821. }
  1822. }
  1823. }
  1824. this.commentList = res.data
  1825. console.log(res.data, '数据')
  1826. this.sppk(this.commentList) // 获取参与人的方法
  1827. } else {
  1828. this.$message({
  1829. message: res.msg,
  1830. type: "error"
  1831. });
  1832. }
  1833. },
  1834. error => {
  1835. this.$message({
  1836. message: error,
  1837. type: "error"
  1838. });
  1839. });
  1840. },
  1841. // 获取评论参与人
  1842. sppk(comit) {
  1843. var sk = []
  1844. comit.forEach(function(e){
  1845. sk.push(e.userName)
  1846. })
  1847. this.critic = new Set(sk)
  1848. },
  1849. sss(){
  1850. this.$refs.addRem.style.display="none"
  1851. },
  1852. addprogress(){ // 添加子任务进展事件
  1853. this.$refs.proBox.style.display="block"
  1854. this.$refs.addPro.style.display="none"
  1855. },
  1856. shutPro() { // 关闭任务进展
  1857. this.$refs.addPro.style.display="block"
  1858. this.$refs.addRem.style.display="none"
  1859. this.$refs.proBox.style.display="none"
  1860. },
  1861. addI() { // 打开选择查看
  1862. this.$refs.addRem.style.display="block"
  1863. },
  1864. load() {
  1865. if(this.count >= 0) return
  1866. this.count += 2
  1867. },
  1868. onEditorFocus() {
  1869. this.onEditorBlur()
  1870. },
  1871. kkk(el){
  1872. var k = this.checkLists.indexOf(el.id)
  1873. if (k == -1) {
  1874. this.checkLists.push(el.id)
  1875. } else {
  1876. this.checkLists.splice(k, 1)
  1877. }
  1878. },
  1879. shutPro() { // 关闭任务进展
  1880. this.$refs.addPro.style.display="block"
  1881. this.$refs.addRem.style.display="none"
  1882. this.$refs.proBox.style.display="none"
  1883. },
  1884. addTaskProgress() { //创建任务进展
  1885. var param = {
  1886. taskId: this.taskIid,
  1887. status: this.radio,
  1888. content: this.text2,
  1889. participatorIds: this.checkLists.toString()
  1890. };
  1891. this.http.post('/task-progress/addProgress', param,
  1892. res => {
  1893. if (res.code == "ok") {
  1894. this.shutPro()
  1895. this.getTaskProgressList(this.taskIid)
  1896. this.$message({
  1897. message: this.$t('releasesuccess'),
  1898. type: "success"
  1899. });
  1900. this.checkboxGrounp = [],
  1901. this.checkLists = [],
  1902. this.text2 = '',
  1903. this.radio = 0
  1904. let obj = {
  1905. id: this.taskIid
  1906. }
  1907. this.gain(obj)
  1908. } else {
  1909. this.$message({
  1910. message: res.msg,
  1911. type: "error"
  1912. });
  1913. }
  1914. }
  1915. );
  1916. },
  1917. //删除任务进展
  1918. deleteTaskProgress(id) {
  1919. this.http.post('/task-progress/deleteProgress', {id: id},
  1920. res => {
  1921. if (res.code == "ok") {
  1922. this.getTaskProgressList(this.taskIid)
  1923. this.$message({
  1924. message: this.$t('message.successfullyDeleted'),
  1925. type: "success"
  1926. });
  1927. } else {
  1928. this.$message({
  1929. message: res.msg,
  1930. type: "error"
  1931. });
  1932. }
  1933. }
  1934. );
  1935. },
  1936. //显示子任务创建卡片
  1937. addSubTask() {
  1938. this.addFormVisible = true;
  1939. this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
  1940. this.addLoading = false;
  1941. },
  1942. taskLineClick(row, column, event) {
  1943. this.editTask(row);
  1944. },
  1945. finishTask(task) {
  1946. this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
  1947. res => {
  1948. if (res.code == "ok") {
  1949. if (this.groupType == 0) {
  1950. this.getStageList();
  1951. } else {
  1952. // this.getViewTaskList();
  1953. }
  1954. } else {
  1955. this.$message({
  1956. message: res.msg,
  1957. type: "error"
  1958. });
  1959. }
  1960. },
  1961. error => {
  1962. this.$message({
  1963. message: error,
  1964. type: "error"
  1965. });
  1966. });
  1967. },
  1968. //认领任务
  1969. addAsMyTask(task) {
  1970. this.http.post('/task/addAsMyTask',{id: task.id},
  1971. res => {
  1972. if (res.code == "ok") {
  1973. this.getStageList();
  1974. } else {
  1975. this.$message({
  1976. message: res.msg,
  1977. type: "error"
  1978. });
  1979. }
  1980. },
  1981. error => {
  1982. this.$message({
  1983. message: error,
  1984. type: "error"
  1985. });
  1986. });
  1987. },
  1988. timess(){
  1989. var date = new Date()
  1990. let Y = date.getFullYear()
  1991. let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
  1992. let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
  1993. this.times = `${Y}-${M}-${D}`
  1994. },
  1995. showSubTaskList(task) {
  1996. this.subTaskVisible = true;
  1997. this.addForm = task;
  1998. },
  1999. addTask(stage) {
  2000. this.addFormVisible = true;
  2001. // this.addForm = {projectId: stage.projectId, groupId: stage.groupId, stagesId: stage.id, taskLevel:0, planHours: 8, taskType: 0};
  2002. this.addForm = {projectId: '', groupId: '', stagesId: '', taskLevel:0, planHours: 8, taskType: 0};
  2003. this.addLoading = false;
  2004. this.title=this.$t('createtask ');
  2005. this.commentList = [];
  2006. this.showOrNot = true
  2007. let obj = {
  2008. create: true,
  2009. addForm: this.addForm,
  2010. executorListFront: [{executorId:null, planHours:8}],
  2011. stage: this.addForm,
  2012. integrationTaskNingwai: this.integrationTaskNingwai,
  2013. taskVue: true,
  2014. meetingId: this.addForm.meetingId
  2015. }
  2016. this.integrationTask = obj
  2017. this.taskComponentFlg = true
  2018. },
  2019. addStage() {
  2020. this.addStageDialog = true;
  2021. this.stageForm = {groupId: this.selectedGroup.id, projectId: this.curProjectId};
  2022. },
  2023. // 获得焦点时触发
  2024. onEditorBlur(){
  2025. let theEle = this.$refs.text; // 获取元素
  2026. var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
  2027. var arrImg = ''
  2028. for (var j = 0; j < img.length; j++) {
  2029. // 正则匹配,摘出img标签下的src里的内容,即capture
  2030. img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
  2031. arrImg += capture
  2032. });
  2033. }
  2034. // 原来的字符流大小,单位为字节
  2035. var strLen = arrImg.length;
  2036. // 计算后得到的文件流大小,单位为字节
  2037. var fileSize=parseInt(strLen-(strLen/8)*2);
  2038. var size = "";
  2039. size = (fileSize/1024/1024).toFixed(2);
  2040. if (size > 2){
  2041. this.textContent = false
  2042. this.$message({
  2043. showClose: true,
  2044. message: this.$t('imageexceeds2MBpleaseuploaditagain'),
  2045. type: 'warning'
  2046. });
  2047. }
  2048. this.textContent = true
  2049. },
  2050. backToParentTask() {
  2051. console.log('我是不是出发了')
  2052. this.getTaskDetail(this.addForm.parentTid);
  2053. this.$refs.thskComponents.backToParentTask()
  2054. },
  2055. // 点击发布
  2056. release() {
  2057. if(this.textarea2.length <= 0) return this.$message({message: this.$t('pleaseentercontent'), type: "error"})
  2058. this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
  2059. res => {
  2060. if(res.code == "ok"){
  2061. if(res.data.content.indexOf('$userName=') != '-1') {
  2062. let obj = {
  2063. msg1: res.data.content.split('$')[0],
  2064. msg2: res.data.content.split('$')[1].split('=')[1],
  2065. msg3: res.data.content.split('$')[2]
  2066. }
  2067. res.data.content = obj
  2068. } else {
  2069. if(this.user.userNameNeedTranslate == 1) {
  2070. let obj = {
  2071. msg1: res.data.content,
  2072. msg2: '',
  2073. msg3: ''
  2074. }
  2075. res.data.content = obj
  2076. }
  2077. }
  2078. this.commentList.push(res.data)
  2079. this.sppk(this.commentList)
  2080. this.textarea2 = ""
  2081. this.contRoll() // 滚动到底部
  2082. } else {
  2083. this.$message({
  2084. message: res.msg,
  2085. type: "error"
  2086. });
  2087. }
  2088. },
  2089. error => {
  2090. this.$message({
  2091. message: error,
  2092. type: "error"
  2093. });
  2094. })
  2095. },
  2096. // 滚动到底部
  2097. contRoll(){
  2098. this.$nextTick(() => {
  2099. this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
  2100. })
  2101. },
  2102. submitInsert() {
  2103. if (this.textContent !== true) return this.$message({
  2104. showClose: true,
  2105. message: this.$t('pictureistoolargepleaseuploaditagain'),
  2106. type: 'warning'
  2107. });
  2108. //检查是有重名的执行人
  2109. var exeList = this.addForm.executorListFront;
  2110. for (var i=0;i<exeList.length;i++) {
  2111. var findSameUser = false;
  2112. for (var j=i+1;j<exeList.length; j++) {
  2113. if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
  2114. findSameUser = true;
  2115. break;
  2116. }
  2117. }
  2118. if (findSameUser) {
  2119. return this.$message({
  2120. showClose: true,
  2121. message: this.$t('executorhasduplication'),
  2122. type: 'error'
  2123. });
  2124. }
  2125. }
  2126. this.$refs.form1.validate(valid => {
  2127. if (valid) {
  2128. delete this.addForm.subTaskList;
  2129. delete this.addForm.progress;
  2130. delete this.addForm.refTaskList;
  2131. this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
  2132. this.addLoading = true;
  2133. this.http.post('/task/save',this.addForm,
  2134. res => {
  2135. this.addLoading = false
  2136. if (res.code == "ok") {
  2137. this.$message({
  2138. message: this.$t('message.submittedSuccessfully'),
  2139. type: "success"
  2140. });
  2141. if (this.addForm.parentTid == null) {
  2142. this.addFormVisible = false;
  2143. if (this.groupType == 0) {
  2144. this.getStageList();
  2145. } else {
  2146. // this.getViewTaskList();
  2147. }
  2148. } else {
  2149. this.backToParentTask();
  2150. }
  2151. this.getList()
  2152. } else {
  2153. this.$message({
  2154. message: res.msg,
  2155. type: "error"
  2156. });
  2157. }
  2158. },
  2159. error => {
  2160. this.addLoading = false
  2161. this.$message({
  2162. message: error,
  2163. type: "error"
  2164. });
  2165. }
  2166. );
  2167. }
  2168. });
  2169. },
  2170. //加载项目内的任务列表
  2171. getStageList() {
  2172. // console.log('进来了')
  2173. this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
  2174. res => {
  2175. if (res.code == "ok") {
  2176. this.stageList = res.data.list;
  2177. // console.log('触发获取任务列表函数')
  2178. this.timess() // 处理时间的方法
  2179. } else {
  2180. this.$message({
  2181. message: res.msg,
  2182. type: "error"
  2183. });
  2184. }
  2185. },
  2186. error => {
  2187. this.$message({
  2188. message: error,
  2189. type: "error"
  2190. });
  2191. });
  2192. },
  2193. //删除当前编辑的任务
  2194. deleteTask() {
  2195. var warning='';
  2196. if (this.addForm.subTaskList.length > 0) {
  2197. warning=this.$t('currenttaskanditssubtasks');
  2198. } else {
  2199. warning=this.$t('wanttodeletethecurrent task');
  2200. }
  2201. this.$confirm(warning, this.$t('other.prompts'), {
  2202. //type: 'warning'
  2203. }).then(() => {
  2204. this.isDeleting = true;
  2205. this.http.post('/task/delete',{id: this.addForm.id},
  2206. res => {
  2207. this.isDeleting = false;
  2208. if (res.code == "ok") {
  2209. this.addFormVisible = false;
  2210. // this.getStageList();
  2211. this.getList();
  2212. } else {
  2213. this.$message({
  2214. message: res.msg,
  2215. type: "error"
  2216. });
  2217. }
  2218. },
  2219. error => {
  2220. this.isDeleting = false;
  2221. this.$message({
  2222. message: error,
  2223. type: "error"
  2224. });
  2225. });
  2226. });
  2227. },
  2228. chan() {
  2229. // console.log(this.critic)
  2230. },
  2231. getSthForSb() {
  2232. this.http.post('/task/getGroupNameList ',{},
  2233. res => {
  2234. if (res.code == "ok") {
  2235. console.log('看看是', res.data)
  2236. this.groupNameList = res.data
  2237. } else {
  2238. this.$message({
  2239. message: res.msg,
  2240. type: "error"
  2241. });
  2242. }
  2243. },
  2244. error => {
  2245. this.$message({
  2246. message: error,
  2247. type: "error"
  2248. });
  2249. });
  2250. },
  2251. // 获取部门
  2252. getDepartmentList() {
  2253. this.http.post( this.port.manage.depList, {},
  2254. res => {
  2255. if (res.code == "ok") {
  2256. let dptlist = JSON.parse(JSON.stringify(res.data));
  2257. this.departmentList = this.changeArr(dptlist);
  2258. } else {
  2259. this.$message({
  2260. message: res.msg,
  2261. type: "error"
  2262. });
  2263. }
  2264. },error => {
  2265. this.$message({
  2266. message: error,
  2267. type: "error"
  2268. });
  2269. });
  2270. },
  2271. changeArr(arr) {
  2272. for (var i = 0; i < arr.length; i++) {
  2273. if(arr[i].id != -1 && arr[i].id != 0) {
  2274. if (arr[i].children != null && arr[i].children.length>0) {
  2275. arr[i].children = this.changeArr(arr[i].children);
  2276. }
  2277. arr[i].id && (arr[i].value = arr[i].id);
  2278. delete arr[i].id;
  2279. }
  2280. }
  2281. for(var i in arr) {
  2282. if(arr[i].id == -1 || arr[i].id == 0) {
  2283. arr.splice(i,1)
  2284. }
  2285. }
  2286. return arr;
  2287. },
  2288. selectCal(obj) {
  2289. if(obj.distinction == '1') {
  2290. this.addForm.executorListFront[obj.index].executorId = obj.id
  2291. } else if(obj.distinction == '5') {
  2292. let arr = []
  2293. for(var i in obj.arrUserList) {
  2294. arr.push(obj.arrUserList[i].id)
  2295. }
  2296. this.causeRejectionForm.responsible = arr
  2297. } else if(obj.distinction == '10') {
  2298. this.screenPersonnelId = obj.id
  2299. this.hiddens()
  2300. }
  2301. },
  2302. screenProjectChange() {
  2303. if(!this.screenProjectId) {
  2304. this.screenTaskGroupingId = ''
  2305. } else {
  2306. this.getTaskGroupList()
  2307. }
  2308. this.hiddens()
  2309. },
  2310. // 获取项目列表
  2311. getAllProjectlist() {
  2312. this.http.post('/project/getProjectList',{},
  2313. res => {
  2314. if (res.code == "ok") {
  2315. this.allProjectList = res.data;
  2316. } else {
  2317. this.$message({
  2318. message: res.msg,
  2319. type: "error"
  2320. });
  2321. }
  2322. },
  2323. error => {
  2324. this.$message({
  2325. message: error,
  2326. type: "error"
  2327. });
  2328. });
  2329. },
  2330. // 获取任务分组列表
  2331. getTaskGroupList() {
  2332. this.http.post('/task-group/list',{
  2333. projectId: this.screenProjectId
  2334. },
  2335. res => {
  2336. if (res.code == "ok") {
  2337. this.taskGroupList = res.data;
  2338. } else {
  2339. this.$message({
  2340. message: res.msg,
  2341. type: "error"
  2342. });
  2343. }
  2344. },
  2345. error => {
  2346. this.$message({
  2347. message: error,
  2348. type: "error"
  2349. });
  2350. });
  2351. },
  2352. vueCasader(obj) {
  2353. if(obj.distinction == '1') {
  2354. if(obj.id != '') {
  2355. let arr = []
  2356. arr.push(obj.id)
  2357. this.screenDeptId = arr
  2358. } else {
  2359. this.screenDeptId = []
  2360. }
  2361. this.getList()
  2362. }
  2363. }
  2364. },
  2365. created() {
  2366. let height = window.innerHeight;
  2367. this.tableHeight = height - 195;
  2368. const that = this;
  2369. window.onresize = function temp() {
  2370. that.tableHeight = window.innerHeight - 195;
  2371. };
  2372. },
  2373. mounted() {
  2374. this.getList();
  2375. this.getUsers();
  2376. // this.getDailyList()
  2377. if(this.user.timeType.projectWithDept) {
  2378. this.getDepartmentList()
  2379. }
  2380. this.getDepartmentList()
  2381. this.getAllProjectlist()
  2382. // if(this.user.companyId == '428') {
  2383. // this.getSthForSb()
  2384. // }
  2385. },
  2386. };
  2387. </script>
  2388. <style lang="scss" scoped>
  2389. .bottomToolbar {
  2390. display: flex;
  2391. align-items: center;
  2392. justify-content: space-between;
  2393. }
  2394. .Daily p {
  2395. margin: 0 !important;
  2396. padding: 0 0 10px 0 !important;
  2397. }
  2398. .sub-all {
  2399. // display: flex;
  2400. div {
  2401. display: inline-block;
  2402. padding: 0 20px;
  2403. font-size: 20px;
  2404. cursor: pointer;
  2405. }
  2406. .subOn {
  2407. color: #66b1ff;
  2408. }
  2409. }
  2410. .DailyBody {
  2411. margin: 0 20px;
  2412. }
  2413. .Daily{
  2414. height: 120%;
  2415. overflow: auto;
  2416. }
  2417. // .classification {
  2418. // width: 120px;
  2419. // // height: 100%;
  2420. // border-right: 1px solid #f2f2f2;
  2421. // display: flex;
  2422. // flex-wrap: wrap;
  2423. // // align-items: center;
  2424. // // justify-content: center;
  2425. // padding-top: 20px;
  2426. // }
  2427. // .classification p{
  2428. // width: 120px;
  2429. // text-align: center;
  2430. // line-height: 50px;
  2431. // margin: 0;
  2432. // cursor: pointer;
  2433. // }
  2434. // .classification p:hover {
  2435. // background: #dddddd;
  2436. // }
  2437. // .on {
  2438. // // background: #dddddd;
  2439. // color: #409EFF;
  2440. // }
  2441. // .acl{
  2442. // display: inline-block;
  2443. // width: 300px;
  2444. // height: 22px;
  2445. // // line-height: 22px;
  2446. // overflow: hidden;
  2447. // white-space: nowrap;
  2448. // text-overflow: ellipsis;
  2449. // margin: 0;
  2450. // padding: 0;
  2451. // line-height: 0;
  2452. // }
  2453. // .cal {
  2454. // width: 300px;
  2455. // overflow: hidden;
  2456. // white-space: nowrap;
  2457. // text-overflow: ellipsis;
  2458. // cursor: pointer;
  2459. // }
  2460. </style>