Browse Source

权限

ops-management-platform-frontend-dev
gjh 4 weeks ago
parent
commit
b182b31eb5
  1. 6
      src/views/IO/workOrder/delayAudit/index.vue

6
src/views/IO/workOrder/delayAudit/index.vue

@ -4,7 +4,7 @@
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column && record && column.key === 'action'"> <template v-if="column && record && column.key === 'action'">
<a-button type="link" @click="showAuditModal(record.id)" v-if="record.handleResult=='待处理'">审核</a-button> <a-button type="link" @click="showAuditModal(record.id)" v-if="record.handleResult=='待处理'&&roleList[0]!='yunwei'">审核</a-button>
<a-button type="link" @click="showDrawer(record.id)">详情</a-button> <a-button type="link" @click="showDrawer(record.id)">详情</a-button>
</template> </template>
</template> </template>
@ -22,6 +22,7 @@
import auditModal from './auditModal.vue'; import auditModal from './auditModal.vue';
import detailDrawer from './detailDrawer.vue'; import detailDrawer from './detailDrawer.vue';
import { ref,onActivated } from 'vue'; import { ref,onActivated } from 'vue';
import { useUserStore } from '@/store/modules/user';
const [registerTable,{reload}] = useTable({ const [registerTable,{reload}] = useTable({
title: '延期审核', title: '延期审核',
@ -47,6 +48,9 @@
fixed: 'right', fixed: 'right',
}, },
}); });
//
const { roleList } = useUserStore();
console.log(roleList)
// //
const auditModalRef = ref(); const auditModalRef = ref();
const showAuditModal = (id:any) => { const showAuditModal = (id:any) => {

Loading…
Cancel
Save