From f2dbb2d8cd356214dc2ca7c7a61ce0e301ac1747 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Sat, 27 Jul 2024 17:02:27 +0800 Subject: [PATCH] bug --- .../src/views/homeComponents/agent.vue | 21 +++++++++++++------ .../src/views/homeComponents/manage.vue | 12 +++++++++-- fuintAdmin_zt/src/views/index.vue | 6 ++++-- 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/fuintAdmin_zt/src/views/homeComponents/agent.vue b/fuintAdmin_zt/src/views/homeComponents/agent.vue index 5a561b05d..7025fc8a3 100644 --- a/fuintAdmin_zt/src/views/homeComponents/agent.vue +++ b/fuintAdmin_zt/src/views/homeComponents/agent.vue @@ -149,11 +149,13 @@ range-separator="至" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" - end-placeholder="结束日期"> + end-placeholder="结束日期" + :disabled="disabled" + @change="getStoreList()">
-
+ @@ -170,7 +172,7 @@ import {getListApi} from "@/api/setting/hardware"; import {getNotificationlogList} from "@/api/sys/sysNotificationlog"; export default { - props:["accountId"], + props:["accountId",'deptId'], data(){ return{ form: {}, @@ -179,8 +181,10 @@ export default { "近一周", "近一月", "近一年", + "自定义", ], timeIndex:0, + disabled:true, options: [{ value: '选项1', label: '黄金糕' @@ -219,7 +223,9 @@ export default { this.value1 = [parseTime(oneWeekAgo),parseTime(nowDate)] this.getStoreTotal() this.selectChildByDeptIdApi() - this.getStoreAmount() + // this.getStoreAmount() + this.value = this.deptId + this.chooseDept() this.selectBannerList() let start = new Date(); start.setHours(0) @@ -252,6 +258,7 @@ export default { }, editColor(index){ this.timeIndex = index + this.disabled = true if (this.timeList[index]=='今日'){ let start = new Date(); start.setHours(0) @@ -271,6 +278,8 @@ export default { let nowDate = new Date(); let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate()) this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)] + }else if (this.timeList[index]=='自定义'){ + this.disabled = false } this.getStoreList() }, @@ -323,7 +332,7 @@ export default { }, initChart() { const chart = echarts.init(document.getElementById('ccc')) - const chart1 = echarts.init(document.getElementById('cccc')) + // const chart1 = echarts.init(document.getElementById('cccc')) const chart2= echarts.init(document.getElementById('ccct')) const chart4= echarts.init(document.getElementById('cttt')) const chart3= echarts.init(document.getElementById('ctct')) @@ -637,7 +646,7 @@ export default { ] }; chart.setOption(option) - chart1.setOption(option1) + // chart1.setOption(option1) chart2.setOption(option2) chart3.setOption(option3) chart4.setOption(option4) diff --git a/fuintAdmin_zt/src/views/homeComponents/manage.vue b/fuintAdmin_zt/src/views/homeComponents/manage.vue index 16fc8076f..6665ac0ff 100644 --- a/fuintAdmin_zt/src/views/homeComponents/manage.vue +++ b/fuintAdmin_zt/src/views/homeComponents/manage.vue @@ -157,6 +157,7 @@ value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期" + :disabled="disabled" @change="getStoreList()"> @@ -177,7 +178,7 @@ import {getListApi} from "@/api/setting/hardware"; import {getNotificationlogList} from "@/api/sys/sysNotificationlog"; export default { - props:["accountId"], + props:["accountId",'deptId'], data(){ return{ form: {}, @@ -186,6 +187,7 @@ export default { "近一周", "近一月", "近一年", + "自定义", ], timeIndex:0, options: [{ @@ -207,6 +209,7 @@ export default { value: '', value1: [], value2: [], + disabled:true, imagePath: process.env.VUE_APP_SERVER_URL, queryParams:{}, // 店铺数量 @@ -226,7 +229,9 @@ export default { this.value1 = [parseTime(oneWeekAgo),parseTime(nowDate)] this.getStoreTotal() this.selectChildByDeptIdApi() - this.getStoreAmount() + // this.getStoreAmount() + this.value = this.deptId + this.chooseDept() this.selectBannerList() let start = new Date(); start.setHours(0) @@ -259,6 +264,7 @@ export default { }, editColor(index){ this.timeIndex = index + this.disabled = true if (this.timeList[index]=='今日'){ let start = new Date(); start.setHours(0) @@ -278,6 +284,8 @@ export default { let nowDate = new Date(); let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate()) this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)] + }else if (this.timeList[index]=='自定义'){ + this.disabled = false } this.getStoreList() }, diff --git a/fuintAdmin_zt/src/views/index.vue b/fuintAdmin_zt/src/views/index.vue index e02bad474..f65d43c00 100644 --- a/fuintAdmin_zt/src/views/index.vue +++ b/fuintAdmin_zt/src/views/index.vue @@ -1,9 +1,9 @@