diff --git a/src/components/base-dialog/addOrUpdate/index.vue b/src/components/base-dialog/addOrUpdate/index.vue
index cd427fd..1df1347 100644
--- a/src/components/base-dialog/addOrUpdate/index.vue
+++ b/src/components/base-dialog/addOrUpdate/index.vue
@@ -30,7 +30,12 @@
-
+
@@ -275,6 +280,8 @@ export default {
return 'input'
} else if (['select' /** add more.. */].includes(opt.type)) {
return 'select'
+ } else if (['cascader'].includes(opt.type)) {
+ return 'cascader'
}
// add more...
} else {
@@ -329,7 +336,7 @@ export default {
this.$http({
url: this.$http.adornUrl(urls[btn.name].url),
method: btn.name === 'save' ? 'POST' : 'PUT',
- data: { ...this.dataForm, ...urls[btn.name].extraFields}
+ data: { ...this.dataForm, ...urls[btn.name].extraFields }
})
.then(({ data: res }) => {
if (res && res.code === 0) {
@@ -382,7 +389,8 @@ export default {