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