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

修改

parent 5b97c4fc
...@@ -1392,8 +1392,7 @@ ...@@ -1392,8 +1392,7 @@
v-model="itemSP.EXAMDATE" v-model="itemSP.EXAMDATE"
placeholder="年/月/日" placeholder="年/月/日"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd"
type="datetime"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -1829,9 +1828,11 @@ export default { ...@@ -1829,9 +1828,11 @@ export default {
}, },
methods: { methods: {
SPTime() { SPTime() {
const myDate = new Date() if (this.$route.query.type === 'add') {
this.form.SPXX[0].EXAMDATE = myDate.toLocaleDateString().split('/').join('-') + ' ' + '00:00:00' const myDate = new Date()
console.log('时间时间', this.form.SPXX[0].EXAMDATE) this.form.SPXX[0].EXAMDATE = myDate.toLocaleDateString().split('/').join('-') + ' ' + '00:00:00'
console.log('时间时间', this.form.SPXX[0].EXAMDATE)
}
}, },
isNum(rule, value, callback) { isNum(rule, value, callback) {
const age = /^\d+.?\d{0,2}$/ 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