Przeglądaj źródła

feat: 删除多余log代码

Jack Zhou 1 miesiąc temu
rodzic
commit
169f955d6d

+ 0 - 1
src/components/DateRange/src/components/CalendarDate.vue

@@ -72,7 +72,6 @@ const daterange = (val: any) => {
       title: props.CalendarTitle,
       data: DateList.value
     }
-    console.log(rangedata, 'value')
     emit('DateRangeChange', rangedata)
   }
 }

+ 0 - 12
src/components/DateRange/src/components/VCalendarDate.vue

@@ -71,10 +71,8 @@ const daterange = (val: any) => {
       title: props.CalendarTitle,
       data: DateList.value
     }
-    console.log(rangedata, 'value')
     emit('DateRangeChange', rangedata)
   }
-  console.log(props.date, '日期')
   emit('update:date', props.date)
 }
 const ChangeToday = (val: any) => {
@@ -96,16 +94,6 @@ const Latest = () => {
   daterange(DateList.value[0])
 }
 const changeRangeData = (value: any) => {
-  console.log(value, 'value')
-  // DateList.value = value
-  // if (value != '') {
-  //   const rangedata = {
-  //     title: props.CalendarTitle,
-  //     data: value
-  //   }
-  //   emit('DateRangeChange', rangedata)
-  //   emit('DateChange', value)
-  // }
   emit('update:date', value)
 }
 const handleCalendarOpen = (date: any) => {

+ 0 - 1
src/components/MoreFilters/src/components/PartiesView.vue

@@ -69,7 +69,6 @@ if (searchMode === 'tracking') {
 const moreList = ref([])
 
 const initData = () => {
-  console.log('initData')
   moreList.value = []
   pageData.value.forEach((item) => {
     item.value = []

+ 0 - 1
src/components/MoreFilters/src/components/PlacesView.vue

@@ -91,7 +91,6 @@ const addType = () => {
 }
 
 const changeTitle = (id: any, title: string) => {
-  console.log('changeTitle id', id, 'title', title)
   const needKey = placeTypeOptions.value.find((item) => item.title === title)?.needKey
   moreList.value.forEach((item) => {
     if (item.id === id) {

+ 0 - 1
src/components/SelectTable/src/SelectTable.vue

@@ -86,7 +86,6 @@ const handleSearch = (val?) => {
   if (val === 'pageChange') {
     rc = state.total
   } else {
-    console.log('handleSearch', val)
     searchVal.value = val ? val.target.value : ''
     state.total = 0
   }

+ 0 - 1
src/components/TransportMode/src/TransportMode.vue

@@ -49,7 +49,6 @@ const handleCheckAllChange = (checked: any) => {
   })
 }
 const handleCheckedTransportChange = (item: any) => {
-  console.log(item)
   const isCheckedAll = transportList.value.every((item: any) => item.checked)
   isCheckedAll ? (checkAll.value = true) : (checkAll.value = false)
 }

+ 0 - 3
src/components/selectAutoSelect/src/selectAutoSelect.vue

@@ -23,7 +23,6 @@ const pageData = ref(cloneDeep(props.data))
 watch(
   () => props.data,
   (newVal) => {
-    console.log('props.data changed', newVal)
     pageData.value = cloneDeep(newVal)
   },
   {
@@ -50,12 +49,10 @@ const getAvailableOptions = (curTitle: string) => {
 const emit = defineEmits(['deleteItem', 'changeTitle', 'changeValue'])
 
 const changeTitle = (title: string, item: any) => {
-  console.log('changeTitle item', item, 'value', title)
   // item.value = []
   emit('changeTitle', item, title)
 }
 const changeValue = (value: string[], item: any) => {
-  console.log('changeValue item', item, 'value', value)
   // item.value = value
   emit('changeValue', item, value)
 }

+ 0 - 1
src/views/Booking/src/BookingView.new.vue

@@ -168,7 +168,6 @@ const handleGuide = () => {
 onBeforeRouteLeave((route: any) => {
   // guideStore.clearGuide()
   const whiteList = ['Booking Detail', 'Tracking Detail']
-  console.log(route.name, '跳转')
   if (!whiteList.includes(route?.name)) {
     filtersStore.clearFilters()
   }

+ 4 - 50
src/views/Dashboard/src/DashboardView.new.vue

@@ -626,8 +626,6 @@ const setEstimatedTime = (
 }
 
 const ClickParams = (val: any) => {
-  console.log(dashboardObj, 'value', val)
-
   const setEstimatedTime = (
     type: 'ETD' | 'ETA',
     value: string[],
@@ -678,7 +676,6 @@ const ClickParams = (val: any) => {
       dashboardObj.KPIDefaulteData.date_start,
       dashboardObj.KPIDefaulteData.date_end
     ])
-    console.log(dashboardObj.KPIDefaulteData.transportation, 'all Data', dashboardObj)
     setTransportMode(dashboardObj.KPIDefaulteData.transportation)
     // KPI Departure点击跳转
     filtersStore.updateFilter({
@@ -1162,18 +1159,6 @@ const handleGuide = () => {
                     :isShowTransportModeGuide="true"
                     @FilterSearch="GetKpiData"
                   ></DashFilters>
-                  <!-- <el-tooltip
-                    effect="dark"
-                    :offset="6"
-                    :content="item.text"
-                    placement="bottom-start"
-                  >
-                    <span class="iconfont_icon iconfont_icon_tip">
-                      <svg class="iconfont" aria-hidden="true">
-                        <use xlink:href="#icon-icon_info_b"></use>
-                      </svg>
-                    </span>
-                  </el-tooltip> -->
                 </div>
               </template>
               <template #content>
@@ -1656,9 +1641,7 @@ const handleGuide = () => {
   font-size: var(--font-size-2);
   color: var(--color-neutral-2);
 }
-.el-divider--horizontal {
-  margin: 8px 0;
-}
+
 .Save_filters {
   display: flex;
   align-items: center;
@@ -1702,26 +1685,7 @@ const handleGuide = () => {
   min-width: 0;
   box-sizing: border-box;
 }
-.KPI_title {
-  border-bottom: 1px solid var(--color-border);
-  height: 48px;
-  line-height: 48px;
-  align-items: center;
-  justify-content: space-between;
-  display: flex;
-  padding-left: 16px;
-  font-weight: 700;
-  font-size: var(--font-size-5);
-}
-.tips_filter {
-  margin-right: 8px;
-  height: 32px;
-}
-.filters_right {
-  width: 251px;
-  height: 32px;
-  margin-bottom: 8px;
-}
+
 :deep(.ETD_title) {
   margin-bottom: 0 !important;
 }
@@ -1766,11 +1730,7 @@ const handleGuide = () => {
   border-top: 1px solid var(--color-border);
   padding: 4px 8px;
 }
-.container-type {
-  font-size: 14px;
-  font-weight: 400;
-  margin-right: 4px;
-}
+
 .seller_chart {
   width: 30%;
   border-right: 1px solid var(--color-border);
@@ -1784,13 +1744,7 @@ const handleGuide = () => {
   justify-content: space-between;
   margin-right: 30px;
 }
-.iconfont_icon_tip {
-  margin-left: 8px;
-  width: 16px;
-  height: 16px;
-  display: flex;
-  align-items: center;
-}
+
 .dashboard {
   z-index: 2014;
   position: relative;

+ 0 - 1
src/views/Tracking/src/TrackingView.new.vue

@@ -131,7 +131,6 @@ const getTrackingData = () => {
 }
 onMounted(() => {})
 const initPage = () => {
-  console.log(headerSearchValue.value, 'headerSearchValue.value')
   if (headerSearchValue.value) {
     filtersStore.clearFilters()
     filtersStore.updateFilter({