[update] 修改bug80404
This commit is contained in:
@@ -109,6 +109,7 @@ import { getCarTypeProjectList } from '@/api/projectLibraryApi.js'
|
||||
// 双向绑定的标准选择器
|
||||
import StandardSelection from '@/components/selection/StandardSelection'
|
||||
import pick from 'lodash.pick'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
name: 'QuizModal',
|
||||
@@ -200,8 +201,7 @@ export default {
|
||||
this.visible = true
|
||||
this.form.resetFields()
|
||||
const param = {}
|
||||
param.quizTime = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDay() + ' ' +
|
||||
new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds()
|
||||
param.quizTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(param, 'quizTime'))
|
||||
})
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
import { detailSubmitQuestion } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { getCarTypeProjectList } from '@/api/projectLibraryApi.js'
|
||||
import pick from 'lodash.pick'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
name: 'SubmitQuestionModal',
|
||||
@@ -139,8 +140,7 @@ export default {
|
||||
this.visible = true
|
||||
const param = {}
|
||||
param.standardNumber = standardNumber
|
||||
param.quizTime = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDay() + ' ' +
|
||||
new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds()
|
||||
param.quizTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(param, 'standardNumber', 'quizTime'))
|
||||
})
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
import { submitDomesticQuestion, submitOverseasQuestion } from '../../../../api/standardRegulationLibraryApi.js'
|
||||
import { getCarTypeProjectList } from '../../../../api/projectLibraryApi.js'
|
||||
import { StandardSource } from '../../../../enums/commonEnums.js'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
name: 'SubmitQuestionModal',
|
||||
@@ -141,8 +142,7 @@ export default {
|
||||
this.type = type
|
||||
const param = {}
|
||||
param.standardNumber = standardNumber
|
||||
param.quizTime = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDay() + ' ' +
|
||||
new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds()
|
||||
param.quizTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(param)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user