diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index 6d75a378..1035ea8f 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -433,32 +433,59 @@ } } .el-message.new-message { - background-color: #edf2fc !important; box-shadow: none !important; - border-color: #EBEEF5 !important; - min-width: 170px !important; - border-radius: 10px !important; + background-color: #edf2fc !important; + min-width: 240px !important; + height: 52px !important; + border-radius: 12px !important; + top: 236px !important; + font-size: 20px !important; + font-weight: bold !important; + border: none !important; } .el-message--success.new-message { - background-color: #f0f9eb !important; box-shadow: none !important; - border-color: #e1f3d8 !important; - min-width: 170px !important; - border-radius: 10px !important + background-color: rgba($color: #4CB967, $alpha: 0.1) !important; + min-width: 240px !important; + height: 52px !important; + border-radius: 12px !important; + top: 236px !important; + font-size: 22px !important; + + border: none !important; + .el-message__content { + color: #189B39 !important; + font-size: 20px !important; + font-weight: bold !important; } +} .el-message--error.new-message { - background-color: #fef0f0 !important; box-shadow: none !important; - border-color: #fde2e2 !important; - min-width: 170px !important; - border-radius: 10px !important + background-color: rgba($color: #FF3636 , $alpha: 0.1) !important; + min-width: 240px !important; + height: 52px !important; + border-radius: 12px !important; + top: 236px !important; + font-size: 22px !important; + font-weight: bold !important; + + border: none !important; + .el-message__content { + color: #CF1717 !important; + font-size: 20px !important; + font-weight: bold !important; } +} .el-message--warning.new-message { - background-color: #fdf6ec !important; box-shadow: none !important; - border-color: #faecd8 !important; - min-width: 170px !important; - border-radius: 10px !important + background-color: #fdf6ec !important; + min-width: 240px !important; + height: 52px !important; + border-radius: 12px !important; + top: 236px !important; + font-size: 20px !important; + font-weight: bold !important; + border: none !important; } diff --git a/src/components/NameFilterSelect/index.vue b/src/components/NameFilterSelect/index.vue index bbc5f735..d3fdc5d9 100644 --- a/src/components/NameFilterSelect/index.vue +++ b/src/components/NameFilterSelect/index.vue @@ -28,9 +28,14 @@ export default { this.$emit("handleNameChange", this.aids); }, handleClose() { + this.$set(this, 'nameList', []) console.log("handleClose", this.aids); this.$emit("handleClose"); }, + handleReset() { + this.aids = []; + this.nameList = []; + }, async initNameList(keyword) { console.log("initNameList", keyword); if (!keyword) { diff --git a/src/utils/tools.js b/src/utils/tools.js index eb286cd5..32615c7f 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -266,6 +266,17 @@ export function testType(type) { //此方法移到tools中 } return judgment; } + + export function newToScore(score) { + if (!score) { + return '0.0'; + } + if((''+score).indexOf('.')>-1){ + return score.toFixed(1); + }else{ + return score+'.0'; + } + } export function toScore(score) { if (!score) { return '0'; diff --git a/src/views/course/CourseManage.vue b/src/views/course/CourseManage.vue index bb7ab569..2098b1f6 100644 --- a/src/views/course/CourseManage.vue +++ b/src/views/course/CourseManage.vue @@ -13,12 +13,13 @@
- +
- + -
@@ -315,7 +275,8 @@
- - +
@@ -46,9 +46,9 @@ 重 置
- +
- 新建课程 + 开发新课程
diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index eb0e7756..a9bd626f 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1,4 +1,4 @@ -