Commit 62d727e6 authored by 张伯涛's avatar 张伯涛

修改

parent 5b97c4fc
......@@ -1392,8 +1392,7 @@
v-model="itemSP.EXAMDATE"
placeholder="年/月/日"
value-format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd HH:mm"
type="datetime"
format="yyyy-MM-dd"
/>
</el-form-item>
</el-col>
......@@ -1829,9 +1828,11 @@ export default {
},
methods: {
SPTime() {
const myDate = new Date()
this.form.SPXX[0].EXAMDATE = myDate.toLocaleDateString().split('/').join('-') + ' ' + '00:00:00'
console.log('时间时间', this.form.SPXX[0].EXAMDATE)
if (this.$route.query.type === 'add') {
const myDate = new Date()
this.form.SPXX[0].EXAMDATE = myDate.toLocaleDateString().split('/').join('-') + ' ' + '00:00:00'
console.log('时间时间', this.form.SPXX[0].EXAMDATE)
}
},
isNum(rule, value, callback) {
const age = /^\d+.?\d{0,2}$/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment