| | |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-click="clickRowChange" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | |
| | | :before-open="beforeOpenScope" |
| | | @search-change="searchChangeScope" |
| | | @search-reset="searchResetScope" |
| | | @row-click="clickRowChangeResetScope" |
| | | @selection-change="selectionChangeScope" |
| | | @current-change="currentChangeScope" |
| | | @size-change="sizeChangeScope" |
| | |
| | | label: "上级菜单", |
| | | prop: "parentId", |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/menu/tree", |
| | | dicUrl: "/api/ubcs-system/menu/tree", |
| | | hide: true, |
| | | props: { |
| | | label: "title" |
| | |
| | | { |
| | | label: "接口类型", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict/dictionary?code=api_scope_type", |
| | | dicUrl: "/api/ubcs-system/dict/dictionary?code=api_scope_type", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | clickRowChange(row){ |
| | | this.$refs.crud.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crud.setCurrentRow(row); |
| | | this.$refs.crud.toggleRowSelection(row); //选中当前行 |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | selectionClear() { |
| | | this.selectionList = []; |
| | |
| | | this.onLoadScope(this.pageScope, params); |
| | | done(); |
| | | }, |
| | | clickRowChangeResetScope(row){ |
| | | this.$refs.crudScope.toggleSelection(); |
| | | this.selectionList = row; |
| | | this.$refs.crudScope.setCurrentRow(row); |
| | | this.$refs.crudScope.toggleRowSelection(row); //选中当前行 |
| | | }, |
| | | selectionChangeScope(list) { |
| | | this.selectionListScope = list; |
| | | this.$refs.crudScope.setCurrentRow(this.selectionList[list.length-1]); |
| | | }, |
| | | currentChangeScope(currentPage) { |
| | | this.pageScope.currentPage = currentPage; |