|
|
@@ -95,7 +95,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleAudit(scope.row)"
|
|
|
- :disabled="scope.row.progressValue!=100||(scope.row.status!='2'&&scope.row.status!='3')"
|
|
|
+ :disabled="scope.row.progressValue!=100||(scope.row.status!='2'&&scope.row.status!='3')||scope.row.createBy!=userId"
|
|
|
v-hasPermi="['task:task:audit']"
|
|
|
>审核
|
|
|
</el-button>
|
|
|
@@ -181,7 +181,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 详情/审核任务对话框 -->
|
|
|
- <el-dialog :title="detailTitle" :visible.sync="detailOpen" width="680px" append-to-body
|
|
|
+ <el-dialog :title="detailTitle" :visible.sync="detailOpen" width="680px" class="add-dialog" append-to-body
|
|
|
:close-on-click-modal="false">
|
|
|
<task-detail :detail-form="detailForm"></task-detail>
|
|
|
<div v-if="detailTitle=='审核任务'" style="margin-top: 10px">
|
|
|
@@ -204,7 +204,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 分解任务对话框 -->
|
|
|
- <el-dialog title="分解任务" :visible.sync="splitOpen" width="500px" append-to-body :close-on-click-modal="false">
|
|
|
+ <el-dialog title="分解任务" :visible.sync="splitOpen" width="500px" class="add-dialog" append-to-body>
|
|
|
<el-form ref="splitForm" class="split-form" size="mini">
|
|
|
<el-form-item label="任务名称:">
|
|
|
<div>{{ splitForm.taskName }}</div>
|
|
|
@@ -287,6 +287,7 @@ import Project from "@/views/task/components/project";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import RichTextEditor from '@/components/RichTextEditor'
|
|
|
+import {mapGetters} from "vuex";
|
|
|
|
|
|
const statusMap = {
|
|
|
'0': {name: '待查看', type: 'info'},
|
|
|
@@ -300,6 +301,9 @@ export default {
|
|
|
name: "Task",
|
|
|
components: {Project, TaskDetail, DeptUserTree, FileUpload, Treeselect, RichTextEditor},
|
|
|
dicts: ['task_status'],
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['userId'])
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
projectOptions: [],
|