|
|
@ -1,10 +1,11 @@ |
|
|
|
import isEmpty from 'lodash/isEmpty'; |
|
|
|
import isEmpty from 'lodash/isEmpty'; |
|
|
|
import { formatDateTime } from '../utils/dates'; |
|
|
|
import { formatDateTime } from '../utils/dates'; |
|
|
|
import NotificationMixin from './NotificationMixin'; |
|
|
|
import NotificationMixin from './NotificationMixin'; |
|
|
|
|
|
|
|
import {mapFields} from "vuex-map-fields"; |
|
|
|
|
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
mixins: [NotificationMixin], |
|
|
|
mixins: [NotificationMixin], |
|
|
|
|
|
|
|
|
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
options: { |
|
|
|
options: { |
|
|
@ -21,6 +22,8 @@ export default { |
|
|
|
// react to route changes...
|
|
|
|
// react to route changes...
|
|
|
|
this.resetList = true; |
|
|
|
this.resetList = true; |
|
|
|
this.onUpdateOptions(this.options); |
|
|
|
this.onUpdateOptions(this.options); |
|
|
|
|
|
|
|
let nodeId = this.$route.params['node']; |
|
|
|
|
|
|
|
this.findResourceNode('/api/resource_nodes/'+ nodeId); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
deletedItem(item) { |
|
|
|
deletedItem(item) { |
|
|
@ -102,11 +105,13 @@ export default { |
|
|
|
let folderParams = this.$route.query; |
|
|
|
let folderParams = this.$route.query; |
|
|
|
this.resetList = true; |
|
|
|
this.resetList = true; |
|
|
|
this.$route.params.node = item['resourceNode']['id']; |
|
|
|
this.$route.params.node = item['resourceNode']['id']; |
|
|
|
|
|
|
|
|
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
name: `${this.$options.servicePrefix}List`, |
|
|
|
name: `${this.$options.servicePrefix}List`, |
|
|
|
params: {node: item['resourceNode']['id']}, |
|
|
|
params: {node: item['resourceNode']['id']}, |
|
|
|
query: folderParams, |
|
|
|
query: folderParams, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
/*this.$router.push({ |
|
|
|
/*this.$router.push({ |
|
|
|
name: `${this.$options.servicePrefix}List`, |
|
|
|
name: `${this.$options.servicePrefix}List`, |
|
|
|
params: {node: item['resourceNode']['id']} |
|
|
|
params: {node: item['resourceNode']['id']} |
|
|
|