日历
This commit is contained in:
@@ -56,9 +56,7 @@
|
|||||||
<div class="right-search">
|
<div class="right-search">
|
||||||
<div class="time-select" :class="effectType == index ? 'active' : ''" v-for="(item, index) in dateTypeList" :key="index" @click="changeEffectType(index)">{{item}}</div>
|
<div class="time-select" :class="effectType == index ? 'active' : ''" v-for="(item, index) in dateTypeList" :key="index" @click="changeEffectType(index)">{{item}}</div>
|
||||||
<ai-picker :instance="instance" v-model="deptList" style="display:inlie=block;">
|
<ai-picker :instance="instance" v-model="deptList" style="display:inlie=block;">
|
||||||
<template>
|
<div class="time-select"><span class="dept-name" :style="deptList.length ? '' : 'color:#999;'">宣发部门</span><i class="el-icon-arrow-down"></i></div>
|
||||||
<!-- <ai-select size="medium" clearable placeholder="宣发部门"/> -->
|
|
||||||
</template>
|
|
||||||
</ai-picker>
|
</ai-picker>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -117,6 +115,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
|
import { mapActions } from 'vuex';
|
||||||
export default {
|
export default {
|
||||||
name: 'AppAnnounceStatistics',
|
name: 'AppAnnounceStatistics',
|
||||||
label: '协同宣发统计',
|
label: '协同宣发统计',
|
||||||
@@ -146,6 +145,7 @@
|
|||||||
dialogDate: false,
|
dialogDate: false,
|
||||||
timeList: '',
|
timeList: '',
|
||||||
deptList: [],
|
deptList: [],
|
||||||
|
selectDeptName: '',
|
||||||
|
|
||||||
type: '',
|
type: '',
|
||||||
}
|
}
|
||||||
@@ -185,7 +185,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$store.dispatch('initOpenData')
|
|
||||||
var year = this.calendarDate.getFullYear();
|
var year = this.calendarDate.getFullYear();
|
||||||
var month = this.calendarDate.getMonth() + 1;
|
var month = this.calendarDate.getMonth() + 1;
|
||||||
var date = this.calendarDate.getDate()
|
var date = this.calendarDate.getDate()
|
||||||
@@ -199,10 +198,27 @@
|
|||||||
this.getEffect()
|
this.getEffect()
|
||||||
this.getDepart()
|
this.getDepart()
|
||||||
this.dict.load("mstSendType")
|
this.dict.load("mstSendType")
|
||||||
|
|
||||||
|
var items = [{type: 'departmentName', id: '10'}]
|
||||||
|
this.initOpenData({canvas:true})
|
||||||
|
setTimeout(() => {
|
||||||
|
this.transCanvas(items).then((data) => {
|
||||||
|
console.log(data)
|
||||||
|
})
|
||||||
|
}, 2000)
|
||||||
|
|
||||||
|
|
||||||
|
// WWOpenData.prefetch({ items }, (err, data) => {
|
||||||
|
// if (err) {
|
||||||
|
// console.log(err)
|
||||||
|
// }
|
||||||
|
// console.log(data)
|
||||||
|
// })
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapActions(['initOpenData', 'transCanvas']),
|
||||||
selectDete() {
|
selectDete() {
|
||||||
console.log(this.timeList)
|
|
||||||
if(!this.timeList || !this.timeList.length) {
|
if(!this.timeList || !this.timeList.length) {
|
||||||
return this.$message.error('请选择自定义时间');
|
return this.$message.error('请选择自定义时间');
|
||||||
}
|
}
|
||||||
@@ -312,13 +328,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// var items = [{type: 'departmentName', id: '10', corpid: 'ww596787bb70f08288'}]
|
|
||||||
// WWOpenData.prefetch({ items }, (err, data) => {
|
|
||||||
// if (err) {
|
|
||||||
// console.log(err)
|
|
||||||
// }
|
|
||||||
// console.log(data)
|
|
||||||
// })
|
|
||||||
|
|
||||||
},
|
},
|
||||||
setBarChart() {
|
setBarChart() {
|
||||||
@@ -543,6 +553,10 @@
|
|||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
.dept-name{
|
||||||
|
display: inline-block;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.active{
|
.active{
|
||||||
border: 1px solid #26f;
|
border: 1px solid #26f;
|
||||||
@@ -669,4 +683,8 @@
|
|||||||
padding: 0 0 0!important;
|
padding: 0 0 0!important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep .AiPicker{
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user