From 61bece6b76109a3b90a720973e20c3a9f7dfa576 Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Fri, 12 Jan 2024 15:32:30 +0800
Subject: [PATCH] 更新
---
src/views/evaluate/evaluateTask.vue | 49 ++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/src/views/evaluate/evaluateTask.vue b/src/views/evaluate/evaluateTask.vue
index 33553f2..38befe7 100644
--- a/src/views/evaluate/evaluateTask.vue
+++ b/src/views/evaluate/evaluateTask.vue
@@ -27,19 +27,28 @@
<!-- <el-button type="warning" plain icon="el-icon-download" @click="handleExport">导出</el-button> -->
</template>
<template #menu="{ size, row, index }">
- <el-button type="primary" text plain icon="el-icon-view" @click="viewHandlerClick(row)">详情</el-button>
- <el-button type="primary" text plain icon="el-icon-position" v-if="!row.type && row.candidateState === 2 && !row.evaluateState"
- @click="taskPublicDialog(row)">发布</el-button>
+ <el-button type="primary" text plain icon="el-icon-view" @click="viewHandlerClick(row)">结果详情</el-button>
+ <el-button type="primary" text plain icon="el-icon-view"
+ @click="viewVotingDetailsHandlerClick(row)">投票详情</el-button>
+ <el-button type="primary" text plain icon="el-icon-position"
+ v-if="!row.type && row.candidateState === 2 && !row.evaluateState" @click="taskPublicDialog(row)">发布</el-button>
+ <el-button type="success" v-if="row.candidateState === 0" text plain icon="el-icon-edit"
+ @click="editTaskDialog(row)">编辑</el-button>
<el-button type="danger" text plain icon="el-icon-delete" @click="rowDel(row)">删除</el-button>
</template>
</avue-crud>
<!-- 新增个人评优任务弹窗 -->
<addIndividualTask :params="addIndividualParams" @refreshTable="this.onLoad" />
<addSectionTask :params="addSectionParams" @refreshTable="this.onLoad" />
+ <!-- 编辑任务 -->
+ <editIndividualTask :params="editIndividualTaskParams" @refreshTable="this.onLoad" />
+ <editSectionTask :params="editSectionTaskParams" @refreshTable="this.onLoad" />
<!-- 发布 -->
<individualTaskPublic :params="taskPublicParams" @refreshTable="this.onLoad" />
<!-- 预览 -->
<viewEvaluate :params="viewEvaluateParams" />
+ <!-- 投票详情 -->
+ <votingDetails :params="votingParams" />
</basic-container>
</template>
@@ -57,13 +66,19 @@
import addSectionTask from './components/addSectionTask.vue';
import viewEvaluate from './components/viewEvaluateDetail.vue';
import individualTaskPublic from './components/IndividualTaskPublic.vue';
+import votingDetails from './components/votingDetails.vue';
+import editIndividualTask from './components/editIndividualTask.vue'
+import editSectionTask from './components/editSectionTask.vue'
export default {
components: {
addIndividualTask,
addSectionTask,
individualTaskPublic,
- viewEvaluate
+ viewEvaluate,
+ votingDetails,
+ editIndividualTask,
+ editSectionTask
},
data() {
return {
@@ -99,7 +114,11 @@
},
// 信息预览弹窗
viewEvaluateParams: {},
- taskPublicParams: {}
+ taskPublicParams: {},
+ votingParams: {},
+ // 编辑
+ editIndividualTaskParams: {},
+ editSectionTaskParams: {},
};
},
watch: {
@@ -172,6 +191,26 @@
data: row
}
},
+ viewVotingDetailsHandlerClick(row) {
+ this.votingParams = {
+ visible: true,
+ data: row
+ }
+ },
+ editTaskDialog(row) {
+ if (!this.defaultTaskType) {
+ this.editIndividualTaskParams = {
+ visible: true,
+ data: row
+ }
+ } else {
+ this.editSectionTaskParams = {
+ visible: true,
+ data: row
+ }
+ }
+
+ },
taskPublicDialog(row) {
this.taskPublicParams = {
visible: true,
--
Gitblit v1.9.3