duanxiaoduan 2 سال پیش
والد
کامیت
cf8f842dd7

BIN
dist.zip


+ 3 - 0
src/views/formulationPlan/dailyExecutionPlan/typePage/materialIssuancePlan.vue

@@ -819,6 +819,9 @@ export default {
           this.create.temp.tclassname = this.TMRNumberList.find(obj => obj.id === this.create.temp.tmrid2).tclassname
           this.create.temp.mytmrid = this.create.temp.tmrid2
           this.create.temp.mytmrname = this.create.temp.tmrname
+          if (this.isDispaly || this.create.dialogStatus == 'update') {
+            this.getClearList()
+          }
           console.log(this.create.temp)
           this.$message({
             type: 'info',

+ 7 - 7
src/views/statisticalAnalysis/errorAnalysis/pasture/index.vue

@@ -2119,14 +2119,14 @@ export default {
         }, 100);
         // document.documentElement.clientHeight - 85 - 150
         // this.myHeight3 = document.documentElement.clientHeight - 85 - 150
-        // const start2 = new Date()
+        const start2 = new Date()
         // const end2 = new Date()
-        // start2.setTime(start2.getTime() - 3600 * 1000 * 24 * 1)
+        start2.setTime(start2.getTime() - 3600 * 1000 * 24 * 1)
         // end2.setTime(end2.getTime() - 3600 * 1000 * 24 * 1)
         // this.tab2.table.getdataListParm.parammaps.inputDatetime = [start2, end2]
         // this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
         // this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
-        this.tab2.table.getdataListParm.parammaps.inputDatetime2 = new Date().setTime(new Date().getTime() - 3600 * 1000 * 24 * 1)
+        this.tab2.table.getdataListParm.parammaps.inputDatetime2 = start2
         this.tab2.table.getdataListParm.parammaps.startTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
         this.tab2.table.getdataListParm.parammaps.stopTime = parseTime(this.tab2.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
         this.tab2.table.getdataListParm.parammaps.tmrtname = ''
@@ -2141,14 +2141,14 @@ export default {
           console.log(this.$refs.myHeightThird.offsetHeight,'myHeightThird')
           this.myHeightThird = document.documentElement.clientHeight - 40 - this.$refs.myHeightThird.offsetHeight - 150
         }, 100);
-        // const start3 = new Date()
+        const start3 = new Date()
         // const end3 = new Date()
-        // start3.setTime(start3.getTime() - 3600 * 1000 * 24 * 1)
+        start3.setTime(start3.getTime() - 3600 * 1000 * 24 * 1)
         // end3.setTime(end3.getTime() - 3600 * 1000 * 24 * 1)
         // this.tab3.table.getdataListParm.parammaps.inputDatetime = [start3, end3]
         // this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
         // this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
-        this.tab3.table.getdataListParm.parammaps.inputDatetime2 = new Date().setTime(new Date().getTime() - 3600 * 1000 * 24 * 1)
+        this.tab3.table.getdataListParm.parammaps.inputDatetime2 = start3
         this.tab3.table.getdataListParm.parammaps.startTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
         this.tab3.table.getdataListParm.parammaps.stopTime = parseTime(this.tab3.table.getdataListParm.parammaps.inputDatetime2, '{y}-{m}-{d}')
         this.tab3.table.getdataListParm.parammaps.tmrtname = ''
@@ -2483,7 +2483,7 @@ export default {
     handleBefore2() {
       this.$forceUpdate()
       if (this.tab2.table.getdataListParm.parammaps.inputDatetime2 !== '' && this.tab2.table.getdataListParm.parammaps.inputDatetime2 !== null) {
-      var start3 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime2.getDate() - 1))
+        var start3 = new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime2.getDate() - 1))
         if (start3 > Date.now() - 8.64e7) {
           this.Nextdisabled2 = true
           this.Beforedisabled2 = false