update:任务详情最上层添加编辑报告按钮

This commit is contained in:
2026-03-04 15:01:36 +08:00
parent 1c9e4a2d04
commit 933e48dd55
2 changed files with 26 additions and 10 deletions

View File

@@ -16,8 +16,14 @@
<!-- <el-tab-pane label="交付物" name="deliverable"></el-tab-pane> -->
</el-tabs>
<div class="approval-button" v-if="taskInfo.status != 3 && isPMemberOrEMember">
<el-button type="primary" @click="addApproveFun">发起评审</el-button>
<div class="approval-button">
<el-button v-if="isPMemberOrEMember" @click="reportInpDiaShow = true">编辑报告</el-button>
<el-button
type="primary"
v-if="taskInfo.status != 3 && isPMemberOrEMember"
@click="addApproveFun"
>发起评审</el-button
>
</div>
</div>
@@ -144,6 +150,8 @@
</div>
</template>
</Dialog>
<ReportInputDialog v-model="reportInpDiaShow" :taskId="currentTaskInfo?.uuid" />
</div>
</template>
@@ -166,6 +174,7 @@ import { getSimulationTaskFilesApi } from '@/api/data/dataAnalysis';
import videoFile from '@/components/taskDetail/videoFile.vue';
import reviewData from '@/components/taskDetail/reviewData.vue';
import { isSimManagerOrExecutor } from '@/utils/task';
import ReportInputDialog from '@/components/common/report/reportInputDialog.vue';
const props = defineProps({
taskInfo: {
@@ -197,6 +206,7 @@ const isPMemberOrEMember = isSimManagerOrExecutor(
);
const activeName = ref('report');
const approvaVisable = ref(false);
const reportInpDiaShow = ref(false);
const handleClickFun = () => {};
@@ -334,7 +344,7 @@ onMounted(async () => {
// }
:deep(.el-tabs__header) {
width: calc(100% - 130px);
width: calc(100% - 230px);
}
}

View File

@@ -229,11 +229,15 @@
</div>
</el-tab-pane> -->
</el-tabs>
<div
class="approval-button"
v-if="taskInfo.status != 3 && showApproval && isPMemberOrEMember"
>
<el-button type="primary" @click="addApproveFun">发起评审</el-button>
<div class="approval-button">
<el-button v-if="isPMemberOrEMember" @click="reportInpDiaShow = true">编辑报告</el-button>
<el-button
v-if="taskInfo.status != 3 && showApproval && isPMemberOrEMember"
type="primary"
@click="addApproveFun"
>发起评审</el-button
>
</div>
</div>
@@ -272,6 +276,7 @@
</div>
</template>
</Dialog>
<ReportInputDialog v-model="reportInpDiaShow" :taskId="currentTaskInfo.uuid" />
</div>
</template>
@@ -294,6 +299,7 @@ import taskDemand from '@/components/taskDetail/taskDemand.vue';
import { getSimulationTaskFilesApi } from '@/api/data/dataAnalysis';
import videoFile from '@/components/taskDetail/videoFile.vue';
import reviewData from '@/components/taskDetail/reviewData.vue';
import ReportInputDialog from '@/components/common/report/reportInputDialog.vue';
import { isSimManagerOrExecutor } from '@/utils/task';
const emits = defineEmits(['closeFn', 'updateFn']);
@@ -332,7 +338,7 @@ const isPMemberOrEMember = isSimManagerOrExecutor(
props.currentTaskInfo?.eMemberList || []
);
console.warn(isPMemberOrEMember, 'props.currentTaskInfo', props.currentTaskInfo);
const reportInpDiaShow = ref(false);
const dialogVisible = ref(true);
// const activeTab = ref(props.showTaskInfo ? 'info' : 'model-3d');
const activeTab = ref('info');
@@ -477,7 +483,7 @@ onMounted(async () => {
}
:deep(.el-tabs__header) {
width: calc(100% - 130px);
width: calc(100% - 230px);
}
}
.el-tabs {