diff --git a/src/views/PartyshistoryRecoder/components/addQuestions.vue b/src/views/PartyshistoryRecoder/components/addQuestions.vue index 631b869..91acb85 100644 --- a/src/views/PartyshistoryRecoder/components/addQuestions.vue +++ b/src/views/PartyshistoryRecoder/components/addQuestions.vue @@ -100,12 +100,12 @@ this.select.filter = [{ "key": "name", "op": "like", - "value": queryString + "value": queryString ? queryString : '' }] - index(this.select).then(res=>{ - - console.log(res.data) - cb(res.data) + index(this.select).then(res=>{ + + console.log(res.data) + cb(res.data) }); }, createStateFilter(queryString) { @@ -114,9 +114,9 @@ }; }, handleSelect(item) { - console.log(item); - this.form.point_id=item.id; - this.form.point=item.name; + console.log(item); + this.form.point_id=item.id; + this.form.point=item?.name; }, show() { this.isShow = true; @@ -170,8 +170,8 @@ const res = await show({ id: this.id }); - this.$integrateData(this.form, res); - this.form.pointName=res.point.name; + this.$integrateData(this.form, res); + this.form.pointName=res.point?.name; this.form.option_list = res?.options.map(i => { return { title: i.title, @@ -266,4 +266,4 @@ bottom: 0; } } - + diff --git a/src/views/PartyshistoryRecoder/studyQuestion.vue b/src/views/PartyshistoryRecoder/studyQuestion.vue index 6d3aac7..a0debec 100644 --- a/src/views/PartyshistoryRecoder/studyQuestion.vue +++ b/src/views/PartyshistoryRecoder/studyQuestion.vue @@ -29,7 +29,7 @@ @@ -43,6 +43,7 @@ @delete="deleteitem" @editor=" (row) => { + $refs['addQuestions'].setForm(['activity_list_id'],[7]); $refs['addQuestions'].setId(row.id); $refs['addQuestions'].setType('editor') $refs['addQuestions'].show();