|
@@ -224,58 +224,61 @@ export default {
|
|
|
appealClick(item) {
|
|
|
this.ids = item.id
|
|
|
this.auditObj = item
|
|
|
- this.quertName(item.updateUser)
|
|
|
- let params = {
|
|
|
- postParams: {
|
|
|
- criteria: {
|
|
|
- id: item.commandId
|
|
|
+ if (item.updateUser) {
|
|
|
+ this.quertName(item.updateUser)
|
|
|
+
|
|
|
+ let params = {
|
|
|
+ postParams: {
|
|
|
+ criteria: {
|
|
|
+ id: item.commandId
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- queryChillerExecuteInfo(params).then(res => {
|
|
|
- this.tableList = []
|
|
|
- const list = res.data || [{}, {}, {}]
|
|
|
- if (list.length > 0) {
|
|
|
- let current = list[0].current
|
|
|
- current.title = '当前运行状态'
|
|
|
- this.tableList.push(current)
|
|
|
- list.forEach(item => {
|
|
|
- if (Object.keys(item.recommend).length > 0) {
|
|
|
- let obj = {
|
|
|
- title: '推送策略',
|
|
|
- id: item.recommend.id,
|
|
|
- date: item.recommend.date,
|
|
|
- time: item.recommend.time,
|
|
|
- projectId: item.recommend.projectId,
|
|
|
- chillerNumSetLOrg: item.recommend.chillerNumSetL,
|
|
|
- chillerNumSetSOrg: item.recommend.chillerNumSetS,
|
|
|
- chillWaterOutTempSetOrg: item.recommend.chillWaterOutTempSet,
|
|
|
- coolPumpNumSetLOrg: item.recommend.coolPumpNumSetL,
|
|
|
- coolPumpNumSetSOrg: item.recommend.coolPumpNumSetS,
|
|
|
- coolPumpFreqSetOrg: item.recommend.coolPumpFreqSet,
|
|
|
- chillPumpNumSetLOrg: item.recommend.chillPumpNumSetL,
|
|
|
- chillPumpNumSetSOrg: item.recommend.chillPumpNumSetS,
|
|
|
- chillPumpFreqSetOrg: item.recommend.chillPumpFreqSet,
|
|
|
- coolTowerNumSetLOrg: item.recommend.coolTowerNumSetL,
|
|
|
- coolTowerNumSetSOrg: item.recommend.coolTowerNumSetS,
|
|
|
- coolTowerFreqSetOrg: item.recommend.coolTowerFreqSet,
|
|
|
- plrAllOrg: item.recommend.plrAllOrg
|
|
|
+ queryChillerExecuteInfo(params).then(res => {
|
|
|
+ this.tableList = []
|
|
|
+ const list = res.data || [{}, {}, {}]
|
|
|
+ if (list.length > 0) {
|
|
|
+ let current = list[0].current
|
|
|
+ current.title = '当前运行状态'
|
|
|
+ this.tableList.push(current)
|
|
|
+ list.forEach(item => {
|
|
|
+ if (Object.keys(item.recommend).length > 0) {
|
|
|
+ let obj = {
|
|
|
+ title: '推送策略',
|
|
|
+ id: item.recommend.id,
|
|
|
+ date: item.recommend.date,
|
|
|
+ time: item.recommend.time,
|
|
|
+ projectId: item.recommend.projectId,
|
|
|
+ chillerNumSetLOrg: item.recommend.chillerNumSetL,
|
|
|
+ chillerNumSetSOrg: item.recommend.chillerNumSetS,
|
|
|
+ chillWaterOutTempSetOrg: item.recommend.chillWaterOutTempSet,
|
|
|
+ coolPumpNumSetLOrg: item.recommend.coolPumpNumSetL,
|
|
|
+ coolPumpNumSetSOrg: item.recommend.coolPumpNumSetS,
|
|
|
+ coolPumpFreqSetOrg: item.recommend.coolPumpFreqSet,
|
|
|
+ chillPumpNumSetLOrg: item.recommend.chillPumpNumSetL,
|
|
|
+ chillPumpNumSetSOrg: item.recommend.chillPumpNumSetS,
|
|
|
+ chillPumpFreqSetOrg: item.recommend.chillPumpFreqSet,
|
|
|
+ coolTowerNumSetLOrg: item.recommend.coolTowerNumSetL,
|
|
|
+ coolTowerNumSetSOrg: item.recommend.coolTowerNumSetS,
|
|
|
+ coolTowerFreqSetOrg: item.recommend.coolTowerFreqSet,
|
|
|
+ plrAllOrg: item.recommend.plrAllOrg
|
|
|
+ }
|
|
|
+ this.tableList.push(obj)
|
|
|
}
|
|
|
- this.tableList.push(obj)
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
|
|
|
- let real = list[0].real
|
|
|
- real.title = '执行策略'
|
|
|
- this.tableList.push(real)
|
|
|
- }
|
|
|
- // console.log(list)
|
|
|
- // this.tableList = Object.values(list[0]).map(i => i || {})
|
|
|
- // this.tableList[0].title = '当前运行状态'
|
|
|
- // this.tableList[1].title = '推送策略'
|
|
|
- // this.tableList[2].title = '执行策略'
|
|
|
- console.log(this.tableList)
|
|
|
- })
|
|
|
+ let real = list[0].real
|
|
|
+ real.title = '执行策略'
|
|
|
+ this.tableList.push(real)
|
|
|
+ }
|
|
|
+ // console.log(list)
|
|
|
+ // this.tableList = Object.values(list[0]).map(i => i || {})
|
|
|
+ // this.tableList[0].title = '当前运行状态'
|
|
|
+ // this.tableList[1].title = '推送策略'
|
|
|
+ // this.tableList[2].title = '执行策略'
|
|
|
+ console.log(this.tableList)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
unique(array) {
|
|
|
var res = []
|