Explorar el Código

优化履职页面

凉纪 hace 2 años
padre
commit
133cb22296
Se han modificado 2 ficheros con 3 adiciones y 6 borrados
  1. 2 4
      src/components/DatePicker/index.vue
  2. 1 2
      vue.config.js

+ 2 - 4
src/components/DatePicker/index.vue

@@ -5,7 +5,7 @@
         ref="Calendar"
         class="calendar"
         v-model="date"
-        :is-expanded="false"
+        :first-day-of-week="1"
         :disabled-dates='disabledDates'
         @transition-start="queryMoth"
         @dayclick="onDayClick">
@@ -48,7 +48,6 @@ export default {
     showPicker (){
       let weeksBox = document.getElementsByClassName('vc-day');
       let pickerBox = document.getElementsByClassName('date-picker-box')[0];
-      console.log(this.num,'num')
       if( this.showPicker){
         for(let i = 0; i < weeksBox.length;i++){
           weeksBox[i].style.transitionDuration = `.5s`;
@@ -57,7 +56,6 @@ export default {
         pickerBox.style.height = `${this.height}px`;
         console.log('show')
       }else {
-        alert(this.num)
         this.height = pickerBox.offsetHeight;
         for(let i = 0; i < weeksBox.length;i++){
           weeksBox[i].style.transitionDuration = `.5s`;
@@ -71,8 +69,8 @@ export default {
   methods:{
     foldBox(){
       let Calendar =  this.$refs.Calendar;
+      console.log(Calendar,'Calendar')
       this.num = Calendar.dateParts[0].week - 1;
-      console.log(this.num,Calendar,'Calendar')
       this.showPicker = !this.showPicker;
     },
     // 获取年、月份

+ 1 - 2
vue.config.js

@@ -109,8 +109,7 @@ module.exports = defineConfig({
         }
       },
       '/dev': {
-        // target: "http://10.87.10.47:8080",
-        target: "http://10.87.10.91:8080",
+        target: "http://10.87.10.47:8080",
         // ws:true,
         changOrigin:true,
         pathRewrite:{