资源分类
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user