|
@@ -8,11 +8,11 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="top-bar">
|
|
<view class="top-bar">
|
|
|
- <DorpdownSelect class="bar"
|
|
|
|
|
|
|
+ <DateSelect class="bar"
|
|
|
:menuObj="menuTimeObj"
|
|
:menuObj="menuTimeObj"
|
|
|
:selectItemId.sync="selectTimeId"
|
|
:selectItemId.sync="selectTimeId"
|
|
|
:typeTime="true"
|
|
:typeTime="true"
|
|
|
- :typeSelect="1" top="0px"
|
|
|
|
|
|
|
+ :typeSelect="1" top="0"
|
|
|
@selectSussess="selectSussess" />
|
|
@selectSussess="selectSussess" />
|
|
|
<DorpdownSelect class="bar"
|
|
<DorpdownSelect class="bar"
|
|
|
:menuObj.sync="menuObj"
|
|
:menuObj.sync="menuObj"
|
|
@@ -61,11 +61,12 @@ import SelectList from "@/components/plugin/selectList";
|
|
|
import { getStatCgGhsProfile } from "@/api/statistics/index";
|
|
import { getStatCgGhsProfile } from "@/api/statistics/index";
|
|
|
import { list,selectShop } from "@/mixins";
|
|
import { list,selectShop } from "@/mixins";
|
|
|
import DorpdownSelect from "@/components/module/shopSelect";
|
|
import DorpdownSelect from "@/components/module/shopSelect";
|
|
|
|
|
+import DateSelect from "@/components/module/dateSelect";
|
|
|
import rangeDatePick from '@/components/pyh-rdtpicker/pyh-rdtpicker.vue';
|
|
import rangeDatePick from '@/components/pyh-rdtpicker/pyh-rdtpicker.vue';
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import {mapActions, mapGetters} from "vuex";
|
|
import {mapActions, mapGetters} from "vuex";
|
|
|
export default {
|
|
export default {
|
|
|
- components: { SelectList, AppWrapperEmpty,DorpdownSelect,rangeDatePick,AppSearchModule },
|
|
|
|
|
|
|
+ components: { SelectList, AppWrapperEmpty,DorpdownSelect,rangeDatePick,AppSearchModule,DateSelect },
|
|
|
mixins: [list,selectShop],
|
|
mixins: [list,selectShop],
|
|
|
computed: { ...mapGetters(["getDictionariesInfo","getLoginInfo"]) },
|
|
computed: { ...mapGetters(["getDictionariesInfo","getLoginInfo"]) },
|
|
|
data() {
|
|
data() {
|
|
@@ -189,8 +190,11 @@ export default {
|
|
|
//选择时间
|
|
//选择时间
|
|
|
selectSussess(val) {
|
|
selectSussess(val) {
|
|
|
this.params.selectTime = this.selectTimeId;
|
|
this.params.selectTime = this.selectTimeId;
|
|
|
- if(val.select=='自定义'){
|
|
|
|
|
- this.selectTime();
|
|
|
|
|
|
|
+ if(val.custom==1){
|
|
|
|
|
+ this.isShow = false;
|
|
|
|
|
+ this.params.startTime = val.start
|
|
|
|
|
+ this.params.endTime = val.end
|
|
|
|
|
+ this.init();
|
|
|
}else{
|
|
}else{
|
|
|
this.init();
|
|
this.init();
|
|
|
}
|
|
}
|