切换靶段时清空备注
parent
848bf0c8b2
commit
4540f39051
|
@ -133,8 +133,8 @@
|
|||
</template>
|
||||
</template>
|
||||
</div>
|
||||
<div v-if="isCurrentTask && readingTaskState < 2 && (qs.GroupClassify === 5 || qs.GroupClassify === 6)"
|
||||
class="base-dialog-footer" style="text-align:right;margin-top:10px;">
|
||||
<div v-if="isCurrentTask && readingTaskState < 2 && qs.GroupClassify === 5" class="base-dialog-footer"
|
||||
style="text-align:right;margin-top:10px;">
|
||||
<!-- 保存 -->
|
||||
<el-button type="primary" size="mini" :disabled="!formChanged" @click="handleSave(index)">
|
||||
{{ $t('common:button:save') }}
|
||||
|
@ -443,6 +443,17 @@ export default {
|
|||
if (item.Type === 'number') {
|
||||
this.limitBlur(item.Id, item.ValueType)
|
||||
}
|
||||
if (question.Childrens.length > 0) {
|
||||
this.resetChild(question.Childrens)
|
||||
}
|
||||
},
|
||||
resetChild(obj) {
|
||||
obj.forEach(i => {
|
||||
this.resetData(i.Id)
|
||||
if (i.Childrens && i.Childrens.length > 0) {
|
||||
this.resetChild(i.Childrens)
|
||||
}
|
||||
})
|
||||
},
|
||||
limitBlur(qId, valueType) {
|
||||
const value = this.questionForm[qId]
|
||||
|
@ -534,6 +545,9 @@ export default {
|
|||
},
|
||||
receiveMsg(event) {
|
||||
},
|
||||
resetData(v) {
|
||||
this.questionForm[v] = null
|
||||
},
|
||||
resetFormItemData(v) {
|
||||
this.qsForm[v] = null
|
||||
},
|
||||
|
|
|
@ -129,8 +129,8 @@
|
|||
</template>
|
||||
</template>
|
||||
</div>
|
||||
<div v-if="isCurrentTask && readingTaskState < 2 && (qs.GroupClassify === 5 || qs.GroupClassify === 6)"
|
||||
class="base-dialog-footer" style="text-align:right;margin-top:10px;">
|
||||
<div v-if="isCurrentTask && readingTaskState < 2 && qs.GroupClassify === 5" class="base-dialog-footer"
|
||||
style="text-align:right;margin-top:10px;">
|
||||
<!-- 保存 -->
|
||||
<el-button type="primary" size="mini" :disabled="!formChanged" @click="handleSave(index)">
|
||||
{{ $t('common:button:save') }}
|
||||
|
@ -434,8 +434,22 @@ export default {
|
|||
setMeasuredData(measureData) {
|
||||
|
||||
},
|
||||
formItemChange() {
|
||||
formItemChange(val, question) {
|
||||
this.formChanged = true
|
||||
if (item.Type === 'number') {
|
||||
this.limitBlur(item.Id, item.ValueType)
|
||||
}
|
||||
if (question.Childrens.length > 0) {
|
||||
this.resetChild(question.Childrens)
|
||||
}
|
||||
},
|
||||
resetChild(obj) {
|
||||
obj.forEach(i => {
|
||||
this.resetData(i.Id)
|
||||
if (i.Childrens && i.Childrens.length > 0) {
|
||||
this.resetChild(i.Childrens)
|
||||
}
|
||||
})
|
||||
},
|
||||
limitBlur(qId, valueType) {
|
||||
const value = this.questionForm[qId]
|
||||
|
@ -524,6 +538,9 @@ export default {
|
|||
},
|
||||
receiveMsg(event) {
|
||||
},
|
||||
resetData(v) {
|
||||
this.questionForm[v] = null
|
||||
},
|
||||
resetFormItemData(v) {
|
||||
this.qsForm[v] = null
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue