1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625 |
- <template>
- <section class="sectionaa">
- <el-tabs v-model="activeName" @tab-click="handleClick">
- <el-tab-pane label="主要内容" name="project" @click="null" disabled=true>
- <template slot="label">
- <i type="default" size="mini" class="el-icon-arrow-left" @click="toList" style="margin-left:10px;cursor:pointer;"></i>
- <el-select v-model="curProjectId" size="mini" class="projectCls" @change="onProjectChange" filterable>
- <el-option v-for="item in projectList" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
- <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
- <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
- </el-option>
- </el-select>
-
- <el-dropdown trigger="click" style="margin-right:30px;color:#262626;cursor:pointer;">
- <i class="iconfont firerock-iconcaidan" ></i>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item v-if="currentProject.status == 1" @click.native="finishPro()">
- <i class="iconfont firerock-iconwancheng"></i>完成项目
- </el-dropdown-item>
- <el-dropdown-item divided v-if="currentProject.status == 1" @click.native="cancelPro()">
- <i class="el-icon-refresh-left"></i>撤销项目
- </el-dropdown-item>
- <el-dropdown-item v-if="currentProject.status == 2 || currentProject.status == 3" @click.native="startPro()">
- <i class="iconfont firerock-iconqidong"></i>重启项目
- </el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- </template>
- </el-tab-pane>
- <el-tab-pane label="任务看板" name="projectInside">
- <el-container style="padding: 0px;">
- <el-aside :style="'overflow:auto;padding-left:10px;padding-right:5px;height:'+tableHeight+'px;width:'+groupWidth+'px;'">
- <el-input v-model="groupSearch" size="small" placeholder="搜索分组" @input="startSearchGroup" style="margin-top:10px"/>
- <p ><span class="heavyTxt">任务分组</span>
- <!-- <el-button size="mini">导出</el-button> -->
- <i class="el-icon-plus pull-right" style="color:#666;margin-right:10px;" @click="createGroup" v-if="projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement"></i>
- <i class="iconfont firerock-icondaochu pull-right" style="font-size:14px"></i>
- </p>
- <el-menu :default-active="defaultGroupId" ref="defaultMenu" class="el-menu-vertical-demo" @select="groupChange" style="border-right:none;">
- <el-menu-item :index="item.id" v-for="item in groupList" :key="item.id" class="group_style">
- <div slot="title">
- <!-- <span class="taskGroupClass">{{item.name}}</span> -->
- <div style="display: inline-block;">
- <el-tooltip effect="dark" :content="item.name" placement="top" v-if="item.name.length > 12">
- <span class="taskGroupClass">{{item.name}}</span>
- </el-tooltip>
- <span class="taskGroupClass" v-else>{{item.name}}</span>
- </div>
- <!-- <el-button size="mini" @click="test(item)">test</el-button> -->
- <el-dropdown trigger="click" style="float:right;margin-right:-10px;" :disabled="!(user.id == item.inchargerId || user.id == projectCreatorId || user.id == projectInchargerId || permissions.projectManagement)">
- <i class="iconfont firerock-iconcaidan" ></i>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item @click.native="copyGroup(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement)">
- <i class="el-icon-document-copy"></i>
- 复制分组</el-dropdown-item>
- <el-dropdown-item divided @click.native="renameGroup(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement)">
- <i class="el-icon-edit"></i>
- 修改组名</el-dropdown-item>
- <el-dropdown-item divided @click.native="addToTemplate(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement)">
- <i class="el-icon-plus"></i>
- 设为模板</el-dropdown-item>
- <el-dropdown-item divided @click.native="editIncharger(item)"
- :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement)">
- <i class="el-icon-user"></i>
- 设负责人</el-dropdown-item>
- <el-dropdown-item divided @click.native="setupParticipants(item)"
- :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || item.inchargerId == user.id || permissions.projectManagement)">
- <i class="iconfont firerock-iconusers"></i>
- 设参与人</el-dropdown-item>
- <el-dropdown-item divided @click.native="deleteGroup(item)" :disabled="!(projectCreatorId == user.id || projectInchargerId == user.id || permissions.projectManagement)">
- <i class="el-icon-delete"></i>
- 删除分组</el-dropdown-item>
- <!-- 设置参与人 0000 -->
- <el-dropdown-item divided @click.native="getGroupDetails(item)">
- <i class="el-icon-tickets"></i>
- 分组详情</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- </div>
- </el-menu-item>
- </el-menu>
- <!--视图 -->
- <p ><span class="heavyTxt">视图</span></p>
- <el-menu :default-active="1" class="el-menu-vertical-demo" @select="viewChange" style="border-right:none;">
- <el-menu-item :index="item.id" v-for="item in viewList" :key="item.id" class="group_style">
- <div slot="title">
- <span >{{item.name}}</span>
- </div>
- </el-menu-item>
- </el-menu>
- </el-aside>
- <!-- 分组详情 -->
- <el-dialog :title="groupDetailTil" :visible.sync="groupDetailsShow" width="500px" :before-close="handleClose">
- <div>
- <el-form label-width="80px">
- <el-form-item label="负责人:">
- {{groupDetailData.incharger}}
- </el-form-item>
- <el-form-item label="参与人:">
- <span v-for="(item, index) in groupDetailData.participators" :key="index">
- {{item.userName}} <span v-if="index < groupDetailData.participators.length - 1">、</span>
- </span>
- </el-form-item>
- </el-form>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button type="primary" @click="groupDetailsShow = false">确 定</el-button>
- </span>
- </el-dialog>
- <span :style="'background:#f0f0f0;width:1px;height:'+tableHeight+'px;'" @click="toggleGroup">
-
- </span>
- <!-- <span :style="'width:10px;height:'+tableHeight+'px;float:left;text-align:center;vertical-align:middle;'" @click="toggleGroup">
- <span :style="'width:1px;background:#20A0FF;height:'+tableHeight+'px;float:left;'"></span>
- <i class="el-icon-d-arrow-left" ></i>
- </span> -->
- <!-- 增加侧边栏的点击效果 -->
- <div class="sidebar" @click="retract()">
- <div class="etui">
- <i class="el-icon-arrow-left" ref="box"></i>
- </div>
- </div>
-
- <!-- 增加侧边栏的点击效果 -->
-
- <el-main style="background:#f7f7f7;padding:0px;position: relative;">
- <el-row style="color:#999;margin-top:10px;padding: 0px 10px;" :gutter="10">
- <el-col :span="12">
- <el-link @click="toggleGroup"><i v-if="selectedGroup != null" :class="groupWidth==0?'el-icon-d-arrow-right':'el-icon-d-arrow-left'" style="margin-top:10px;">{{selectedGroup.name}}</i></el-link>
- </el-col>
- <el-col :span="8" style="float:right;width:380px">
- <el-select v-model="order" size="small" style="background:#fff;display:inline-block;" @change="orderChange">
- <el-option v-for="item in orderList" :key="item.id" :label="item.name" :value="item.id">
- <span>{{item.name}}</span>
- </el-option>
- </el-select>
- <el-button icon="iconfont firerock-icondaochu" style="margin-left:10px" size="mini" @click="showExportDialog">导出</el-button>
- <el-button icon="iconfont firerock-icondaoru" size="mini" @click="importTaskDialog = true;importToStageId = stageList[0].id;">导入</el-button>
- </el-col>
- </el-row>
- <!-- <div style="color:#999;margin-top:10px;">
- <i v-if="selectedGroup != null" class="el-icon-arrow-left" style="margin-top:10px;">{{selectedGroup.name}}</i>
-
- </div> -->
- <div v-if="!displayTable">
- <div style="width: 100%;overflow-x: auto;">
- <draggable style="white-space:nowrap;" @update="onMoveStage"
- v-model="stageList" group="stage" @start="stageDrag=true" @end="stageDrag=false;" draggable=".taskStage" >
- <!--每个阶段的拖拽 -->
- <!-- <transition-group > -->
- <v-flex class="taskStage" v-for="stage in stageList" :key="stage.id" :style="'height:'+stageListHeight+'px;'">
- <div :id="stage.id"
- class="taskList" >
-
- <!--头部显示阶段名称,操作 -->
- <div slot="header" style="margin:10px 0px;cursor:move;width:300px" role="task">
- <span class="stage">{{stage.stagesName}}</span><span style="margin-left:10px;color:#303133;font-size:12px;">{{stage.taskList.length}}</span>
- <!-- <i class="el-icon-more" style="float:right;"></i> -->
- <el-dropdown trigger="click" style="float:right;cursor:pointer;">
- <i class="el-icon-more" ></i>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item @click.native="addTask(stage)">
- <i class="el-icon-document-add"></i>
- 创建任务</el-dropdown-item>
- <el-dropdown-item @click.native="renameStage(stage)">
- <i class="el-icon-edit"></i>
- 重命名列表</el-dropdown-item>
- <el-dropdown-item divided @click.native="deleteStage(stage)">
- <i class="el-icon-delete"></i>删除列表</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- </div>
- <draggable class="taskListin" :style="'max-height:' + taskListinH + 'px;'" @start="drag=true" @end="drag=false" draggable=".taskCard" ghostClass="ghost" @update="onChange" @add="onChange" group="task1" :id="stage.id">
- <div v-for="element in stage.taskList" :id="element.id" :key="element.id" class="taskCard" ref="tasks" @click="editTask(element)" :style="element.taskStatus==0?'':'background:#eFeFeF;'">
- <!--任务卡片内容显示 -->
- <div>
- <div v-if="element.taskLevel == 2" class="taskImg hong"><img src="../../assets/image/hong.png" alt=""></div>
- <div v-if="element.taskLevel == 1" class="taskImg huang"><img src="../../assets/image/huang.png" alt=""></div>
- <div v-if="element.taskLevel == 0" class="taskImg hui"><img src="../../assets/image/hui.png" alt=""></div>
- <el-checkbox :disabled="element.taskStatus==2 || element.subTaskList.length > element.subTaskFinishNum" :checked="element.taskStatus==1?true:false" size="large" class="cb"
- @change="finishTask(element)"
- @click.stop.native=""
- ></el-checkbox>
- <el-tooltip class="item" effect="dark" :content="element.name" placement="top">
- <label class="task_name" :style="'background:'+(element.taskStatus==0?'#ffffff;':'#eFeFeF;')"><span>{{element.name}}</span></label>
- </el-tooltip>
- <i :class="taskTypeIcon[element.taskType]" :style="'float:right;color:'+taskTypeColor[element.taskType]+';margin-right:8px;margin-top:8px;'" ></i>
- </div>
- <div style="margin: 10px 0px;color:#666;" @click="timess(element.endDate)">
- <span v-if="element.endDate >= times || element.taskStatus == 1"><i v-if="element.endDate != null" class="el-icon-date" style="margin-left:5px"> {{element.endDate}}</i></span>
- <span v-else><em v-if="element.endDate != null" style="display: inline-block;padding:3px 5px"><i v-if="element.endDate != null" class="el-icon-date"><span class="element_span"> {{element.endDate}} 截止</span></i></em></span>
- <span v-if="element.executorName">
- <span v-for="(exeItem, exeIndex) in element.executorName.split(',')" :key="exeIndex" :style="element.executorColor ? 'background:' + element.executorColor.split(',')[exeIndex] : ''" class="user_name_icon">{{exeItem.length>2?exeItem.substring(exeItem.length-2, exeItem.length):exeItem}}</span>
- </span>
- <el-button v-if="!element.executorName" type="primary" @click.stop.native="addAsMyTask(element)" size="mini" style="float:right;width:38px;padding:5px;position: absolute;z-index: 5;right: 5px;">认领</el-button>
- </div>
- <!--子任务 -->
- <div v-if="element.subTaskList.length > 0" class="taskCardCircleBox">
- <el-progress type="circle" :percentage="(element.subTaskFinishNum/element.subTaskList.length) * 100" width="16" :show-text="false" stroke-linecap="butt" stroke-width="8"></el-progress><span style="margin-left:5px;font-size:12px;">{{element.subTaskFinishNum}}/{{element.subTaskList.length}}</span>
- </div>
- <!-- <div v-if="element.taskType == 1 && element.refTaskList != null">
- <el-tooltip class="item" effect="dark" content="查看关联任务" placement="top">
- <el-link class="sub_task_num" @click.stop.native="showSubTaskList(element)"><i class="iconfont firerock-icontree" ></i><span style="margin-left:5px;">{{element.finishRefTaskCount}}/{{element.refTaskList.length}}</span></el-link>
- </el-tooltip>
- </div> -->
- <div v-if="element.taskType == 1 && !(element.refTaskList == null || element.refTaskList.length == 0)" class="taskCardCircleBox">
- <el-progress type="circle" :percentage="(element.finishRefTaskCount/(element.refTaskList ? element.refTaskList.length : 0)) * 100" width="16" :show-text="false" stroke-linecap="butt" stroke-width="8"></el-progress>
- <span style="margin-left:5px;font-size:12px">{{element.finishRefTaskCount}}/{{(element.refTaskList ? element.refTaskList.length : 0)}}</span>
- </div>
- </div>
- </draggable>
- <el-button v-if="canAddTask" slot="footer" role="people" @click="addTask(stage)" style="width:300px;" size="small" icon="el-icon-plus"></el-button>
- </div>
- </v-flex>
- <!-- </transition-group > -->
- <el-button slot="footer" v-if="selectedGroup != null" @click="addStage" class="taskList" icon="el-icon-plus" style="margin-top:30px;">新建任务列表</el-button>
- </draggable>
- </div>
- </div>
- <!--列表-->
- <el-table v-if="displayTable" :data="taskDataList"
- :header-cell-style="{'font-weight':'normal'}"
- highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
- <el-table-column fixed label="完成" width="50">
- <template slot-scope="scope">
- <el-checkbox :disabled="scope.row.taskStatus==2" v-model="scope.row.isFinish" size="large" class="cb"
- @change="finishTask(scope.row)"
- @click.stop.native=""
- ></el-checkbox>
- </template>
- </el-table-column>
- <el-table-column prop="name" fixed label="标题" width="250">
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
- <span class="single_line" > {{scope.row.name}}</span>
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column prop="taskType" label="任务类型" width="100">
- <template slot-scope="scope">
- {{taskTypeList[scope.row.taskType].name}}
- </template>
- </el-table-column>
- <el-table-column prop="taskStatus" label="任务状态" width="100" >
- <template slot-scope="scope">
- {{taskStatusList[scope.row.taskStatus]}}
- </template>
- </el-table-column>
- <el-table-column prop="parentName" label="父任务" width="250">
- <template slot-scope="scope">
- <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"> {{scope.row.parentTname}}</span>
- </template>
- </el-table-column>
- <el-table-column prop="stagesName" label="任务列表" width="100" >
-
- </el-table-column>
- <el-table-column prop="executorName" label="执行人" width="100" >
- <template slot-scope="scope">
- {{scope.row.executorName == null?"待分配":scope.row.executorName}}
- </template>
- </el-table-column>
- <!-- <el-table-column prop="endDate" label="截止时间" width="100" ></el-table-column> -->
- <el-table-column prop="startDate" label="开始时间" width="100" >
- <template slot-scope="scope">
- <!-- <p v-if="scope.row.startDate >= times || scope.row.taskStatus != 0">{{scope.row.startDate}}</p>
- <p style="border-radius: 3px; text-align: center;background: #e62412; color: #fff;" v-else><span>{{scope.row.startDate}}</span></p> -->
- <p>{{scope.row.startDate}}</p>
- </template>
- </el-table-column>
- <el-table-column prop="endDate" label="截止时间" width="100" >
- <template slot-scope="scope">
- <p v-if="scope.row.endDate >= times || scope.row.taskStatus != 0">{{scope.row.endDate}}</p>
- <p style="border-radius: 3px; text-align: center;background: #e62412; color: #fff;" v-else><span>{{scope.row.endDate}}</span></p>
- </template>
- </el-table-column>
- <el-table-column prop="createDate" label="创建时间" width="100" ></el-table-column>
- <el-table-column prop="taskLevel" label="优先级" width="100" >
- <template slot-scope="scope">
- {{importanceList[scope.row.taskLevel].name}}
- </template>
- </el-table-column>
- </el-table>
- </el-main>
- </el-container>
- </el-tab-pane>
- <el-tab-pane label="文件中心" name="files"><FileCenter ref="fileCenter"></FileCenter></el-tab-pane>
- <el-tab-pane label="项目概览" name="info"><ProjectInfo ref="projectInfo" @basecost-change="changeBase"></ProjectInfo></el-tab-pane>
- <el-tab-pane label="数据统计" name="summary"><Summary ref="summary"></Summary></el-tab-pane>
- <el-tab-pane label="成本管理" name="costbaseline" v-if="permissions.projectBaseline"><CostBaseline ref="costbaseline"></CostBaseline></el-tab-pane>
- <el-tab-pane label="挣值分析" name="earning" v-if="user.id == currentProject.creator || user.id == currentProject.incharger_id ||permissions.projectBaseline"><Earning ref="earning"></Earning></el-tab-pane>
- </el-tabs>
- <!-- 设置参与人员界面 -->
- <el-dialog title="选择参与人员" v-if="participantsDialog" :visible.sync="participantsDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
- <div class="tree" style="height:400px">
- <el-scrollbar style="height:100%">
- <el-input
- placeholder="输入关键字进行过滤"
- v-model="participantsFilterText">
- </el-input>
- <el-tree :data="deptMembData" show-checkbox :props="defaultProps" node-key="id"
- ref="chooseMembTree2" @check-change="onTreeItemChange" :default-checked-keys="alreadyPartArray"
- highlight-current :filter-node-method="filterNode"></el-tree>
- </el-scrollbar>
- </div>
- <div>已选中 {{chosenMembCount}} 人</div>
- <div slot="footer" class="dialog-footer">
- <el-button @click="participantsDialog = false">取消</el-button>
- <el-button type="primary" @click="setParticipants()">确定</el-button>
- </div>
- </el-dialog>
-
- <!--新增任务界面-->
- <el-dialog :class="addForm.id==null?'':'jm'" :title="title" v-if="addFormVisible" :visible.sync="addFormVisible"
- :close-on-click-modal="false" customClass="customWidth" width="800px" ref="addDialog">
- <!-- <div style="width: 200%;height:80%;position: absolute;right:-100%;top:0;background:#000;opacity: 0;" @click="sss"></div> -->
- <el-form ref="form1" :model="addForm" :rules="taskRules" label-width="100px">
- <!--子任务需要选择任务列表 -->
- <el-form-item label="任务列表" prop="stages" v-if="addForm.parentTid != null">
- <el-select v-model="addForm.stagesId" style="width:100%;" >
- <el-option v-for="item in stageList" :key="item.id" :label="item.stagesName" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="类型">
- <!-- <el-button @click="test">test</el-button> -->
- <!-- 0011 -->
- <!-- {{groupResponsibleId == user.id}} -->
- <el-select v-model="addForm.taskType" style="width:100%;" :disabled="((this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement) && !(groupResponsibleId == user.id)" @change="selchg()">
- <el-option v-for="item in taskTypeList" :key="item.id" :label="item.name" :value="item.id">
- <i :class="item.icon" ></i>
- <span>{{item.name}}</span>
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="任务内容" prop="name">
- <el-input v-model="addForm.name" :maxlength="40" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" placeholder="请输入任务内容" clearable></el-input>
- </el-form-item>
- <!-- {{timelabel}}{{mileageCup}} -->
- <el-form-item :label="!timelabel ? '开始时间' : '截至时间'" prop="startDate">
- <el-date-picker v-model="addForm.startDate" type="date" style="width:40%;" value-format="yyyy-MM-dd"
- placeholder="请选择日期" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" @change="DateChange()" v-if="!timelabel"></el-date-picker>
- <span style="margin-left:30px;margin-right:10px;" v-if="!timelabel">截止时间</span>
- <el-date-picker style="width:40%;" v-model="addForm.endDate" type="date" value-format="yyyy-MM-dd"
- placeholder="请选择日期" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" @change="DateChange()"></el-date-picker>
- <span style="margin-left:30px;margin-right:10px;" v-if="timelabel && mileageCup">完成时间</span>
- <el-date-picker style="width:40%;" v-if="timelabel && mileageCup" v-model="addForm.finishDate" type="date" value-format="yyyy-MM-dd"
- placeholder="请选择日期" :disabled="(this.addForm.id != null && user.id != this.addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" @change="DateChange()"></el-date-picker>
- </el-form-item>
- <div style="border: 1px solid #ddd;margin:5px 0;padding:5px 0;">
- <el-form-item :label="'执行人'+(index+1)" v-for="(executorItem, index) in addForm.executorListFront" :key="index">
- <el-select v-model="executorItem.executorId" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" size="small" filterable clearable placeholder="请选择执行人" style="width:40%;" @change="$forceUpdate()">
- <el-option v-for="item in users" :key="item.id" :label="item.name" :value="item.id">
- <span style="float: left">{{ item.name }}</span>
- <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px" v-if="item.jobNumber">{{ item.jobNumber }}</span>
- </el-option>
- </el-select>
- <span style="margin-left:30px;margin-right:10px;">计划工时</span>
- <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" v-model="gstimday[index]" style="width:16%;" :min="1" :max="100" placeholder="请输入计划工作时长,单位天" @change="chggstim(0,index)"></el-input-number ><span style="margin-left:5px;">天</span>
- <el-input-number size="small" :disabled="(addForm.id != null && user.id != addForm.createrId && currentProject.inchargerId != user.id) && !permissions.projectManagement && !(groupResponsibleId == user.id)" v-model="gstimhour[index]" style="width:16%;" :min="1" :max="100" placeholder="请输入计划工作时长,单位小时" @change="chggstim(1,index)"></el-input-number ><span style="margin-left:5px;">小时</span>
- <!--移除执行人 -->
- <i class="el-icon-delete" v-if="index>0 && (addForm.id == null|| user.id == addForm.createrId || currentProject.inchargerId == user.id|| permissions.projectManagement || groupResponsibleId == user.id)" style="margin-left:5px" @click="removeExecutorLine(index)"></i>
- </el-form-item>
- <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)) ||
- groupResponsibleId == user.id)"
- style="margin-left:35px;" @click="addExecutorLine">添加执行人</el-link>
- </div>
- <el-form-item label="优先级">
- <el-select v-model="addForm.taskLevel" style="width:100%;" >
- <el-option v-for="item in importanceList" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <!-- 富文本 -->
- <el-form-item label="详细描述" style="height: 200px">
- <!-- <Editor id="tinymce" v-model="tinymceHtml" :init="editorInit"></Editor> -->
- <!-- <el-input type="textarea" v-model="addForm.taskDesc" :rows="3"></el-input> -->
- <!-- <quill-edito v-model="addForm.taskDesc"></quill-edito> -->
- <quill-editor style="height: 150px" ref="text" v-model="addForm.taskDesc" class="myQuillEditor" :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)"/>
- </el-form-item>
- <!-- 富文本 -->
- <div v-if="addForm.id != null">
- <el-divider ></el-divider>
- <!-- 任务进展 -->
- <template v-if="!timelabel || isRelationItem">
-
- <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">任务进展</i>
- <span ref="addPro" style="display: block; float:right;"><el-link @click="addprogress">添加任务进展</el-link></span>
- </p>
- <!-- 任务进展展示 -->
- <div style="display: none;" ref="proBox" class="progress">
- <!-- <el-form :model="> -->
- <el-radio-group v-model="radio">
- <el-radio :label="0" class="rala1">状态正常</el-radio>
- <el-radio :label="1" class="rala2">存在风险</el-radio>
- <el-radio :label="2" class="rala3">进展逾期</el-radio>
- </el-radio-group>
- <el-input
- type="textarea"
- border="0"
- :autosize="{ minRows: 2, maxRows: 6}"
- placeholder="请输入详细进展描述"
- v-model.trim="text2"
- style="margin:10px 0 0 0">
- </el-input>
- <h4 style="font-weight: normal;">提醒谁查看:{{checkLists.length}}</h4>
- <i class="el-icon-circle-plus pron_i" style="font-size: 28px;color: #409EFF;" @click="addI(0)"></i>
- <div class="remind" ref="addRem" style="display: none">
- <el-checkbox-group v-model="checkboxGrounp" v-for="item in users" :key="item.id">
- <p><el-checkbox :label="item.name" @change="kkk(item)"></el-checkbox></p>
- </el-checkbox-group>
- </div>
- <div class="ssp" @click="sss"></div>
- <!-- </el-form> -->
- <div class="pro_btn">
- <el-button size="mini" @click="shutPro">取消</el-button>
- <el-button size="mini" type="primary" @click="addTaskProgress">发布</el-button>
- </div>
- </div>
-
- <div class="ddl" v-if="recentProgressInfo != null && recentProgressInfo.id != null">
- <div class="elCard" style="margin-bottom: 10px; height:" >
- <i class="el-icon-success" style="color: #43d14f;" v-if="recentProgressInfo.status == 0"></i>
- <i class="el-icon-success" style="color: #fd7624;" v-else-if="recentProgressInfo.status == 1"></i>
- <i class="el-icon-success" style="color: #fd4d47;" v-else></i>
- <span v-if="recentProgressInfo.status == 0">状态正常</span>
- <span v-else-if="recentProgressInfo.status == 1">状态正常</span>
- <span v-else>进展逾期</span>
- <el-dropdown trigger="click" style="float:right;cursor:pointer; float: right;">
- <i class="el-icon-more" ></i>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item divided>
- <span @click="deleteTaskProgress(recentProgressInfo.id)"><i class="el-icon-delete"></i>删除列表</span></el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- <div class="elCard_qu">{{recentProgressInfo.creatorName}}更新于{{recentProgressInfo.indate | relativeTime}}</div>
- <p style="padding-left: 20px;">{{recentProgressInfo.content}}</p>
- <div class="examine"><el-button type="text" @click="innerVisibless = true" style="color: #8F87A3;">查看历史记录</el-button></div>
- </div>
- </div>
- <!-- 任务列表没有数据的时候展示 -->
- <div class="nones" v-if="ProgressList.length <= 0">
- 暂无数据
- </div>
- <!-- 任务进展完整状态 -->
- <el-dialog title="提示" :visible.sync="innerVisibless" append-to-body width="500px">
- <div class="integrity">
- <h3 style="font-weight: normal;display: inline-block;margin: 0 0 20px 0;">任务进展:{{ProgressList.length}}</h3>
- <!-- <span class="write"><i class="el-icon-circle-plus"></i>填写进展</span> -->
- <el-divider></el-divider>
- <!-- -->
- <div class="block" style="height: 200px;">
- <el-timeline style="padding:20px 0 0 0;">
- <el-timeline-item
- v-for="(activity, index) in ProgressList"
- :key="index">
- <div class="tb">
- <span v-if="activity.status == 0" style="color: #43D14F" class="icon"></span>
- <span v-if="activity.status == 1" style="color: #FD7624" class="icon"></span>
- <span v-if="activity.status == 2" style="color: red" class="icon"></span>
- <div>
- <span v-if="activity.status == 0" style="color: #43D14F">状态正常</span>
- <span v-if="activity.status == 1" style="color: #FD7624">存在风险</span>
- <span v-if="activity.status == 2" style="color: red">进展逾期</span>
- <span style="display: inline-block; float: right; color: #8C8C8C">{{activity.indate | relativeTime}}</span>
- </div>
- <p style="color: #8C8C8C">{{activity.content}}</p>
-
- </div>
- </el-timeline-item>
- </el-timeline>
- </div>
- <!-- -->
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button type="primary" @click="innerVisibless = false">关闭</el-button>
- </span>
- </el-dialog>
- </template>
- <!-- 子任务/关联任务 -->
- <p ><i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">{{timelabel && !isRelationItem ? '关联任务' : '子任务'}}</i>
- <el-link style="float:right;" @click="addRelation" v-if="timelabel && !isRelationItem">添加关联任务</el-link>
- <el-link style="float:right;" @click="addSubTask" v-else>添加子任务</el-link>
- </p>
- <!-- 关联任务列表 -->
- <el-table key="guanlian" :data="relationSubTaskList" v-if="timelabel && !isRelationItem"
- :header-cell-style="{'font-weight':'normal'}"
- highlight-current-row
- v-loading="listLoading"
- style="width: 100%;margin-top:10px;"
- @row-click="relationTaskClick">
- <el-table-column prop="taskStatus" label="完成" width="50" >
- <template slot-scope="scope">
- <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb" @change="relationFinishTask(scope.row)" @click.stop.native=""></el-checkbox>
- </template>
- </el-table-column>
- <el-table-column prop="taskName" label="标题" >
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" :content="scope.row.taskName" placement="top" style="cursor:pointer;color:#409eff;">
- <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.taskName}}</span>
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="130" align="left">
- <template slot-scope="scope">
- <el-button @click.stop.native="deleteRelationItem(scope.row.id)" size="mini">解除关联</el-button>
- </template>
- </el-table-column>
- </el-table>
- <!--子任务列表 -->
- <el-table key="zi" :data="addForm.subTaskList" v-else
- :header-cell-style="{'font-weight':'normal'}"
- highlight-current-row v-loading="listLoading" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
- <el-table-column prop="taskStatus" label="完成" width="50" >
- <template slot-scope="scope">
- <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb"
- @click.stop.native=""
- @change="finishTask(scope.row)"
- ></el-checkbox>
- </template>
- </el-table-column>
- <el-table-column prop="name" label="标题" >
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
- <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.name}}</span>
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column prop="executorName" label="执行人" width="100" >
- <template slot-scope="scope">
- {{scope.row.executorName == null?"待分配":scope.row.executorName}}
- </template>
- </el-table-column>
- <el-table-column prop="endDate" label="截止时间" width="100" >
- <template slot-scope="scope">
- <p v-if="scope.row.endDate >= times">{{scope.row.endDate}}</p>
- <p v-else style="background: #e62412; color: #fff;text-align: center; border-radius: 3px;">{{scope.row.endDate}}</p>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </el-form>
- <!-- 关联文件列表 -->
- <template v-if="isEditFile">
- <div style="width:100%;margin:1em 0;">
- <i class="iconfont firerock-icontree" style="color:#20A0ff;margin-left:10px;">相关文件/交付成果</i>
- <el-link @click="relationFileClick()" style="float:right;margin-left:10px">关联文件</el-link>
- <el-upload style="float:right;" action="#" :http-request="uploadFileClick" :show-file-list="false" :multiple="false">
- <el-link>上传文件</el-link>
- </el-upload>
-
- </div>
- <el-table
- v-loading="fileListLoading"
- ref="filetable"
- :data="taskFileList"
- :header-cell-style="{'font-weight':'normal'}"
- highlight-current-row
- max-height="240"
- style="width: 100%;margin-top:10px;margin-bottom:15px">
- <el-table-column label="序号" prop="documentType" min-width="40" align="center">
- <template slot-scope="scope">
- <div>
- {{scope.$index + 1}}
- </div>
- </template>
- </el-table-column>
- <el-table-column label="文件名称" prop="documentName" min-width="180"></el-table-column>
- <el-table-column label="文件大小" prop="size" min-width="60" align="center"></el-table-column>
- <el-table-column label="创建人" prop="creatorName" min-width="60" align="center"></el-table-column>
- <el-table-column label="创建时间" prop="indate" min-width="120" align="center">
- <template slot-scope="scope">
- <span>{{scope.row.indate[0] + '-' + scope.row.indate[1] + '-' + scope.row.indate[2] + '\u0020\u0020' + scope.row.indate[3] + ':' + scope.row.indate[4] + ':' + scope.row.indate[5]}}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" min-width="90">
- <template slot-scope="scope">
- <el-link :href="scope.row.url" :download="scope.row.documentName" type="primary" style="margin-right:7px">下载</el-link>
- <el-link @click="taskFileDelete(scope.row.id)">删除</el-link>
- </template>
- </el-table-column>
- </el-table>
- </template>
- <!-- 关联文件dialog -->
- <el-dialog v-if="relationFileDialog" :visible.sync="relationFileDialog" title="关联文件" append-to-body>
- <span>从文件中心选择已有文件进行关联</span>
- <div>
- <span>选择文件</span>
- <el-select v-model="addFileId">
- <el-option
- v-for="item in projectFileList"
- :key="item.id"
- :label="item.documentName"
- :value="item.id"
- ></el-option>
- </el-select>
- <el-button @click="addTaskFile()">确定</el-button>
- <!-- <el-button @click="relationFileDialog = false">取消</el-button> -->
- </div>
- </el-dialog>
- <el-dialog v-if="isRelationTab" :visible.sync="isRelationTab" title="添加关联任务" width="800px" append-to-body>
- <el-form ref="relationItemForm" label-width="100px">
- <el-form-item label="选择任务" prop="taskType">
- <el-select v-model="relationvalue" multiple style="width:80%">
- <el-option
- v-for="item in relationdata"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="isRelationTab = false">取消</el-button>
- <el-button type="primary" @click="addRelationTask()">确认</el-button>
- </div>
- </el-dialog>
- <div slot="footer" class="dialog-footer">
- <el-button v-if="(user.id == addForm.createrId || currentProject.inchargerId == user.id || currentProject.creatorId == user.id || permissions.projectManagement) && canAddTask" @click.native="deleteTask()" style="float:left;">删除</el-button>
- <el-button @click.native="addFormVisible = false">取消</el-button>
- <el-button type="primary" @click="submitInsert" :loading="addLoading">提交</el-button>
- </div>
- <div slot="title" v-if="addForm.parentTid != null || isRelationItem" >
- <!-- <el-link @click="backToParentTask"><i class="el-icon-arrow-left single_line">返回父级任务</i> | {{addForm.parentTname}}</el-link> -->
- <el-page-header @back="backToParentTask" :title="timelabel ? '返回里程碑' : '返回父任务'" :content="timelabel ? relationPar.name : addForm.parentTname"></el-page-header>
- </div>
- <!-- 评论 -->
- <div class="remark" v-show="addForm.id != null">
- <span class="zh">
- <span v-for="(pl, i) in critic" :key="i">
- <div class="player" v-if="pl">
- <p>参与人</p>
- <div class="bj">
- <span style="background: #778899">{{pl.length > 2 ? pl.substring(pl.length - 2, pl.length) : pl}}</span>
- <!-- <span style="background: #778899">{{pl.length}}</span> -->
- </div>
- </div>
- </span>
- <div class="subject">
- <div class="sub-all">所有动态</div>
- <div class="sub-details" ref="main">
- <ul class="infinite-list" v-infinite-scroll="load" style="overflow:auto" ref="contRoll">
- <div style="width: 100%" v-if="commentList.length <= 0">
- <img src="../../assets/image/xiao.png" alt="">
- </div>
- <li v-for="i in count" class="infinite-list-item counli" :key="i">
- <p><i class="el-icon-s-fold"></i> <em>屈经理完成了依赖任务</em><span>4月20日</span></p>
- </li>
- <li class="carts" v-for="item in commentList" :key="item.id">
- <!-- <el-image style="width: 30px; height: 30px" :src="url" :fit="fit"></el-image> -->
- <!-- <i :style="'background' + item.userColor"> -->
- <i :style="'background' + item.userColor">
- {{item.userName.length > 2 ? item.userName.substring(item.userName.length - 2, item.userName.length) : item.userName}}
- </i>
- <div>
- <!-- <p>{{item.userName}}</p> -->
- <p>{{item.userName}}</p>
- <em>{{item.content}}</em>
- </div>
- <span>{{item.createTime | relativeTime}}</span>
- </li>
- </ul>
- </div>
- </div>
- <div class="issue">
- <!-- <el-input type="textarea" class="textareays" label-width="100%" label-height="140px"></el-input> -->
- <div class="issue_fixation">
- <div class="inputDeep"><el-input
- type="textarea"
- placeholder="请输入内容"
- :autosize="{ minRows: 6, maxRows: 6}"
- v-model.trim="textarea2"
- class="inputDeeps"
- >
- </el-input></div>
- <el-button class="issue-button" type="primary" @click="release()">发布</el-button>
- </div>
- </div>
- </span>
- </div>
- <!-- 评论 -->
- </el-dialog>
- <!-- 子任务列表 -->
- <el-dialog :title="addForm.taskType == 1 ? '查看关联任务' : '查看子任务'" v-if="subTaskVisible" :visible.sync="subTaskVisible" :close-on-click-modal="false" customClass="customWidth" width="800px">
- <el-table :data="addForm.subTaskList"
- :header-cell-style="{'font-weight':'normal'}"
- highlight-current-row v-loading="listLoading" style="width: 100%;margin-top:10px;" @row-click="taskLineClick">
- <el-table-column prop="taskStatus" label="完成" width="50" >
- <template slot-scope="scope">
- <el-checkbox :disabled="scope.row.taskStatus==2" :checked="scope.row.taskStatus==1?true:false" size="large" class="cb"
- @click.stop.native="finishTask(scope.row)"
- ></el-checkbox>
- </template>
- </el-table-column>
- <el-table-column prop="name" label="标题" >
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" :content="scope.row.name" placement="top">
- <span style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;" > {{scope.row.name}}</span>
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column prop="executorName" label="执行人" width="100" >
- <template slot-scope="scope">
- {{scope.row.executorName == null?"待分配":scope.row.executorName}}
- </template>
- </el-table-column>
- <el-table-column prop="endDate" label="截止时间" width="100" ></el-table-column>
- </el-table>
- </el-dialog>
- <!--用户详细信息弹出框-->
- <el-dialog title="查看详情" v-if="userDetailVisible" :visible.sync="userDetailVisible" :close-on-click-modal="false" customClass="customWidth" width="400px">
- <div class="line"><span>姓名</span><span>{{userDetail.name}}</span></div>
- <div class="line"><span>工号</span><span>{{userDetail.jobNumber}}</span></div>
- <div class="line"><span>手机号码</span><span>{{userDetail.phone}}</span></div>
- <div class="line"><span>部门</span><span>{{userDetail.departmentName}}</span></div>
- <div class="line"><span>成本</span><span>{{userDetail.cost}}元/小时</span></div>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="userDetailVisible = false" >确定</el-button>
- </div>
- </el-dialog>
- <!-- 新增任务分组弹出框 -->
- <el-dialog v-if="addGroupDialog" :visible.sync="addGroupDialog" :close-on-click-modal="false" customClass="customWidth" width="600px">
- <div slot="title" >
- <el-tabs v-model="createGroupWay">
- <el-tab-pane label="新建分组" name="new">
- <el-form ref="formGrouping" :model="groupForm" :rules="formGrouping" style="margin-top:40px;">
- <el-form-item prop="name">
- <el-input v-model.trim="groupForm.name" placeholder="请输入分组名称" maxlength="50"
- show-word-limit clearable></el-input>
- </el-form-item>
- <el-button type="primary" @click="addGroup('formGrouping')" style="width:100%;" >创建</el-button>
- </el-form>
- </el-tab-pane>
- <el-tab-pane label="从模板创建" name="template">
- <el-card class="template_box" :style="t.selected?'border: 1px solid #409eff;':''" v-for="(t,tIndex) in groupTemplateList" :key="t.id" @click.native="choseTemplate(tIndex)">
- <div>
- <el-row >
- <el-col :span="22">
- <div><span>{{t.name}}</span>
- <el-link :underline="false" type="primary" style="color:#aaa;margin-left:10px;"
- @click="deleteTemplate(t)"><i class="el-icon-delete" v-show="t.isSystem == 0" ></i>
- </el-link>
- </div>
- <div style="margin-top:10px;">
- <span style="color:#8c8c8c;font-size:12px;" v-for="(s,index) in t.stagesList" :key="s.id">
- <i class="el-icon-arrow-right" v-if="index>0"></i>
- {{s.stagesName}}</span>
- </div>
- </el-col>
- <el-col :span="2">
- <i class="el-icon-check" v-show="t.selected" style="font-size:20px;color:#409eff;margin-top:12px;"></i>
- </el-col>
-
- </el-row>
-
- </div>
- </el-card>
- <el-button type="primary" @click="addTemplateGroup" style="width:100%;" >创建</el-button>
- </el-tab-pane>
- </el-tabs>
- </div>
- </el-dialog>
- <el-dialog title="设置任务分组负责人" v-if="setInchargerDialog" :visible.sync="setInchargerDialog" :close-on-click-modal="false" customClass="customWidth" width="300px">
- <el-form ref="formIncharger" :model="groupForm" :rules="rules" style="margin-top:10px;">
- <el-form-item prop="taskGpIncharge">
- <el-select v-model="groupForm.inchargerId" placeholder="请选择任务分组负责人" style="width:100%;" clearable filterable>
- <el-option v-for="item in joinMembList" :key="item.id" :value="item.id" :label="item.name"></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="saveGroupIncharger" style="width:100%;" >保存</el-button>
- </div>
- </el-dialog>
- <el-dialog title="修改任务分组" v-if="modGroupDialog" :visible.sync="modGroupDialog" :close-on-click-modal="false" customClass="customWidth" width="400px">
- <el-form ref="form2" :model="groupForm" :rules="rules" style="margin-top:10px;">
- <el-form-item prop="name">
- <el-input type="textarea" :rows="3" v-model="groupForm.name" placeholder="请输入分组名称" maxlength="50"
- show-word-limit clearable></el-input>
- </el-form-item>
- <!-- <el-form-item label="编号">
- <el-input v-model="groupForm.code" placeholder="请输入分组编号" maxlength="20"
- show-word-limit clearable></el-input>
- </el-form-item> -->
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="addGroup('form2')" style="width:100%;" >保存</el-button>
- </div>
- </el-dialog>
- <el-dialog title="添加为模板" v-if="addToTmpDialog" :visible.sync="addToTmpDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
- <el-form ref="formTmp" :model="templateForm" :rules="rules" style="margin-top:10px;">
- <el-form-item prop="name">
- <el-input v-model="templateForm.name" placeholder="请输入模板名称" maxlength="12"
- show-word-limit clearable></el-input>
- <div>
- <span style="margin-right:20px">同时保存</span>
- <el-checkbox v-model="templateForm.saveTask" label="任务"></el-checkbox>
- <el-checkbox v-model="templateForm.saveMileStone" label="里程碑"></el-checkbox>
- <el-checkbox v-model="templateForm.saveRisk" label="风险"></el-checkbox>
- </div>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="createTemplate" style="width:100%;" :loading="saveTemplateLoading">存为模板</el-button>
- </div>
- </el-dialog>
-
- <!-- 新增任务列表弹出框 -->
- <el-dialog title="新增/修改任务列表" v-if="addStageDialog" :visible.sync="addStageDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
- <el-form ref="form2" :model="stageForm" :rules="rules2" >
- <el-form-item prop="stagesName">
- <el-input v-model="stageForm.stagesName" placeholder="请输入任务列表名称" maxlength="60"
- show-word-limit clearable></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="addStagePost" style="width:100%;" >保存</el-button>
- </div>
- </el-dialog>
- <!--导出数据条件选择 -->
- <el-dialog title="工作计划导出" v-if="exportDialog" :visible.sync="exportDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
- <el-form ref="form3" >
- <el-form-item label="选择类型">
- <el-select v-model="exportTaskType" placeholder="全部类型" clearable style="width:350px;">
- <el-option label="任务" value="0"></el-option>
- <el-option label="里程碑" value="1"></el-option>
- <el-option label="风险" value="2"></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="exportTask" style="width:100%;" :loading="loadingExport">导出</el-button>
- </div>
- </el-dialog>
- <!--导入数据,下载模板 -->
- <el-dialog title="工作计划导入" v-if="importTaskDialog" :visible.sync="importTaskDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
- <el-form ref="form4" >
- <el-form-item label="1. 请先下载模板并填写后上传" >
- <el-link type="primary" :underline="false" href="./upload/项目任务导入模板.xlsx" download="项目任务导入模板.xlsx">项目任务模板下载</el-link>
- </el-form-item>
- <!-- <el-form-item label="2. 选择要导入的任务列表" v-if="false">
- <el-select v-model="importToStageId" placeholder="任务列表" style="width:350px;">
- <el-option v-for="item in stageList" :label="item.stagesName" :value="item.id" :key="item.id"></el-option>
- </el-select>
- </el-form-item> -->
- <div><span style="font-size:12px;color:#999;">如导入的任务属于多个列表,可在导入后拖拽来更改所属列表</span></div>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-upload ref="upload" action="#" :limit="1" :http-request="importTask" :show-file-list="false">
- <el-button type="primary" :underline="false" style="width:100%;" :loading="loadingExport">上传文件</el-button>
- </el-upload>
- </div>
- </el-dialog>
- </section>
- </template>
- <script>
- import util from "../../common/js/util";
- import draggable from 'vuedraggable';
- import tinymce from 'tinymce/tinymce'
- import 'tinymce/themes/silver/theme'
- import 'tinymce/skins/ui/oxide/skin.css';
- import FileCenter from './fileCenter.vue';
- import ProjectInfo from './info.vue';
- import Summary from './summary.vue';
- import Earning from './earning.vue';
- import CostBaseline from './CostBaseline.vue'
- // import editor from '@tinymce/tinymce-vue'
- // 富文本样式
- import 'quill/dist/quill.core.css'
- import 'quill/dist/quill.snow.css'
- import 'quill/dist/quill.bubble.css'
- // 导入富文本
- import { quillEditor } from 'vue-quill-editor'
- import { error } from 'dingtalk-jsapi';
- import delete$ from 'dingtalk-jsapi/api/biz/cspace/delete';
- let id=1;
- export default {
- name: "two-list-headerslots",
- display: "Two list header slot",
- order: 14,
- components: {
- draggable,
- // editor,
- FileCenter,
- ProjectInfo,
- Summary,
- CostBaseline,
- Earning,
- quillEditor // 富文本
- },
-
- data() {
- return {
- mileageCup: false,
- loadingExport : false,
- saveTemplateLoading: false,
- joinMembList:[],
- setInchargerDialog: false,
- recentProgressInfo:{},
- addToTmpDialog:false,
- templateForm:{},
- importTaskDialog:false,
- importToStageId:null,
- exportDialog: false,
- exportTaskType:null,
- groupTemplateList:[],
- createGroupWay:'new',
- modGroupDialog:false,
- subTaskVisible:false,
- orderList:[{id:"seq",name:"手动拖拽顺序",isDesc:false},{id:"create_date",name:"创建时间最晚",isDesc:true},
- {id:"end_date",name:"截止时间最晚",isDesc:true},
- {id:"task_level",name:"优先级最高",isDesc:true}],
- order:"seq",
- isDesc:false,
- taskDataList:[],
- displayTable: false,
- viewList: [{id:1,name:"全部任务"},{id:2,name:"进行中的任务"},{id:3,name:"已完成的任务"},{id:4,name:"待安排任务"},
- {id:5,name:"我创建的任务"},{id:6,name:"我执行的任务"},{id:7,name:"今天的任务"},{id:8,name:"已超期的任务"}],
- importanceList:[{id:0,name:"一般"},{id:1,name:"重要"},{id:2,name:"紧急"},],
- taskTypeList:[{id:0,name:"任务", icon:"iconfont firerock-iconrenwu"},{id:1,name:"里程碑",icon:"iconfont firerock-iconicon-"},{id:2,name:"风险",icon:"iconfont firerock-iconfengxian"}],
- taskTypeColor:['#20A0FF','#8613ad','#bf0404'],
- taskTypeIcon:['iconfont firerock-iconrenwu','iconfont firerock-iconicon-','iconfont firerock-iconfengxian'],
- taskStatusList:['进行中','已完成','已撤销'],
- //优先级
- taskLevelColor:['#262626','#E6A23C','#F56C6C'],
- stageListHeight:0,
- taskListinH:0,
- groupWidth:260,
- drag: false,
- stageDrag: false,
- dragging: false,
- stageList:[],
- selectedGroup:{},
- allGroupData:[],
- defaultGroupId:null,
- addGroupDialog: false,
- addStageDialog: false,
- groupSearch:null,
- groupType:0,//0-分组,1-视图
- groupList: [],
- groupForm:{},
- stageForm:[],
- curProjectId:null,
- projectList:null,
- activeIndex:"1",
- activeName:"projectInside",
- searchField:null,
- keyword:null,
- user: JSON.parse(sessionStorage.getItem("user")),
- permissions: JSON.parse(sessionStorage.getItem("permissions")),
- userDetailVisible: false,
- userDetail:{},
- date: new Date(),
- users: [],
- tableHeight: 0,
- listLoading: false,
-
- subProjectVisible: false,
- subProjectList: [],//子项目列表
- currentProject:{},
- addSubProject: false,
- addFormVisible: false,
- addLoading: false,
- title: "",
- addForm: {
- name: '',
- },
- rules: {
- name: [{ required: true, message: "请输入分组名称", trigger: "blur" }],
- },
- rules2: {
- stagesName: [{ required: true, message: "请输入任务列表名称", trigger: "blur" }],
- },
- taskRules : {
- name: [{ required: true, message: "请输入任务内容", trigger: "blur" }],
- },
- formGrouping: {
- name: [{ required: true, message: "请输入分组名称", trigger: "blur" }],
- },
- sleectId: null,
- sleectProjectId: null,
- sidebarIndex: 0, // 侧边栏索引
- url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
- count: 0,
- textarea2: '',
- taskId: null,
- commentList: [],
- radio: 0,
- critic: [], // 评论头像的数组
- editorOption: { // 富文本框里面的默认值
- placeholder: '请输入文本...',
- modules: {
- toolbar:[
- ['bold', 'italic', 'underline', 'strike'], //加粗,斜体,下划线,删除线
- // ['blockquote', 'code-block'], //引用,代码块
-
- [{ 'header': 1 }, { 'header': 2 }], // 标题,键值对的形式;1、2表示字体大小
- // [{ 'list': 'ordered'}, { 'list': 'bullet' }], //列表
- // [{ 'script': 'sub'}, { 'script': 'super' }], // 上下标
- // [{ 'indent': '-1'}, { 'indent': '+1' }], // 缩进
- // [{ 'direction': 'rtl' }], // 文本方向
-
- [{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小
- [{ 'header': [1, 2, 3, 4, 5, 6, false] }], //几级标题
-
- [{ 'color': [] }, { 'background': [] }], // 字体颜色,字体背景颜色
- // [{ 'font': [] }], //字体
- [{ 'align': [] }], //对齐方式
-
- ['clean'], //清除字体样式
- // ['image','video'] //上传图片、上传视频
- ['image'] //上传图片、上传视频
- ], //工具栏设置
- },
- theme: 'snow',
- },
- textContent: true, // 控制提交
- times: null,
- text2: '',
- innerVisibless: false, // 任务展示弹出层
- activities: [{
- content: '状态正常',
- timestamp: '7小时前',
- size: 'large',
- type: 'primary',
- icon: 'el-icon-circle-check',
- color: '#409EFF'
- }, {
- content: '进展逾期',
- timestamp: '八小时前',
- color: '#F87872'
- }],
- ProgressList: [],
- checkboxGrounp: [], // 选中人的数据
- checkLists: [], // 选中人数据的ID
- taskIid: null,
- gstimday:[],
- gstimhour:[],
- timelabel: false,
- relationdata: [],
- isRelationTab: false,
- relationvalue:[],
- relationSubTaskList:[],
- relationItemData: null,
- relationPar:{name: ''},
- isRelationItem: false,
- // 关联文件
- fileListLoading:false,
- projectFileList:[],
- taskFileList:[],
- relationFileDialog: false,
- addFileId: null,
- isEditFile: false,
- // 设置项目参与人
- participantsDialog: false,
- participantsFilterText: '',
- deptMembData: [
- {
- id: 0,
- label: '未分配',
- }
- ],
- defaultProps: {
- children: 'children',
- label: 'label'
- },
- chosenMembCount: 0,
- ididid:null,
- alreadyPartArray: [],
- projectCreatorId: null,
- projectInchargerId: null,
- canAddTask: false, // 分组创建任务的判断
- groupResponsibleId: '', // 分组负责人的id
- groupDetailsShow: false,
- groupDetailData: {},
- groupDetailTil: ''
- };
-
- },
- watch: {
- participantsFilterText(val) {
- this.$refs.chooseMembTree2.filter(val);
- }
- },
- methods: {
- test(item){
- // let pro = this.$route
- console.log('test',this.projectList);
-
- },
- setParticipants(){
- let chosenList = this.$refs.chooseMembTree2.getCheckedNodes();
- let chose2 = chosenList.filter(item=>item.isUser == 1)
- let chose3 = []
- for(let i=0;i<chose2.length;i++){chose3.push(chose2[i].id)}
- console.log('test',chose2,chose3);
- this.http.post('/group-participator/save',{
- groupId: this.ididid,
- idsJson: JSON.stringify(chose3)
- },res => {
- if(res.code == 'ok'){
- this.participantsDialog = false
- this.$message({
- message: '设置成功',
- type: 'success'
- })
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 设置项目参与人
- setupParticipants(item){
- this.ididid = item.id
- this.participantsFilterText = ''
- console.log(item);
- this.participantsDialog = true
- this.getAlreadyPartArray(item.id)
- this.getDepartmentList()
-
-
- },
- // 获取用于设置参与人的列表
- getDepartmentList(){
- this.http.post('/department/listAllMemb',{
- },res => {
- if(res.code == 'ok'){
- let list = res.data
- this.haveUsersList(list)
- this.deptMembData = JSON.parse(JSON.stringify(list))
- console.log('123',this.deptMembData);
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- haveUsersList(list){
- for (var i in list) {
- if (list[i].children != null) {
- this.haveUsersList(list[i].children);
- }
- if (list[i].userList != null) {
- if (list[i].children == null) {
- list[i].children = [];
- }
- list[i].userList.forEach(element => {
- var obj = {id: element.id, label:element.name, parentId:element.departmentId, isUser:1};
- list[i].children.push(obj);
- });
- }
- }
- },
- // 获取已参与人员
- getAlreadyPartArray(eid){
- this.http.post('/group-participator/get',{
- groupId: eid
- },res => {
- if(res.code == 'ok'){
- this.alreadyPartArray = res.data
- this.chosenMembCount = res.data.length
- // console.log('get',res.data, this.alreadyPartArray)
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 筛选逻辑
- filterNode(value, data) {
- if (!value) return true;
- return data.label.indexOf(value) !== -1;
- },
- // 选中改变
- onTreeItemChange() {
- var chosenList = this.$refs.chooseMembTree2.getCheckedNodes();
- var list = chosenList.filter(item=>item.isUser == 1);
- this.chosenMembCount = list.length;
- },
-
- // 关联文件按钮
- relationFileClick(){
- this.relationFileDialog = true
- this.addFileId = null
- this.getProjectFileList()
- },
- // 确认关联文件
- addTaskFile(){
- if(this.addFileId == null){
- this.$message({message: '请选择关联文件' , type: 'warning'})
- return
- }
- this.http.post('/task-files/addDocumentRef',{
- documentId: this.addFileId,
- taskId: this.addForm.id,
- projectId: this.curProjectId
- },res => {
- if(res.code == 'ok'){
- this.$message({
- message: '关联成功',
- type: 'success'
- })
- this.relationFileDialog = false
- this.getTaskFileList()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 获取项目下的文档列表
- getProjectFileList(){
- this.http.post('/task-files/getDocumentList',{
- projectId: this.curProjectId
- },res => {
- if(res.code == 'ok'){
- this.projectFileList = res.data
- console.log('list',res.data);
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 获取任务下的文档列表
- getTaskFileList(e,eid){
- let etaskId
- if(e == 1){etaskId = eid}
- else{etaskId = this.addForm.id}
- this.fileListLoading = true
- this.http.post('/task-files/getTaskFiles',{
- taskId: etaskId
- },res => {
- if(res.code == 'ok'){
- this.fileListLoading = false
- this.taskFileList = res.data
- console.log('taskFileList',res.data);
- }else {
- this.fileListLoading = false
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.fileListLoading = false
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 列表的删除按钮
- taskFileDelete(eid){
- this.$confirm('是否确定取消关联此文件?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(()=>{
- this.http.post('/task-files/delete',{
- id: eid
- },res => {
- if(res.code == 'ok'){
- this.$message({
- message: res.data,
- type: 'success'
- })
- this.getTaskFileList()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- }).catch(()=>{
- this.$message({
- message: '已取消删除',
- type: 'info'
- })
- })
- },
- // 列表的上传按钮
- uploadFileClick(item){
- console.log("upload",item.file);
- let files = new FormData()
- files.append("projectId",this.curProjectId);
- files.append("taskId", this.addForm.id);
- files.append("file", item.file);
- this.http.uploadFile('/task-files/uploadFile',files,
- res => {
- if(res.code == 'ok'){
- console.log(res);
- this.$message({
- message: '已上传',
- type: 'success'
- })
- this.getTaskFileList()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- selchg(){ //类型切换
- if(this.addForm.taskType == 1){
- this.timelabel = true
- if(!this.addForm.executorListFront[0].executorId) {
- console.log(this.currentProject)
- this.addForm.executorListFront[0].executorId = this.currentProject.inchargerId
- }
- }else{
- this.timelabel = false
- }
- },
- addRelation(){ //关联任务卡片
- this.relationvalue = []
- this.isRelationTab = true
- this.getrelation()
-
- },
- addRelationTask(){ //添加关联任务
- this.http.post('/task/addMileStoneTask',{
- milestoneId: this.addForm.id,
- taskIds: JSON.stringify(this.relationvalue)
- },
- res =>{
- if(res.code == "ok") {
- this.isRelationTab = false
- this.$message({
- message: '添加成功',
- type: 'success'
- })
- this.getRelationTaskList()
- this.$forceUpdate()
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },
- error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- getRelationTaskList(i,e){ //获取关联任务列表
- let eid = null
- if(i){
- eid = e
- }else{
- eid = this.addForm.id
- }
- this.http.post('/task/getMilestoneTaskList',{
- milestoneId: eid
- },res => {
- if(res.code == 'ok') {
- this.relationSubTaskList = res.data
- // console.log('res',res.data);
- }else {
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- getrelation(){ //获取选择关联列表
- this.http.post('/task/getTaskOnlyList',{
- projectId: this.curProjectId
- },
- res => {
- if (res.code == "ok") {
- this.relationdata = []
- res.data.forEach( (item) =>{
- if(item.taskType != 1){
- this.relationdata.push(item)
- }
- })
-
- // console.log('map',this.relationdata);
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 里程碑关联任务列表
- // 解除关联
- deleteRelationItem(eid){
- this.listLoading = true
- this.http.post('/task/removeMileStoneTask',{
- id: eid
- },res => {
- if(res.code == 'ok') {
- this.getRelationTaskList()
- this.listLoading = false
- this.$message({
- message: '解除成功',
- type: 'success'
- })
- }else {
- this.listLoading = false
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.listLoading = false
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- // 关联任务列表是否完成修改
- relationFinishTask(row){
- this.http.post('/task/finish',{
- id: row.taskId,
- taskStatus: row.taskStatus
- },res => {
- if(res.code == 'ok'){
- if(this.groupType == 0){
- this.getStageList();
- }else {
- this.getViewTaskList();
- }
- }else{
- this.$message({
- message: res.msg,
- type: 'error'
- })
- }
- },error => {
- this.$message({
- message: error,
- type: 'error'
- })
- })
- },
- //保存分组负责人
- saveGroupIncharger() {
- this.http.post('/task-group/saveGroupIncharger', {id: this.groupForm.id, inchargerId: this.groupForm.inchargerId, projectId: this.curProjectId},
- res => {
- this.setInchargerDialog = false;
- if (res.code == "ok") {
- this.$message({
- message: '设置成功',
- type: "success"
- });
- //更新原始分组数据
- this.groupList.filter(g=>g.id == this.groupForm.id)[0].inchargerId = this.groupForm.inchargerId;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
-
- },
- //删除模板
- deleteTemplate(t) {
- var that = this;
- this.$confirm("确认要删除["+t.name+"]吗?", "提示", {
- //type: 'warning'
- }).then(() => {
- this.http.post('/group-template/deleteTemplate', {id: t.id},
- res => {
- if (res.code == "ok") {
- this.getGroupTemplate();
- this.$message({
- message: '删除模板成功',
- type: "success"
- });
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- });
- },
- //创建模板
- createTemplate() {
- this.saveTemplateLoading = true;
- this.http.post('/group-template/addTemplate', this.templateForm,
- res => {
- this.saveTemplateLoading = false;
- if (res.code == "ok") {
- this.addToTmpDialog = false;
- this.getGroupTemplate();
- this.$message({
- message: '添加模板成功',
- type: "success"
- });
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- addToTemplate(item) {
- this.addToTmpDialog = true;
- this.templateForm = {groupId: item.id, name:item.name, saveTask:false, saveMileStone:false, saveRisk:false};
- },
- changeBase() {
- this.$refs.earning.refreshPage();
- },
- // 批量导入人员
- importTask(item) {
- //首先判断文件类型
- this.loadingExport = true
- let str = item.file.name.split(".");
- let format = str[str.length - 1];
- if (format != "xls" && format != "xlsx") {
- this.loadingExport = false
- this.$message({
- message: "请选择.xls或.xlsx文件",
- type: "error"
- });
- } else {
- this.listLoading = true;
- let formData = new FormData();
- formData.append("file", item.file);
- formData.append("projectId", this.curProjectId);
- formData.append("groupId", this.selectedGroup.id);
- // formData.append("stagesId", this.importToStageId);
- this.http.uploadFile('/task/importTask', formData,
- res => {
- this.$refs.upload.clearFiles();
- this.listLoading = false;
- this.loadingExport = false
- if (res.code == "ok") {
- this.$message({
- message: "导入成功",
- type: "success"
- });
- //重新读取列表
- this.getStageList();
- this.importTaskDialog = false;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$refs.upload.clearFiles();
- this.listLoading = false;
- this.loadingExport = false
- this.$message({
- message: error,
- type: "error"
- });
- });
- }
- },
- //删除任务进展
- deleteTaskProgress(id) {
- this.http.post('/task-progress/deleteProgress', {id: id},
- res => {
- if (res.code == "ok") {
- this.getTaskProgressList(this.taskIid)
- this.$message({
- message: '删除成功',
- type: "success"
- });
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- //创建任务进展
- addTaskProgress() {
- var param = {
- taskId: this.taskIid,
- status: this.radio,
- content: this.text2,
- participatorIds: this.checkLists.toString()
- };
- this.http.post('/task-progress/addProgress', param,
- res => {
- if (res.code == "ok") {
- this.shutPro()
- this.getTaskProgressList(this.taskIid)
- this.$message({
- message: '发布成功',
- type: "success"
- });
- this.checkboxGrounp = [],
- this.checkLists = [],
- this.text2 = '',
- this.radio = 0
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- //获取任务进展列表
- getTaskProgressList(taskId) {
- this.taskIid = taskId
- this.http.post('/task-progress/list', {taskId: taskId},
- res => {
- if (res.code == "ok") {
- this.ProgressList = res.data;
- this.recentProgressInfo = res.data[0]
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- kkk(el){
- var k = this.checkLists.indexOf(el.id)
- if (k == -1) {
- this.checkLists.push(el.id)
- } else {
- this.checkLists.splice(k, 1)
- }
- },
- showExportDialog() {
- this.exportDialog = true;
- },
- exportTask() {
- let _this = this;
- this.loadingExport = true
- this.http.post('/task/exportTask', {projectId: this.curProjectId, taskType: this.exportTaskType},
- res => {
- this.loadingExport = false
- if (res.code == "ok") {
- location.href = res.data;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- }
- );
- },
- sss(){
- this.$refs.addRem.style.display="none"
- },
- addprogress(){ // 添加子任务进展事件
- this.$refs.proBox.style.display="block"
- this.$refs.addPro.style.display="none"
- },
- shutPro() { // 关闭任务进展
- this.$refs.addPro.style.display="block"
- this.$refs.addRem.style.display="none"
- this.$refs.proBox.style.display="none"
- },
- addI() { // 打开选择查看
- this.$refs.addRem.style.display="block"
- },
- load() {
- if(this.count >= 0) return
- this.count += 2
- },
- onEditorFocus() {
- this.onEditorBlur()
- },
- subMission() { // 添加
- },
- handleCheckedCitiesChange(value) {
- let checkedCount = value.length;
- this.checkAll = checkedCount === this.cities.length;
- this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
- },
- // 获得焦点时触发
- onEditorBlur(){
- let theEle = this.$refs.text; // 获取元素
- var img = theEle.value.match(/<img[^>]+>/g); // 赛选 img 标签
- var arrImg = ''
- for (var j = 0; j < img.length; j++) {
- // 正则匹配,摘出img标签下的src里的内容,即capture
- img[j].replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, capture) {
- arrImg += capture
- });
- }
- // 原来的字符流大小,单位为字节
- var strLen = arrImg.length;
- // 计算后得到的文件流大小,单位为字节
- var fileSize=parseInt(strLen-(strLen/8)*2);
- var size = "";
- size = (fileSize/1024/1024).toFixed(2);
- if (size > 2){
- this.textContent = false
- this.$message({
- showClose: true,
- message: '图片超过了2MB,请重新上传',
- type: 'warning'
- });
- }
- this.textContent = true
- },
- // 侧边栏的点击事件
- retract() {
- if (this.$refs.box.className == 'el-icon-arrow-left') {
- this.$refs.box.className = 'el-icon-arrow-right'
- } else {
- this.$refs.box.className = 'el-icon-arrow-left'
- }
- // this.$refs.box.className === 'el-icon-arrow-left' ? this.$refs.box.className = 'el-icon-arrow-right' || this.$refs.box.className = 'el-icon-arrow-left'
- this.toggleGroup()
- },
- //
- choseTemplate(tIndex) {
- // this.groupTemplateList.forEach((g)=>{
- // g.selected = false;
- // })
- this.sidebarIndex = tIndex
- // this.groupTemplateList[tIndex].selected = true;
- this.groupTemplateList.forEach((g, i)=>{
- if(tIndex == i) {
- g.selected = !g.selected;
- }
- })
- },
- //获取分组模板列表
- getGroupTemplate() {
- this.http.post('/group-template/getList',{},
- res => {
- if (res.code == "ok") {
- this.groupTemplateList = res.data;
- this.groupTemplateList[0].selected = true;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
-
- },
- copyGroup(item) {
- this.http.post('/task-group/copy',{id: item.id},
- res => {
- if (res.code == "ok") {
- this.getTaskGroups();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //重启项目
- startPro() {
- this.http.post('/project/start',{id: this.curProjectId},
- res => {
- if (res.code == "ok") {
- this.$message({
- message: '重启成功',
- type: "success"
- });
- this.currentProject.status = 1;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //撤销项目
- cancelPro() {
- this.http.post('/project/cancel',{id: this.curProjectId},
- res => {
- if (res.code == "ok") {
- this.$message({
- message: '撤销成功',
- type: "success"
- });
- this.currentProject.status = 3;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //完成项目
- finishPro() {
- this.http.post('/project/finish',{id: this.curProjectId},
- res => {
- if (res.code == "ok") {
- this.$message({
- message: '项目完成',
- type: "success"
- });
- this.currentProject.status = 2;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //删除当前编辑的任务
- deleteTask() {
- var warning='';
- if (this.addForm.subTaskList.length > 0) {
- warning='您确定要删除当前任务及其子任务吗?';
- } else {
- warning='您确定要删除当前任务吗?';
- }
- this.$confirm(warning, "提示", {
- //type: 'warning'
- }).then(() => {
- this.http.post('/task/delete',{id: this.addForm.id},
- res => {
- if (res.code == "ok") {
- this.addFormVisible = false;
- this.getStageList();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- });
-
- },
- //tab页签切换
- handleClick(tab, event) {
- let pathModel = tab.name;
- this.$router.push('/'+pathModel+'/'+this.curProjectId);
- if(tab.name == 'costbaseline'){
- this.$refs.costbaseline.refreshPage();
- }
- if(tab.name == 'info') {
- this.$refs.projectInfo.getMileStoneList()
- }
- },
- showSubTaskList(task) {
- this.subTaskVisible = true;
- this.addForm = task;
- // console.log('click',task.subTaskList);
- },
- backToParentTask() {
- // this.getTaskDetail(this.addForm.parentTid);
- this.getTaskDetail(this.timelabel ? this.relationPar.id : this.addForm.parentTid);
- if(this.timelabel){
- this.isRelationItem = false
- // this.relationPar = {name: ''}
- this.getRelationTaskList(1, this.relationPar.id)
- this.gain(this.relationPar)
- }
- },
- //显示子任务创建卡片
- addSubTask() {
- if(this.isRelationItem){return}
- this.addFormVisible = true;
- this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
- this.addForm.executorListFront = [{executorId:null, planHours:8}];
- this.addLoading = false;
- },
- //认领任务
- addAsMyTask(task) {
- this.http.post('/task/addAsMyTask',{id: task.id},
- res => {
- if (res.code == "ok") {
- this.getStageList();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- taskLineClick(row, column, event) {
- if(this.isRelationItem){return}
- this.editTask(row);
- },
- //排序发生改变
- orderChange() {
- this.isDesc = this.orderList.filter(o=>o.id == this.order)[0].isDesc;
- if (this.groupType == 0) {
- this.getStageList();
- } else {
- this.getViewTaskList();
- }
- },
- //加载视图任务列表
- getViewTaskList() {
- this.http.post('/task/list',{projectId: this.curProjectId, viewId: this.selectedGroup.id, order: this.order, isDesc: this.isDesc},
- res => {
- if (res.code == "ok") {
- this.taskDataList = res.data;
- this.taskDataList.forEach(t=>{
- t.isFinish = t.taskStatus==1?true:false;
- });
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
-
- //阶段拖拽
- onMoveStage(e) {
- var data = {
- groupId:this.selectedGroup.id,
- oldIndex: e.oldIndex,
- newIndex: e.newIndex,};
- this.http.post('/stages/changeStageOrder',data,
- res => {
- if (res.code == "ok") {
- this.getStageList();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- onChange(e) {
- var data = {
- id:e.item.id,
- oldIndex: e.oldIndex ,
- newIndex: e.newIndex ,
- oldStagesId: e.from.id,
- newStagesId: e.to.id};
- this.http.post('/task/changeOrder',data,
- res => {
- if (res.code == "ok") {
- this.getStageList();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
-
- toggleGroup() {
- if (this.groupWidth == 0) {
- this.groupWidth = 260;
- } else {
- this.groupWidth = 0;
- }
- },
- finishTask(task) {
- console.log(123)
- this.http.post('/task/finish',{id: task.id, taskStatus: task.taskStatus},
- res => {
- if (res.code == "ok") {
- if (this.groupType == 0) {
- this.getStageList();
- } else {
- this.getViewTaskList();
- }
-
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 点击卡片事件
- editTask(task) {
- this.mileageCup = true
- // console.log('editTask',task)
- if(task.taskType == 1){
- this.timelabel = true
- this.isRelationItem = false
- }else{
- this.timelabel = false
- }
- this.addFormVisible = true;
- this.isEditFile = true;
- this.addLoading = false;
- this.title = "编辑任务";
- this.getTaskDetail(task.id);
- this.getTaskProgressList(task.id); // 获取任务进展列表
- this.getUsers(); // 获取名单数据
- this.gain(task); // 获取评论列表
- this.getRelationTaskList(1, task.id)
- this.getTaskFileList(1,task.id)
- },
- // 关联任务点击事件
- relationTaskClick(row,column,event){
- // console.log('relationTaskClick',row);
- this.relationPar = JSON.parse(JSON.stringify(this.addForm))
- // console.log(this.relationPar);
- this.addFormVisible = true;
- this.addLoading = false;
- this.isRelationItem = true;
- this.isEditFile = true;
- this.title = "编辑任务";
- this.getTaskDetail(row.taskId);
- this.getUsers();
- this.gain(row,1);
- this.getRelationTaskList(1, row.taskId)
- this.getTaskFileList(1,row.taskId)
- },
- // 获取评论列表
- gain (task,e) {
- this.commentList = [];
- this.taskId = e == 1 ? task.taskId : task.id;
- this.http.post('/task-comment/getList', {taskId: e == 1 ? task.taskId : task.id},
- res => {
- if (res.code == "ok") {
- this.commentList = res.data
- this.sppk(this.commentList) // 获取参与人的方法
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 获取评论参与人
- sppk(comit) {
- var sk = []
- comit.forEach(function(e){
- sk.push(e.userName)
- })
- this.critic = new Set(sk)
- },
- // 点击发布
- release() {
- if(this.textarea2.length <= 0) return this.$message({message: "请输入内容", type: "error"})
- this.http.post('/task-comment/add', {taskId: this.taskId, userId: this.user.id, content: this.textarea2},
- res => {
- if(res.code == "ok"){
- this.commentList.push(res.data)
- this.sppk(this.commentList)
- this.textarea2 = ""
- this.contRoll() // 滚动到底部
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- })
- },
- // 滚动到底部
- contRoll(){
- this.$nextTick(() => {
- this.$refs.main.scrollTop = this.$refs.contRoll.scrollHeight;
- })
- },
- chggstim(e,i){
- if(e){
- this.gstimday[i] = Math.ceil(this.gstimhour[i] / this.user.timeType.allday)
- }else{
- this.gstimhour[i] = this.gstimday[i] * this.user.timeType.allday
- }
- },
- getTaskDetail(id) {
- this.http.post('/task/getTask',{id: id},
- res => {
- if (res.code == "ok") {
- this.addForm = res.data;
- this.addForm.createDate = null;
- this.addForm.indate = null;
- this.addLoading = false;
- this.recentProgressInfo = this.addForm.progress;
- this.addForm.executorListFront = this.addForm.executorList;
- this.gstimday = []
- this.gstimhour = []
- for(let i=0;i<this.addForm.executorListFront.length;i++){
- this.gstimhour.push(this.addForm.executorListFront[i].planHours),
- this.gstimday.push(Math.ceil(this.addForm.executorListFront[i].planHours / this.user.timeType.allday))
- }
- //删除中间传值的变量数组
- delete this.addForm.executorList;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- addTask(stage) {
- this.mileageCup = false
- this.addFormVisible = true;
- this.addForm = {projectId: stage.projectId, groupId: stage.groupId, stagesId: stage.id, taskLevel:0, planHours: 8, taskType: 0};
- this.addForm.executorListFront = [{executorId:null, planHours:this.user.timeType.allday}];
- this.gstimhour = [this.user.timeType.allday]
- this.gstimday = [1]
- this.addLoading = false;
- this.isEditFile = false;
- this.title="创建任务";
- this.commentList = [];
- this.timelabel = false
- },
- addExecutorLine(e) {
- if(e == 1){
- if (this.relationItemData.executorList == null) {
- this.relationItemData.executorList = [];//初始化
- }
- this.relationItemData.executorList.push({executorId:null, planHours:this.user.timeType.allday});
- this.gstimday.push(1)
- this.gstimhour.push(this.user.timeType.allday)
- this.$forceUpdate();
- }else{
- if (this.addForm.executorListFront == null) {
- this.addForm.executorListFront = [];//初始化
- }
- this.addForm.executorListFront.push({executorId:null, planHours:this.user.timeType.allday});
- this.gstimday.push(1)
- this.gstimhour.push(this.user.timeType.allday)
- this.$forceUpdate();
- }
-
- },
- removeExecutorLine(index,e) {
- if(e == 1){
- this.relationItemData.executorList.splice(index,1);
- this.gstimday.splice(index,1)
- this.gstimhour.splice(index,1)
- this.$forceUpdate();
- }else{
- this.addForm.executorListFront.splice(index,1);
- this.gstimday.splice(index,1)
- this.gstimhour.splice(index,1)
- this.$forceUpdate();
- }
-
- },
- renameStage(item) {
- this.stageForm = JSON.parse(JSON.stringify(item));
- this.addStageDialog = true;
- },
- deleteStage(item) {
- var _this = this;
- var param = {id:item.id, groupId: item.groupId};
- this.$confirm("确认删除吗?", "提示", {
- //type: 'warning'
- }).then(() => {
- this.http.post('/stages/delete',param,
- res => {
- if (res.code == "ok") {
- // this.stageList = res.data;
- this.getStageList();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- });
- },
- //加载项目内的任务列表
- getStageList() {
- this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
- res => {
- if (res.code == "ok") {
- this.stageList = res.data.list;
- this.canAddTask = res.data.canAddTask
- this.timess() // 处理时间的方法
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- timess(){
- // console.log('timess');
- var date = new Date()
- let Y = date.getFullYear()
- let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
- let D = date.getDate() < 10 ? ('0' + date.getDate()) : date.getDate()
- this.times = `${Y}-${M}-${D}`
- },
- addStagePost() {
- console.log('新增任务列表');
- let param = JSON.parse(JSON.stringify(this.stageForm));
- param.taskList = [];
- this.http.post('/stages/save',param,
- res => {
- if (res.code == "ok") {
- this.addStageDialog = false;
- this.stageList = res.data;
-
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- addStage() {
- this.addStageDialog = true;
- this.stageForm = {groupId: this.selectedGroup.id, projectId: this.curProjectId};
- },
- viewChange(index, indexPath) {
- this.groupType = 1;
- this.order = "create_date";
- this.isDesc = true;
- this.selectedGroup = this.viewList.filter(g=>g.id == index)[0];
- this.getViewTaskList();
- this.displayTable = true;
- } ,
- groupChange(index, indexPath) {
- console.log('店家了')
- this.groupType = 0;
- this.order = "seq";
- this.isDesc = false;
- this.selectedGroup = this.groupList.filter(g=>g.id == index)[0];
- this.groupResponsibleId = this.selectedGroup.inchargerId
- this.getStageList();
- this.displayTable = false;
- this.$forceUpdate()
- },
- //本地搜索组
- startSearchGroup() {
- if (this.groupSearch != null || this.groupSearch.length > 0) {
- this.groupList = this.allGroupData.filter(g=>g.name.indexOf(this.groupSearch) >= 0);
- } else {
- this.groupList = this.allGroupData;
- }
- },
- editIncharger(item) {
- this.groupForm = JSON.parse(JSON.stringify(item));
- this.setInchargerDialog = true;
- },
- renameGroup(item) {
- this.groupForm = JSON.parse(JSON.stringify(item));
- this.modGroupDialog = true;
- },
- deleteGroup(item) {
- var _this = this;
- this.$confirm("分组下的任务也将一同删除,您确认删除该分组吗?", "提示", {
- type: 'warning'
- }).then(() => {
- this.http.post('/task-group/delete',item,
- res => {
- if (res.code == "ok") {
- this.groupList = res.data;
- if (item.id == this.selectedGroup.id) {
- //之前选中的分组被删除了
- if (this.groupList.length > 0) {
- this.defaultGroupId = this.groupList[0].id;
- this.selectedGroup = this.groupList[0];
- this.groupChange(this.defaultGroupId)
- } else {
- this.selectedGroup = {};
- }
- }
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- });
- },
- getGroupDetails(obj) {
- this.http.post('/task-group/detail',{
- groupId: obj.id
- },
- res => {
- if (res.code == "ok") {
- this.groupDetailsShow = true
- this.groupDetailData = res.data
- this.groupDetailTil = obj.name + ' - 分组详情'
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- addTemplateGroup() {
- // var param = JSON.parse(JSON.stringify(this.groupTemplateList.filter(g=>g.selected)[0]));
- // delete param.stagesList;
- // param.projectId = this.curProjectId;
- // var k = this.groupTemplateList[this.sidebarIndex].name
- // var s = null;
- // var xmz = this.groupList.forEach(function(a, b, c){
- // if (a.name == k) {
- // s = true
- // return
- // }
- // })
- // if (s){
- // this.addGroupDialog = false;
- // this.$message({
- // message: '当前项目已存在分组['+k+'],请修改组名后重试。',
- // type: "error"
- // });
- // return
- // }
- var param = JSON.parse(JSON.stringify(this.groupTemplateList.filter(g=>g.selected)))
- console.log(param, '你看看啊')
- for(var i in param) {
- delete param[i].stagesList
- }
- if(param.length < 1) {
- this.$message({
- message: '请选择模板',
- type: "error"
- });
- return
- }
- console.log(this.groupList)
- var s = null
- var k = ''
- var xmz = this.groupList.forEach(function(a, b, c){
- param.forEach((g, i) =>{
- if(a.name == g.name) {
- s = true
- k = g.name
- return
- }
- })
- })
- if (s){
- this.addGroupDialog = false;
- this.$message({
- message: '当前项目已存在分组['+k+'],请修改组名后重试。',
- type: "error"
- });
- return
- }
- console.log('将要闯过去的值', param)
- // return
- // this.http.post('/task-group/createFromTemplate',param,
- this.http.post('/task-group/createFromTemplate',{
- templateJson: JSON.stringify(param),
- projectId: this.curProjectId
- },
- res => {
- if (res.code == "ok") {
- this.selectedGroup = res.data
- this.sleectId = res.data.id
- this.sleectProjectId = res.data.projectId
- this.addGroupDialog = false;
- // this.getTaskGroups();
- this.getTaskGroup();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 重新定义了 addGroup 方法
- addGroup(formName) {
- // return
- this.$refs[formName].validate((valid) => {
- if (valid) {
- this.http.post('/task-group/save',this.groupForm,
- res => {
- if (res.code == "ok") {
- this.groupList = res.data;
- this.addGroupDialog = false;
- this.modGroupDialog = false;
- if (this.selectedGroup.id !== this.groupForm.id) {
- this.selectedGroup = this.groupList.filter(g=>g.new)[0];
- }
- this.defaultGroupId = this.groupList[this.groupList.length - 1].id
- // this.getTaskGroup();
- this.getStageList()
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- } else {
- console.log('error submit!!');
- return false;
- }
- });
- },
- createGroup() {
- this.addGroupDialog = true;
- this.groupForm = {projectId: this.curProjectId};
- },
- getInsideData() {
- this.getTaskGroups();
- },
- //加载项目内的任务分组
- getTaskGroups() {
- this.http.post('/task-group/list',{projectId: this.curProjectId},
- res => {
- if (res.code == "ok") {
- this.allGroupData = res.data;
- this.groupList = res.data;
- console.log(this.groupList,'grouplist');
- if (this.groupList.length > 0) {
- this.defaultGroupId = this.groupList[0].id;
- this.selectedGroup = this.groupList[0];
- this.groupResponsibleId = this.groupList[0].inchargerId;
- this.getStageList();
- } else {
- //清空任务列表
- this.defaultGroupId = null;
- this.selectedGroup = null;
- this.stageList = [];
- }
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- // 额外加的
- getTaskGroup() {
- this.http.post('/task-group/list',{projectId: this.curProjectId},
- res => {
- if (res.code == "ok") {
- this.allGroupData = res.data;
- this.groupList = res.data;
- if (this.groupList.length > 0) {
- this.defaultGroupId = this.sleectId;
- this.selectedGroup = this.groupList[res.data.length - 1];
- this.getStageList();
- } else {
- //清空任务列表
- this.defaultGroupId = null;
- this.selectedGroup = null;
- this.stageList = [];
- }
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //切换项目
- onProjectChange() {
- let path = this.$route.path;
- path = path.substring(0,path.lastIndexOf('/'))+'/'+this.curProjectId;
- this.$router.push(path);
- this.getTaskGroups();
- this.getDetail()
- this.$refs.fileCenter.refreshPage();
- this.$refs.projectInfo.refreshPage();
- this.$refs.summary.refreshPage();
- this.$refs.costbaseline.refreshPage();
- this.$refs.earning.refreshPage();
- if(this.user.companyId == '936') {
- this.$refs.projectInfo.getKeyNodes()
- }
- },
- //获取我的项目列表
- getMyProjectList() {
- this.http.post('/project/getProjectList', {
- },
- res => {
- if (res.code == "ok") {
- this.projectList = res.data;
- console.log('getprojectlist',res.data);
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- menuSelect() {
- },
- toList() {
- this.$router.push("/list");
- },
- searchList() {
- this.page = 1;
- this.getList();
- },
-
- //显示用户详情
- showUser(userId) {
- this.userDetailVisible = true;
- this.http.post(this.port.manage.userDetail, {
- userId: userId
- },
- res => {
- if (res.code == "ok") {
- this.userDetail = res.data;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
-
- getUsers() {
- // this.http.post(this.port.manage.list, {
- // departmentId: -1,
- // pageIndex: 1,
- // pageSize: -1
- // },
- this.http.post('/user/getSimpleActiveUserList', {},
- res => {
- if (res.code == "ok") {
- this.users = res.data;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- //获取项目列表
- getList() {
- this.listLoading = true;
- this.http.post(this.port.project.listPage, {
- pageIndex: this.page,
- pageSize: this.size,
- keyword:this.keyword,
- searchField: this.searchField,
- },
- res => {
- this.listLoading = false;
- if (res.code == "ok") {
- var list = res.data.records;
- for(var i in list) {
- var participator = list[i].participator , str = "";
- for(var j in participator) {
- if(j == participator.length-1) {
- str += participator[j].name
- } else {
- str += participator[j].name + ','
- }
- }
- list[i].userNames = str;
- }
- this.list = list;
- this.total = res.data.total;
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.listLoading = false;
- this.$message({
- message: error,
- type: "error"
- });
- });
- },
- submitInsert() {
- if (this.textContent !== true) return this.$message({
- showClose: true,
- message: '图片太大,请重新上传',
- type: 'warning'
- });
- //检查是有重名的执行人
- var exeList = this.addForm.executorListFront;
- // for(let i=0;i<this.gstimhour.length;i++){
- // exeList[i].planHours = this.gstimhour[i]
- // }
-
- for (var i=0;i<exeList.length;i++) {
- var findSameUser = false;
- exeList[i].planHours = this.gstimhour[i]
- for (var j=i+1;j<exeList.length; j++) {
- if (exeList[i].executorId && exeList[j].executorId && exeList[i].executorId == exeList[j].executorId) {
- findSameUser = true;
- break;
- }
- }
- if (findSameUser) {
- return this.$message({
- showClose: true,
- message: '执行人存在重复',
- type: 'error'
- });
- }
- }
- this.$refs.form1.validate(valid => {
- if (valid) {
- delete this.addForm.subTaskList;
- delete this.addForm.refTaskList;
- delete this.addForm.progress;
- //去掉没有执行人的.(因为要有计划工时,执行人可以暂不设置)
- // this.addForm.executorListFront = this.addForm.executorListFront.filter(exe=>exe.executorId);
- this.addForm.executorListStr = JSON.stringify(this.addForm.executorListFront);
- this.addLoading = true;
- this.http.post('/task/save',this.addForm,
- res => {
- this.addLoading = false;
- if (res.code == "ok") {
- this.$message({
- message: "提交成功",
- type: "success"
- });
-
- if (this.addForm.parentTid == null) {
- this.addFormVisible = false;
- if (this.groupType == 0) {
- this.getStageList();
- } else {
- this.getViewTaskList();
- }
- } else {
- this.backToParentTask();
- }
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- }
- );
- }
- });
- },
- DateChange(){
- if(this.addForm.startDate != undefined && this.addForm.endDate != undefined){
- let stdate = Date.parse(this.addForm.startDate)
- let eddate = Date.parse(this.addForm.endDate)
- if(stdate <= eddate){
- let days = (eddate - stdate) / (1*24*60*60*1000) + 1
- for (let i=0;i<this.gstimday.length;i++) {
- this.gstimday[i] = days
- this.gstimhour[i] = days * this.user.timeType.allday
- }
- this.$forceUpdate()
- }
- // console.log("gstimday",this.gstimday);
-
- }
-
- },
- // 删除
- deletePro(i, item) {
- this.$confirm("确定要项目" + item.projectName + "吗?","删除项目", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- this.listLoading = true;
- this.http.post(this.port.project.delete,{
- id: item.id
- },
- res => {
- this.listLoading = false;
- if (res.code == "ok") {
- this.$message({
- message: "删除成功",
- type: "success"
- });
- this.getList();
- } else {
- this.$message({
- message: res.msg,
- type: "error"
- });
- }
- },
- error => {
- this.listLoading = false;
- this.$message({
- message: error,
- type: "error"
- });
- }
- );
- })
- .catch(() => {});
- },
-
- detail(i) {
- this.$router.push("/list/" + this.list[i].id + "/" + this.list[i].projectName);
- },
- getDetail() {
- this.http.post('/project/detail',{
- id: this.curProjectId
- },
- res => {
- if (res.code == "ok") {
- console.log('触发更新试一下')
- this.currentProject = res.data;
- this.getjurisdictionIds(this.currentProject)
- this.joinMembList = this.currentProject.participationList;
- } else {
- }
- },
- error => {
- this.$message({
- message: error,
- type: "error"
- });
- }
- );
- },
- getjurisdictionIds(pro){
- console.log('pro',pro.creatorId);
- this.projectCreatorId = pro.creatorId
- this.projectInchargerId = pro.inchargerId
- }
- },
- created() {
- let height = window.innerHeight;
- this.tableHeight = height - 135;
- this.stageListHeight = this.tableHeight - 45;
- this.taskListinH = this.stageListHeight - 75;
- const that = this;
- window.onresize = function temp() {
- that.tableHeight = window.innerHeight - 135;
- that.stageListHeight = that.tableHeight - 45;
- that.taskListinH = that.stageListHeight - 75;
- };
- },
- mounted() {
- this.curProjectId = parseInt(this.$route.params.id);
- this.activeName = this.$route.path.split("/")[1];
- this.getDetail();
- this.getUsers();
- this.getMyProjectList();
-
- this.getInsideData();
- this.getGroupTemplate();
-
- }
- };
- </script>
- <style >
- .taskCardCircleBox{
- padding-left: 5px;
- display: flex;
- justify-content: left;
- align-items: center;
- }
- .flip-list-move {
- transition: transform 0.5s;
- }
- .no-move {
- transition: transform 0s;
- }
- .taskStage {
- margin:10px;
- display:inline-block;
- vertical-align:top;
- width: 331px;
- }
- .taskList {
- padding:7px;
- width:331px;
- }
- .taskListin{
- width: 317px;
- overflow: auto;
- }
- .taskList .stage {
- font-weight:bold;
- display:block;
- float:left;
- width:260px;
- overflow: auto;
- }
- .taskGroupClass {
- width: 180px;
- display: inline-block;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .taskCard {
- background: #fff;
- margin: 5px 0px;
- padding:5px;
- border: 1px solid #e6e6e6;
- border-radius: 3px;
- box-shadow: 3px 3px 3px #e6e6e6;
- min-height:60px;
- position: relative;
- border-radius: 3px;
- overflow: hidden;
- width: 288px;
- }
- .taskImg {
- position: absolute;
- box-sizing: border-box;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- }
- .taskImg img{
- position: absolute;
- top: -1px;
- }
- .hong:hover {
- border-top: 1px solid #ff0000;
- }
- .huang:hover {
- border-top: 1px solid #ff9600;
- }
- .hui:hover {
- border-top: 1px solid #c9c9c9;
- }
- .taskCard:hover {
- cursor: move;
- }
- .chosen {
- background-color: #000 !important;
- color: #fff;
- }
- .ghost {
- background-color: #fafafa !important;
- }
- .taskCard .cb {
- margin-right:5px;
- }
- .item {
- background:#fff;
- }
- .input-with-select .el-input-group__prepend {
- background-color: #fff;
- }
- .el-tabs__item {
- height:45px ;
- }
- .projectCls {
- margin-left:10px;margin-right:10px;
- }
- .heavyTxt {
- font-weight:bold;
- }
- .el-tabs__nav-wrap::after {
- height:0.5px;
- }
- .user_name_icon {
- text-align:center;border-radius:50%;color:white;float:right;font-size:10px;width:30px;height:30px;line-height:30px;
- transform: scale(0.8);
- }
- .task_name {
- color:#262626;
- display:inline-block;
- max-width: 235px;
- height: 25px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .task_name span{
- position: relative;
- top: 8px;
- }
- .cb {
- position: relative;
- top: -2px;
- }
- .group_style {
- border-radius: 5px;margin:2px 0px 2px 0px;height:40px;line-height:40px;
- }
- .el-tabs__nav-wrap::after {
- height:1px;
- }
- .el-tabs__header {
- margin:0 !important;
- }
- .single_line {
- overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
- }
- .sub_task_num {
- font-size:10px;
- color:#666;
- }
- .template_box {
- margin:20px 0px;
- }
- /* 项目阶段侧边栏样式 */
- .sidebar {
- width: 2px;
- background: #dddddd;
- position: relative;
- }
- .sidebar:hover {
- background: #20a0ff;
- }
- .sidebar:hover .etui {
- background: #20a0ff;
- border: #20a0ff;
- color: #fff;
- }
- .etui {
- width: 15px;
- height: 40px;
- background: #fff;
- border: 1px solid #dddddd;
- position: absolute;
- top: 50%;
- left: 0%;
- transform: translate(6%, -50%);
- color: rgb(192, 191, 191);
- box-sizing: border-box;
- }
- .etui i {
- display: inline-block;
- padding-top: 90%;
- /* padding-left: 15%; */
- font-weight: bold;
- }
- /* bug问题 */
- .task {
- box-sizing: border-box;
- padding-left: 10px;
- padding-right: 5px;
- }
- /* 评论部分 */
- .remark {
- width: 500px;
- height: 100%;
- background: #fff;
- position: absolute;
- top: 0;
- right: -500px;
- border-left: 3px solid #dddddd;
- }
- .jm {
- margin-left: -500px;
-
- }
- .bj {
- float: left;
- width: 90%;
- overflow: hidden;
- height: 65px;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .bj span {
- width: 50px;
- height: 50px;
- display: inline-block;
- border-radius: 50%;
- color: #fff;
- text-align: center;
- float: left;
- margin-right: 20px;
- margin-top: 10px;
- line-height: 50px;
- }
- .player {
- height: 15%;
- box-sizing: border-box;
- padding-left: 15px;
- border-bottom: 1px solid #dddddd;
- }
- .player p {
- margin: 0;
- padding: 2% 0;
- font-size: 18px;
- }
- .player .el-image {
- border-radius: 50%;
- margin-right: 10px;
- }
- .subject {
- height: 60%;
- box-sizing: border-box;
- }
- .sub-all {
- font-size: 20px;
- padding: 15px 0 15px 15px;
- }
- .sub-details {
- width: 100%;
- height: 87%;
- padding-right: 15px;
- box-sizing: border-box;
- overflow: hidden;
- overflow-y: scroll
- }
- .sub-details li {
- list-style:none
- }
- /* 红色背景显示日期 */
- .element_span {
- display: inline-block;
- background: #e62412;
- color: #fff;
- border-radius: 3px;
- padding: 3px;
- /* text-align: center; */
- font-size: 12px;
- margin-left: 5px;
- }
- .pro_btn{
- display: inline-block;
- float: right;
- }
- </style>
- <style lang="scss" scoped>
- .counli {
- em {
- font-style: normal;
- display: inline-block;
- margin-left: 9%;
- }
- span {
- float: right;
- }
- }
- .carts {
- position: relative;
- .el-image{
- border-radius: 50%;
- float: left;
- width: 20%;
- }
- i {
- width: 30px;
- height: 30px;
- // background: #778899;
- display: inline-block;
- float: left;
- border-radius:50%;
- font-style:normal;
- font-size: 12px;
- line-height: 30px;
- text-align: center;
- color: #fff;
- background: #778899;
- }
- div {
- text-align: left;
- p {
- text-align: left;
- margin-left: 10px;
- margin-left: 13%;
- }
- em {
- display: block;
- font-style: normal;
- margin-left: 13%;
- }
- }
- span {
- font-size: 10px;
- float: right;
- margin-top: -40px;
- }
- }
- .issue {
- // height: 20%;
- // position: relative;
- // z-index: 4;
- .zh{
- position: relative;
- width: 100%;
- height: 100%;
- }
- .textareays {
- background: #000;
- height: 140px;
- border: 0;
- .el-textarea__inner {
- height: 85%;
- }
- }
- .issue-button {
- position: absolute;
- bottom: 20px;
- right: 20px;
- }
- }
- .inputDeep {
- position: absolute;
- bottom: 85px;
- width: 95%;
- margin: 0 12px;
- }
- .inputDeep .el-textarea .el-textarea__inner{
- border: 0 !important;
- resize: none !important;
- }
- .inputDeeps .el-textarea__inner {
- border: 0 !important;
- resize: none !important;
- }
- .scop_span {
- display: inline-block;
- padding: 2px 5px;
- }
- </style>
- <style>
- .ql-snow .ql-picker.ql-size .ql-picker-label::before,
- .ql-snow .ql-picker.ql-size .ql-picker-item::before {
- content: "14px" !important;
- position: relative;
- top: -8px;
- }
- .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
- .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before {
- content: "10px" !important;
- }
- .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
- .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before {
- content: "18px" !important;
- }
- .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
- .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before {
- content: "32px" !important;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item::before {
- content: "文本" !important;
- position: relative;
- top: -8px;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
- content: "标题1" !important;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
- content: "标题2" !important;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
- content: "标题3" !important;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
- content: "标题4" !important;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
- content: "标题5" !important;
- }
- .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
- .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
- content: "标题6" !important;
- }
- .ql-snow .ql-picker.ql-font .ql-picker-label::before,
- .ql-snow .ql-picker.ql-font .ql-picker-item::before {
- content: "标准字体" !important;
- }
- .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
- .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before {
- content: "衬线字体" !important;
- }
- .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
- .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
- content: "等宽字体" !important;
- }
- /* .ql-picker-label {
- position: relative;
- } */
- .ql-picker-label svg {
- position: relative;
- top: -6px;
- }
- /* 任务进展 */
- .progress {
- border: 1px solid #ddd;
- border-radius: 5px;
- width: 100%;
- box-sizing: border-box;
- padding: 15px;
- position: relative;
- margin-bottom: 20px;
- }
- .remind {
- width: 95px;
- height: 60%;
- overflow-y:auto;
- position: absolute;
- background: #fff;
- padding: 10px;
- left: 0;
- top: 0;
- border: 1px solid #ddd;
- z-index: 999999;
- }
- .rala1 .el-radio__input.is-checked + .el-radio__label {
- color: #43d14f !important;
- }
- .rala1 .el-radio__input.is-checked .el-radio__inner {
- background: #43d14f !important;
- border-color: #43d14f !important;
- }
- .rala2 .el-radio__input.is-checked + .el-radio__label {
- color: #fd7624 !important;
- }
- .rala2 .el-radio__input.is-checked .el-radio__inner {
- background: #fd7624 !important;
- border-color: #fd7624 !important;
- }
- .rala3 .el-radio__input.is-checked + .el-radio__label {
- color: #fd4d47 !important;
- }
- .rala3 .el-radio__input.is-checked .el-radio__inner {
- background: #fd4d47 !important;
- border-color: #fd4d47 !important;
- }
- /* 任务进展列表 */
- .elCard {
- width: 100%;
- padding: 15px;
- box-sizing: border-box;
- border: 1px solid #EBEEF5;
- }
- .elCard_qu {
- float: right;
- margin-right: 15px;
- }
- .integrity {
- padding: 15px;
- }
- .write {
- float: right;
- color: #1B9AEE;
- }
- .ssp {
- position: absolute;
- right: 140px;
- top: 95px;
- width: 66%;
- height: 80%;
- }
- .examine {
- width: 100%;
- text-align: center;
- }
- .nones {
- width: 100%;
- height: 50px;
- text-align: center;
- color: #909399;
- line-height: 50px;
- border-top: 1px solid #EBEEF5;
- border-bottom: 1px solid #EBEEF5;
- font-size: 16px;
- }
- .icon {
- /* color: rgb(67, 209, 79); */
- display: block;
- width: 12px;
- height: 12px;
- background: #fff;
- position: absolute;
- top: 0;
- left: -33px;
- border-radius: 50%;
- border: 4px solid;
- }
- /* ddl */
- .ddl {
- height: 136px;
- overflow: hidden;
- border: 1px solid #EBEEF5
- }
- .tb{
- position: relative;
- }
- .dpl{
- position: absolute;
- font-size: 20px;
- left: -32px;
- top: 0px;
- }
- </style>
|