[问题修复](pet)

修复  继承清单时 节假日类型的清单继承不了的问题
dev
huangyuxuan 2024-11-19 15:11:10 +08:00
parent cade3c5a7e
commit c53f89a02f
1 changed files with 7 additions and 8 deletions

View File

@ -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(