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