diff --git a/src/views/course/ManageListRemote.vue b/src/views/course/ManageListRemote.vue
index 7ecfc881..333f769e 100644
--- a/src/views/course/ManageListRemote.vue
+++ b/src/views/course/ManageListRemote.vue
@@ -5,14 +5,15 @@
-
@@ -27,7 +28,7 @@
reserve-keyword
placeholder="授课教师"
:multiple-limit="5"
- collapse-tags
+ maxlength="50"
:remote-method="remoteSearchTeacher"
:loading="teacherLoading"
@change="handleTeacherChange"
@@ -36,9 +37,12 @@
+ >
+ {{ item.teacherName }}
+ ({{ item.teacherCode }})
+
@@ -78,7 +82,7 @@
>
-
+
@@ -94,6 +98,7 @@
placeholder="全部资源归属"
clearable
filterable
+ maxlength="200"
v-model="resOwner"
:props="defaultProps"
:options="resOwnerListMap"
@@ -110,7 +115,7 @@
reserve-keyword
:multiple-limit="5"
placeholder="创建人"
- collapse-tags
+ maxlength="50"
:remote-method="remoteSearchCreator"
:loading="creatorLoading"
@change="handleCreatorChange"
@@ -119,9 +124,12 @@
+ >
+ {{ item.name }}
+ ({{ item.code }})
+
@@ -201,7 +209,7 @@
{{ scope.row.published == true ? '已发布' : '未发布' }}
-
+
{{ scope.row.enabled == true ? '启用' : '停用' }}
@@ -544,6 +552,7 @@ export default {
},
extendRefId: '',
extendRefType: '',
+ scrollbarStyleApplied: false,
};
},
created() {
@@ -578,23 +587,41 @@ export default {
//已经加载tree的情况下,不需要再单独的加载一次
this.loadResOwners();
this.loadSysTypes();
- document.querySelector('#app').style.overflow = 'hidden';
+ document.querySelector('#app').style.overflowX = 'hidden';
+ this.applyAppScrollbarStyle();
},
methods: {
toggleAdvancedFilter() {
this.showAdvancedFilter = !this.showAdvancedFilter;
},
+ applyAppScrollbarStyle() {
+ if (this.scrollbarStyleApplied || typeof document === 'undefined') return;
+ if (document.getElementById('app-scrollbar-style')) {
+ this.scrollbarStyleApplied = true;
+ return;
+ }
+ const style = document.createElement('style');
+ style.id = 'app-scrollbar-style';
+ style.innerHTML = `
+ #app::-webkit-scrollbar {
+ width: 6px;
+ height: 8px;
+ }
+ #app::-webkit-scrollbar-thumb {
+ border-radius: 6px;
+ background-color: rgb(78, 166, 255);
+ }
+ `;
+ document.head.appendChild(style);
+ this.scrollbarStyleApplied = true;
+ },
async remoteSearchTeacher(keyword) {
const query = (keyword || '').trim();
if (!query || query.length <= 1) {
this.teacherOptions = [];
return;
}
- if (query.length > 50) {
- this.$message.warning('超过50个字的内容不让输入');
- return;
- }
this.teacherLoading = true;
try {
const res = await apiTeacher.findByNameNew(query);
@@ -639,10 +666,6 @@ export default {
this.creatorOptions = [];
return;
}
- if (query.length > 50) {
- this.$message.warning('创建人搜索最多50个字符');
- return;
- }
this.creatorLoading = true;
try {
const res = await apiUserbasic.selectUser(query);
@@ -1135,17 +1158,14 @@ export default {
},
// 课程查询
searchData(pageReset) {
- if (this.params.name && this.params.name.length > 50) {
- this.$message.warning('课程名称最多50个字符');
- return;
- }
if (pageReset) {
this.page.pageIndex = 1;
}
if (!this.validateLearningTimeRange()) {
return;
}
- console.log('apiCourse', apiCourse)
+ console.log('apiCourse', apiCourse);
+ console.log('buildQueryParams', this.buildQueryParams());
const query = this.buildQueryParams();
apiCourse.managePage(query).then(rs => {
if (rs.status == 200) {
@@ -1351,9 +1371,19 @@ export default {