@@ -95,6 +95,7 @@ import { reactive, ref, onMounted } from 'vue'
9595import { Button , Select , Pager , Grid , GridColumn , Divider , Search , Modal , Notify } from ' @opentiny/vue'
9696import { iconSearch } from ' @opentiny/vue-icon'
9797import { SearchEmpty } from ' @opentiny/tiny-engine-common'
98+ import { getMetaApi , META_SERVICE } from ' @opentiny/tiny-engine-meta-register'
9899import AppDialog from ' ./AppDialog.vue'
99100import { fetchApplicationList , createApplication , updateApplication , deleteApplication } from ' ./js/http'
100101
@@ -113,6 +114,7 @@ export default {
113114 },
114115
115116 setup () {
117+ const { getUserInfo } = getMetaApi (META_SERVICE .GlobalService )
116118 const appList = ref ([])
117119
118120 const appFilterOptions = [
@@ -165,11 +167,12 @@ export default {
165167 })
166168
167169 const getApplicationList = () => {
170+ const info = getUserInfo ()
168171 const params = {
169172 currentPage: state .currentPage ,
170173 pageSize: state .pageSize ,
171174 name: state .appSearchKey ,
172- createdBy: state .appFilter === ' all' ? ' ' : ' 1 '
175+ createdBy: state .appFilter === ' all' ? ' ' : info . id
173176 }
174177 if (state .orderBy === ' last_updated_time' ) {
175178 params .orderBy = state .orderBy
0 commit comments