|
@@ -11,11 +11,11 @@
|
|
|
<div class="item"><p>工时:</p><span>{{ planList.planWorkHour }}小时</span></div>
|
|
|
<div class="item" style="width: 100%;">
|
|
|
<p>组员:</p>
|
|
|
- <span :style="`color: #1989fa`" @click.stop="distributionProp()" v-if="planList.planProcedureTotals[0] && planList.planProcedureTotals[0].teamNames">
|
|
|
+ <span :style="`color: #333`" @click.stop="distributionProp()" v-if="planList.planProcedureTotals[0] && planList.planProcedureTotals[0].teamNames">
|
|
|
{{ planList.planProcedureTotals[0] && planList.planProcedureTotals[0].teamNames }}
|
|
|
<van-icon name="edit" color="#1989fa"/>
|
|
|
</span>
|
|
|
- <span :style="`color: #1989fa`" @click.stop="distributionProp()" v-if="!(planList.planProcedureTotals[0] && planList.planProcedureTotals[0].teamNames)">分配</span>
|
|
|
+ <span :style="`color: #1989fa`" @click.stop="distributionProp()" v-if="!(planList.planProcedureTotals[0] && planList.planProcedureTotals[0].teamNames) && beDeptList">分配</span>
|
|
|
</div>
|
|
|
<div class="planItem_conter_icon">
|
|
|
<van-icon name="arrow" size="20" color="#999" />
|
|
@@ -44,6 +44,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ beDeptList: JSON.parse(localStorage.getItem('beDeptList')), // 是否为工长
|
|
|
popupShow: false,
|
|
|
peopleList: {
|
|
|
planProcedureTotals: [{teamNames: ''}]
|
|
@@ -68,9 +69,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
distributionProp() {
|
|
|
- console.log(this.planList, '看看你')
|
|
|
- this.peopleListId = this.planList.planProcedureTotals[0] ? this.planList.planProcedureTotals[0].teamIds ? this.planList.planProcedureTotals[0].teamIds.split(',') : [] : []
|
|
|
- this.popupShow = true
|
|
|
+ if(this.beDeptList) {
|
|
|
+ console.log(this.planList, '看看你')
|
|
|
+ this.peopleListId = this.planList.planProcedureTotals[0] ? this.planList.planProcedureTotals[0].teamIds ? this.planList.planProcedureTotals[0].teamIds.split(',') : [] : []
|
|
|
+ this.popupShow = true
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
// 获取人员
|
|
|
getPeople() {
|