Просмотр исходного кода

设备弹窗月份文字修改

cyy 2 лет назад
Родитель
Сommit
63ca16c721
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/views/component/deviceSubtableDialog.vue

+ 5 - 5
src/views/component/deviceSubtableDialog.vue

@@ -131,8 +131,8 @@ export default {
             let arr = []
             for (let i = 1; i < sum; i++) {
                 let mid = {value:'',label:''}
-                mid.value = '第'+i+'月'
-                mid.label = '第'+i+'月'
+                mid.value = '第'+i+'月'
+                mid.label = '第'+i+'月'
                 arr.push(mid)
             }
             return arr
@@ -467,11 +467,11 @@ export default {
                 // console.log(partArr*1-1)
                 that.weekDateValue = this.weekList[partArr*1-1]
             }else if(content.weiHuLeiXing == '季度保养'){
-                that.quarterDateValue = content.weiHuRiQi
+                that.quarterDateValue = content.weiHuRiQi.slice(3)
             }else if(content.weiHuLeiXing == '半年保养'){
-                that.midyearDateValue = content.weiHuRiQi
+                that.midyearDateValue = content.weiHuRiQi.slice(3)
             }else if(content.weiHuLeiXing == '年保养'){
-                that.yearDateValue = content.weiHuRiQi
+                that.yearDateValue = content.weiHuRiQi.slice(2)
             }else{
 
             }