master
xy 2 years ago
parent fef6d62d4c
commit a8be4c2720

@ -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;
}
}
</style>
</style>

@ -29,7 +29,7 @@
<Button
style="margin-left: 10px"
type="primary"
@click="$refs['addQuestions'].show()"
@click=" $refs['addQuestions'].setType('add'), $refs['addQuestions'].setForm(['activity_list_id'],[7]),$refs['addQuestions'].show()"
>新增</Button
>
</div>
@ -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();

Loading…
Cancel
Save