parent
cade3c5a7e
commit
c53f89a02f
|
@ -67,9 +67,8 @@
|
||||||
<el-row v-if="form.TYPE=='listType0005'">
|
<el-row v-if="form.TYPE=='listType0005'">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="排查日期:" prop="CheckTime">
|
<el-form-item label="排查日期:" prop="CheckTime">
|
||||||
|
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="dates"
|
v-model="form.dates"
|
||||||
type="daterange"
|
type="daterange"
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
|
@ -278,14 +277,13 @@ export default {
|
||||||
components: { Pagination, SelectTree },
|
components: { Pagination, SelectTree },
|
||||||
directives: { waves },
|
directives: { waves },
|
||||||
data() { // 验证时间非空
|
data() { // 验证时间非空
|
||||||
|
var self = this
|
||||||
var createCheckTime = (rule, value, callback) => {
|
var createCheckTime = (rule, value, callback) => {
|
||||||
if (value === '') {
|
console.log(self.form.dates)
|
||||||
callback(new Error('请选择排查日期')) // 回调函数
|
if (self.form.dates == null || self.form.dates.length < 1) {
|
||||||
|
callback(new Error('请选择排查日期'))
|
||||||
} else {
|
} else {
|
||||||
console.info(this.dates)
|
callback()
|
||||||
if (this.dates == null || this.dates.length < 1) {
|
|
||||||
callback(new Error('请选择排查日期'))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
@ -441,6 +439,7 @@ export default {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.$refs.form.validate(valid => {
|
this.$refs.form.validate(valid => {
|
||||||
|
console.log(valid)
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
requestFN(
|
requestFN(
|
||||||
|
|
Loading…
Reference in New Issue