mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
细节调整
This commit is contained in:
@@ -44,7 +44,8 @@
|
|||||||
@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'" type="link"
|
||||||
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
@click="() => handleOperate(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))"
|
||||||
|
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -253,7 +254,8 @@ import {
|
|||||||
FolderAddOutlined
|
FolderAddOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import { getOutTeacherList, getOuterTeacherById, fileUp, deleteInTeacher, updateInTeacher, updateTeacherState, insertTeacherOutSide, updateOutTeacher } from "../../api/Lecturer";
|
import { getOutTeacherList, getOuterTeacherById, deleteInTeacher, updateInTeacher, updateTeacherState, insertTeacherOutSide, updateOutTeacher } from "../../api/Lecturer";
|
||||||
|
import { fileUp } from "../../api/indexEval";
|
||||||
import {getCookieForName} from "@/api/method"
|
import {getCookieForName} from "@/api/method"
|
||||||
import SearchTeacher from "@/components/project/SearchTeacher";;
|
import SearchTeacher from "@/components/project/SearchTeacher";;
|
||||||
export default {
|
export default {
|
||||||
@@ -633,8 +635,15 @@ export default {
|
|||||||
// ...state.searchParam
|
// ...state.searchParam
|
||||||
// }, `project_${new Date().getTime()}.xlsx` )
|
// }, `project_${new Date().getTime()}.xlsx` )
|
||||||
}
|
}
|
||||||
|
const lecturerAdmin = (admin)=>{
|
||||||
|
const roleCode = userInfo.value.roleList.map((item)=>item.roleCode)
|
||||||
|
if (admin){
|
||||||
|
return roleCode.some(t => t == admin)
|
||||||
|
}
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
lecturerAdmin,
|
||||||
rules,
|
rules,
|
||||||
rule,
|
rule,
|
||||||
formRef,
|
formRef,
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ import {
|
|||||||
FolderAddOutlined,
|
FolderAddOutlined,
|
||||||
DownloadOutlined
|
DownloadOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import ImportWork from "../../components/project/ImportWork.vue";
|
import ImportWork from "../../components/lecturer/ImportWork.vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import ProjectManagerOutTeacher from "@/components/project/ProjectManagerOutTeacher";
|
import ProjectManagerOutTeacher from "@/components/project/ProjectManagerOutTeacher";
|
||||||
|
|||||||
@@ -94,7 +94,8 @@
|
|||||||
@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'" type="link"
|
||||||
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
@click="() => handleOperate(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))"
|
||||||
|
v-if="lecturerAdmin('Lecturer-admin')">删除</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -1118,8 +1119,15 @@ export default {
|
|||||||
// ...state.searchParam
|
// ...state.searchParam
|
||||||
// }, `project_${new Date().getTime()}.xlsx` )
|
// }, `project_${new Date().getTime()}.xlsx` )
|
||||||
}
|
}
|
||||||
|
const lecturerAdmin = (admin)=>{
|
||||||
|
const roleCode = userInfo.value.roleList.map((item)=>item.roleCode)
|
||||||
|
if (admin){
|
||||||
|
return roleCode.some(t => t == admin)
|
||||||
|
}
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
lecturerAdmin,
|
||||||
rules,
|
rules,
|
||||||
rule,
|
rule,
|
||||||
formRef,
|
formRef,
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ import { message } from "ant-design-vue";
|
|||||||
import { getTeacherSystemList, infoteacher, getTeacherExpertise } from "../../api/Lecturer";
|
import { getTeacherSystemList, infoteacher, getTeacherExpertise } from "../../api/Lecturer";
|
||||||
import { getNewInTeacherCourseList, getOrganization, getTeacherCourseList, insertInTeacherCourse, updateInTeacherCourse, getCharges, deleteInTeacherCourse } from "../../api/Teaching";
|
import { getNewInTeacherCourseList, getOrganization, getTeacherCourseList, insertInTeacherCourse, updateInTeacherCourse, getCharges, deleteInTeacherCourse } from "../../api/Teaching";
|
||||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||||
import ImportWork from "../../components/project/ImportWork.vue";
|
import ImportWork from "../../components/lecturer/ImportWork.vue";
|
||||||
import { fileUp } from "../../api/Lecturer";
|
import { fileUp } from "../../api/Lecturer";
|
||||||
import SearchTeacher from "@/components/project/SearchTeacher";
|
import SearchTeacher from "@/components/project/SearchTeacher";
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user