[问题修复](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-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('请选择排查日期')) //
console.log(self.form.dates)
if (self.form.dates == null || self.form.dates.length < 1) {
callback(new Error('请选择排查日期'))
} else {
console.info(this.dates)
if (this.dates == null || this.dates.length < 1) {
callback(new Error('请选择排查日期'))
}
callback()
}
}
return {
@ -441,6 +439,7 @@ export default {
return false
}
this.$refs.form.validate(valid => {
console.log(valid)
if (valid) {
this.listLoading = true
requestFN(