提交 9f580598 编写于 作者: tao.wu's avatar tao.wu

no message

上级 3e9b7286
......@@ -4,14 +4,20 @@
<el-form-item label="本次随访时间" required>
<div style="display: flex;">
<el-form-item prop="timeNo">
<el-select v-model="timeForm.timeNo" placeholder="请选择">
<el-option
v-for="item in indexOptions"
:key="item.no"
:label="item.value"
:value="item.no">
</el-option>
</el-select>
<el-input
v-model="timeForm.timeNo"
type="number"
size="small"
placeholder="请输入天数"
clearable />
<!--<el-select v-model="timeForm.timeNo" placeholder="请选择">-->
<!--<el-option-->
<!--v-for="item in indexOptions"-->
<!--:key="item.no"-->
<!--:label="item.value"-->
<!--:value="item.no">-->
<!--</el-option>-->
<!--</el-select>-->
</el-form-item>
<el-form-item prop="timeUnit" class="ml20">
<el-select v-model="timeForm.timeUnit" placeholder="请选择" :disabled="timeForm.isDisabled">
......@@ -98,15 +104,15 @@
data() {
return {
isSelectCartoon: false,
indexOptions: [
{
no: 0,
value: 0
}, {
no: 1,
value: 1
}
],
// indexOptions: [
// {
// no: 0,
// value: 0
// }, {
// no: 1,
// value: 1
// }
// ],
formOptions: [
{
no: 0,
......
......@@ -183,20 +183,29 @@
checkValid(val){
this.valBegin = false
if (val) {
this.timeForm.remindDay.forEach((item)=>{
this.timeForm.remindList.push({
startDays: item
// console.log(this.timeForm)
if(this.timeForm.remindDay.length>0){
this.timeForm.remindDay.forEach((item)=>{
this.timeForm.remindList.push({
startDays: item
})
})
})
this.timeForm.pushContentList.push({
startDays: this.timeForm.pushDay,
resourceId: ''
})
this.timeForm.followResourceId.forEach((item)=>{
this.timeForm.followupList.push({
resourceId: item
}
if(this.timeForm.pushContentList.length>0){
this.timeForm.pushContentList.push({
startDays: this.timeForm.pushDay,
resourceId: ''
})
})
}
if(this.timeForm.followResourceId.length>0){
this.timeForm.followResourceId.forEach((item)=>{
this.timeForm.followupList.push({
resourceId: item
})
})
}
this.setTimeNodeList.push(this.timeForm);
this.timeForm = _.cloneDeep(timeFormInit);
......@@ -204,7 +213,7 @@
this.timeForm.isDisabled = true;
this.$emit('setTimeNodeListOnCom',this.setTimeNodeList)
} else {
return;
return
}
},
addNewNode(formName) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册