| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <div class="body">
- <json-viewer :value="info" theme="jv-light" :expand-depth="depth" class="my-theme"></json-viewer>
- </div>
- </template>
- <script>
- import { getLimitRange } from '@/api/limitRange'
- export default {
- name: 'LimitRangeCard',
- props: {
- namespace: String
- },
- data() {
- return {
- info: {},
- depth: 2
- }
- },
- mounted() {
- const config = {
- params: {
- namespace: this.namespace
- }
- };
- getLimitRange(config).then(res => {
- this.info = res.data.data
- }).catch(err => {
- console.log(err)
- })
- }
- }
- </script>
- <style lang="scss" scoped>
- .body {
- width: 95%;
- margin: 0 auto;
- }
- .my-theme {
- background: transparent;
- }
- </style>
|