|
@@ -15,6 +15,14 @@
|
|
|
style="margin: -5px 0; width: 100%"
|
|
|
/>
|
|
|
</template>
|
|
|
+ <template #classType="{ record, column }">
|
|
|
+ <Select
|
|
|
+ v-model:value="record[column.dataIndex]"
|
|
|
+ :options="classTypeOptions"
|
|
|
+ :disabled="status === 1"
|
|
|
+ style="margin: -5px 0; width: 100%"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
<template #name="{ record, column }">
|
|
|
<a-input
|
|
|
v-model:value="record[column.dataIndex]"
|
|
@@ -98,6 +106,7 @@
|
|
|
import { getMajorSetOption } from '/@/api/userMagic';
|
|
|
import { requestMagicApi } from '/@/api/magicApi';
|
|
|
import { Checkbox, Select } from 'ant-design-vue';
|
|
|
+ import { getDataOption } from '/@/api/system/dic';
|
|
|
|
|
|
const [registerImportModal, { openModal: openImportModal }] = useModal();
|
|
|
|
|
@@ -167,7 +176,8 @@
|
|
|
};
|
|
|
data['isOrderClass'] = data['isOrderClass'] || data['isOrderClass'] === 1 ? 1 : 0;
|
|
|
if (record._newRow) {
|
|
|
- await postBandingBandingTaskClass([
|
|
|
+ delete data.id;
|
|
|
+ await putBandingBandingTaskClass([
|
|
|
{
|
|
|
...data,
|
|
|
bandingTaskId: props.taskId,
|
|
@@ -225,11 +235,13 @@
|
|
|
const majorSetOptions = ref([]);
|
|
|
const teacherOptions = ref([]);
|
|
|
const classroomOptions = ref([]);
|
|
|
+ const classTypeOptions = ref([]);
|
|
|
|
|
|
onMounted(async () => {
|
|
|
majorSetOptions.value = await getMajorSetOption();
|
|
|
teacherOptions.value = await requestMagicApi({ url: 'baseData/user/list?type=1' });
|
|
|
classroomOptions.value = await requestMagicApi({ url: 'baseData/classroom/option' });
|
|
|
+ classTypeOptions.value = await getDataOption({ code: 'class_type' });
|
|
|
});
|
|
|
|
|
|
defineExpose({ validateStep, reloadStep });
|