From e076d9bbb519abe3a0ff2d19293b10dfcd235af2 Mon Sep 17 00:00:00 2001 From: wangxinbo Date: Mon, 23 Nov 2020 21:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/assets/styles/element-ui.scss | 16 ++++++ .../src/views/benyi/child_files/index.vue | 57 ++++++++++++++++--- .../views/benyi_train/video_study/index.vue | 32 ++++++----- ruoyi-ui/src/views/system/class/index.vue | 2 +- 4 files changed, 84 insertions(+), 23 deletions(-) diff --git a/ruoyi-ui/src/assets/styles/element-ui.scss b/ruoyi-ui/src/assets/styles/element-ui.scss index a7f5bdf6d..86a738bd3 100644 --- a/ruoyi-ui/src/assets/styles/element-ui.scss +++ b/ruoyi-ui/src/assets/styles/element-ui.scss @@ -105,4 +105,20 @@ .el-form-item { margin-bottom: 10px; } + .box-shadow { + padding: 10px 8px !important; + } + .el-picker-panel { + left: 0 !important; + width: 100%; + } + .el-date-range-picker .el-picker-panel__body { + min-width: 100%; + height: 329px; + overflow-y: auto; + } + .el-date-range-picker__content.is-left, .el-date-range-picker__content.is-right { + width: 100%; + float: none; + } } diff --git a/ruoyi-ui/src/views/benyi/child_files/index.vue b/ruoyi-ui/src/views/benyi/child_files/index.vue index e7ca23854..fecb9b6ea 100644 --- a/ruoyi-ui/src/views/benyi/child_files/index.vue +++ b/ruoyi-ui/src/views/benyi/child_files/index.vue @@ -1,12 +1,26 @@ @@ -29,8 +43,8 @@ export default { filetype: undefined, type: "1", //代表幼儿入园系列文件 fileurl: undefined, - createuserid: undefined, - }, + createuserid: undefined + } }; }, created() { @@ -40,11 +54,36 @@ export default { /** 查询文件管理列表 */ getList() { this.loading = true; - listFiles(this.queryParams).then((response) => { + listFiles(this.queryParams).then(response => { this.filesList = response.rows; this.loading = false; }); }, - }, + load() { + + } + } }; - \ No newline at end of file + + diff --git a/ruoyi-ui/src/views/benyi_train/video_study/index.vue b/ruoyi-ui/src/views/benyi_train/video_study/index.vue index c29a85f6f..7f13a6dfb 100644 --- a/ruoyi-ui/src/views/benyi_train/video_study/index.vue +++ b/ruoyi-ui/src/views/benyi_train/video_study/index.vue @@ -103,7 +103,7 @@ import { listVideo, getVideo, - privateDownloadUrl, + privateDownloadUrl } from "@/api/benyi_train/video"; import { listAllLecturer } from "@/api/benyi_train/lecturer"; import { listMoedata } from "@/api/system/moedata"; @@ -132,17 +132,17 @@ export default { type: undefined, status: "0", pageNum: 1, - pageSize: 8, - }, + pageSize: 8 + } }; }, created() { this.getList(); - listAllLecturer().then((response) => { + listAllLecturer().then(response => { //console.log(response.lecturer); this.lecturerOptions = response.lecturer; }); - listMoedata(this.queryParams).then((response) => { + listMoedata(this.queryParams).then(response => { //第一步转换数组 this.optionTypes = this.handleTree(response.data, "id", "pid"); //第二步移除children为0的数组,也就是将children为0 设置为undefined @@ -172,9 +172,9 @@ export default { /** 查询培训列表 */ getList() { this.loading = true; - listVideo(this.queryParams).then((response) => { + listVideo(this.queryParams).then(response => { this.videoList = response.rows; - this.playerOptions = response.rows.map((ele) => { + this.playerOptions = response.rows.map(ele => { return { autoplay: false, muted: true, @@ -185,8 +185,8 @@ export default { { type: ele.filetype, // mp4 - src: ele.videourl, - }, + src: ele.videourl + } ], notSupportedMessage: "此视频暂无法播放,请稍后再试", poster: "", @@ -194,8 +194,8 @@ export default { timeDivider: true, durationDisplay: false, remainingTimeDisplay: false, - fullscreenToggle: true, //全屏按钮 - }, + fullscreenToggle: true //全屏按钮 + } }; }); this.total = response.total; @@ -217,8 +217,8 @@ export default { resetQuery() { this.resetForm("queryForm"); this.handleQuery(); - }, - }, + } + } }; @@ -259,4 +259,10 @@ export default { .no-margin ::v-deep.el-form-item__content { margin: 0 !important; } + +@media (max-width: 768.98px) { + .el-cascader-node__label { + max-width: 200px; + } +} diff --git a/ruoyi-ui/src/views/system/class/index.vue b/ruoyi-ui/src/views/system/class/index.vue index fbb0c3060..6ca84009f 100644 --- a/ruoyi-ui/src/views/system/class/index.vue +++ b/ruoyi-ui/src/views/system/class/index.vue @@ -141,7 +141,7 @@ :data="classList" @selection-change="handleSelectionChange" > - +