|
@@ -16,7 +16,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
- <el-table :data="INSTACTIONTASKList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table v-hasPermi="['business:INSTACTIONTASK:byUser']" :data="INSTACTIONTASKList" @selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
<el-table-column label="活动名称" align="center" prop="acname">
|
|
|
<template slot-scope="scope">
|
|
@@ -53,16 +53,16 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="scope.row.status == '0'" size="mini" type="text" @click="handleExamine(scope.row)"
|
|
|
- v-hasPermi="['business:INSTACTIONTASK:query']">详情</el-button>
|
|
|
+ <el-button v-if="scope.row.status == '0' && checkPermi(['business:INSTACTIONTASK:query'])" size="mini" type="text" @click="handleExamine(scope.row)"
|
|
|
+ >详情</el-button>
|
|
|
|
|
|
- <el-button v-if="scope.row.status == '0'" size="mini" type="text" @click="handlePass(scope.row)"
|
|
|
- v-hasPermi="['task:instaction:approve']">通过审核</el-button>
|
|
|
+ <!-- <el-button v-if="scope.row.status == '0'" size="mini" type="text" @click="handlePass(scope.row)"
|
|
|
+ >通过审核</el-button>
|
|
|
<el-button v-if="scope.row.status == '0'" size="mini" type="text" @click="handleReject(scope.row)"
|
|
|
- v-hasPermi="['task:instaction:approve']">驳回</el-button>
|
|
|
+ >驳回</el-button> -->
|
|
|
|
|
|
<el-button size="mini" type="text" @click="handleDetail(scope.row)"
|
|
|
- v-hasPermi="['business:INSTACTIONTASK:query']" v-if="scope.row.status != '0'">详情</el-button>
|
|
|
+ v-if="scope.row.status != '0'">详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -83,9 +83,9 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<span slot="footer" class="dialog-footer" v-if="taskList.status == 0">
|
|
|
- <el-button type="primary" @click="submitBtn('同意')">同意</el-button>
|
|
|
- <el-button type="warning" @click="submitBtn('驳回')">驳回</el-button>
|
|
|
- <el-button type="danger" @click="submitBtn('退回')">退回</el-button>
|
|
|
+ <el-button v-if="checkPermi(['task:instaction:approve'])" type="primary" @click="submitBtn('同意')">同意</el-button>
|
|
|
+ <el-button v-if="checkPermi(['task:instaction:reject'])" type="warning" @click="submitBtn('驳回')">驳回</el-button>
|
|
|
+ <el-button v-if="checkPermi(['task:instaction:goback'])" type="danger" @click="submitBtn('退回')">退回</el-button>
|
|
|
</span>
|
|
|
<span slot="footer" class="dialog-footer" v-else>
|
|
|
<el-button type="primary" @click="backDia">返回</el-button>
|
|
@@ -106,6 +106,8 @@ import CompanyUserService from "@/views/CompanyUserService/index.vue";
|
|
|
import questionService from "@/views/QUESTION/questionService.vue";
|
|
|
import articleTask from "@/views/ARTICLE/task/index.vue";
|
|
|
import dataAcquisition from "@/components/DataAcquisition";
|
|
|
+import { checkPermi } from "@/utils/permission.js";
|
|
|
+
|
|
|
|
|
|
|
|
|
import {
|
|
@@ -247,6 +249,7 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ checkPermi,
|
|
|
closeDia() {
|
|
|
// console.log('关闭');
|
|
|
},
|