mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
讲师管理权限
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
</a-form>
|
||||
<div style="width: 100%;"></div>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
<a-button @click="addTeacher()" type="primary" class="langbtn">
|
||||
<a-button v-if="checkMenu('lecturerExpenseAdd')" @click="addTeacher()" type="primary" class="langbtn">
|
||||
<div class="search"></div> 添加费用
|
||||
</a-button>
|
||||
<!-- <div style="margin-left: 20px ;">
|
||||
@@ -102,10 +102,10 @@
|
||||
<UploadOutlined /> 一键生成讲师费
|
||||
</a-button>
|
||||
</div> -->
|
||||
<a-button class="resetbtn" @click="handleImport()" >
|
||||
<a-button v-if="checkMenu('lecturerExpenseImport')" class="resetbtn" @click="handleImport()" >
|
||||
<DownloadOutlined /> 导入
|
||||
</a-button>
|
||||
<a-button @click="handleExport()" class="resetbtn">
|
||||
<a-button v-if="checkMenu('lecturerExpenseExport')" @click="handleExport()" class="resetbtn">
|
||||
<UploadOutlined /> 导出
|
||||
</a-button>
|
||||
<a-button v-if="orgList.length" @click="handleTeacher()" type="primary" class="langbtn">
|
||||
@@ -123,13 +123,13 @@
|
||||
<template #bodyCell="{ record, column }">
|
||||
<template v-if="column.key === 'operation'">
|
||||
<a-space >
|
||||
<a-button type="link" v-if="record.status==0||record.status==5" @click="updateModal(record,record.status)">{{record.status==0?'停用':'启用'}}</a-button>
|
||||
<a-button type="link" v-if="(record.status==0||record.status==5)&&checkMenu('lecturerExpenseStop')" @click="updateModal(record,record.status)">{{record.status==0?'停用':'启用'}}</a-button>
|
||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
||||
<a-button type="link" v-if="record.status == 0||record.status==4" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||
<a-button type="link" v-if="(record.status == 0||record.status==4)&&checkMenu('lecturerExpenseEdit')" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||
<!-- <a-button :disabled="record.status==='A20' || record.status==='A30'||record.status==='S20' ?true :false" type="link" @click="() => handleOperate(record, String(record.courseform))">提交</a-button> -->
|
||||
<!-- <a-button type="link" @click="handleOperate(record)">撤回</a-button> -->
|
||||
<a-button type="link" v-if="record.status==0||record.status==4||record.status==5" @click="deleteModal(record)">删除</a-button>
|
||||
<a-button type="link" v-if="(record.status==0||record.status==4||record.status==5)&&checkMenu('lecturerExpenseDel')" @click="deleteModal(record)">删除</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
@@ -599,6 +599,7 @@
|
||||
import { queryTrainOrgPor,} from "../../api/organization";
|
||||
import dialog from '@/utils/dialog';
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
import { checkMenu } from '@/utils/utils'
|
||||
export default {
|
||||
name: "LecturerFee",
|
||||
components: {
|
||||
@@ -1927,6 +1928,7 @@ const column = ref([
|
||||
clearPayableExpense,
|
||||
payExpense,
|
||||
locale,
|
||||
checkMenu
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user