|
@@ -13,11 +13,13 @@
|
|
|
prop="pushTime"
|
|
|
label="策略推送时间"
|
|
|
>
|
|
|
+ <template slot-scope='{row}'>{{row.pushTime?row.pushTime.slice(8,10)+":"+row.pushTime.slice(10,12) : '--'}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="executeTime"
|
|
|
label="策略执行时间"
|
|
|
>
|
|
|
+ <template slot-scope='{row}'>{{row.executeTime?row.executeTime.slice(8,10)+":"+row.executeTime.slice(10,12):"--"}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop label='冷水机组开启台数' align='center'>
|
|
|
<template slot-scope='{row}'>{{row.chillerNumSetL+row.chillerNumSetS}}</template>
|
|
@@ -42,7 +44,7 @@
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="zip"
|
|
|
+
|
|
|
label="执行情况"
|
|
|
>
|
|
|
<template slot-scope="{row}"> {{row.isExecuted==0?'未执行':'已执行'}}</template>
|
|
@@ -52,7 +54,7 @@
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="handleClick(scope.row)" type="text" size="small">备注</el-button>
|
|
|
- <el-button @click="dumpAduit(scope.row)" type="text" size="small">申诉</el-button>
|
|
|
+ <el-button @click="dumpAduit(scope.row)" v-if="scope.row.isExecuted==0" type="text" size="small">申诉</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -84,22 +86,21 @@ export default {
|
|
|
return {
|
|
|
dialogVisible:false,
|
|
|
remarks:'',
|
|
|
- id:""
|
|
|
+ row:""
|
|
|
}
|
|
|
},
|
|
|
props:['data'],
|
|
|
methods:{
|
|
|
handleClick(row){
|
|
|
- this.id = row.id
|
|
|
+ this.row = row
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
saveCommand(row){
|
|
|
this.dialogVisible = false
|
|
|
let postParams = {
|
|
|
- criteria: {
|
|
|
- id: this.id,
|
|
|
+ id: this.row.id,
|
|
|
remarks: this.remarks
|
|
|
- }
|
|
|
+
|
|
|
};
|
|
|
updateCommand({ postParams }).then(res => {
|
|
|
if (res.result == "success") {
|