|
@@ -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 = [];
|