|
@@ -6,7 +6,7 @@
|
|
:value="valueStr"
|
|
:value="valueStr"
|
|
@search="handleSearch"
|
|
@search="handleSearch"
|
|
@change="handleChange"
|
|
@change="handleChange"
|
|
- style="width: 140px"
|
|
|
|
|
|
+ style="width: 200px"
|
|
:disabled="props.disabled"
|
|
:disabled="props.disabled"
|
|
:filter-option="false"
|
|
:filter-option="false"
|
|
>
|
|
>
|
|
@@ -15,7 +15,7 @@
|
|
:key="index"
|
|
:key="index"
|
|
:value="item.courseId"
|
|
:value="item.courseId"
|
|
>
|
|
>
|
|
- {{ item.courseName }}
|
|
|
|
|
|
+ {{ item.courseName }}({{ item.courseCode }})
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</template>
|
|
</template>
|
|
@@ -31,7 +31,9 @@ const props = defineProps<{
|
|
}>();
|
|
}>();
|
|
const emit = defineEmits(["update:value"]);
|
|
const emit = defineEmits(["update:value"]);
|
|
|
|
|
|
-let optionList = $ref<{ courseId: number; courseName: string }[]>([]);
|
|
|
|
|
|
+let optionList = $ref<
|
|
|
|
+ { courseId: number; courseName: string; courseCode: string }[]
|
|
|
|
+>([]);
|
|
|
|
|
|
onMounted(fetchData);
|
|
onMounted(fetchData);
|
|
async function fetchData(searchStr = "") {
|
|
async function fetchData(searchStr = "") {
|