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