修改bug
This commit is contained in:
		| @@ -22,8 +22,7 @@ | ||||
|       </el-col> | ||||
|       <el-col :span="8"> | ||||
|         <el-form-item label="报废时间" prop="logTime"> | ||||
|           <el-date-picker v-model="dataForm.logTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" | ||||
|             placeholder="选择日期"> | ||||
|           <el-date-picker v-model="dataForm.logTime" type="datetime" value-format="timestamp" placeholder="选择日期"> | ||||
|           </el-date-picker> | ||||
|         </el-form-item> | ||||
|       </el-col> | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| /* | ||||
|  * @Author: zhp | ||||
|  * @Date: 2024-02-28 09:51:25 | ||||
|  * @LastEditTime: 2024-02-28 10:05:00 | ||||
|  * @LastEditTime: 2024-03-08 13:46:46 | ||||
|  * @LastEditors: zhp | ||||
|  * @Description: | ||||
|  */ | ||||
| @@ -41,7 +41,7 @@ export default { | ||||
|             console.log(response) | ||||
|             this.dataForm = response.data | ||||
|             this.dataForm.detId = response.data.detIdList | ||||
|             this.dataForm.logTime = new Date(response.data.createTime) | ||||
|             this.dataForm.logTime = new Date(response.data.logTime) | ||||
|  | ||||
|             // if (this.setData) { | ||||
|             //   this.setDataForm() | ||||
|   | ||||
| @@ -36,7 +36,7 @@ const tableProps = [ | ||||
| 	// 	filter: parseTime | ||||
|   // }, | ||||
|   { | ||||
|     prop: 'logTime', | ||||
|     prop: 'createTime', | ||||
|     label: '报废时间', | ||||
|     filter: parseTime | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user