Browse Source

日期格式化修改

pkq 1 year ago
parent
commit
d210bdd2b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/toolsCenter/Apply.vue

+ 1 - 1
src/views/toolsCenter/Apply.vue

@@ -64,7 +64,7 @@ const formData = reactive({
     { fieldName: 'applicationConcurrent', label: '并发量', value: '', isRequired: true, type: 'input' },
     { fieldName: 'applicationUser', label: '申请人', value: userStore.$state.userName, isRequired: false, type: 'input', disabled: true },
     // { fieldName: 'applyOrg', label: '所属单位', value: '', isRequired: true, type: 'input' },
-    { fieldName: 'applicationTime', label: '申请时间', value: new Date(), isRequired: false, type: 'time-datetime', disabled: true },
+    { fieldName: 'applicationTime', label: '申请时间', value: (new Date().getFullYear())+'-'+(new Date().getMonth()+1)+'-'+(new Date().getDate())+' '+(new Date().getHours())+':'+(new Date().getMinutes())+':'+(new Date().getSeconds()), isRequired: false, type: 'time-datetime', disabled: true },
     { fieldName: 'applicationReason', label: '申请原因', value: '', isRequired: false, type: 'textarea', class: 'textarea-row' },
   ]
 })