@ -15,7 +15,7 @@
< el -button class = "hidden-md-and-down" @click ="loadTasksToXmProjectPhase(sels)" v-loading ="load.edit" icon="el-icon-s-data" > 由任务汇总进度数据 < / el -button >
< el -button @click ="batchEditVisible=true" v-loading ="load.edit" icon="el-icon-edit" > 批量修改 < / el -button >
< el -button @click ="batchDel" v-loading ="load.del" icon="el-icon-delete" > 删除 < / el -button >
< el -button type = "danger" @click ="batchDel" v-loading ="load.del" icon="el-icon-delete" > 删除 < / el -button >
< / span >
< el -popover
placement = "top-start"
@ -70,28 +70,29 @@
<!-- 列表 XmProjectPhase xm_project_phase -- >
< el -table lazy :load ="loadXmProjectPhaseLazy" ref = "table" :height ="tableHeight" v-show ="!gstcVisible " default-expand-all :data="projectPhaseTreeData" :summary-method="getSummariesForNoBatchEdit" :show-summary="true" row-key="id" :tree-props="{children: 'children', hasChildren: 'childrenCnt'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" >
< el -table -column type = "selection" width = "80" >
< el -table -column type = "selection" width = "50" >
< / e l - t a b l e - c o l u m n >
< el -table -column type = "index" width = "50" >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "phaseName" label = "计划名称" min -width = " 150 " show -overflow -tooltip >
< template slot -scope = " scope " >
< span >
< span class = "vlink" @click ="showEdit(scope.row)" >
< span v-show ="scope.row.milestone=='1'" >
< i class = "el-icon-star-on" > < / i >
< / span >
< span v-show ="scope.row.isKeyPath=='1'" >
< i class = "el-icon-s-help" > < / i >
< / span >
< el -link :icon ="scope.row.ntype=='1'?'el-icon-folder-opened':''" type = "primary" @click ="showEdit(scope.row)" > {{ scope.row.seqNo }} & nbsp ; & nbsp ;
< / e l - l i n k >
{ { scope . row . phaseName } }
< font v-for ="item in [calcTaskStateByTime(scope.row.beginDate,scope.row.endDate,scope.row.actRate,scope.phaseStatus)]" :key="item.status"><el-tag :type="item.status" > {{ item.remark }} < / el -tag > < / font >
{ { scope . row . seqNo } } & nbsp ;
{ { scope . row . phaseName } }
< font v-for ="item in [calcTaskStateByTime(scope.row.beginDate,scope.row.endDate,scope.row.actRate,scope.phaseStatus)]" :key="item.status"><el-tag :type="item.status" > {{ item.remark }} < / el -tag > < / font >
< / span >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "mngUsername" label = "责任人" width = "80" show -overflow -tooltip >
< template slot -scope = " scope " >
< el -button type = "text " v-if ="!scope.row.mngUserid" v-model="scope.row.mngUsername" @click="groupUserSelectVisible=true" icon="el-icon-setting" > 去设置 < / el -button >
< el -link v -else type = "primary" @click ="groupUserSelectVisible=true" > {{ scope.row.mngUsername }} < / el -link >
< el -link type = "primary" title = "还没设置负责人,点击去设置 " v-if ="!scope.row.mngUserid" v-model="scope.row.mngUsername" @click="groupUserSelectVisible=true" icon="el-icon-setting" > 去设置 < / el -link >
< el -link v -else @click ="groupUserSelectVisible=true" > {{ scope.row.mngUsername }} < / el -link >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "beginDate" label = "起止时间" width = "120" show -overflow -tooltip >
@ -123,23 +124,11 @@
< font v-if ="options.xmPhaseStatus.some(i=>i.id==scope.row.phaseStatus)" > {{ options.xmPhaseStatus.find ( i = > i . id == scope . row . phaseStatus ) . name } } < / font >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "bizFlowState" label = "审批状态" width = "100" >
< template slot -scope = " scope " >
< el -tooltip :content ="showApprovaInfo(scope.row)" placement = "bottom" effect = "light" >
< el -tag v-if ="scope.row.flowState=='0'|| !scope.row.flowState" > 未发审 < / el -tag >
< el -tag v -else -if = " scope.row.flowState = = ' 1 ' " > 审核中 < / e l - t a g >
< el -tag v -else -if = " scope.row.flowState = = ' 2 ' " > 已通过 < / e l - t a g >
< el -tag v -else -if = " scope.row.flowState = = ' 3 ' " > 未通过 < / e l - t a g >
< el -tag v -else -if = " scope.row.flowState = = ' 4 ' " > 已取消 < / e l - t a g >
< / e l - t o o l t i p >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "操作" width = "200" >
< template slot -scope = " scope " >
< el -popover style = "padding-left:10px;"
placement = "top-start"
width = "250"
v - if = "scope.row.ntype=='1'"
width = "250"
trigger = "click" >
< el -row >
< el -col :span ="24" style = "padding-top:5px;" >
@ -155,12 +144,11 @@
< el -button type = "text" slot = "reference" icon = "el-icon-plus" > 子计划 < / e l - b u t t o n >
< / e l - p o p o v e r >
< el -button type = "text" @click ="showEdit(scope.row)" icon = "el-icon-edit" > 编辑 < / e l - b u t t o n >
< el -button type = "text" :disabled ="scope.row.childrenCnt>0" @click ="handleDel(scope.row)" icon = "el-icon-delete" > 删除 < / e l - b u t t o n >
< el -button type = "text" @click ="showEdit(scope.row)" icon = "el-icon-edit" > 编辑 < / e l - b u t t o n >
< span v-if ="scope.row.ntype!='1'" >
< el -dropdown @command ="handleCommand" :hide-on-click ="false" >
< el -dropdown @command ="handleCommand" :hide-on-click ="false" >
< span class = "el-dropdown-link" >
< i class = "el-icon-more " > < / i >
更多 < i class = "el-icon-arrow-down el-icon--right " > < / i >
< / span >
< el -dropdown -menu slot = "dropdown" >
< el -dropdown -item icon = "el-icon-edit" :command ="{type:'showTaskForBatchRelTasksWithPhase',row:scope.row}" > 批量关联任务 < / e l - d r o p d o w n - i t e m >