mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
-- 开课学员bug
This commit is contained in:
@@ -22,7 +22,8 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="2">
|
<a-col :span="2">
|
||||||
<a-button class="cus-btn white" style="width: 100px" @click="reset"
|
<a-button class="cus-btn white" style="width: 100px" @click="reset"
|
||||||
>重置</a-button
|
>重置
|
||||||
|
</a-button
|
||||||
>
|
>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -96,8 +97,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, defineProps, onMounted, ref } from "vue";
|
import {computed, defineProps, onMounted, ref, watch} from "vue";
|
||||||
import { delStudentList, getStuPage } from "@/api/index1";
|
import {delStudentList, getStuPage} from "@/api/index1";
|
||||||
import CommonStudent from "@/components/student/CommonStudent";
|
import CommonStudent from "@/components/student/CommonStudent";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -145,8 +146,8 @@ const tablecolumns = ref([
|
|||||||
key: "source",
|
key: "source",
|
||||||
width: "10%",
|
width: "10%",
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: ({ record: { source } }) =>
|
customRender: ({record: {source}}) =>
|
||||||
({ 1: "快速添加", 2: "组织", 3: "受众" }[source]),
|
({1: "快速添加", 2: "组织", 3: "受众"}[source]),
|
||||||
},
|
},
|
||||||
...props.columns,
|
...props.columns,
|
||||||
{
|
{
|
||||||
@@ -155,7 +156,7 @@ const tablecolumns = ref([
|
|||||||
key: "operation",
|
key: "operation",
|
||||||
width: "25%",
|
width: "25%",
|
||||||
align: "center",
|
align: "center",
|
||||||
slots: { customRender: "action" },
|
slots: {customRender: "action"},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
const tableParam = ref({
|
const tableParam = ref({
|
||||||
@@ -183,6 +184,11 @@ onMounted(() => {
|
|||||||
getStuList();
|
getStuList();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(props, () => {
|
||||||
|
tableParam.value.pid= props.id
|
||||||
|
getStuList();
|
||||||
|
})
|
||||||
|
|
||||||
function onStuSelectChange(e) {
|
function onStuSelectChange(e) {
|
||||||
stuSelectKeys.value = e;
|
stuSelectKeys.value = e;
|
||||||
}
|
}
|
||||||
@@ -209,7 +215,8 @@ function getStuList() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function reset() {}
|
function reset() {
|
||||||
|
}
|
||||||
|
|
||||||
function bathDel() {
|
function bathDel() {
|
||||||
stuSelectKeys.value &&
|
stuSelectKeys.value &&
|
||||||
|
|||||||
@@ -2278,7 +2278,7 @@
|
|||||||
<span>{{ currentPlanItem.teacher }}</span>
|
<span>{{ currentPlanItem.teacher }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="stmm_i5">
|
<div class="stmm_i5">
|
||||||
<TableStudent :type="3" :id="offcourseId" :columns="stuColumns">
|
<TableStudent :type="3" :id="offcoursePlanId" :columns="stuColumns">
|
||||||
<!-- <template #extension = "data">-->
|
<!-- <template #extension = "data">-->
|
||||||
<!-- <div style="display: flex">-->
|
<!-- <div style="display: flex">-->
|
||||||
<!-- <button @click="handlJoinStu(data)">成绩录入</button>-->
|
<!-- <button @click="handlJoinStu(data)">成绩录入</button>-->
|
||||||
@@ -4982,7 +4982,7 @@ export default defineComponent({
|
|||||||
console.log(state.currentPlanItem);
|
console.log(state.currentPlanItem);
|
||||||
|
|
||||||
state.sm_hs = true;
|
state.sm_hs = true;
|
||||||
getTableDate2();
|
// getTableDate2();
|
||||||
};
|
};
|
||||||
const sm_exit = () => {
|
const sm_exit = () => {
|
||||||
state.sm_hs = false;
|
state.sm_hs = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user