-- 开课学员bug

This commit is contained in:
yuping
2022-12-19 21:37:23 +08:00
parent 66464fee6a
commit 83a0ae8e18
2 changed files with 47 additions and 40 deletions

View File

@@ -22,7 +22,8 @@
</a-col>
<a-col :span="2">
<a-button class="cus-btn white" style="width: 100px" @click="reset"
>重置</a-button
>重置
</a-button
>
</a-col>
</a-row>
@@ -96,8 +97,8 @@
</div>
</template>
<script setup>
import { computed, defineProps, onMounted, ref } from "vue";
import { delStudentList, getStuPage } from "@/api/index1";
import {computed, defineProps, onMounted, ref, watch} from "vue";
import {delStudentList, getStuPage} from "@/api/index1";
import CommonStudent from "@/components/student/CommonStudent";
const props = defineProps({
@@ -145,8 +146,8 @@ const tablecolumns = ref([
key: "source",
width: "10%",
align: "center",
customRender: ({ record: { source } }) =>
({ 1: "快速添加", 2: "组织", 3: "受众" }[source]),
customRender: ({record: {source}}) =>
({1: "快速添加", 2: "组织", 3: "受众"}[source]),
},
...props.columns,
{
@@ -155,7 +156,7 @@ const tablecolumns = ref([
key: "operation",
width: "25%",
align: "center",
slots: { customRender: "action" },
slots: {customRender: "action"},
},
]);
const tableParam = ref({
@@ -183,6 +184,11 @@ onMounted(() => {
getStuList();
});
watch(props, () => {
tableParam.value.pid= props.id
getStuList();
})
function onStuSelectChange(e) {
stuSelectKeys.value = e;
}
@@ -209,7 +215,8 @@ function getStuList() {
});
}
function reset() {}
function reset() {
}
function bathDel() {
stuSelectKeys.value &&

View File

@@ -2278,7 +2278,7 @@
<span>{{ currentPlanItem.teacher }}</span>
</div>
<div class="stmm_i5">
<TableStudent :type="3" :id="offcourseId" :columns="stuColumns">
<TableStudent :type="3" :id="offcoursePlanId" :columns="stuColumns">
<!-- <template #extension = "data">-->
<!-- <div style="display: flex">-->
<!-- <button @click="handlJoinStu(data)">成绩录入</button>-->
@@ -4982,7 +4982,7 @@ export default defineComponent({
console.log(state.currentPlanItem);
state.sm_hs = true;
getTableDate2();
// getTableDate2();
};
const sm_exit = () => {
state.sm_hs = false;