|
@@ -467,6 +467,7 @@ export default {
|
|
|
console.log(validateResult);
|
|
|
if (validateResult) {
|
|
|
this.setResultSort();
|
|
|
+ console.log(this.form)
|
|
|
try {
|
|
|
if (this.type == "create") {
|
|
|
await questionnaireTopicAdd(this.form);
|
|
@@ -537,11 +538,14 @@ export default {
|
|
|
},
|
|
|
// 删除选项
|
|
|
onDelete(arr, index) {
|
|
|
- if (this.type == "update") {
|
|
|
+ if (!this.disabled) {
|
|
|
if (this.form.delQuestionnaireQuestionIdList) {
|
|
|
+
|
|
|
this.form.delQuestionnaireQuestionIdList.push(arr[index].id);
|
|
|
+ console.log( this.form.delQuestionnaireQuestionIdList)
|
|
|
} else {
|
|
|
this.form.delQuestionnaireQuestionIdList = [arr[index].id];
|
|
|
+ console.log( this.form.delQuestionnaireQuestionIdList)
|
|
|
}
|
|
|
}
|
|
|
arr.splice(index, 1);
|