yrik 4 jaren geleden
bovenliggende
commit
57ad8b93cd
1 gewijzigde bestanden met toevoegingen van 8 en 6 verwijderingen
  1. 8 6
      ruoyi-ui/src/views/index.vue

+ 8 - 6
ruoyi-ui/src/views/index.vue

@@ -239,7 +239,7 @@
 
   </div>
 </template>
-
+   
 <script>
   import { listIndex, listIndextwo, listIndextherr, listIndexfou, getConfig, delConfig, addConfig, updateConfig, clearCache } from "@/api/system/config";
 export default {
@@ -324,7 +324,6 @@ export default {
       getLisaillie:[],
       alendarList:[],
       calendarData: [
-
             ],
             ary:[],
             tieku:'',
@@ -361,17 +360,20 @@ export default {
 
    },
   methods: {
-
       // Tooltip 文字提示
         content (date) {
+          console.log(date,37645)
           let content = ''
-          console.log(data,37645)
-          for (let i in this.calendarData) {
+          // console.log(data,37645)
+          for (var i = 0 ; i < this.calendarData.length; i++) {
+          this.calendarData[i].begin_time = this.calendarData[i].begin_time.slice(0,10)
+            console.log(this.calendarData[i].begin_time,123)
             if (date === this.calendarData[i].begin_time) {
               content = this.calendarData[i].schedule_title + ` ` + this.calendarData[i].schedule_type
             }
           }
-          // return content
+          console.log(content)
+          return content
         },
     //数据  第一部分列表
     getList() {