Pārlūkot izejas kodu

日期格式修改

PrinceLee 5 gadi atpakaļ
vecāks
revīzija
ef3a5827d6

+ 3 - 1
package.json

@@ -26,6 +26,8 @@
     "@tinymce/tinymce-vue": "^3.2.0",
     "animate.css": "^3.7.2",
     "axios": "0.18.0",
+    "browserslist": "^4.12.0",
+    "caniuse-lite": "^1.0.30001084",
     "crypto-js": "^4.0.0",
     "dayjs": "^1.8.17",
     "echarts": "^4.2.1",
@@ -65,7 +67,7 @@
     "@vue/cli-plugin-unit-jest": "3.6.3",
     "@vue/cli-service": "3.6.0",
     "@vue/test-utils": "1.0.0-beta.29",
-    "autoprefixer": "^9.5.1",
+    "autoprefixer": "^9.8.0",
     "babel-core": "7.0.0-bridge.0",
     "babel-eslint": "10.0.1",
     "babel-jest": "23.6.0",

+ 4 - 2
src/views/Platform/presentation/presentationReport.vue

@@ -42,8 +42,8 @@
       <div class="double">
         <el-form-item label="是否跟版" prop="isEdition"><el-input v-model="fromDev.isEdition" size="small" style="width:15vw;" placeholder="请填写" /></el-form-item>
         <el-form-item label="开发时间" prop="devTimeStart">
-          <el-date-picker v-model="fromDev.devTimeStart" type="date" size="small" style="width:12.5vw; margin-right:2%;" placeholder="选择日期" />
-          <el-date-picker v-model="fromDev.devTimeEnd" type="date" size="small" style="width:12.5vw;" placeholder="选择日期" />
+          <el-date-picker v-model="fromDev.devTimeStart" value-format="yyyy-MM-dd HH:mm:ss" type="date" size="small" style="width:12.5vw; margin-right:2%;" placeholder="选择日期" />
+          <el-date-picker v-model="fromDev.devTimeEnd" value-format="yyyy-MM-dd HH:mm:ss" type="date" size="small" style="width:12.5vw;" placeholder="选择日期" />
         </el-form-item>
       </div>
 
@@ -105,6 +105,7 @@
 </template>
 
 <script>
+import moment from 'moment'
 import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
 import E from 'wangeditor'
 
@@ -237,6 +238,7 @@ export default {
           typeof (this.editorContent) === 'string' ? this.fromDev.joinTest = this.editorContent : ''
           typeof (this.DetailsOfProposal) === 'string' ? this.fromDev.moduleInfo = this.DetailsOfProposal : ''
           this.fromDev.lateStatus = this.lateStatus
+          this.fromDev.devTimeEnd = moment(this.fromDev.devTimeEnd).add(1, 'day').subtract(1, 'second').format('YYYY-MM-DD HH:mm:ss')
           this.fromDev.id === undefined ? this.fromDev.id = this.clien : ''
           this.userData = { id: '', ename: this.userInformation, name: this.userNames }
           this.objData = { launchTestInfo: this.fromDev, user: this.userData }