This commit is contained in:
cxc
2022-10-14 09:34:43 +08:00
parent ac802a9ef9
commit 656b6ef510
3 changed files with 216 additions and 10 deletions

View File

@ -315,9 +315,9 @@ const getBannerLocal = () => {
};
// 取消按钮
const cancel = () => {
this.open = false;
this.memberOpen = false;
this.reset();
showEditDialog.value = false;
// this.memberOpen = false;
reset();
};
// 表单重置
const reset = () => {
@ -342,10 +342,10 @@ const handleAdd = () => {
title.value = "新增";
};
const querySearch = (queryString, cb) => {
let restaurants = this.restaurants;
let _restaurants = restaurants.value;
let results = queryString
? restaurants.filter(this.createFilter(queryString))
: restaurants;
? _restaurants.filter(createFilter(queryString))
: _restaurants;
// 调用 callback 返回建议列表的数据
cb(results);
};
@ -360,13 +360,13 @@ const handleSelect = (item) => {
console.log(item);
};
const removeDomain = (item) => {
let index = this.form.domains.indexOf(item);
let index = form.value.domains.indexOf(item);
if (index !== -1) {
this.form.domains.splice(index, 1);
form.value.domains.splice(index, 1);
}
};
const addDomain = () => {
this.form.domains.push({
form.value.domains.push({
title: "",
});
};