分割标记与表格问题进行绑定
parent
efc3b03392
commit
db3f7b4cde
|
|
@ -647,7 +647,7 @@ export default {
|
||||||
let res = await submitTableQuestion(params)
|
let res = await submitTableQuestion(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.QuestionsForm.RowId = res.Result.RowId
|
this.QuestionsForm.RowId = res.Result.RowId
|
||||||
obj.rowId = res.Result.RowId
|
// obj.rowId = res.Result.RowId
|
||||||
data.RowId = res.Result.RowId
|
data.RowId = res.Result.RowId
|
||||||
this.AnswersList.push(this.QuestionsForm)
|
this.AnswersList.push(this.QuestionsForm)
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.AnswersList, question: this.question })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.AnswersList, question: this.question })
|
||||||
|
|
@ -1375,7 +1375,7 @@ export default {
|
||||||
// 移除问题标记值
|
// 移除问题标记值
|
||||||
this.$set(this.questionForm, obj.question.Id, null)
|
this.$set(this.questionForm, obj.question.Id, null)
|
||||||
}
|
}
|
||||||
if (obj.question.IsTableQuestion && obj.operateStateEnum === 4) {
|
if (obj.question.IsTableQuestion && (obj.operateStateEnum === 4 || obj.operateStateEnum === 24)) {
|
||||||
// 移除表格问题标记
|
// 移除表格问题标记
|
||||||
this.$set(this.QuestionsForm, obj.question.Id, null)
|
this.$set(this.QuestionsForm, obj.question.Id, null)
|
||||||
} else if (obj.question.IsTableQuestion && obj.operateStateEnum === 7 && this.question.Id === obj.question.ParentQsId) {
|
} else if (obj.question.IsTableQuestion && obj.operateStateEnum === 7 && this.question.Id === obj.question.ParentQsId) {
|
||||||
|
|
|
||||||
|
|
@ -545,7 +545,16 @@ export default {
|
||||||
const { question } = obj
|
const { question } = obj
|
||||||
let confirm = await this.$confirm(this.$t('segment:confirm:sureDelete'))
|
let confirm = await this.$confirm(this.$t('segment:confirm:sureDelete'))
|
||||||
if (!confirm) return false
|
if (!confirm) return false
|
||||||
this.$set(this.questionForm, question.Id, '')
|
if (this.isTableQuestion) {
|
||||||
|
this.questionForm[question.ParentQsId].some((item, index) => {
|
||||||
|
if (item.RowId === question.RowId) {
|
||||||
|
this.$set(this.questionForm[question.ParentQsId][index], question.Id, '')
|
||||||
|
}
|
||||||
|
return item.RowId === question.RowId
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$set(this.questionForm, question.Id, '')
|
||||||
|
}
|
||||||
let o = {
|
let o = {
|
||||||
Answer: '',
|
Answer: '',
|
||||||
SegmentId: null,
|
SegmentId: null,
|
||||||
|
|
@ -1555,4 +1564,5 @@ export default {
|
||||||
// min-height:400px;
|
// min-height:400px;
|
||||||
// color: #ddd;
|
// color: #ddd;
|
||||||
|
|
||||||
// }</style>
|
// }
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue