feat: 门店档案接口
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user