|
|
@ -108,7 +108,6 @@ |
|
|
|
@click="handleSubmit" |
|
|
|
@click="handleSubmit" |
|
|
|
>提 交</el-button |
|
|
|
>提 交</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
<el-button icon="el-icon-circle-close" @click="box = false">取 消</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
@ -320,6 +319,20 @@ const remoteMethod = value => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
const GeBrandListt = async () => { |
|
|
|
|
|
|
|
let res = await getBrandList(); |
|
|
|
|
|
|
|
const { |
|
|
|
|
|
|
|
code, |
|
|
|
|
|
|
|
data: { records }, |
|
|
|
|
|
|
|
} = res.data; |
|
|
|
|
|
|
|
if (code !== 200) return; |
|
|
|
|
|
|
|
brandList.value = records.map(val => { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
value: val.id, |
|
|
|
|
|
|
|
label: val.brandName, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}; |
|
|
|
// 字典公共函数 |
|
|
|
// 字典公共函数 |
|
|
|
function updateDictionary(targetArray, dictionaryType) { |
|
|
|
function updateDictionary(targetArray, dictionaryType) { |
|
|
|
getDictionaryBiz(dictionaryType).then(res => { |
|
|
|
getDictionaryBiz(dictionaryType).then(res => { |
|
|
@ -369,12 +382,15 @@ const onLoadPage = async () => { |
|
|
|
details.loadingObj.list = true; |
|
|
|
details.loadingObj.list = true; |
|
|
|
await Dictionaryrequest(); |
|
|
|
await Dictionaryrequest(); |
|
|
|
onLoad(); |
|
|
|
onLoad(); |
|
|
|
|
|
|
|
GeBrandListt(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 页面初始化 |
|
|
|
// 页面初始化 |
|
|
|
onLoadPage(); |
|
|
|
onLoadPage(); |
|
|
|
// 编辑 |
|
|
|
// 编辑 |
|
|
|
const edit = async row => { |
|
|
|
const edit = async row => { |
|
|
|
|
|
|
|
details.loadingObj.list = true; |
|
|
|
let res = await getDetail(row.id); |
|
|
|
let res = await getDetail(row.id); |
|
|
|
|
|
|
|
details.loadingObj.list = false; |
|
|
|
malldialog.value = true; |
|
|
|
malldialog.value = true; |
|
|
|
form.value = res.data.data; |
|
|
|
form.value = res.data.data; |
|
|
|
console.log(res); |
|
|
|
console.log(res); |
|
|
@ -390,7 +406,7 @@ const handleSubmit = async () => { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 删除 |
|
|
|
// 删除 |
|
|
|
const ViewDelete = () => { |
|
|
|
const ViewDelete = (row) => { |
|
|
|
ElMessageBox.confirm('是否确认删除数据?', '提示', { |
|
|
|
ElMessageBox.confirm('是否确认删除数据?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|