mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 14:56:46 +08:00
Merge branch 'zcwy-teacher-manage' of https://codeup.aliyun.com/648097ddb583fece2f059e59/vue/fe-manage into zcwy-teacher-manage
This commit is contained in:
@@ -89,12 +89,12 @@
|
||||
<a-space>
|
||||
<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 v-if="record.status == '1'" type="link"
|
||||
<a-button v-if="record.isPermission" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||
<a-button v-if="record.status == '1'&&record.isPermission" type="link"
|
||||
@click="() => handleOperate(record, String(record.courseform))">停用</a-button>
|
||||
<a-button v-if="record.status == '2'" type="link"
|
||||
<a-button v-if="record.status == '2'&&record.isPermission" type="link"
|
||||
@click="() => handleOperate(record, String(record.courseform))">启用</a-button>
|
||||
<a-button v-if="lecturerAdmin('lecturer-admin')" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||
<a-button v-if="record.isSuperPermission" 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>
|
||||
@@ -360,7 +360,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="jsx">
|
||||
import { reactive, toRefs, ref, watch,computed } from "vue";
|
||||
import { reactive, toRefs, ref, watch,computed,onMounted } from "vue";
|
||||
import { useStore } from "vuex";
|
||||
import {
|
||||
RightOutlined,
|
||||
@@ -372,7 +372,7 @@ import Editor from "@/components/project/Editor";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import SearchTeacher from "@/components/project/SearchTeacher";
|
||||
import { message } from "ant-design-vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useRouter,useRoute } from "vue-router";
|
||||
import { getTeacherSystemList, getTeacherList, getPayRollPlace, getLevel, insertTeacher, deleteInTeacher, updateInTeacher, getTeacherById, updateTeacherState } from "../../api/Lecturer";
|
||||
import { fileUp } from "../../api/indexEval";
|
||||
import { teacherUpload } from "../../api/Teaching";
|
||||
@@ -395,7 +395,16 @@ export default {
|
||||
FolderAddOutlined,//图标--新增
|
||||
UploadDragger,
|
||||
},
|
||||
setup() {
|
||||
setup( ) {
|
||||
onMounted(() => {
|
||||
const search = sessionStorage.getItem('searchLecturer')
|
||||
if(route.query.activeKey == 1){
|
||||
state.moreid = 2
|
||||
state.searchParam = JSON.parse(search)
|
||||
}
|
||||
searchSubmit()
|
||||
})
|
||||
const route = useRoute()
|
||||
const formRef = ref();
|
||||
const store = useStore();
|
||||
const router = useRouter();
|
||||
@@ -822,7 +831,7 @@ export default {
|
||||
])
|
||||
// 搜索
|
||||
const searchSubmit = () => {
|
||||
// store.commit("setShouInclude", ['lecturerlist']);
|
||||
state.searchParam.pageNo = 1
|
||||
getTableDate();
|
||||
};
|
||||
//重置
|
||||
@@ -870,7 +879,7 @@ export default {
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
};
|
||||
getTableDate()
|
||||
// getTableDate()
|
||||
// // 翻页
|
||||
const changePagination = (page, pageSize) => {
|
||||
state.searchParam.pageNo = page;
|
||||
@@ -1131,7 +1140,7 @@ export default {
|
||||
// }
|
||||
// //表格内查看数据操作
|
||||
const handleLook = (record) => {
|
||||
|
||||
sessionStorage.setItem('searchLecturer', JSON.stringify(state.searchParam))
|
||||
let id = record.id
|
||||
router.push({ path: '/LookInsideLecturer', query: { id } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user