提交 1238949e authored 作者: matian's avatar matian

bug fixes

上级 9434982c
......@@ -91,13 +91,15 @@ const handleLiveList = (query: string) => {
liveList.value = []
}
}
const changeLive = (val: any) => {
if (val !== '') {
form.name = allLecturers.value?.filter((item: any) => item.id === val)[0].subject
} else {
form.name = ''
watch(
() => form.resource_id,
() => {
if (form.resource_id !== '') {
form.name = allLecturers.value?.filter((item: any) => item.id === form.resource_id)[0]?.subject
}
}
}
)
</script>
<template>
<el-dialog :model-value="isShowLiveDialog" draggable :before-close="handleCancel" width="30%" title="添加直播">
......@@ -108,12 +110,10 @@ const changeLive = (val: any) => {
clearable
filterable
remote
multiple
placeholder="请输入直播名称或者直播id"
:remote-method="handleLiveList"
:loading="loading"
style="width: 230px"
@change="changeLive"
style="width: 100%"
>
<el-option v-for="item in liveList" :key="item.id" :label="item.subject" :value="item.id" />
</el-select>
......
......@@ -4,6 +4,7 @@ const props: any = defineProps({
type: Object
}
})
console.log(props?.data)
interface IBasicInfo {
icon: string
......@@ -87,6 +88,7 @@ const basicInfo = computed((): IBasicInfo[] => {
border: '0'
}
]
basicList.map((item: any) => {
if (item.key === 'specialty') {
item.value = props?.data.specialty?.map((item: any) => item.name).toString()
......@@ -112,7 +114,7 @@ const basicInfo = computed((): IBasicInfo[] => {
<img :src="item.icon" />
<div class="item-right">
<div class="label">{{ item.label }}</div>
<div class="value">{{ item.value.toString() || '-' }}</div>
<div class="value">{{ item.value || '-' }}</div>
</div>
</div>
</div>
......
......@@ -31,7 +31,7 @@ const tabChange = () => {
const departmentList: any = useProjectList('', '79806610719731712').departmentList
// 下拉选择tree 视频分类
let { list: selectTree } = useGetCategoryList()
let { list: selectTree }: any = useGetCategoryList()
const defaultProps = {
children: 'children',
label: 'category_name',
......@@ -121,11 +121,13 @@ const typeFilter = () => {
<template #header-aside></template>
<template #filter-type="{ params }">
<el-tree-select
node-key="id"
@change="typeFilter"
clearable
:props="defaultProps"
v-model="params.classification"
:data="selectTree"
:default-expanded-keys="selectTree.length ? [selectTree[0]?.id] : []"
/>
</template>
<template v-if="tabValue == '3' && isAdmin" #filter-department="{ params }">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论