Browse Source

操作记录的选择时间

Reiskuchen 5 years ago
parent
commit
88991add25
2 changed files with 16 additions and 5 deletions
  1. 3 3
      ys_vue/src/views/Home.vue
  2. 13 2
      ys_vue/src/views/mold/moldDetail.vue

+ 3 - 3
ys_vue/src/views/Home.vue

@@ -397,9 +397,9 @@ export default {
     }
   },
   mounted() {
-    //检查是否需要进行提示
-    this.checkMaintainNotice();
-    this.checkDiscardNotice();
+    //告警 保养的烦人弹窗警告 先不弹出了
+    // this.checkMaintainNotice();
+    // this.checkDiscardNotice();
     if (this.user) {
       var user = JSON.parse(this.user);
       this.user = user;

+ 13 - 2
ys_vue/src/views/mold/moldDetail.vue

@@ -396,7 +396,10 @@
         </el-col>
 
         <!-- 操作记录 -->
-        <el-col :span="24" class="title">操作记录</el-col>
+        <el-col :span="24" class="title">
+            操作记录
+            <el-date-picker style="float: right;" v-model="recordTime" type="datetime" placeholder="选择日期时间" @change="changeTime"></el-date-picker>
+            </el-col>
             <el-table :data="operations" highlight-current-row v-loading="listLoading" style="width: 100%;">
                 <el-table-column type="index" width="40"></el-table-column>
                 <el-table-column prop="content" label="操作" width="120" sortable></el-table-column>
@@ -531,6 +534,8 @@
                 moldDetail: {},
                 customCompany: [],
                 boxes: [],
+                //操作记录的时间
+                recordTime: "",
                 //单独新增零件时所需的三个变量
                 newParts: {
                     number: "",
@@ -1096,7 +1101,7 @@
                                 list[i].state = 100;
                             }
                         }
-                        console.log(list)
+                        // console.log(list)
                         this.documents.part = list;
                     } else {
                         this.$message({
@@ -1212,6 +1217,12 @@
                         type: "error"
                     });
                 });
+            },
+
+            //操作记录部分更改时间
+            changeTime(){
+                //然而现在并没有卵用
+                console.log(this.recordTime);
             }
         },
         created() {