|
@@ -42,8 +42,8 @@
|
|
<div class="double">
|
|
<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="isEdition"><el-input v-model="fromDev.isEdition" size="small" style="width:15vw;" placeholder="请填写" /></el-form-item>
|
|
<el-form-item label="开发时间" prop="devTimeStart">
|
|
<el-form-item label="开发时间" prop="devTimeStart">
|
|
- <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-date-picker v-model="fromDev.devTimeStart" value-format="yyyy-MM-dd" type="date" size="small" style="width:12.5vw; margin-right:2%;" placeholder="选择日期" />
|
|
|
|
+ <el-date-picker v-model="fromDev.devTimeEnd" value-format="yyyy-MM-dd" type="date" size="small" style="width:12.5vw;" placeholder="选择日期" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -54,14 +54,14 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="计划提测时间" prop="planLaunchTime">
|
|
<el-form-item label="计划提测时间" prop="planLaunchTime">
|
|
- <el-date-picker v-model="fromDev.planLaunchTime" value-format="yyyy-MM-dd HH:mm:ss" size="small" type="date" style="width:25vw;" placeholder="选择日期" />
|
|
|
|
|
|
+ <el-date-picker v-model="fromDev.planLaunchTime" value-format="yyyy-MM-dd" size="small" type="date" style="width:25vw;" placeholder="选择日期" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="double">
|
|
<div class="double">
|
|
<el-form-item label=" prd地址 " prop="prdUrl"><el-input v-model="fromDev.prdUrl" size="small" style="width:15vw;" placeholder="请提供wiki链接" /></el-form-item>
|
|
<el-form-item label=" prd地址 " prop="prdUrl"><el-input v-model="fromDev.prdUrl" size="small" style="width:15vw;" placeholder="请提供wiki链接" /></el-form-item>
|
|
<el-form-item label="实际提测时间" prop="launchTime">
|
|
<el-form-item label="实际提测时间" prop="launchTime">
|
|
- <el-date-picker v-model="fromDev.launchTime" value-format="yyyy-MM-dd HH:mm:ss" type="date" size="small" style="width:25vw;" placeholder="选择日期" />
|
|
|
|
|
|
+ <el-date-picker v-model="fromDev.launchTime" value-format="yyyy-MM-dd" type="date" size="small" style="width:25vw;" placeholder="选择日期" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
<div class="double">
|
|
<div class="double">
|
|
@@ -105,6 +105,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+const _ = require('lodash')
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
|
|
import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
|
|
import E from 'wangeditor'
|
|
import E from 'wangeditor'
|
|
@@ -234,16 +235,17 @@ export default {
|
|
getQueryData(ele) {
|
|
getQueryData(ele) {
|
|
this.$refs['fromDev'].validate((valid) => {
|
|
this.$refs['fromDev'].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- this.fromDev = ele
|
|
|
|
- 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).endOf('day').format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
- this.fromDev.planLaunchTime = moment(this.fromDev.planLaunchTime).endOf('day').format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
- this.fromDev.launchTime = moment(this.fromDev.launchTime).endOf('day').format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
- this.fromDev.id === undefined ? this.fromDev.id = this.clien : ''
|
|
|
|
|
|
+ const params = _.cloneDeep(this.fromDev)
|
|
|
|
+ typeof (this.editorContent) === 'string' ? params.joinTest = this.editorContent : ''
|
|
|
|
+ typeof (this.DetailsOfProposal) === 'string' ? params.moduleInfo = this.DetailsOfProposal : ''
|
|
|
|
+ params.lateStatus = this.lateStatus
|
|
|
|
+ params.devTimeStart = moment(params.devTimeStart).format('YYYY.MM.DD')
|
|
|
|
+ params.devTimeEnd = moment(params.devTimeEnd).format('YYYY.MM.DD')
|
|
|
|
+ params.planLaunchTime = moment(params.planLaunchTime).format('YYYY.MM.DD')
|
|
|
|
+ params.launchTime = moment(params.launchTime).format('YYYY.MM.DD')
|
|
|
|
+ params.id === undefined ? params.id = this.clien : ''
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
- this.objData = { launchTestInfo: this.fromDev, user: this.userData }
|
|
|
|
|
|
+ this.objData = { launchTestInfo: params, user: this.userData }
|
|
launchTestUpdate(this.objData).then(res => {
|
|
launchTestUpdate(this.objData).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
this.$message({ type: 'success', message: '更新成功' })
|