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

no message

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