@ -31,19 +31,25 @@
< el -table -column sortable type = "selection" width = "40" > < / e l - t a b l e - c o l u m n >
< el -table -column prop = "phaseName" label = "阶段名称" min -width = " 160 " >
< template slot -scope = " scope " >
< el -link @click ="showEdit(scope.row)" > {{ scope.row.seqNo }} & nbsp ; & nbsp ; {{ scope.row.phaseName }} < / el -link >
{ { scope . row . seqNo } } & nbsp ; & nbsp ; < el -link type = "primary" @click ="showEdit(scope.row)" > {{ scope.row.phaseName }} < / el -link >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "mngUsername" label = "责任人" min -width = " 80 " >
< template slot -scope = " scope " >
< el -button v-if ="!scope.row.mngUserid" v-model="scope.row.mngUsername" @click="setMngUser" icon="el-icon-setting" > 去设置 < / el -button >
< el -link v -else type = "primary" icon = "el-icon-setting" @click ="setMngUser" > {{ 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 = "起止时间" min -width = " 150 " >
< template slot -scope = " scope " >
{ { formatDate ( scope . row . beginDate ) } } ~ { { formatDate ( scope . row . endDate ) } } < br / >
{ { formatDate ( scope . row . beginDate ) } } ~ { { formatDate ( scope . row . endDate ) } }
< div 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 > < / div >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "actRate" label = "进度.状态" width = "100" >
< template slot -scope = " scope " >
< el -tag > { { ( scope . row . actRate != null ? scope . row . actRate : 0 ) + '%' } } < /el-tag> <br/ >
< el -tag > { { formateOption ( 'xmPhaseStatus' , scope . row . phaseStatus ) } } < / e l - t a g >
< el -tag :type ="scope.row.actRate>=100?'success':'primary'" > { { ( scope . row . actRate != null ? scope . row . actRate : 0 ) + '%' } } < / e l - t a g >
<!-- < el -tag > { { formateOption ( 'xmPhaseStatus' , scope . row . phaseStatus ) } } < / e l - t a g > - - >
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column prop = "phaseBudgetHours" label = "工时.人时" min -width = " 200 " >
@ -75,7 +81,6 @@
< / 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 prop = "remark" label = "备注" min -width = " 80 " > < / e l - t a b l e - c o l u m n >
< el -table -column label = "操作" width = "100" fixed = "right" >
< template slot -scope = " scope " >
< el -dropdown @command ="handleCommand" :hide-on-click ="false" >
@ -989,7 +994,11 @@ import XmProjectPhaseBatch from './XmProjectPhaseBatch.vue';
} else if ( this . getDaysBetween ( curDate , start ) > 0 && this . getDaysBetween ( curDate , end ) <= 0 ) {
return { remark : this . toFixed ( this . getDaysBetween ( end , curDate ) ) + "天后结束" , status : 'primary' } ;
} else if ( this . getDaysBetween ( curDate , end ) > 0 ) {
return { remark : "逾期" + ( this . toFixed ( this . getDaysBetween ( curDate , end ) ) ) + "天" , status : 'danger' } ;
if ( actRate >= 100 ) {
return { remark : "已完工" + ( this . toFixed ( this . getDaysBetween ( curDate , end ) ) ) + "天" , status : 'success' } ;
} else {
return { remark : "逾期" + ( this . toFixed ( this . getDaysBetween ( curDate , end ) ) ) + "天" , status : 'danger' } ;
}
}
} ,
/ * *