mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	ui: Moves fetchdata() to the created() (#4811)
This PR to move fetchData() to created() insteadof mount()
This commit is contained in:
		
							parent
							
								
									43257f8300
								
							
						
					
					
						commit
						4dcd9a2329
					
				@ -58,7 +58,7 @@ export default {
 | 
			
		||||
      loading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -57,7 +57,7 @@ export default {
 | 
			
		||||
      loading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,7 @@ export default {
 | 
			
		||||
      this.domainError = this.error
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -150,7 +150,7 @@ export default {
 | 
			
		||||
      this.updateResource(newItem)
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.updateResource(this.resource)
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -143,7 +143,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -73,7 +73,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -120,7 +120,7 @@ export default {
 | 
			
		||||
        this.scopeKey = ''
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -424,8 +424,7 @@ export default {
 | 
			
		||||
    eventBus.$on('exec-action', (action, isGroupAction) => {
 | 
			
		||||
      this.execAction(action, isGroupAction)
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
 | 
			
		||||
    if (this.device === 'desktop') {
 | 
			
		||||
      this.pageSize = 20
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -134,8 +134,6 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  created () {
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -119,7 +119,7 @@ export default {
 | 
			
		||||
      loading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -63,7 +63,7 @@ export default {
 | 
			
		||||
      closeSchedule: this.closeAction
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -99,7 +99,7 @@ export default {
 | 
			
		||||
      loading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    for (const group of this.resource.affinitygroup) {
 | 
			
		||||
      this.selectedRowKeys.push(group.id)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -361,8 +361,6 @@ export default {
 | 
			
		||||
        name: ''
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -113,8 +113,6 @@ export default {
 | 
			
		||||
        name: ''
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -109,7 +109,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -1109,8 +1109,7 @@ export default {
 | 
			
		||||
    this.form.getFieldDecorator('cpunumber', { initialValue: undefined, preserve: true })
 | 
			
		||||
    this.form.getFieldDecorator('cpuSpeed', { initialValue: undefined, preserve: true })
 | 
			
		||||
    this.form.getFieldDecorator('memory', { initialValue: undefined, preserve: true })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
 | 
			
		||||
    this.dataPreFill = this.preFillContent && Object.keys(this.preFillContent).length > 0 ? this.preFillContent : {}
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -88,7 +88,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -203,6 +203,7 @@ export default {
 | 
			
		||||
    if (!this.isAdmin()) {
 | 
			
		||||
      this.vmColumns = this.vmColumns.filter(x => x.dataIndex !== 'instancename')
 | 
			
		||||
    }
 | 
			
		||||
    this.handleFetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
    resource (newData, oldData) {
 | 
			
		||||
@ -220,7 +221,6 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.handleFetchData()
 | 
			
		||||
    this.setCurrentTab()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -132,7 +132,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -110,8 +110,6 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  created () {
 | 
			
		||||
    this.originalSize = !this.isObjectEmpty(this.resource) ? this.resource.size : 1
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -84,7 +84,7 @@ export default {
 | 
			
		||||
      memoryKey: 'details[0].memory'
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData({
 | 
			
		||||
      keyword: '',
 | 
			
		||||
      pageSize: 10,
 | 
			
		||||
 | 
			
		||||
@ -149,7 +149,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    if (this.$store.getters.userInfo.roletype === 'Admin') {
 | 
			
		||||
      this.fetchPods()
 | 
			
		||||
      this.fetchClusters()
 | 
			
		||||
 | 
			
		||||
@ -90,8 +90,6 @@ export default {
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  created () {
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -153,7 +153,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
@ -163,11 +163,6 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  created () {
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
      // to do after initial timeout
 | 
			
		||||
    }, 1000)
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getStatus (value) {
 | 
			
		||||
      if (value > 85) {
 | 
			
		||||
 | 
			
		||||
@ -55,8 +55,10 @@ export default {
 | 
			
		||||
      showOnboarding: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.showCapacityDashboard = Object.prototype.hasOwnProperty.call(store.getters.apis, 'listCapacity')
 | 
			
		||||
    this.project = false
 | 
			
		||||
    if (store.getters.project && store.getters.project.id) {
 | 
			
		||||
 | 
			
		||||
@ -131,7 +131,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.project = store.getters.project
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
    this.$store.watch(
 | 
			
		||||
 | 
			
		||||
@ -257,7 +257,7 @@ export default {
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -234,8 +234,6 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
    this.selectedFilter = this.filters[0].id
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -229,8 +229,6 @@ export default {
 | 
			
		||||
    this.apiConfig.params.forEach(param => {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -66,7 +66,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -132,7 +132,7 @@ export default {
 | 
			
		||||
      loading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchRoles()
 | 
			
		||||
  },
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
 | 
			
		||||
@ -165,8 +165,6 @@ export default {
 | 
			
		||||
        break
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    if (this.action.dataView && this.action.icon === 'edit') {
 | 
			
		||||
      this.fillEditFormFieldValues()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -125,15 +125,15 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  beforeRouteUpdate (to, from, next) {
 | 
			
		||||
    next()
 | 
			
		||||
  },
 | 
			
		||||
  beforeRouteLeave (to, from, next) {
 | 
			
		||||
    next()
 | 
			
		||||
  },
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
    '$route' (to, from) {
 | 
			
		||||
      if (to.fullPath !== from.fullPath && !to.fullPath.includes('action/')) {
 | 
			
		||||
 | 
			
		||||
@ -137,7 +137,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -144,7 +144,7 @@ export default {
 | 
			
		||||
      apis: []
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.apis = Object.keys(this.$store.getters.apis).sort((a, b) => a.localeCompare(b))
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -140,8 +140,6 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
    this.detailColumn = ['name', 'certificate', 'certchain']
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -190,8 +190,6 @@ export default {
 | 
			
		||||
        name: this.$t('label.all.zone')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -191,8 +191,6 @@ export default {
 | 
			
		||||
      (userInfo.account !== this.resource.account || userInfo.domain !== this.resource.domain)) {
 | 
			
		||||
      this.columns = this.columns.filter(col => { return col.dataIndex !== 'status' })
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -411,8 +411,6 @@ export default {
 | 
			
		||||
    this.$set(this.format, 'opts', [])
 | 
			
		||||
    this.$set(this.osTypes, 'loading', false)
 | 
			
		||||
    this.$set(this.osTypes, 'opts', [])
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
 | 
			
		||||
@ -204,8 +204,6 @@ export default {
 | 
			
		||||
      (userInfo.account !== this.resource.account || userInfo.domain !== this.resource.domain)) {
 | 
			
		||||
      this.columns = this.columns.filter(col => { return col.dataIndex !== 'status' })
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -88,8 +88,6 @@ export default {
 | 
			
		||||
        name: this.$t('state.disabled')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -145,7 +145,7 @@ export default {
 | 
			
		||||
        ) : this.projects
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.isImageTypeIso = this.$route.meta.name === 'iso'
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -343,7 +343,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -181,7 +181,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -150,7 +150,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -73,7 +73,7 @@ export default {
 | 
			
		||||
      columns: []
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -171,7 +171,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -125,7 +125,7 @@ export default {
 | 
			
		||||
      fetchLoading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -221,7 +221,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -99,7 +99,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchImageStores()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -147,7 +147,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -61,7 +61,7 @@ export default {
 | 
			
		||||
      resourcesList: []
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -184,7 +184,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -145,7 +145,7 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  inject: ['parentFetchData'],
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -40,7 +40,7 @@ export default {
 | 
			
		||||
      fetchLoading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -129,7 +129,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -192,7 +192,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -271,7 +271,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -180,7 +180,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -35,7 +35,8 @@
 | 
			
		||||
            :itemNsp="item"
 | 
			
		||||
            :nsp="nsps[item.title]"
 | 
			
		||||
            :resourceId="resource.id"
 | 
			
		||||
            :zoneId="resource.zoneid"/>
 | 
			
		||||
            :zoneId="resource.zoneid"
 | 
			
		||||
            :tabKey="tabKey"/>
 | 
			
		||||
        </a-tab-pane>
 | 
			
		||||
      </a-tabs>
 | 
			
		||||
    </a-spin>
 | 
			
		||||
@ -1107,7 +1108,7 @@ export default {
 | 
			
		||||
  beforeCreate () {
 | 
			
		||||
    this.form = this.$form.createForm(this)
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
@ -1128,6 +1129,9 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    fetchData () {
 | 
			
		||||
      if (!this.resource || !('id' in this.resource)) {
 | 
			
		||||
        return
 | 
			
		||||
      }
 | 
			
		||||
      this.fetchServiceProvider()
 | 
			
		||||
    },
 | 
			
		||||
    fetchServiceProvider (name) {
 | 
			
		||||
 | 
			
		||||
@ -89,7 +89,7 @@ export default {
 | 
			
		||||
      fetchLoading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    if (this.resource.id) {
 | 
			
		||||
      this.fetchData()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -103,22 +103,18 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  inject: ['provideSetNsp', 'provideExecuteAction'],
 | 
			
		||||
  watch: {
 | 
			
		||||
    loading (newValue, oldValue) {
 | 
			
		||||
      if (newValue !== oldValue && !newValue) {
 | 
			
		||||
    nsp () {
 | 
			
		||||
      this.fetchData()
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
    nsp (newData, oldData) {
 | 
			
		||||
      if (newData && Object.keys(newData).length > 0) {
 | 
			
		||||
        this.nsp = newData
 | 
			
		||||
        this.resource = this.nsp
 | 
			
		||||
        this.$set(this.resource, 'zoneid', this.zoneId)
 | 
			
		||||
        this.provideSetNsp(this.resource)
 | 
			
		||||
  created () {
 | 
			
		||||
    if (!this.resourceId || !this.zoneId) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  methods: {
 | 
			
		||||
    async fetchData () {
 | 
			
		||||
      if (!this.nsp || Object.keys(this.nsp).length === 0) {
 | 
			
		||||
        this.resource = {
 | 
			
		||||
          name: this.itemNsp.title,
 | 
			
		||||
@ -133,15 +129,12 @@ export default {
 | 
			
		||||
      if (this.itemNsp && Object.keys(this.itemNsp).length > 0) {
 | 
			
		||||
        this.provider = this.itemNsp
 | 
			
		||||
        this.provideSetNsp(this.resource)
 | 
			
		||||
      this.fetchData()
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    async fetchData () {
 | 
			
		||||
 | 
			
		||||
        if (!this.provider.lists || this.provider.lists.length === 0) {
 | 
			
		||||
          return
 | 
			
		||||
        }
 | 
			
		||||
        this.provider.lists.map(this.fetchOptions)
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    async fetchOptions (args) {
 | 
			
		||||
      if (!args || Object.keys(args).length === 0) {
 | 
			
		||||
 | 
			
		||||
@ -131,7 +131,7 @@ export default {
 | 
			
		||||
      this.updateResource(newItem)
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.updateResource(this.resource)
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -85,7 +85,7 @@ export default {
 | 
			
		||||
      fetchLoading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -93,7 +93,7 @@ export default {
 | 
			
		||||
      fetchLoading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -699,7 +699,7 @@ export default {
 | 
			
		||||
      options: ['primaryStorageScope', 'primaryStorageProtocol', 'provider']
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.currentStep = this.prefillContent.resourceStep ? this.prefillContent.resourceStep : 0
 | 
			
		||||
    if (this.stepChild && this.stepChild !== '') {
 | 
			
		||||
      this.currentStep = this.steps.findIndex(item => item.fromKey === this.stepChild)
 | 
			
		||||
 | 
			
		||||
@ -369,7 +369,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.physicalNetworks = this.prefillContent.physicalNetworks
 | 
			
		||||
    this.steps = this.filteredSteps()
 | 
			
		||||
    this.currentStep = this.prefillContent.networkStep ? this.prefillContent.networkStep : 0
 | 
			
		||||
 | 
			
		||||
@ -394,6 +394,8 @@ export default {
 | 
			
		||||
        this.$emit('fieldsChanged', changedFields)
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.form.setFieldsValue({
 | 
			
		||||
@ -414,41 +416,6 @@ export default {
 | 
			
		||||
      localstorageenabled: this.localstorageenabled,
 | 
			
		||||
      localstorageenabledforsystemvm: this.localstorageenabledforsystemvm
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    const cForm = this.form
 | 
			
		||||
    api('listHypervisors', { listAll: true }).then(json => {
 | 
			
		||||
      this.hypervisors = json.listhypervisorsresponse.hypervisor
 | 
			
		||||
      if ('listSimulatorHAStateTransitions' in this.$store.getters.apis) {
 | 
			
		||||
        this.hypervisors.push({ name: 'Simulator' })
 | 
			
		||||
      }
 | 
			
		||||
      cForm.setFieldsValue({
 | 
			
		||||
        hypervisor: this.currentHypervisor
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    if (!this.isAdvancedZone || this.securityGroupsEnabled) {
 | 
			
		||||
      api('listNetworkOfferings', { state: 'Enabled', guestiptype: 'Shared' }).then(json => {
 | 
			
		||||
        this.networkOfferings = {}
 | 
			
		||||
        json.listnetworkofferingsresponse.networkoffering.forEach(offering => {
 | 
			
		||||
          this.setupNetworkOfferingAdditionalFlags(offering)
 | 
			
		||||
          this.networkOfferings[offering.id] = offering
 | 
			
		||||
        })
 | 
			
		||||
        this.availableNetworkOfferings = this.getAvailableNetworkOfferings(this.currentHypervisor)
 | 
			
		||||
        cForm.setFieldsValue({
 | 
			
		||||
          networkOfferingId: this.currentNetworkOfferingId
 | 
			
		||||
        })
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    api('listDomains', { listAll: true }).then(json => {
 | 
			
		||||
      this.domains = {}
 | 
			
		||||
      json.listdomainsresponse.domain.forEach(dom => {
 | 
			
		||||
        this.domains[dom.id] = dom
 | 
			
		||||
      })
 | 
			
		||||
      cForm.setFieldsValue({
 | 
			
		||||
        domain: this.domain
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    isAdvancedZone () {
 | 
			
		||||
@ -532,6 +499,42 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    fetchData () {
 | 
			
		||||
      const cForm = this.form
 | 
			
		||||
      api('listHypervisors', { listAll: true }).then(json => {
 | 
			
		||||
        this.hypervisors = json.listhypervisorsresponse.hypervisor
 | 
			
		||||
        if ('listSimulatorHAStateTransitions' in this.$store.getters.apis) {
 | 
			
		||||
          this.hypervisors.push({ name: 'Simulator' })
 | 
			
		||||
        }
 | 
			
		||||
        cForm.setFieldsValue({
 | 
			
		||||
          hypervisor: this.currentHypervisor
 | 
			
		||||
        })
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
      if (!this.isAdvancedZone || this.securityGroupsEnabled) {
 | 
			
		||||
        api('listNetworkOfferings', { state: 'Enabled', guestiptype: 'Shared' }).then(json => {
 | 
			
		||||
          this.networkOfferings = {}
 | 
			
		||||
          json.listnetworkofferingsresponse.networkoffering.forEach(offering => {
 | 
			
		||||
            this.setupNetworkOfferingAdditionalFlags(offering)
 | 
			
		||||
            this.networkOfferings[offering.id] = offering
 | 
			
		||||
          })
 | 
			
		||||
          this.availableNetworkOfferings = this.getAvailableNetworkOfferings(this.currentHypervisor)
 | 
			
		||||
          cForm.setFieldsValue({
 | 
			
		||||
            networkOfferingId: this.currentNetworkOfferingId
 | 
			
		||||
          })
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      api('listDomains', { listAll: true }).then(json => {
 | 
			
		||||
        this.domains = {}
 | 
			
		||||
        json.listdomainsresponse.domain.forEach(dom => {
 | 
			
		||||
          this.domains[dom.id] = dom
 | 
			
		||||
        })
 | 
			
		||||
        cForm.setFieldsValue({
 | 
			
		||||
          domain: this.domain
 | 
			
		||||
        })
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    handleSubmit (e) {
 | 
			
		||||
      e.preventDefault()
 | 
			
		||||
      this.form.validateFields((err, values) => {
 | 
			
		||||
 | 
			
		||||
@ -229,7 +229,7 @@ export default {
 | 
			
		||||
      ruleFormMode: 'edit'
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -303,8 +303,6 @@ export default {
 | 
			
		||||
        name: ' '
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -275,8 +275,6 @@ export default {
 | 
			
		||||
        name: ' '
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -475,8 +475,6 @@ export default {
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  created () {
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -147,7 +147,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -156,7 +156,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  filters: {
 | 
			
		||||
 | 
			
		||||
@ -155,7 +155,7 @@ export default {
 | 
			
		||||
      pageSize: 10
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -198,7 +198,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  filters: {
 | 
			
		||||
 | 
			
		||||
@ -147,7 +147,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -256,7 +256,7 @@ export default {
 | 
			
		||||
      return val.toUpperCase()
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -119,7 +119,7 @@ export default {
 | 
			
		||||
      fetchLoading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -97,7 +97,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -189,7 +189,7 @@ export default {
 | 
			
		||||
      listPublicIpAddress: []
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -521,7 +521,7 @@ export default {
 | 
			
		||||
      searchQuery: null
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -367,7 +367,7 @@ export default {
 | 
			
		||||
      searchQuery: null
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -85,7 +85,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    if ('id' in this.resource) {
 | 
			
		||||
      this.fetchData()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -103,7 +103,7 @@ export default {
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -101,7 +101,7 @@ export default {
 | 
			
		||||
      newRoute: null
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -408,7 +408,7 @@ export default {
 | 
			
		||||
      this.setCurrentTab()
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.handleFetchData()
 | 
			
		||||
    this.setCurrentTab()
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -373,7 +373,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -86,7 +86,7 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  inject: ['parentFetchData', 'parentToggleLoading'],
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
@ -819,8 +819,6 @@ export default {
 | 
			
		||||
        name: this.$t('label.all.zone')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    if (this.$route.meta.name === 'systemoffering') {
 | 
			
		||||
      this.isSystem = true
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -484,8 +484,6 @@ export default {
 | 
			
		||||
        name: this.$t('label.all.zone')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
    this.isPublic = this.isAdmin()
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -525,8 +525,6 @@ export default {
 | 
			
		||||
        name: this.$t('label.all.zone')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -205,8 +205,6 @@ export default {
 | 
			
		||||
        name: this.$t('label.all.zone')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -129,7 +129,7 @@ export default {
 | 
			
		||||
      this.apiParams[param.name] = param
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  inject: ['parentFetchData'],
 | 
			
		||||
 | 
			
		||||
@ -148,8 +148,6 @@ export default {
 | 
			
		||||
        name: this.$t('label.all.zone')
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,7 @@ import { api } from '@/api'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'CloudianPlugin',
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.doSso()
 | 
			
		||||
  },
 | 
			
		||||
  data () {
 | 
			
		||||
 | 
			
		||||
@ -75,7 +75,7 @@ export default {
 | 
			
		||||
      loading: false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -93,7 +93,7 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
 | 
			
		||||
@ -51,7 +51,7 @@ export default {
 | 
			
		||||
      pattern: 'YYYY-MM-DD'
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted () {
 | 
			
		||||
  created () {
 | 
			
		||||
    this.fetchData()
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user