mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
讲师管理权限
This commit is contained in:
@@ -18,13 +18,14 @@
|
||||
</a-form>
|
||||
<div style="width: 100%;"></div>
|
||||
<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> 新增培训发生组织
|
||||
</a-button>
|
||||
<div
|
||||
class="btnn btn2"
|
||||
@click="downOpen"
|
||||
style="margin-right: 14px"
|
||||
v-if="checkMenu('lecturerTrainOrgExport')"
|
||||
>
|
||||
<div class="daochu"></div>
|
||||
<div class="btnText">导出</div>
|
||||
@@ -38,11 +39,11 @@
|
||||
<lockLecturer :parentName="record.parentName" :id="record.id" :title="'培训发生组织详情'" @searchList="searchList">
|
||||
<div style="color: #1890ff;cursor: pointer;">查看</div>
|
||||
</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 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,1)" 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&&checkMenu('lecturerTrainOrgStop')" type="link" >停用</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
@@ -309,6 +310,7 @@ import AddOrgContent from "../../components/project/AddOrgContent.vue"
|
||||
import * as lecturer from "../../api/Lecturer.js";
|
||||
import lockLecturer from "@/components/project/lockLecturer"
|
||||
import AddApprover from '@/components/project/AddApprover'
|
||||
import { checkMenu } from '@/utils/utils'
|
||||
export default{
|
||||
name:"organization",
|
||||
components: {
|
||||
@@ -905,6 +907,7 @@ const getTableDate = (obj) => {
|
||||
createTeacherDialog,
|
||||
valueChange,
|
||||
validateField,
|
||||
checkMenu,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user