Skip to content

Commit

Permalink
revert(修复应用管理 && 背景图丢失): feat(grafana): url
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 9, 2022
1 parent 2e94f01 commit 91a1c4a
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 15 deletions.
108 changes: 108 additions & 0 deletions src/api/License/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ import { queryMenu } from '@/api/Menu/index'
import { clearCookie, getToken, removeToken, setToken } from '@/utils/vue'
import { resetRouter } from '@/router'

import { license } from '@/api/License'
import { isJson } from '@/utils/data/validate'
import { tickTime } from '@/utils/time/index'
const defaultTheme = {
Expand Down
29 changes: 14 additions & 15 deletions src/views/DeviceCloud/manage/application/application.vue
Original file line number Diff line number Diff line change
Expand Up @@ -549,21 +549,20 @@
keys: 'tag,name,desc,count(*)',
order: 'updatedAt', // -updatedAt updatedAt
}
queryRole(params)
.then((res) => {
this.appdata = res.results
this.appdata.map((item) => {
// dgiotlog.log(item)
if (item.tag.appconfig.secret) {
item.isshow = false
}
})
this.total = res.count
// dgiotlog.log(this.appdata, "appdata");
})
.catch((e) => {
dgiotlog.log(e)
})
const { results } = await queryRole(params)
this.appdata = results
this.appdata.map((item) => {
// dgiotlog.log(item)
_.merge(item.tag, { appconfig: { secret: '' } })
if (item?.tag?.appconfig?.secret) {
item.isshow = false
} else {
item.tag.appconfig.secret = '暂未配置'
item.isshow = true
}
})
this.total = results.length
console.log(this.appdata, 'appdata')
},
handleClickRefresh() {
this.randomSecret()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
import { queryDevice } from '@/api/Device/index'
import { delProduct, getProduct } from '@/api/Product'
import { utc2beijing } from '@/utils'
import { getProject, handleZero, setUpLictool } from '@/api/License/index'
export default {
data() {
Expand Down
1 change: 1 addition & 0 deletions src/views/MultiTenant/user/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import backgroundImage from '../../../../../public/assets/images/platform/assets/login_images/background.jpg'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import { isPassword } from '@/utils/data/validate'
import { SiteDefault } from '@/api/License'
export default {
name: 'Admin',
directives: {
Expand Down
1 change: 1 addition & 0 deletions src/views/MultiTenant/user/dev/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import backgroundImage from '../../../../../public/assets/images/platform/assets/login_images/background.jpg'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import { isPassword } from '@/utils/data/validate'
import { SiteDefault } from '@/api/License'
export default {
name: 'Dev',
directives: {
Expand Down
1 change: 1 addition & 0 deletions src/views/MultiTenant/user/jwtlogin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import backgroundImage from '../../../../../public/assets/images/platform/assets/login_images/background.jpg'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import { isPassword } from '@/utils/data/validate'
import { SiteDefault } from '@/api/License'
export default {
name: 'JwtLogin',
directives: {
Expand Down
1 change: 1 addition & 0 deletions src/views/MultiTenant/user/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import backgroundImage from '../../../../../public/assets/images/platform/assets/login_images/background.jpg'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import { isPassword } from '@/utils/data/validate'
import { SiteDefault } from '@/api/License'
import { Roletree } from '@/api/Menu'
export default {
Expand Down
1 change: 1 addition & 0 deletions src/views/MultiTenant/user/quick/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import backgroundImage from '../../../../../public/assets/images/platform/assets/login_images/background.jpg'
import { mapActions, mapGetters, mapMutations } from 'vuex'
import { isPassword } from '@/utils/data/validate'
import { SiteDefault } from '@/api/License'
export default {
name: 'Quick',
directives: {
Expand Down

0 comments on commit 91a1c4a

Please sign in to comment.