|
|
@@ -4,7 +4,7 @@
|
|
|
<div style="font-size: 24px">{{ m.meetingName }}</div>
|
|
|
<div>
|
|
|
<el-button size="mini" @click="meetingResultConfirm" type="primary" style="margin-right: 20px">会议结果确认</el-button>
|
|
|
- <el-button size="mini" @click="exportPdf" style="margin-right: 20px">导出</el-button>
|
|
|
+ <el-button size="mini" @click="exportPdf" style="margin-right: 20px" v-if="workScoreVisible">导出</el-button>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
@@ -95,7 +95,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="scores" label="评分" width="150" align="center" v-has-permi="['weekly:weekly:list']">
|
|
|
+ <el-table-column prop="scores" label="评分" width="150" align="center" v-if="workScoreVisible">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number size="mini" :precision="2" :step="0.1" :max="10" min="5" v-model="scope.row.score"
|
|
|
@change="workComment(scope.row)">
|
|
|
@@ -109,7 +109,7 @@
|
|
|
</el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="workComments" label="工作评论">
|
|
|
+ <el-table-column prop="workComments" label="工作评论" v-if="workScoreVisible">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.workComment" type="textarea" :autosize="{ minRows: 4}" @change="workComment(scope.row)"></el-input>
|
|
|
</template>
|
|
|
@@ -237,6 +237,7 @@ export default {
|
|
|
workPlanVisible:false,
|
|
|
projects:[],
|
|
|
row:null,
|
|
|
+ workScoreVisible:false,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -249,6 +250,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getData() {
|
|
|
+ //获取工作评分与工作评论权限
|
|
|
+ let permissions= this.$store.getters.permissions;
|
|
|
+ for(let i=0;i<permissions.length;i++){
|
|
|
+ if(permissions[i]==='weekly:weekly:score'){
|
|
|
+ this.workScoreVisible=true
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(JSON.stringify(permissions))
|
|
|
+
|
|
|
let meetingId = this.meetingId
|
|
|
let weeks = this.weeks
|
|
|
if (meetingId != null && weeks != null) {
|