|
@@ -1684,10 +1684,11 @@
|
|
|
<el-row class="row-style" v-if="allotPerformance.performanceList.length > 0">
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6" v-for="(a, index) in allotPerformance.performanceList">
|
|
|
<el-card shadow="always" style="margin-top:30px;margin-right:15px;margin-bottom:30px;">
|
|
|
- <span v-if="a.isPrincipal" style="position:absolute; top:35px;left :87px"><el-tag
|
|
|
+ <span v-if="a.isPrincipal" style="position:absolute; top:45px;left :87px"><el-tag
|
|
|
type="danger">项目负责人</el-tag></span>
|
|
|
+ <i style="float: right; color: #1890ff;" class="el-icon-delete" @click="removePerformanceList(a)"></i>
|
|
|
<div class="performance-avatar-wrapper perfomance-icon-title">{{ a.userName.slice(-2) }}</div>
|
|
|
- <el-input v-model.number="a.ratio" type="number" style="width:80%;margin-left:5px">
|
|
|
+ <el-input v-model.number="a.ratio" type="number" style="width:80%;margin-left:5px;margin-top: 5px;">
|
|
|
<template slot="append">%</template>
|
|
|
</el-input>
|
|
|
</el-card>
|
|
@@ -4086,6 +4087,12 @@ export default {
|
|
|
});
|
|
|
this.needAddToPerformanceUsers = [];
|
|
|
},
|
|
|
+ removePerformanceList(a){
|
|
|
+ console.log(this.allotPerformance.performanceList);
|
|
|
+ console.log(a)
|
|
|
+ this.allotPerformance.performanceList = this.allotPerformance.performanceList.filter(item=>item.userId!=a.userId);
|
|
|
+ console.log(this.allotPerformance.performanceList)
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -4215,4 +4222,7 @@ a:hover{
|
|
|
position: relative;
|
|
|
top: -2px;
|
|
|
}
|
|
|
+.el-icon-delete:hover{
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|