|
|
@@ -5,7 +5,8 @@
|
|
|
<div class="date-wrap">
|
|
|
<div class="date-label">沟通时间:</div>
|
|
|
<el-date-picker v-model="monthValues" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
- align="left" @change="changeDate" :picker-options="pickerOptions" value-format="yyyy-MM-dd" />
|
|
|
+ align="left" :picker-options="pickerOptions" value-format="yyyy-MM-dd" />
|
|
|
+ <el-button type="primary" @click="searchData" style="margin-left: 20px;">查询</el-button>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@@ -95,6 +96,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
+ searchData() {
|
|
|
+ this.formatData3()
|
|
|
+ this.getFangshi()
|
|
|
+ this.getKeshi()
|
|
|
+ this.$message.success('查询成功')
|
|
|
+ },
|
|
|
+
|
|
|
// 格式化日期为 YYYY-MM-DD
|
|
|
formatDate(date) {
|
|
|
const year = date.getFullYear();
|
|
|
@@ -103,12 +111,12 @@ export default {
|
|
|
return `${year}-${month}-${day}`;
|
|
|
},
|
|
|
|
|
|
- changeDate(value) {
|
|
|
- console.log('riqi ', value)
|
|
|
- this.formatData3()
|
|
|
- this.getFangshi()
|
|
|
- this.getKeshi()
|
|
|
- },
|
|
|
+ // changeDate(value) {
|
|
|
+ // console.log('riqi ', value)
|
|
|
+ // this.formatData3()
|
|
|
+ // this.getFangshi()
|
|
|
+ // this.getKeshi()
|
|
|
+ // },
|
|
|
// 关闭当前窗口
|
|
|
closeDialog(needRefresh) {
|
|
|
this.$emit('update:dialogVisible', false, needRefresh)
|
|
|
@@ -277,6 +285,7 @@ export default {
|
|
|
type: 'category',
|
|
|
axisLabel: {
|
|
|
interval: 0, // 强制显示所有标签
|
|
|
+ rotate: 30
|
|
|
},
|
|
|
data: xAxis
|
|
|
},
|