mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
讲师管理权限
This commit is contained in:
@@ -57,9 +57,6 @@ export function checkOwner(per) {
|
|||||||
export function checkMenu(path = "") {
|
export function checkMenu(path = "") {
|
||||||
return store?.state?.menus.some(t => path.split(",").some(s => "/" + s === t));
|
return store?.state?.menus.some(t => path.split(",").some(s => "/" + s === t));
|
||||||
}
|
}
|
||||||
export function checkBtn(path = "") {
|
|
||||||
return store?.state?.menus.some(t => path.split(",").some(s => s === t));
|
|
||||||
}
|
|
||||||
export function lecturerRoute(path = []) {
|
export function lecturerRoute(path = []) {
|
||||||
return path.split(",").findIndex(t => store?.state?.menus.some(s => s === "/" + t));
|
return path.split(",").findIndex(t => store?.state?.menus.some(s => s === "/" + t));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,10 +24,10 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<div style="width: 100%;"></div>
|
<div style="width: 100%;"></div>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div style="display: flex; margin-bottom: 20px">
|
||||||
<a-button @click="addTeacher()" type="primary" style="width:120px;" class="resetbtn">
|
<a-button v-if="checkMenu('lecturerAdd')" @click="addTeacher()" type="primary" style="width:120px;" class="resetbtn">
|
||||||
<div class="search"></div> 新增讲师
|
<div class="search"></div> 新增讲师
|
||||||
</a-button>
|
</a-button>
|
||||||
<div>
|
<div v-if="checkMenu('lecturerExport')">
|
||||||
<a-button @click="handleExport()" class="resetbtn">
|
<a-button @click="handleExport()" class="resetbtn">
|
||||||
<UploadOutlined /> 导出
|
<UploadOutlined /> 导出
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -40,12 +40,12 @@
|
|||||||
<template #action="{ record, column }">
|
<template #action="{ record, column }">
|
||||||
<a-space >
|
<a-space >
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
<a-button type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
<a-button type="link" v-if="checkMenu('lecturerEdit')" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||||
<a-button v-if="record.status == '1'" type="link"
|
<a-button v-if="record.status == '1'&&checkMenu('lecturerStop')" type="link"
|
||||||
@click="() => handleOperate(record, String(record.courseform))">停用</a-button>
|
@click="() => handleOperate(record, String(record.courseform))">停用</a-button>
|
||||||
<a-button v-if="record.status == '2'" type="link"
|
<a-button v-if="record.status == '2'&&checkMenu('lecturerStop')" type="link"
|
||||||
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
||||||
<a-button type="link" v-if="record.isSuperPermission==='true'" @click="() => deleteModal(record, String(record.courseform))"
|
<a-button type="link" v-if="record.isSuperPermission==='true'&&checkMenu('lecturerDel')" @click="() => deleteModal(record, String(record.courseform))"
|
||||||
>删除</a-button>
|
>删除</a-button>
|
||||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))"
|
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))"
|
||||||
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button> -->
|
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button> -->
|
||||||
@@ -300,6 +300,7 @@ import {getCookieForName} from "@/api/method"
|
|||||||
import SearchTeacher from "@/components/project/SearchTeacher";
|
import SearchTeacher from "@/components/project/SearchTeacher";
|
||||||
import avatar from '@/assets/avatar.png'
|
import avatar from '@/assets/avatar.png'
|
||||||
import LookExternalLecturer from "@/components/project/LookExternalLecturer";
|
import LookExternalLecturer from "@/components/project/LookExternalLecturer";
|
||||||
|
import { checkMenu } from '@/utils/utils'
|
||||||
export default {
|
export default {
|
||||||
name: "ExternalLecturer",
|
name: "ExternalLecturer",
|
||||||
components: {
|
components: {
|
||||||
@@ -871,6 +872,7 @@ export default {
|
|||||||
getTableDate, //list接口数据调用
|
getTableDate, //list接口数据调用
|
||||||
TeacherSystem,
|
TeacherSystem,
|
||||||
cancelTeacherDialog1,
|
cancelTeacherDialog1,
|
||||||
|
checkMenu
|
||||||
// getpromotionrecordstableData
|
// getpromotionrecordstableData
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -81,18 +81,18 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<div style="width: 100%;"></div>
|
<div style="width: 100%;"></div>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div style="display: flex; margin-bottom: 20px">
|
||||||
<!-- <a-button @click="addTeacher()" type="primary" class="langbtn">
|
<a-button v-if="checkMenu('lecturerRecordsAdd')" @click="addTeacher()" type="primary" class="langbtn">
|
||||||
<div class="search"></div> 添加授课记录
|
<div class="search"></div> 添加授课记录
|
||||||
</a-button> -->
|
</a-button>
|
||||||
<!-- <div style="margin-left: 20px ;">
|
<!-- <div style="margin-left: 20px ;">
|
||||||
<a-button @click="addTeacher()" class="langbtn">
|
<a-button @click="addTeacher()" class="langbtn">
|
||||||
<UploadOutlined /> 一键生成讲师费
|
<UploadOutlined /> 一键生成讲师费
|
||||||
</a-button>
|
</a-button>
|
||||||
</div> -->
|
</div> -->
|
||||||
<!-- <a-button class="resetbtn" @click="handleImport()">
|
<a-button v-if="checkMenu('lecturerRecordsImport')" class="resetbtn" @click="handleImport()">
|
||||||
<DownloadOutlined /> 导入
|
<DownloadOutlined /> 导入
|
||||||
</a-button> -->
|
</a-button>
|
||||||
<a-button @click="handleExport()" class="resetbtn">
|
<a-button v-if="checkMenu('lecturerRecordsExport')" @click="handleExport()" class="resetbtn">
|
||||||
<UploadOutlined /> 导出
|
<UploadOutlined /> 导出
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -105,8 +105,8 @@
|
|||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
<a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1">编辑</a-button>
|
<a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1&&checkMenu('lecturerRecordsEdit')">编辑</a-button>
|
||||||
<a-button v-if="record.isSuperPermission==='true'" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
<a-button v-if="record.isSuperPermission==='true'&&checkMenu('lecturerRecordsDel')" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -410,6 +410,7 @@ import ProjectManagerOutTeacher from "@/components/project/ProjectManagerOutTeac
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { getTeacherCourseList, updateInTeacherCourse, getNewInTeacherCourseList, deleteInTeacherCourse, insertInTeacherCourse,selectSupplier } from "../../api/Teaching";
|
import { getTeacherCourseList, updateInTeacherCourse, getNewInTeacherCourseList, deleteInTeacherCourse, insertInTeacherCourse,selectSupplier } from "../../api/Teaching";
|
||||||
// import {getProjSt} from "../../api/indexProjStu";
|
// import {getProjSt} from "../../api/indexProjStu";
|
||||||
|
import { checkMenu } from '@/utils/utils'
|
||||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||||
export default {
|
export default {
|
||||||
name: "ExternalTeaching",
|
name: "ExternalTeaching",
|
||||||
@@ -1044,6 +1045,7 @@ const sendName=()=>{
|
|||||||
getTableDate, //list接口数据调用
|
getTableDate, //list接口数据调用
|
||||||
// getStu
|
// getStu
|
||||||
TeacherSystem,
|
TeacherSystem,
|
||||||
|
checkMenu
|
||||||
// getSysTypeMap
|
// getSysTypeMap
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -60,14 +60,14 @@
|
|||||||
|
|
||||||
</a-form>
|
</a-form>
|
||||||
<div style="width: 100%;"></div>
|
<div style="width: 100%;"></div>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div v-if="checkMenu('lecturerAdd')" style="display: flex; margin-bottom: 20px">
|
||||||
<a-button @click="addTeacher()" type="primary" class="resetbtn" style="width:120px;">
|
<a-button @click="addTeacher()" type="primary" class="resetbtn" style="width:120px;">
|
||||||
<div class="search"></div> 新增讲师
|
<div class="search"></div> 新增讲师
|
||||||
</a-button>
|
</a-button>
|
||||||
<div>
|
<div v-if="checkMenu('lecturerExport')">
|
||||||
<!-- <a-button @click="handleExport()" class="resetbtn">
|
<a-button @click="handleExport()" class="resetbtn">
|
||||||
<UploadOutlined /> 导出
|
<UploadOutlined /> 导出
|
||||||
</a-button> -->
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
@@ -90,12 +90,12 @@
|
|||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
|
|
||||||
<a-button v-if="(record.isPermission==='true'||record.isSuperPermission==='true')" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
<a-button v-if="(record.isPermission==='true'||record.isSuperPermission==='true')&&checkMenu('lecturerEdit')" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||||
<a-button v-if="record.status == '1'&&(record.isPermission==='true'||record.isSuperPermission==='true')" type="link"
|
<a-button v-if="record.status == '1'&&(record.isPermission==='true'||record.isSuperPermission==='true')&&checkMenu('lecturerStop')" type="link"
|
||||||
@click="() => handleOperate(record, String(record.courseform))">停用</a-button>
|
@click="() => handleOperate(record, String(record.courseform))">停用</a-button>
|
||||||
<a-button v-if="record.status == '2'&&(record.isPermission==='true'||record.isSuperPermission==='true')" type="link"
|
<a-button v-if="record.status == '2'&&(record.isPermission==='true'||record.isSuperPermission==='true')&&checkMenu('lecturerStop')" type="link"
|
||||||
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
||||||
<a-button v-if="record.isSuperPermission==='true'" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
<a-button v-if="record.isSuperPermission==='true'&&checkMenu('lecturerDel')" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))"
|
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))"
|
||||||
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button> -->
|
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
@@ -443,7 +443,7 @@ import AddContent from "../../components/project/AddContent.vue"
|
|||||||
import UploadDragger from "@/components/project/UploadDragger.vue"
|
import UploadDragger from "@/components/project/UploadDragger.vue"
|
||||||
import avatar from '@/assets/avatar.png'
|
import avatar from '@/assets/avatar.png'
|
||||||
import LookInsideLecturer from "../../components/project/LookInsideLecturer.vue"
|
import LookInsideLecturer from "../../components/project/LookInsideLecturer.vue"
|
||||||
import { checkBtn } from "../../utils/utils";
|
import { checkMenu } from "../../utils/utils";
|
||||||
export default {
|
export default {
|
||||||
name: "InsideLecturer",
|
name: "InsideLecturer",
|
||||||
components: {
|
components: {
|
||||||
@@ -1431,7 +1431,7 @@ export default {
|
|||||||
cancelupdialog,
|
cancelupdialog,
|
||||||
createupdialog,
|
createupdialog,
|
||||||
removeList,
|
removeList,
|
||||||
checkBtn,
|
checkMenu,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -103,15 +103,15 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<div style="width: 100%;"></div>
|
<div style="width: 100%;"></div>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div style="display: flex; margin-bottom: 20px">
|
||||||
<!-- <a-button @click="addTeacher()" type="primary" class="langbtn">
|
<a-button v-if="checkMenu('lecturerRecordsAdd')" @click="addTeacher()" type="primary" class="langbtn">
|
||||||
<div class="search"></div> 添加授课记录
|
<div class="search"></div> 添加授课记录
|
||||||
</a-button> -->
|
</a-button>
|
||||||
<!-- <a-upload multiple :headers="headers" :show-upload-list="false" :before-upload="beforeUpload2"> -->
|
<!-- <a-upload multiple :headers="headers" :show-upload-list="false" :before-upload="beforeUpload2"> -->
|
||||||
<!-- <a-button class="resetbtn" @click="handleImport()">
|
<a-button v-if="checkMenu('lecturerRecordsImport')" class="resetbtn" @click="handleImport()">
|
||||||
<DownloadOutlined /> 导入
|
<DownloadOutlined /> 导入
|
||||||
</a-button> -->
|
</a-button>
|
||||||
<!-- </a-upload> -->
|
<!-- </a-upload> -->
|
||||||
<a-button @click="handleExport()" class="resetbtn">
|
<a-button v-if="checkMenu('lecturerRecordsExport')" @click="handleExport()" class="resetbtn">
|
||||||
<UploadOutlined /> 导出
|
<UploadOutlined /> 导出
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,8 +130,8 @@
|
|||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
<a-button type="link" @click="() => handleModify(record, String(record.courseform))"
|
<a-button type="link" @click="() => handleModify(record, String(record.courseform))"
|
||||||
v-if="record.createFrom == 1">编辑 </a-button>
|
v-if="record.createFrom == 1&&checkMenu('lecturerRecordsEdit')">编辑 </a-button>
|
||||||
<a-button type="link" v-if="record.createFrom == 1 && record.isSuperPermission === 'true'"
|
<a-button type="link" v-if="record.createFrom == 1 && record.isSuperPermission === 'true'&&checkMenu('lecturerRecordsDel')"
|
||||||
@click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
@click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
@@ -526,6 +526,7 @@ import SearchTeacher from "@/components/project/SearchTeacher";
|
|||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import { queryTrainOrgPor,} from "../../api/organization";
|
import { queryTrainOrgPor,} from "../../api/organization";
|
||||||
|
import { checkMenu } from '@/utils/utils'
|
||||||
export default {
|
export default {
|
||||||
name: "InsideTeaching",
|
name: "InsideTeaching",
|
||||||
components: {
|
components: {
|
||||||
@@ -1546,7 +1547,8 @@ export default {
|
|||||||
cancelTeachingDialog,
|
cancelTeachingDialog,
|
||||||
// editTimeChange,
|
// editTimeChange,
|
||||||
scoreChange,
|
scoreChange,
|
||||||
locale
|
locale,
|
||||||
|
checkMenu
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<div style="width: 100%;"></div>
|
<div style="width: 100%;"></div>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<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> 添加费用
|
<div class="search"></div> 添加费用
|
||||||
</a-button>
|
</a-button>
|
||||||
<!-- <div style="margin-left: 20px ;">
|
<!-- <div style="margin-left: 20px ;">
|
||||||
@@ -102,10 +102,10 @@
|
|||||||
<UploadOutlined /> 一键生成讲师费
|
<UploadOutlined /> 一键生成讲师费
|
||||||
</a-button>
|
</a-button>
|
||||||
</div> -->
|
</div> -->
|
||||||
<a-button class="resetbtn" @click="handleImport()" >
|
<a-button v-if="checkMenu('lecturerExpenseImport')" class="resetbtn" @click="handleImport()" >
|
||||||
<DownloadOutlined /> 导入
|
<DownloadOutlined /> 导入
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="handleExport()" class="resetbtn">
|
<a-button v-if="checkMenu('lecturerExpenseExport')" @click="handleExport()" class="resetbtn">
|
||||||
<UploadOutlined /> 导出
|
<UploadOutlined /> 导出
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button v-if="orgList.length" @click="handleTeacher()" type="primary" class="langbtn">
|
<a-button v-if="orgList.length" @click="handleTeacher()" type="primary" class="langbtn">
|
||||||
@@ -123,13 +123,13 @@
|
|||||||
<template #bodyCell="{ record, column }">
|
<template #bodyCell="{ record, column }">
|
||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space >
|
<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>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
<!-- :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 :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" @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>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -599,6 +599,7 @@
|
|||||||
import { queryTrainOrgPor,} from "../../api/organization";
|
import { queryTrainOrgPor,} from "../../api/organization";
|
||||||
import dialog from '@/utils/dialog';
|
import dialog from '@/utils/dialog';
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
|
import { checkMenu } from '@/utils/utils'
|
||||||
export default {
|
export default {
|
||||||
name: "LecturerFee",
|
name: "LecturerFee",
|
||||||
components: {
|
components: {
|
||||||
@@ -1927,6 +1928,7 @@ const column = ref([
|
|||||||
clearPayableExpense,
|
clearPayableExpense,
|
||||||
payExpense,
|
payExpense,
|
||||||
locale,
|
locale,
|
||||||
|
checkMenu
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space >
|
<a-space >
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
<a-button type="link" @click="handleLess(record)">撤回</a-button>
|
<a-button v-if="checkMenu('lecturerSummaryCancel')" type="link" @click="handleLess(record)">撤回</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
<!-- <span>讲师费发放情况</span> -->
|
<!-- <span>讲师费发放情况</span> -->
|
||||||
<a-table :columns="column" :scroll="{ x: '1000' }" :data-source="tableDatas" :loading="tableLoadings" :pagination="false">
|
<a-table :columns="column" :scroll="{ x: '1000' }" :data-source="tableDatas" :loading="tableLoadings" :pagination="false">
|
||||||
<template #action="{ record, column }">
|
<template #action="{ record, column }">
|
||||||
<a-button type="link" @click="handleDetail(record)">撤回</a-button>
|
<a-button v-if="checkMenu('lecturerSummaryCancel')" type="link" @click="handleDetail(record)">撤回</a-button>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- <div :style="{
|
<!-- <div :style="{
|
||||||
@@ -175,6 +175,7 @@ import {CostDetails} from "../lecturer/CostDetails.vue"
|
|||||||
// import * as api from '@/api/Lecturer'
|
// import * as api from '@/api/Lecturer'
|
||||||
import dialog from '@/utils/dialog'
|
import dialog from '@/utils/dialog'
|
||||||
import {message} from 'ant-design-vue'
|
import {message} from 'ant-design-vue'
|
||||||
|
import { checkMenu } from '@/utils/utils'
|
||||||
export default {
|
export default {
|
||||||
name: "MonthlyStatistics",
|
name: "MonthlyStatistics",
|
||||||
components: {
|
components: {
|
||||||
@@ -772,6 +773,7 @@ export default {
|
|||||||
sysTypeOptions,
|
sysTypeOptions,
|
||||||
endOrg,
|
endOrg,
|
||||||
handleBack,
|
handleBack,
|
||||||
|
checkMenu
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,13 +18,14 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<div style="width: 100%;"></div>
|
<div style="width: 100%;"></div>
|
||||||
<div style="display: flex; margin-bottom: 20px">
|
<div style="display: flex; margin-bottom: 20px">
|
||||||
<a-button @click="addTeacher()" type="primary" class="resetbtn" style="width: 164px;">
|
<a-button v-if="checkMenu('lecturerTrainOrgAdd')" @click="addTeacher()" type="primary" class="resetbtn" style="width: 164px;">
|
||||||
<div class="search"></div> 新增培训发生组织
|
<div class="search"></div> 新增培训发生组织
|
||||||
</a-button>
|
</a-button>
|
||||||
<div
|
<div
|
||||||
class="btnn btn2"
|
class="btnn btn2"
|
||||||
@click="downOpen"
|
@click="downOpen"
|
||||||
style="margin-right: 14px"
|
style="margin-right: 14px"
|
||||||
|
v-if="checkMenu('lecturerTrainOrgExport')"
|
||||||
>
|
>
|
||||||
<div class="daochu"></div>
|
<div class="daochu"></div>
|
||||||
<div class="btnText">导出</div>
|
<div class="btnText">导出</div>
|
||||||
@@ -38,11 +39,11 @@
|
|||||||
<lockLecturer :parentName="record.parentName" :id="record.id" :title="'培训发生组织详情'" @searchList="searchList">
|
<lockLecturer :parentName="record.parentName" :id="record.id" :title="'培训发生组织详情'" @searchList="searchList">
|
||||||
<div style="color: #1890ff;cursor: pointer;">查看</div>
|
<div style="color: #1890ff;cursor: pointer;">查看</div>
|
||||||
</lockLecturer>
|
</lockLecturer>
|
||||||
<a-button v-if="record.status!=2" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
<a-button v-if="record.status!=2&&checkMenu('lecturerTrainOrgEdit')" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||||
<a-button v-if="record.status==2&&false" type="link" @click="() => updateModal(record)">撤回</a-button>
|
<a-button v-if="record.status==2&&false" type="link" @click="() => updateModal(record)">撤回</a-button>
|
||||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
||||||
<a-button @click="isEnablePost(record,0)" v-if="record.enable" type="link" >启用</a-button>
|
<a-button @click="isEnablePost(record,0)" v-if="record.enable&&checkMenu('lecturerTrainOrgStop')" type="link" >启用</a-button>
|
||||||
<a-button @click="isEnablePost(record,1)" v-if="!record.enable" type="link" >停用</a-button>
|
<a-button @click="isEnablePost(record,1)" v-if="!record.enable&&checkMenu('lecturerTrainOrgStop')" type="link" >停用</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -309,6 +310,7 @@ import AddOrgContent from "../../components/project/AddOrgContent.vue"
|
|||||||
import * as lecturer from "../../api/Lecturer.js";
|
import * as lecturer from "../../api/Lecturer.js";
|
||||||
import lockLecturer from "@/components/project/lockLecturer"
|
import lockLecturer from "@/components/project/lockLecturer"
|
||||||
import AddApprover from '@/components/project/AddApprover'
|
import AddApprover from '@/components/project/AddApprover'
|
||||||
|
import { checkMenu } from '@/utils/utils'
|
||||||
export default{
|
export default{
|
||||||
name:"organization",
|
name:"organization",
|
||||||
components: {
|
components: {
|
||||||
@@ -905,6 +907,7 @@ const getTableDate = (obj) => {
|
|||||||
createTeacherDialog,
|
createTeacherDialog,
|
||||||
valueChange,
|
valueChange,
|
||||||
validateField,
|
validateField,
|
||||||
|
checkMenu,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user