feat: 门店档案接口

This commit is contained in:
wanglei
2024-06-26 09:24:04 +08:00
parent 463e545c19
commit 3e3f3349b4
2 changed files with 110 additions and 32 deletions

View File

@@ -247,7 +247,6 @@ export default {
getCheckedTree() {
const nodes = this.$refs.treeRef.getCheckedNodes()
console.log(nodes)
if (!nodes.length) {
return this.$message.error('请选择网格')
}
@@ -282,14 +281,14 @@ export default {
async addOrUpdate() {
try {
const {code, data} = await this.instance.post(`/app/appshoparchives/addOrUpdate`,{
const {code} = await this.instance.post(`/app/appshoparchives/addOrUpdate`,{
...this.form,
fileId:this.form.fileUrl[0]?.id,
fileUrl:this.form.fileUrl[0]?.path,
})
if (code === 0) {
this.$message.success('保存成功');
this.form = {...data}
this.cancel()
}
} catch (e) {
console.error(e)