projects/mesxc-zhp #370
| @@ -143,7 +143,7 @@ export default { | |||||||
|           valueFormat: "timestamp", |           valueFormat: "timestamp", | ||||||
|           rangeSeparator: '-', |           rangeSeparator: '-', | ||||||
|           param: 'checkTime', |           param: 'checkTime', | ||||||
|           defaultSelect: Date.now(), |           defaultSelect: Date.now() - 24 * 60 * 60 * 1000, | ||||||
|           width: 150 |           width: 150 | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -169,9 +169,9 @@ export default { | |||||||
|   }, |   }, | ||||||
|   mounted() { |   mounted() { | ||||||
|     // this.formConfig[1].defaultSelect[] |     // this.formConfig[1].defaultSelect[] | ||||||
|     this.listQuery.startTime = Date.now() |     this.listQuery.startTime = Date.now() - 24 * 60 * 60 * 1000 | ||||||
|     this.time = moment(new Date(Date.now())).format('YYYY-MM-DD') |     this.time = moment(new Date((Date.now() - 24 * 60 * 60 * 1000)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(Date.now()).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') | ||||||
|     this.listQuery.endTime = Date.now() + 24 * 60 * 60 * 1000 |     this.listQuery.endTime = Date.now() | ||||||
|     // this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000 |     // this.formConfig[0].defaultSelect[0] = Date.now()-24*60*60-1000 | ||||||
|     this.getDataList() |     this.getDataList() | ||||||
|     // this.getSpanArr(this.tableData) |     // this.getSpanArr(this.tableData) | ||||||
| @@ -308,7 +308,7 @@ export default { | |||||||
|             'sj11': null, |             'sj11': null, | ||||||
|  |  | ||||||
|             'sj14': null, |             'sj14': null, | ||||||
|             putType: '原料投入' |             putType: '原料投入(kg)' | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             classType: 1, |             classType: 1, | ||||||
| @@ -374,7 +374,7 @@ export default { | |||||||
|             'sj11': null, |             'sj11': null, | ||||||
|  |  | ||||||
|             'sj14': null, |             'sj14': null, | ||||||
|             putType: '原料投入', |             putType: '原料投入(kg)', | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             classType: 2, |             classType: 2, | ||||||
| @@ -440,7 +440,7 @@ export default { | |||||||
|             'sj11': null, |             'sj11': null, | ||||||
|  |  | ||||||
|             'sj14': null, |             'sj14': null, | ||||||
|             putType: '原料投入', |             putType: '原料投入(kg)', | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             classType: 3, |             classType: 3, | ||||||
| @@ -535,9 +535,9 @@ export default { | |||||||
|       // Date.now() - 24 * 60 * 60 - 1000 |       // Date.now() - 24 * 60 * 60 - 1000 | ||||||
|       switch (val.btnName) { |       switch (val.btnName) { | ||||||
|         case 'search': |         case 'search': | ||||||
|           this.listQuery.startTime = val.checkTime ? val.checkTime : undefined; |           this.listQuery.startTime = val.checkTime ? new Date(new Date(val.checkTime).setHours(8, 0, 0, 0)).getTime() : undefined; | ||||||
|           this.time = moment(new Date(this.listQuery.startTime)).format('YYYY-MM-DD') |           this.time = moment(new Date((val.checkTime)).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') + moment(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(8, 0, 0, 0)).format('YYYY-MM-DD HH:mm:ss') | ||||||
|           this.listQuery.endTime = val.checkTime ? val.checkTime + 24 * 60 * 60 * 1000 : undefined; |           this.listQuery.endTime = val.checkTime ? new Date(new Date(val.checkTime + 24 * 60 * 60 * 1000).setHours(8, 0, 0, 0)).getTime() : undefined; | ||||||
|           this.getDataList(); |           this.getDataList(); | ||||||
|           break; |           break; | ||||||
|         case 'export': |         case 'export': | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <!-- | <!-- | ||||||
|  * @Author: zhp |  * @Author: zhp | ||||||
|  * @Date: 2024-04-18 15:07:53 |  * @Date: 2024-04-18 15:07:53 | ||||||
|  * @LastEditTime: 2024-04-25 13:41:27 |  * @LastEditTime: 2024-04-25 16:27:01 | ||||||
|  * @LastEditors: zhp |  * @LastEditors: zhp | ||||||
|  * @Description: |  * @Description: | ||||||
| --> | --> | ||||||
| @@ -67,7 +67,7 @@ const tableProps = [ | |||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     prop: 'area', |     prop: 'area', | ||||||
|     label: '面积' |     label: '面积(㎡)' | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     prop: 'rate', |     prop: 'rate', | ||||||
|   | |||||||
		Referens i nytt ärende
	
	Block a user