Commit 078dfc32 by 彭祥礼

楼长总经理KPI信息导入

parent 047f822b
......@@ -14,9 +14,10 @@
<a-form-item label="月份">
<a-range-picker
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
:value="monthValue"
:mode="queryParam.month"
format="YYYY-MM"
:value="queryParam.month"
:mode="tempMode"
:ranges="{ Today: [moment(), moment()], 'This Month': [moment(), moment().endOf('month')] }"
@panelChange="handlePanelChange"
@change="handleChange"
style="width: 16rem;"
......@@ -127,9 +128,8 @@
title: ConstantActivity.title,
queryParam: {
name: '',
month: ['month', 'month'],
month: ['', ''],
},
monthValue: [],
modelData: {
month: '',
county: '',
......@@ -196,21 +196,21 @@
importTile: "",
importUrl: "",
zjlmoBan: true,
KDmoBan: true,
zjlkpivisible: false,
tempMode:['month', 'month'],
}
},
methods: {
moment,
handleChange(value) {
this.monthValue = value;
console.log("handleChange"+value);
this.queryParam.month = value;
//console.log("monthValue================="+this.queryParam);
},
handlePanelChange(value, mode) {
this.monthValue = value;
console.log("handlePanelChange:"+value);
this.queryParam.month = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
//this.queryParam.month;
console.log("queryParam.month:"+this.queryParam.month);
this.queryParam.month = value;
this.tempMode = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
//console.log("queryParam.month=================="+this.queryParam);
},
excelOut() {
let params = {
......@@ -263,6 +263,7 @@
this.importUrl = "";
},
search() {
console.log("queryParam.month=================="+this.queryParam);
this.$refs.table.refresh({search: true})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment