Browse Source

样式修改

黄琪勇 9 months ago
parent
commit
e0b3aceaaf

+ 2 - 2
src/components/TheTipDialog/index.module.less

@@ -1,5 +1,5 @@
 .theTipDialog {
-  width: 28vw;
+  width: 24vw;
   .tipCon {
     display: flex;
     flex-direction: column;
@@ -31,7 +31,7 @@
       text-align: center;
       :global {
         .n-button {
-          --n-padding: 0 42px !important;
+          width: 140px !important;
           & + .n-button {
             margin-left: 20px;
           }

+ 3 - 3
src/views/attend-class/model/train-settings/index.tsx

@@ -156,7 +156,7 @@ export default defineComponent({
         tipDialog.cancelBtn = true
         tipDialog.confirmButtonText = "去设置"
         const msg = errList.map((item:any)=>{
-          return `<div><span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业;</div>`
+          return `<div><span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业${errList.length>1?"":""}</div>`
         })
         tipDialog.msg = msg.join("")
       }else if(type === "PERSON"){
@@ -164,7 +164,7 @@ export default defineComponent({
         tipDialog.cancelBtn = true
         tipDialog.confirmButtonText = "去设置"
         const msg = errList.map((item:any)=>{
-          return `<div><span style="color:#F44541">【${item.studentName}】</span>所在<span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业</div>`
+          return `<div><span style="color:#F44541">【${item.studentName}】</span>所在<span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业${errList.length>1?";":""}</div>`
         })
         tipDialog.msg = msg.join("")
       }else if(type === "MUSIC"){
@@ -172,7 +172,7 @@ export default defineComponent({
         tipDialog.cancelBtn = false
         tipDialog.confirmButtonText = "我知道了"
         const msg = errList.map((item:any)=>{
-          return `<div><span style="color:#F44541">【${item.musicSheetName}】</span>不支持<span style="color:#F44541">【${item.instrumentName}】</span>练习,请更换曲目或取消<span style="color:#F44541">【${item.instrumentName}】</span>的学生</div>`
+          return `<div>曲目<span style="color:#F44541">【${item.musicSheetName}】</span>不支持<span style="color:#F44541">【${item.instrumentName}】</span>练习,请更换曲目或取消<span style="color:#F44541">【${item.instrumentName}】</span>的学生${errList.length>1?";":""}</div>`
         })
         tipDialog.msg = msg.join("")
       }

+ 3 - 3
src/views/prepare-lessons/components/lesson-main/train/assign-homework.tsx

@@ -166,7 +166,7 @@ export default defineComponent({
         tipDialog.cancelBtn = true
         tipDialog.confirmButtonText = "去设置"
         const msg = errList.map((item:any)=>{
-          return `<div><span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业;</div>`
+          return `<div><span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业${errList.length>1?"":""}</div>`
         })
         tipDialog.msg = msg.join("")
       }else if(type === "PERSON"){
@@ -174,7 +174,7 @@ export default defineComponent({
         tipDialog.cancelBtn = true
         tipDialog.confirmButtonText = "去设置"
         const msg = errList.map((item:any)=>{
-          return `<div><span style="color:#F44541">【${item.studentName}】</span>所在<span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业</div>`
+          return `<div><span style="color:#F44541">【${item.studentName}】</span>所在<span style="color:#F44541">【${item.classGroupName}】</span>未设置乐器,请设置乐器后布置作业${errList.length>1?";":""}</div>`
         })
         tipDialog.msg = msg.join("")
       }else if(type === "MUSIC"){
@@ -182,7 +182,7 @@ export default defineComponent({
         tipDialog.cancelBtn = false
         tipDialog.confirmButtonText = "我知道了"
         const msg = errList.map((item:any)=>{
-          return `<div><span style="color:#F44541">【${item.musicSheetName}】</span>不支持<span style="color:#F44541">【${item.instrumentName}】</span>练习,请更换曲目或取消<span style="color:#F44541">【${item.instrumentName}】</span>的学生</div>`
+          return `<div>曲目<span style="color:#F44541">【${item.musicSheetName}】</span>不支持<span style="color:#F44541">【${item.instrumentName}】</span>练习,请更换曲目或取消<span style="color:#F44541">【${item.instrumentName}】</span>的学生${errList.length>1?";":""}</div>`
         })
         tipDialog.msg = msg.join("")
       }