Compare commits

...

3 Commits

Author SHA1 Message Date
Eric
7075758fd8 fix: 修复普通用户页面 动作 问题 2021-08-27 15:17:49 +08:00
ibuler
f8d2ae3b58 perf: 优化创建简单 2021-08-20 14:22:47 +08:00
Bai
565507f2b8 fix: 修复AssetSelect弹窗的protocols显示 2021-08-20 14:15:03 +08:00
3 changed files with 8 additions and 3 deletions

View File

@@ -102,6 +102,9 @@ export default {
}, },
{ {
prop: 'protocols', prop: 'protocols',
formatter: function(row) {
return <span> {row.protocols.toString()} </span>
},
label: this.$t('assets.Protocols') label: this.$t('assets.Protocols')
} }
], ],

View File

@@ -40,7 +40,7 @@ export default {
autoParam: ['id=key', 'name=n', 'level=lv'], autoParam: ['id=key', 'name=n', 'level=lv'],
type: 'get', type: 'get',
headers: { headers: {
'X-JMS-ORG': this.$store.getters.currentOrg.id 'X-JMS-ORG': this.$store.getters.currentOrg ? this.$store.getters.currentOrg.id : ''
} }
}, },
callback: { callback: {
@@ -236,7 +236,7 @@ export default {
name: data['value'], name: data['value'],
pId: parentNode.id, pId: parentNode.id,
meta: { meta: {
'node': data data: data
} }
} }
newNode.checked = this.zTree.getSelectedNodes()[0].checked newNode.checked = this.zTree.getSelectedNodes()[0].checked

View File

@@ -4,7 +4,9 @@ const getters = {
token: state => state.users.token, token: state => state.users.token,
currentOrg: state => state.users.currentOrg, currentOrg: state => state.users.currentOrg,
currentOrgIsDefault: state => state.users.currentOrg['is_default'], currentOrgIsDefault: state => state.users.currentOrg['is_default'],
currentOrgIsRoot: state => state.users.currentOrg['is_root'], currentOrgIsRoot: state => {
return state.users.currentOrg && state.users.currentOrg['is_root']
},
currentRole: state => state.users.currentRole, currentRole: state => state.users.currentRole,
currentUser: state => state.users.profile, currentUser: state => state.users.profile,
permission_routes: state => state.permission.routes, permission_routes: state => state.permission.routes,