讲师管理bug

This commit is contained in:
zhangsir
2024-11-12 18:53:19 +08:00
parent fd1f306510
commit fd3563858c
9 changed files with 47 additions and 20 deletions

View File

@@ -8,7 +8,11 @@
<bread-crumb/> <bread-crumb/>
<main> <main>
<a-config-provider :locale="zhCN"> <a-config-provider :locale="zhCN">
<router-view/> <router-view v-slot="{ Component }">
<keep-alive :include="isInclude">
<component :is="Component"/>
</keep-alive>
</router-view>
</a-config-provider> </a-config-provider>
</main> </main>
</div> </div>
@@ -19,7 +23,7 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import {ref, onMounted} from "vue"; import {ref, onMounted,computed} from "vue";
import {useStore, createStore} from "vuex"; import {useStore, createStore} from "vuex";
import NavLeft from "@/components/NavLeft"; import NavLeft from "@/components/NavLeft";
import NavTop from "@/components/NavTop"; import NavTop from "@/components/NavTop";
@@ -33,7 +37,7 @@ import {USER_PERMISSION, VALIDATE_TOKEN} from "@/api/apis";
const store = useStore(); const store = useStore();
const isLogin = ref(false); const isLogin = ref(false);
const isInclude = computed(()=>store.state.isInclude)
console.log("版本3.3.2------------"); console.log("版本3.3.2------------");

View File

@@ -63,6 +63,8 @@ export const getAffiliationCode = () => http.get('/admin/affiliation/getAffiliat
export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`) export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`)
//删除培训发生组织 //删除培训发生组织
export const affiliationDelById = (id)=>http.post(`/admin/affiliation/delById?id=${id}`) export const affiliationDelById = (id)=>http.post(`/admin/affiliation/delById?id=${id}`)
//撤回培训发生组织
export const affiliatIsConfirm = (id) => http.post(`/admin/affiliation/isConfirm?id=${id}`)
//讲师费统计详情 //讲师费统计详情
export const expenseSummaryById = (obj) => http.get( `/admin/expenseSummary/queryById?id=${obj.id}&name=${obj.name}&trainOrgId=${obj.trainOrgId}`) export const expenseSummaryById = (obj) => http.get( `/admin/expenseSummary/queryById?id=${obj.id}&name=${obj.name}&trainOrgId=${obj.trainOrgId}`)
//查看月度讲师费详情 //查看月度讲师费详情

View File

@@ -41,7 +41,7 @@
<a-tabs @change="change" v-model:activeKey="activeKey"> <a-tabs @change="change" v-model:activeKey="activeKey">
<a-tab-pane key="1" tab="管理组织列表"> <a-tab-pane key="1" tab="管理组织列表">
<div style="margin-bottom: 30px"> <div style="margin-bottom: 30px">
<a-table :columns="columns" :data-source="formData?.tableData" /> <a-table :columns="columns" :data-source="formData?.tableData" :pagination="false"/>
</div> </div>
<div style="margin-bottom: 100px"> <div style="margin-bottom: 100px">
<!-- <a-descriptions :column="2" bordered> <!-- <a-descriptions :column="2" bordered>
@@ -60,7 +60,7 @@
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="2" tab="审批记录" force-render> <a-tab-pane key="2" tab="审批记录" force-render>
<div style="margin-bottom: 20px"> <div style="margin-bottom: 20px">
<a-table :columns="columnsThree" :data-source="formData?.tableDataTwo" > <a-table :columns="columnsThree" :data-source="formData?.tableDataTwo" :pagination="false">
<template #action="{ record }"> <template #action="{ record }">
<div class="action"> <div class="action">
<div style="color: #1890ff;cursor: pointer;" class="btn" @click="lookList(record)">查看</div> <div style="color: #1890ff;cursor: pointer;" class="btn" @click="lookList(record)">查看</div>
@@ -69,7 +69,7 @@
</a-table> </a-table>
</div> </div>
<div style="margin-bottom: 100px"> <div style="margin-bottom: 100px">
<a-table v-if="threeList" :columns="columnsTwo" :data-source="formData?.tableDataTwo" /> <a-table v-if="threeList" :columns="columnsTwo" :data-source="formData?.tableDataTwo" :pagination="false"/>
</div> </div>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
@@ -102,16 +102,19 @@ const columns = [
title: '组织的名称', title: '组织的名称',
dataIndex: 'orgName', dataIndex: 'orgName',
key: 'orgName', key: 'orgName',
align: 'center',
}, },
{ {
title: '类型', title: '类型',
dataIndex: 'age', dataIndex: 'age',
key: 'age', key: 'age',
align: 'center',
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'address', dataIndex: 'address',
key: 'address', key: 'address',
align: 'center',
}, },
]; ];
const formData = ref({}) const formData = ref({})
@@ -120,26 +123,31 @@ const columnsTwo = [
title: '层级审批人', title: '层级审批人',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name',
align: 'center',
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'age', dataIndex: 'age',
key: 'age', key: 'age',
align: 'center',
}, },
{ {
title: '审批人', title: '审批人',
dataIndex: 'address', dataIndex: 'address',
key: 'age', key: 'age',
align: 'center',
}, },
{ {
title: '审批时间', title: '审批时间',
dataIndex: 'updateTime', dataIndex: 'updateTime',
key: 'updateTime', key: 'updateTime',
align: 'center',
}, },
{ {
title: '审批建议', title: '审批建议',
dataIndex: 'address', dataIndex: 'address',
key: 'age', key: 'age',
align: 'center',
}, },
] ]
const columnsThree = ref([ const columnsThree = ref([
@@ -147,21 +155,25 @@ const columnsThree = ref([
title: '审批提交时间', title: '审批提交时间',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name',
align: 'center',
}, },
{ {
title: '审批状态', title: '审批状态',
dataIndex: 'age', dataIndex: 'age',
key: 'age', key: 'age',
align: 'center',
}, },
{ {
title: '审批人', title: '审批人',
dataIndex: 'address', dataIndex: 'address',
key: 'age', key: 'age',
align: 'center',
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'address', dataIndex: 'address',
key:'age', key:'age',
align: 'center',
slots: { customRender: "action" }, slots: { customRender: "action" },
} }
]) ])

View File

@@ -28,10 +28,14 @@ export default createStore({
memberInitInfo: [],//学员默认 memberInitInfo: [],//学员默认
sysType: [],//学员默认 sysType: [],//学员默认
menus: [], menus: [],
sysTypeMap:null sysTypeMap:null,
isInclude: [],
}, },
getters: {}, getters: {},
mutations: { mutations: {
setShouInclude(state, value) {
state.isInclude = value;
},
chengeOpenpages(state, list) { chengeOpenpages(state, list) {
// console.log('list', list) // console.log('list', list)
state.openpages = list; state.openpages = list;

View File

@@ -396,7 +396,7 @@ export default {
FolderAddOutlined,//图标--新增 FolderAddOutlined,//图标--新增
UploadDragger, UploadDragger,
}, },
setup() { setup( ) {
const formRef = ref(); const formRef = ref();
const store = useStore(); const store = useStore();
const router = useRouter(); const router = useRouter();
@@ -823,7 +823,7 @@ export default {
]) ])
// 搜索 // 搜索
const searchSubmit = () => { const searchSubmit = () => {
// store.commit("setShouInclude", ['lecturerlist']); state.searchParam.pageNo = 1
getTableDate(); getTableDate();
}; };
//重置 //重置

View File

@@ -117,7 +117,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" :disabled="record.createFrom==1 ?false :true" @click="() => handleModify(record, String(record.courseform))">编辑</a-button> <!-- :disabled="record.createFrom==1 ?false :true" -->
<a-button type="link" @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 :disabled="record.status==='A10' && record.status!=='A20' || record.status==='A30'||record.status==='S20' ||record.status==='E10' ?true :false" type="link" @click="() => handleOperate(record, String(record.courseform))">撤回</a-button> --> <a-button :disabled="record.status==='A10' && record.status!=='A20' || record.status==='A30'||record.status==='S20' ||record.status==='E10' ?true :false" type="link" @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))">删除</a-button> -->

View File

@@ -173,6 +173,7 @@
import { reactive, toRefs, ref, watch } from "vue"; import { reactive, toRefs, ref, watch } from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { useStore } from "vuex";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { getOrganization } from "../../api/Teaching"; import { getOrganization } from "../../api/Teaching";
import { queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacherFeeListByTeacherNo,TeacherFeeTotalList,createMonthSummary} from "../../api/lecturerFeeStatistics" import { queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacherFeeListByTeacherNo,TeacherFeeTotalList,createMonthSummary} from "../../api/lecturerFeeStatistics"
@@ -184,6 +185,7 @@ export default {
components: { components: {
}, },
setup() { setup() {
const store = useStore();
const router = useRouter(); const router = useRouter();
const state = reactive({ const state = reactive({
summaryDate: null, summaryDate: null,
@@ -282,6 +284,7 @@ export default {
]) ])
// 搜索 // 搜索
const searchSubmit = () => { const searchSubmit = () => {
state.searchParam.pageNo = 1
getTableDate(); getTableDate();
}; };
//修改时间 //修改时间

View File

@@ -17,6 +17,7 @@
import { reactive, toRefs, ref, watch } from "vue"; import { reactive, toRefs, ref, watch } from "vue";
import InsideLecturer from "../lecturer/InsideLecturer.vue" import InsideLecturer from "../lecturer/InsideLecturer.vue"
import ExternalLecturer from "../lecturer/ExternalLecturer.vue" import ExternalLecturer from "../lecturer/ExternalLecturer.vue"
import { useStore } from 'vuex'
export default { export default {
name: "LecturerList", name: "LecturerList",
components: { components: {
@@ -24,14 +25,14 @@
ExternalLecturer ExternalLecturer
}, },
setup() { setup() {
const store = useStore()
const state = reactive({ const state = reactive({
activeKey:'1' activeKey:'1'
}) })
watch( watch(
) )
return { return {
...toRefs(state), ...toRefs(state),
} }
}, },
}; };

View File

@@ -459,14 +459,14 @@ const getTableDate = (obj) => {
dialog({ dialog({
content: '是否确认撤回 ?', content: '是否确认撤回 ?',
ok: () => { ok: () => {
// lecturer.affiliationDelById(record.id).then(res=>{ lecturer.affiliatIsConfirm(record.id).then(res=>{
// console.log(res,'res') console.log(res,'res')
// message.success("删除成功") message.success("撤回成功")
// searchSubmit(); searchSubmit();
// }).catch(err=>{ }).catch(err=>{
// console.log(err,'errr') console.log(err,'errr')
// message.error(err.msg) message.error(err.msg)
// }) })
} }
}) })
} }