数据字典
diff --git a/leave-school-vue/src/utils/crud.js b/leave-school-vue/src/utils/crud.js
index 16b9300..06e7bc0 100644
--- a/leave-school-vue/src/utils/crud.js
+++ b/leave-school-vue/src/utils/crud.js
@@ -38,7 +38,7 @@
}
})
}
-export function crudGetItem(page, _get, rowid, initData) {
+export function crudGetItem(page, _get, rowid, initData, _callback) {
if (rowid) {
_get({ id: rowid }).then(response => {
if (!response.data) {
@@ -52,6 +52,9 @@
page.$nextTick(() => {
page.$refs['dataForm'].clearValidate()
})
+ if (typeof _callback === 'function') {
+ _callback()
+ }
})
} else {
page.temp = Object.assign({}, initData)
@@ -59,6 +62,9 @@
page.$nextTick(() => {
page.$refs['dataForm'].clearValidate()
})
+ if (typeof _callback === 'function') {
+ _callback()
+ }
}
}
export function crudCreate(page, _create, _callback) {