瀏覽代碼

备注表格

zhulizhen 5 年之前
父節點
當前提交
c04c89b768
共有 2 個文件被更改,包括 8 次插入9 次删除
  1. 8 7
      src/components/todayStrategy.vue
  2. 0 2
      src/views/strategy/bomBox.vue

+ 8 - 7
src/components/todayStrategy.vue

@@ -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") {

+ 0 - 2
src/views/strategy/bomBox.vue

@@ -63,10 +63,8 @@ export default {
   methods: {
     saveRemarks() {
       let postParams = {
-        criteria: {
           id: this.data.id,
           remarks: this.remarks
-        }
       };
       updateCommand({ postParams }).then(res => {
         if (res.result == "success") {