Browse Source

晾晒看板按钮权限

master
wbc 1 week ago
parent
commit
5e365d099b
  1. 10
      src/views/projectBoard/unfinishNode/index.vue
  2. 4
      src/views/projectLib/projectPlan/childViewPlanDetail.vue

10
src/views/projectBoard/unfinishNode/index.vue

@ -1,7 +1,7 @@
<template> <template>
<div style="margin: 1% 1% 1% 1%"> <div style="margin: 1% 1% 1% 1%">
<div style="margin: 2% 0 2% 0"> <div style="margin: 2% 0 2% 0">
<el-button type="primary" round @click="handleProjectBoardInfo" :loading="btnLoading1"> <el-button type="primary" round @click="handleProjectBoardInfo" :loading="btnLoading1" v-if="roleList.includes('sys:admin')">
导出晾晒看报</el-button 导出晾晒看报</el-button
> >
<el-button type="primary" round @click="handleTimeOutInfo" :loading="btnLoading2"> <el-button type="primary" round @click="handleTimeOutInfo" :loading="btnLoading2">
@ -10,7 +10,7 @@
<el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3"> <el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3">
导出项目成果</el-button 导出项目成果</el-button
> >
<el-button type="primary" round @click="handleDeleteRedisKey" :loading="btnLoading4"> <el-button type="primary" round @click="handleDeleteRedisKey" :loading="btnLoading4" v-if="roleList.includes('sys:admin')">
同步实时数据</el-button 同步实时数据</el-button
> >
<a-upload <a-upload
@ -19,6 +19,7 @@
@change="importChange" @change="importChange"
:showUploadList="false" :showUploadList="false"
style="margin-left: 20px;" style="margin-left: 20px;"
v-if="roleList.includes('sys:admin')"
> >
<el-button type="primary" round> 导入评分信息 </el-button> <el-button type="primary" round> 导入评分信息 </el-button>
</a-upload> </a-upload>
@ -61,6 +62,11 @@
import { downloadFile } from '@/api/common/api'; import { downloadFile } from '@/api/common/api';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import { useUserStore } from '@/store/modules/user';
const userStore = useUserStore();
console.log( userStore.roleList)
const roleList = userStore.roleList
const tableLoading = ref(false); const tableLoading = ref(false);
const btnLoading1 = ref(false); const btnLoading1 = ref(false);
const btnLoading2 = ref(false); const btnLoading2 = ref(false);

4
src/views/projectLib/projectPlan/childViewPlanDetail.vue

@ -127,6 +127,7 @@
getPlanFileApprovalInfoByPlaninfoId, getPlanFileApprovalInfoByPlaninfoId,
planUploadFile, planUploadFile,
downloadPlanInfo, downloadPlanInfo,
deleteContractMoney
} from './projectPlan.api'; } from './projectPlan.api';
import { ActionItem, BasicTable, TableAction, useTable } from '@/components/Table'; import { ActionItem, BasicTable, TableAction, useTable } from '@/components/Table';
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
@ -350,6 +351,9 @@
planinfoid: UnitedTechnicalReviewmode.value, planinfoid: UnitedTechnicalReviewmode.value,
projectid: dataTo.projectId, projectid: dataTo.projectId,
}); });
} else if(taskName.value.indexOf('合同签订') >= 0) {
await deleteContractMoney(dataTo.projectId)
openPlanFile();
}else { }else {
openPlanFile(); openPlanFile();
} }

Loading…
Cancel
Save