样式调整

This commit is contained in:
670788339
2025-11-04 17:16:41 +08:00
parent 7be0bdee6c
commit af10b1fa32

View File

@@ -330,7 +330,7 @@
class="option-item" style="font-weight: bold; padding-top: 2px;" class="option-item" style="font-weight: bold; padding-top: 2px;"
v-for="tag in hotTagsList" v-for="tag in hotTagsList"
:key="tag.id" :key="tag.id"
@click="handleTagClick(tag, hotTagsList)" @click="handleTagClick(tag, hotTagsList,1)"
:class="{ 'option-active': tag.checked }" :class="{ 'option-active': tag.checked }"
> >
<span>{{tag.tagName}}</span> <span>{{tag.tagName}}</span>
@@ -1075,7 +1075,7 @@ handleClearTags() {
this.searchData(); this.searchData();
}, },
//点击标签 //点击标签
handleTagClick(item, list) { handleTagClick(item, list,type) {
item.checked = !item.checked; item.checked = !item.checked;
// 更新course.tags // 更新course.tags
@@ -1085,7 +1085,7 @@ handleClearTags() {
// 强制触发stagList重新计算 // 强制触发stagList重新计算
this.$nextTick(() => { this.$nextTick(() => {
// this.searchData(); this.searchData(type);
}); });
}, },
//三级分类 //三级分类
@@ -1326,13 +1326,13 @@ handleClearTags() {
this.$refs.floatTools.toNeedCourse(); this.$refs.floatTools.toNeedCourse();
}, },
searchData() { searchData(type) {
this.course.pageIndex = 1; this.course.pageIndex = 1;
this.noPageList = true; //判断接口是否还有数据 this.noPageList = true; //判断接口是否还有数据
this.noDataList = true; //判断接口是否还有数据 this.noDataList = true; //判断接口是否还有数据
this.courseList = []; this.courseList = [];
this.totalPages = 4; this.totalPages = 4;
this.search(); this.search(type);
}, },
inputOn() { inputOn() {
this.$forceUpdate(); this.$forceUpdate();
@@ -1498,7 +1498,7 @@ handleClearTags() {
return list; return list;
}, },
// 查询 // 查询
async search() { async search(type) {
// //
if (this.searching) { if (this.searching) {
this.$message.warning("正在搜索中,请待搜索完成后再重新搜索"); this.$message.warning("正在搜索中,请待搜索完成后再重新搜索");
@@ -1542,6 +1542,7 @@ handleClearTags() {
that.course.sysType3 += item.id; that.course.sysType3 += item.id;
} }
}); });
if (!type && type !== 1){
apiCourseTag.getHotTagList(that.course).then(rs => { apiCourseTag.getHotTagList(that.course).then(rs => {
if (rs.status == 200) { if (rs.status == 200) {
// 保留已选中标签的状态 // 保留已选中标签的状态
@@ -1553,7 +1554,8 @@ handleClearTags() {
} else { } else {
console.log(rs.message); console.log(rs.message);
} }
}), })
}
this.isFind = true; this.isFind = true;
this.course.device = 1; this.course.device = 1;
if (this.course.pageIndex == 1) { if (this.course.pageIndex == 1) {