Commit 078dfc32 by 彭祥礼

楼长总经理KPI信息导入

parent 047f822b
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
<a-form-item label="月份"> <a-form-item label="月份">
<a-range-picker <a-range-picker
:placeholder="['开始月份', '结束月份']" :placeholder="['开始月份', '结束月份']"
format="YYYYMM" format="YYYY-MM"
:value="monthValue" :value="queryParam.month"
:mode="queryParam.month" :mode="tempMode"
:ranges="{ Today: [moment(), moment()], 'This Month': [moment(), moment().endOf('month')] }"
@panelChange="handlePanelChange" @panelChange="handlePanelChange"
@change="handleChange" @change="handleChange"
style="width: 16rem;" style="width: 16rem;"
...@@ -127,9 +128,8 @@ ...@@ -127,9 +128,8 @@
title: ConstantActivity.title, title: ConstantActivity.title,
queryParam: { queryParam: {
name: '', name: '',
month: ['month', 'month'], month: ['', ''],
}, },
monthValue: [],
modelData: { modelData: {
month: '', month: '',
county: '', county: '',
...@@ -196,21 +196,21 @@ ...@@ -196,21 +196,21 @@
importTile: "", importTile: "",
importUrl: "", importUrl: "",
zjlmoBan: true, zjlmoBan: true,
KDmoBan: true,
zjlkpivisible: false, zjlkpivisible: false,
tempMode:['month', 'month'],
} }
}, },
methods: { methods: {
moment, moment,
handleChange(value) { handleChange(value) {
this.monthValue = value; this.queryParam.month = value;
console.log("handleChange"+value); //console.log("monthValue================="+this.queryParam);
}, },
handlePanelChange(value, mode) { handlePanelChange(value, mode) {
this.monthValue = value; this.queryParam.month = value;
console.log("handlePanelChange:"+value); this.tempMode = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
this.queryParam.month = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]]; //console.log("queryParam.month=================="+this.queryParam);
//this.queryParam.month;
console.log("queryParam.month:"+this.queryParam.month);
}, },
excelOut() { excelOut() {
let params = { let params = {
...@@ -263,6 +263,7 @@ ...@@ -263,6 +263,7 @@
this.importUrl = ""; this.importUrl = "";
}, },
search() { search() {
console.log("queryParam.month=================="+this.queryParam);
this.$refs.table.refresh({search: true}) 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