zhulizhen 5 年之前
父节点
当前提交
3affb3dfe6
共有 2 个文件被更改,包括 64 次插入9 次删除
  1. 63 8
      src/components/todayStrategy.vue
  2. 1 1
      src/views/evaluate/evRateTitle.vue

+ 63 - 8
src/components/todayStrategy.vue

@@ -1,8 +1,9 @@
 <template>
-    <el-table
+<div class="remarks">
+  <el-table
     :data="data"
     border
-    style="width: 100%">
+    style="width: 100%;height:400px;">
     <el-table-column
       type="index"
       width="80"
@@ -50,24 +51,78 @@
       label="操作"
       width="100">
       <template slot-scope="scope">
-        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
-        <el-button type="text" size="small">编辑</el-button>
+        <el-button @click="handleClick(scope.row)" type="text" size="small">备注</el-button>
+        <el-button @click="dumpAduit(scope.row)" type="text" size="small">申诉</el-button>
       </template>
     </el-table-column>
   </el-table>
+  
+  <el-dialog
+  title="备注"
+  :visible.sync="dialogVisible"
+  width="30%"
+  >
+   <el-input
+  type="textarea"
+  :autosize="{ minRows: 2, maxRows: 4}"
+  placeholder="请填写备注内容"
+  v-model="remarks">
+</el-input>
+  <span slot="footer" class="dialog-footer">
+    <el-button @click="dialogVisible = false">关闭</el-button>
+    <el-button type="primary" @click="saveCommand">保存</el-button>
+  </span>
+</el-dialog>
+</div>
+    
 </template>
 
 <script>
+import { updateCommand } from "@/api/strategy/strategy.js";
 export default {
     data() {
         return {
-           
+           dialogVisible:false,
+           remarks:'',
+           id:""
         }
     },
-    props:['data']
+    props:['data'],
+    methods:{
+      handleClick(row){
+        this.id = row.id
+        this.dialogVisible = true
+      },
+      saveCommand(row){
+        this.dialogVisible = false
+        let postParams = {
+          criteria: {
+            id: this.id,
+            remarks: this.remarks
+          }
+        };
+        updateCommand({ postParams }).then(res => {
+          if (res.result == "success") {
+            this.$message.success("添加备注成功!");
+          }
+        })
+    },
+      dumpAduit(){
+
+      }
+    }
 }
 </script>
 
-<style>
-
+<style lang='scss' >
+.remarks{
+  .el-dialog{
+    margin-top: 30vh !important;
+    z-index:999999 !important;
+  }
+}
+ .v-modal{
+    z-index:1!important;
+    background: #fff !important;
+  }
 </style>

+ 1 - 1
src/views/evaluate/evRateTitle.vue

@@ -14,7 +14,7 @@
     </span>
     <span v-if="tab==3" class="count-bottom-text">
       <span class="span1"></span>
-      <span class="span2 Micbold">执行</span>
+      <span class="span2 Micbold">是否按策略执行</span>
       <img class="span7" src="../../assets/finish.png" alt />
     </span>
   </div>