资源分类

This commit is contained in:
shijingjing
2022-10-08 08:52:46 +08:00
parent fb0291ff99
commit e437812fd5

View File

@@ -38,8 +38,8 @@
</el-form>
<div class="dialog-footer" slot="footer">
<el-button @click="dialog=false">取消</el-button>
<el-button type="primary" @click="dialog=false">确定</el-button>
<el-button @click="dialog=false;form={}">取消</el-button>
<el-button type="primary" @click="onConfirm">确定</el-button>
</div>
</ai-dialog>
</section>
@@ -104,9 +104,16 @@ export default {
}
})
},
onConfirm() {
}
onConfirm() {
this.$refs.form.validate((valid) => {
if(valid) {
this.instance.post(`/app/appresourcecategory/addOrUpdate`, ...this.form).then(res=> {
console.log(res,this.form.categoryIcon);
})
}
})
},
}
}
</script>