♻️ 重构代码。 简化菜单配置

This commit is contained in:
pigxcloud committed 2019-06-24 16:37:24 +08:00
1 parent 572a3de60f
commit 401f25319c
7 files changed
+8 -33

No files matched your search

@@ -35,19 +35,9 @@
</template>
<script>
import {
fetchList,
getObj,
addObj,
putObj,
delObj
} from '@/api/${pathName}'
import {
tableOption
} from '@/const/crud/${pathName}'
import {
mapGetters
} from 'vuex'
import {fetchList, getObj, addObj, putObj, delObj} from '@/api/${pathName}'
import {tableOption} from '@/const/crud/${pathName}'
import {mapGetters} from 'vuex'
export default {
name: '${pathName}',
@@ -150,7 +140,7 @@
* 搜索回调
*/
searchChange(form) {
this.getList(this.page, this.filterForm(form))
this.getList(this.page, form)
},
/**
* 刷新回调