|
@@ -10,20 +10,19 @@
|
|
|
<a-form-item label="起始年月">
|
|
|
<a-range-picker
|
|
|
style="width: 100%"
|
|
|
- v-model="queryParam.timeRange"
|
|
|
placeholder="['开始年月', '结束年月']"
|
|
|
format="YYYY-MM"
|
|
|
:mode="mode2"
|
|
|
:value="value"
|
|
|
@panelChange="handlePanelChange"
|
|
|
- @change="handleChange"
|
|
|
+ @change="monthChange"
|
|
|
/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="部门">
|
|
|
- <a-input placeholder="请输入订单号" v-model="queryParam.department"></a-input>
|
|
|
+ <a-input placeholder="请输入部门" v-model="queryParam.department"></a-input>
|
|
|
<!-- <a-select placeholder="请选择部门" v-model="queryParam.">
|
|
|
<a-select-option :value="''">请选择</a-select-option>
|
|
|
<a-select-option :value="0">业务一部</a-select-option>
|
|
@@ -65,7 +64,7 @@
|
|
|
<a-card :bordered="false" style="marginTop:10px;">
|
|
|
<div class="chart">
|
|
|
<!-- 部门 "-->
|
|
|
- <div class="departmentChart" style="background:rgba(255, 165, 0,.08);">
|
|
|
+ <div class="departmentChart" style="background:rgba(255, 165, 0,.09);">
|
|
|
<departmentChart />
|
|
|
</div>
|
|
|
<!-- 客户 -->
|
|
@@ -168,7 +167,6 @@ export default {
|
|
|
vendorType: '外部',
|
|
|
startYearMonth: '',
|
|
|
endYearMonth: '',
|
|
|
- // timeRange: [],
|
|
|
department: '',
|
|
|
customer: ''
|
|
|
},
|
|
@@ -179,7 +177,7 @@ export default {
|
|
|
// pageSize: '' //一页多少
|
|
|
},
|
|
|
mode2: ['month', 'month'],
|
|
|
- value: []
|
|
|
+ value: [] //起始月份
|
|
|
// dateFormat: 'YYYY-MM-DD'
|
|
|
}
|
|
|
},
|
|
@@ -206,33 +204,30 @@ export default {
|
|
|
handlePanelChange(value, mode) {
|
|
|
this.value = value
|
|
|
this.mode2 = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]]
|
|
|
- console.log('this.mode2', this.mode2)
|
|
|
-
|
|
|
- console.log('value.dateString[0]', moment(value[0]))
|
|
|
- console.log('value.dateString[1]', moment(value[0]))
|
|
|
- // this.queryParam.startYearMonth = dateString[0]
|
|
|
- // this.queryParam.endYearMonth = dateString[1]
|
|
|
+ // console.log('this.mode2', this.mode2)
|
|
|
+ this.queryParam.startYearMonth = value[0].format('YYYY-MM')
|
|
|
+ this.queryParam.endYearMonth = value[1].format('YYYY-MM')
|
|
|
+ console.log('开始年月:', this.queryParam.startYearMonth)
|
|
|
+ console.log('结束年月:', this.queryParam.endYearMonth)
|
|
|
+ setFieldsValue({
|
|
|
+ timeRange: value
|
|
|
+ })
|
|
|
},
|
|
|
- // onDateChange(value, dateString) {
|
|
|
- // console.log('起年月', dateString[0], '始年月', dateString[1])
|
|
|
- // this.queryParam.startYearMonth = dateString[0]
|
|
|
- // this.queryParam.endYearMonth = dateString[1]
|
|
|
- // }
|
|
|
+
|
|
|
// 时间发生变化的回调,发生在用户选择时间时
|
|
|
- handleChange(value) {
|
|
|
- console.log('?', value)
|
|
|
+ monthChange(value) {
|
|
|
this.value = value
|
|
|
- console.log('this.value', this.value)
|
|
|
+ console.log('what------monthChange')
|
|
|
},
|
|
|
searchQuery() {
|
|
|
this.getExternalData()
|
|
|
},
|
|
|
searchReset() {
|
|
|
this.queryParam = {}
|
|
|
+ this.value = [] //起始年月重置
|
|
|
this.getExternalData()
|
|
|
},
|
|
|
|
|
|
- // 分页、排序、筛选变化时触发
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
// console.log('当前页信息>>>>',pagination)
|
|
|
this.queryParam.pageNo = pagination.current
|