1.季度审核,部门主任打分的时,各部门仅能看到自己的打分,看不到其他部门的打分结果包括平均分
This commit is contained in:
parent
be5105b809
commit
e69d38a3f3
@ -76,6 +76,15 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
isScore: false, //是否是部门打分节点
|
||||
isStrategy: true,
|
||||
isPlatform: true,
|
||||
isMarket: true,
|
||||
isService: true,
|
||||
strategyScoring: '',
|
||||
platformScoring: '',
|
||||
marketScoring: '',
|
||||
serviceScoring: '',
|
||||
isOffice: null,
|
||||
isExamine: 0,
|
||||
isSubmit: false,
|
||||
@ -114,6 +123,40 @@ export default {
|
||||
// this.initTableColumns()
|
||||
},
|
||||
methods: {
|
||||
getBusiness () {
|
||||
let id = getItem('userInfoId')
|
||||
Api.ProjectManagements.getBusiness(id).then(result => {
|
||||
if (result.status === 0) {
|
||||
let data = result.data
|
||||
switch (data) {
|
||||
case '战略规划部':
|
||||
this.isStrategy = false
|
||||
break
|
||||
case '平台建设部':
|
||||
this.isPlatform = false
|
||||
break
|
||||
case '市场发展部':
|
||||
this.isMarket = false
|
||||
break
|
||||
case '服务产品部':
|
||||
this.isService = false
|
||||
break
|
||||
default:
|
||||
this.isStrategy = false
|
||||
this.isPlatform = false
|
||||
this.isMarket = false
|
||||
this.isService = false
|
||||
break
|
||||
}
|
||||
} else {
|
||||
this.isStrategy = false
|
||||
this.isPlatform = false
|
||||
this.isMarket = false
|
||||
this.isService = false
|
||||
}
|
||||
this.initTableColumns()
|
||||
})
|
||||
},
|
||||
getOffice () {
|
||||
let id = this.$route.params.id
|
||||
Api.ProjectManagements.getOffice(id).then(result => {
|
||||
@ -126,7 +169,7 @@ export default {
|
||||
} else {
|
||||
this.$message.error(result.data)
|
||||
}
|
||||
this.initTableColumns()
|
||||
this.getBusiness()
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
@ -200,11 +243,17 @@ export default {
|
||||
this.tableRowsData.push(project)
|
||||
this.tableTotalPage = result.data.total
|
||||
}
|
||||
if (result.data.ls[0].ext.taskName == '部门主任评级') {
|
||||
this.isScore = true
|
||||
} else {
|
||||
this.isScore = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
//初始化tableColumns
|
||||
initTableColumns () {
|
||||
console.log('谁最快')
|
||||
if (!this.isOffice) {
|
||||
console.log('this.isOffice', this.isOffice)
|
||||
console.log('不是办公室')
|
||||
@ -295,27 +344,27 @@ export default {
|
||||
{
|
||||
label: '战略规划部评级',
|
||||
prop: 'strategyScoring',
|
||||
show: true
|
||||
show: !this.isStrategy
|
||||
},
|
||||
{
|
||||
label: '平台建设部评级',
|
||||
prop: 'platformScoring',
|
||||
show: true
|
||||
show: !this.isPlatform
|
||||
},
|
||||
{
|
||||
label: '市场发展部评级',
|
||||
prop: 'marketScoring',
|
||||
show: true
|
||||
show: !this.isMarket
|
||||
},
|
||||
{
|
||||
label: '服务产品部评级',
|
||||
prop: 'serviceScoring',
|
||||
show: true
|
||||
show: !this.isService
|
||||
},
|
||||
{
|
||||
label: '项目平均分',
|
||||
prop: 'sum',
|
||||
show: true
|
||||
show: !this.isScore
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -98,7 +98,7 @@
|
||||
>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="战略规划部评级" v-if="isOffice">
|
||||
<el-form-item label="战略规划部评级" v-if="isOffice && !isStrategy">
|
||||
<el-input
|
||||
class="form-input"
|
||||
placeholder="战略规划部部门主任才能打分"
|
||||
@ -107,7 +107,7 @@
|
||||
>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="平台建设部评级" v-if="isOffice">
|
||||
<el-form-item label="平台建设部评级" v-if="isOffice && !isPlatform">
|
||||
<el-input
|
||||
class="form-input"
|
||||
placeholder="平台建设部部门主任才能打分"
|
||||
@ -116,7 +116,7 @@
|
||||
>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="市场发展部评级" v-if="isOffice">
|
||||
<el-form-item label="市场发展部评级" v-if="isOffice && !isMarket">
|
||||
<el-input
|
||||
class="form-input"
|
||||
placeholder="市场发展部部门主任才能打分"
|
||||
@ -125,7 +125,7 @@
|
||||
>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="服务产品部评级" v-if="isOffice">
|
||||
<el-form-item label="服务产品部评级" v-if="isOffice && !isService">
|
||||
<el-input
|
||||
class="form-input"
|
||||
placeholder="服务产品部部门主任才能打分"
|
||||
|
Loading…
x
Reference in New Issue
Block a user