Commit 74446df7 authored by yanzhongrong's avatar yanzhongrong

bugfix

parent 6247fcc8
...@@ -153,27 +153,27 @@ export const constantRoutes = [ ...@@ -153,27 +153,27 @@ export const constantRoutes = [
} }
] ]
}, },
{ // {
path: '/maintain', // path: '/maintain',
component: Layout, // component: Layout,
redirect: '/maintain/oneself', // redirect: '/maintain/oneself',
name: 'Maintain', // name: 'Maintain',
meta: { title: '维护管理', icon: 'maintain' }, // meta: { title: '维护管理', icon: 'maintain' },
children: [ // children: [
{ // {
path: 'oneself', // path: 'oneself',
name: 'MaintainOneself', // name: 'MaintainOneself',
component: () => import('@/views/maintain/oneself/index'), // component: () => import('@/views/maintain/oneself/index'),
meta: { title: '设备本身维护' } // meta: { title: '设备本身维护' }
}, // },
{ // {
path: 'parameter', // path: 'parameter',
name: 'MaintainParameter', // name: 'MaintainParameter',
component: () => import('@/views/maintain/parameter/index'), // component: () => import('@/views/maintain/parameter/index'),
meta: { title: '设备告警参数设置' } // meta: { title: '设备告警参数设置' }
} // }
] // ]
}, // },
{ {
path: '/history', path: '/history',
component: Layout, component: Layout,
...@@ -181,24 +181,24 @@ export const constantRoutes = [ ...@@ -181,24 +181,24 @@ export const constantRoutes = [
name: 'History', name: 'History',
meta: { title: '历史数据', icon: 'history' }, meta: { title: '历史数据', icon: 'history' },
children: [ children: [
{ // {
path: 'leakyCableStatus', // path: 'leakyCableStatus',
name: 'leakyCableStatus', // name: 'leakyCableStatus',
component: () => import('@/views/history/leakyCableStatus/index.vue'), // component: () => import('@/views/history/leakyCableStatus/index.vue'),
meta: { title: '漏缆监测历史状态' } // meta: { title: '漏缆监测历史状态' }
}, // },
{ {
path: 'leakyCableRepair', path: 'leakyCableRepair',
name: 'leakyCableRepair', name: 'leakyCableRepair',
component: () => import('@/views/history/leakyCableRepair/index.vue'), component: () => import('@/views/history/leakyCableRepair/index.vue'),
meta: { title: '漏缆监测维修历史' } meta: { title: '漏缆监测维修历史' }
}, },
{ // {
path: 'deviceLinkStatus', // path: 'deviceLinkStatus',
name: 'deviceLinkStatus', // name: 'deviceLinkStatus',
component: () => import('@/views/history/deviceLinkStatus/index.vue'), // component: () => import('@/views/history/deviceLinkStatus/index.vue'),
meta: { title: '设备连接历史状态' } // meta: { title: '设备连接历史状态' }
}, // },
{ {
path: 'deviceLinkRepair', path: 'deviceLinkRepair',
name: 'deviceLinkRepair', name: 'deviceLinkRepair',
......
...@@ -69,8 +69,10 @@ export default { ...@@ -69,8 +69,10 @@ export default {
finalyText() { finalyText() {
if(this.$route.query.name) { if(this.$route.query.name) {
return '趋势分析图形(' + this.$route.query.name + ')' return '趋势分析图形(' + this.$route.query.name + ')'
} else { } else if(this.type == 0) {
return '趋势分析图形(' + this.curInfo.baseInfo.leakyCableDescribe + ')' return '趋势分析图形(' + this.curInfo.baseInfo.leakyCableDescribe + ')'
} else {
return '趋势分析图形(' + this.curInfo.baseInfo.feederDescribe + ')'
} }
}, },
isDisableYear() { isDisableYear() {
...@@ -146,7 +148,7 @@ export default { ...@@ -146,7 +148,7 @@ export default {
init(type) { init(type) {
let params = { let params = {
type: this.type, type: this.type,
applyId: this.selectId, applyId: this.$route.query.id ? this.$route.query.id : this.selectId,
creationTime: this.date == 1 ? this.year+'-00-00 00:00:00' : this.year+'-'+this.month creationTime: this.date == 1 ? this.year+'-00-00 00:00:00' : this.year+'-'+this.month
} }
if(type == 1) { if(type == 1) {
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
</el-row> </el-row>
<picAnalysis :flag="curflag" :curInfo="curObj" @cancel="cancel" /> <picAnalysis :flag="curflag" :curInfo="curObj" @cancel="cancel" />
<trendAnalysis :flag="trendflag" :selectId="selectId" :type="type==5 ? 0 : 1" @cancel="cancel" /> <trendAnalysis :flag="trendflag" :selectId="selectId" :curInfo="curInfo" :type="type==5 ? 0 : 1" @cancel="cancel" />
</div> </div>
</template> </template>
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,7 @@ export default {
generateChart() { generateChart() {
this.curObj = [] this.curObj = []
this.curflag = 1 this.curflag = 1
this.curObj.push(this.curInfo.baseInfo.leakyCableDescribe) this.curObj.push(this.curInfo.baseInfo.feederDescribe)
}, },
cancel() { cancel() {
this.curflag = 0 this.curflag = 0
......
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