|
@@ -109,7 +109,7 @@
|
|
|
class="queryIpt"
|
|
|
v-model="searchObj.queryStr"
|
|
|
:height="36"
|
|
|
- placeholder="请输入素材关键字"
|
|
|
+ placeholder="请输入素材关键词"
|
|
|
clearable
|
|
|
@handleQuery="handleQuery"
|
|
|
@keyup.enter="handleQuery"
|
|
@@ -122,6 +122,13 @@
|
|
|
<img class="close" @click="close" src="@/img/coursewarePlay/close.png" />
|
|
|
</template>
|
|
|
<ElScrollbar class="elScrollbar" v-loading="searchObj.loading">
|
|
|
+ <!-- <tempCoursewareList -->
|
|
|
+ <el-empty
|
|
|
+ class="empty"
|
|
|
+ v-if="!tempCoursewareList.length && !searchObj.loading"
|
|
|
+ :image="require('@/img/layout/empty.png')"
|
|
|
+ description="暂无搜索结果"
|
|
|
+ />
|
|
|
<courseCollapse
|
|
|
:activeCollapse="activeCourseware"
|
|
|
:search="searchObj.search"
|
|
@@ -372,10 +379,10 @@ function handlePointList(pointList: any[], isSearch?: boolean) {
|
|
|
})
|
|
|
index > -1 && (activeCoursewareIndex.value = index)
|
|
|
}
|
|
|
- flattenCoursewareList.value = flattenCoursewareListData
|
|
|
+ flattenCoursewareList.value = deepCopy(flattenCoursewareListData)
|
|
|
}
|
|
|
tempCoursewareList.value = list
|
|
|
- tempFlattenCoursewareList.value = flattenCoursewareListData
|
|
|
+ tempFlattenCoursewareList.value = deepCopy(flattenCoursewareListData)
|
|
|
}
|
|
|
function filterPointList(pointList: any[], parentData?: { ids: string[]; name: string }): any[] {
|
|
|
// 设置父级及以上id数组和父级name
|
|
@@ -422,6 +429,7 @@ function handleChangeCourseware(index: -1 | 1) {
|
|
|
}
|
|
|
function handleCourseClick(value: any) {
|
|
|
// 选择之后初始化数据
|
|
|
+ searchObj.search = JSON.parse(JSON.stringify(searchObj.queryStr))
|
|
|
coursewareList.value = deepCopy(tempCoursewareList.value)
|
|
|
flattenCoursewareList.value = deepCopy(tempFlattenCoursewareList.value)
|
|
|
activeCoursewareIndex.value = flattenCoursewareList.value.findIndex((item: any) => {
|
|
@@ -533,6 +541,7 @@ function handleToolClick(type: string) {
|
|
|
drawerMenuShow.value = true
|
|
|
} else if (type === "point") {
|
|
|
tempCoursewareList.value = deepCopy(coursewareList.value)
|
|
|
+ searchObj.queryStr = JSON.parse(JSON.stringify(searchObj.search))
|
|
|
drawerShow.value = true
|
|
|
}
|
|
|
}
|
|
@@ -661,7 +670,6 @@ function onTitleTip(type: "phaseGoals" | "checkItem", text: string) {
|
|
|
|
|
|
function handleQuery() {
|
|
|
//
|
|
|
- // handleGetDetailList(props.modalData.id, true, queryStr.value)
|
|
|
searchObj.isSearch = true
|
|
|
getLessCoursewareList()
|
|
|
}
|
|
@@ -922,4 +930,15 @@ function handleQuery() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.empty {
|
|
|
+ height: calc(100vh - 54px);
|
|
|
+ :deep(.el-empty__image) {
|
|
|
+ width: 238px;
|
|
|
+ }
|
|
|
+
|
|
|
+ :deep(.el-empty__description) {
|
|
|
+ font-size: 18px;
|
|
|
+ color: #aaa;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|