jiayufei %!s(int64=4) %!d(string=hai) anos
pai
achega
5498574c7f

+ 6 - 0
src/views/modules/copy-library/copy-library.vue

@@ -55,6 +55,7 @@
                         <a-range-picker
                             v-model="configForm.launchDateRange"
                             format="YYYY-MM-DD"
+                            :disabled-date="disabledDate"
                             @change="handleLaunchData"
                         />
                     </a-form-item>
@@ -329,6 +330,7 @@
 <script>
 import AcountSearch from '@/views/modules/Statistics/components/Treeselect.vue';
 
+import moment from 'moment';
 import {getAction, postFileAction, postAction} from '@/api/manage';
 import {mapGetters} from 'vuex';
 import {urlAcount} from './copy-library-server.js';
@@ -340,6 +342,7 @@ export default {
     },
     data() {
         return {
+            moment,
             projectModelValue: '',
             optimizationOption: [], // 账户option
             controlTypeModel: '1',
@@ -614,6 +617,9 @@ export default {
     },
     methods: {
         ...mapGetters(['nickname', 'avatar', 'userInfo']),
+        disabledDate(current) {
+            return current > moment().subtract(1, 'day');
+        },
         handleRefreshMaster() {
             this.projectModelValue = '';
             this.masterTimes = [];

+ 2 - 2
src/views/modules/headline-view/headline-view.vue

@@ -773,8 +773,8 @@ export default {
         handleGetPlanTableList(data) {
             const paramsData = {
                 accountId: data.account.accountId,
-                startTime: data.startTime,
-                endTime: data.endTime,
+                startTime: this.planRangePicker[0],
+                endTime: this.planRangePicker[1],
                 pageNum: this.planPagin.page,
                 pageSize: this.planPagin.size
             };