Browse Source

晾晒看板按钮权限

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

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

@ -1,7 +1,7 @@
<template>
<div style="margin: 1% 1% 1% 1%">
<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 type="primary" round @click="handleTimeOutInfo" :loading="btnLoading2">
@ -10,7 +10,7 @@
<el-button type="primary" round @click="handleProjectResult" :loading="btnLoading3">
导出项目成果</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
>
<a-upload
@ -19,6 +19,7 @@
@change="importChange"
:showUploadList="false"
style="margin-left: 20px;"
v-if="roleList.includes('sys:admin')"
>
<el-button type="primary" round> 导入评分信息 </el-button>
</a-upload>
@ -61,6 +62,11 @@
import { downloadFile } from '@/api/common/api';
import dayjs from 'dayjs';
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 btnLoading1 = ref(false);
const btnLoading2 = ref(false);

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

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

Loading…
Cancel
Save