Compare commits

..

No commits in common. "bc423bc2ae687e59f261a4a1bf2b68902f21a65a" and "0e657bb5c6511d35d9cb06d1a9cdec46bbb74c8b" have entirely different histories.

1 changed files with 8 additions and 7 deletions

View File

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