能力挂接根据账号筛选
This commit is contained in:
parent
6270f3bf6d
commit
307f5bb4ce
|
@ -288,8 +288,7 @@ export default {
|
||||||
getDataListIsPage: true,
|
getDataListIsPage: true,
|
||||||
exportURL: '/ability/bsabilityai/export',
|
exportURL: '/ability/bsabilityai/export',
|
||||||
deleteURL: '/resource/delete',
|
deleteURL: '/resource/delete',
|
||||||
deleteIsBatch: true,
|
deleteIsBatch: true
|
||||||
createdIsNeed: false
|
|
||||||
},
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
sceneArr: dictionaries.sceneArr,
|
sceneArr: dictionaries.sceneArr,
|
||||||
|
@ -302,7 +301,8 @@ export default {
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
name: '',
|
name: '',
|
||||||
deptIds: []
|
deptIds: [],
|
||||||
|
region: true
|
||||||
},
|
},
|
||||||
// qp: false,
|
// qp: false,
|
||||||
// 关联应用弹窗
|
// 关联应用弹窗
|
||||||
|
@ -330,10 +330,6 @@ export default {
|
||||||
this.$http.get('/sys/user/info').then(res => {
|
this.$http.get('/sys/user/info').then(res => {
|
||||||
console.log('res', res.data.data, !res.data.data.superAdmin, this.$store.state.user.roleIdList)
|
console.log('res', res.data.data, !res.data.data.superAdmin, this.$store.state.user.roleIdList)
|
||||||
this.superAdmin = res.data.data.superAdmin
|
this.superAdmin = res.data.data.superAdmin
|
||||||
if (!(res.data.data.superAdmin || this.$store.state.user.roleIdList.indexOf('运维管理员') !== -1)) {
|
|
||||||
this.dataForm.deptIds = [res.data.data.deptId]
|
|
||||||
}
|
|
||||||
this.query()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
@ -398,7 +394,8 @@ export default {
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
name: '',
|
name: '',
|
||||||
deptIds: this.dataForm.deptIds
|
deptIds: [],
|
||||||
|
region: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
@ -554,7 +551,8 @@ export default {
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
name: names,
|
name: names,
|
||||||
deptIds: this.dataForm.deptIds
|
deptIds: [],
|
||||||
|
region: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
|
|
@ -249,8 +249,7 @@ export default {
|
||||||
getDataListIsPage: true,
|
getDataListIsPage: true,
|
||||||
exportURL: '/ability/bsabilityai/export',
|
exportURL: '/ability/bsabilityai/export',
|
||||||
deleteURL: '/resource/delete',
|
deleteURL: '/resource/delete',
|
||||||
deleteIsBatch: true,
|
deleteIsBatch: true
|
||||||
createdIsNeed: false
|
|
||||||
},
|
},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
sceneArr: dictionaries.sceneArr,
|
sceneArr: dictionaries.sceneArr,
|
||||||
|
@ -262,7 +261,7 @@ export default {
|
||||||
selectType: 0,
|
selectType: 0,
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '应用资源',
|
type: '应用资源',
|
||||||
deptId: ''
|
region: true
|
||||||
},
|
},
|
||||||
qp: false,
|
qp: false,
|
||||||
relateApplicationResourceVisible: false,
|
relateApplicationResourceVisible: false,
|
||||||
|
@ -299,11 +298,6 @@ export default {
|
||||||
this.$http.get('/sys/user/info').then(res => {
|
this.$http.get('/sys/user/info').then(res => {
|
||||||
console.log('res', res.data.data)
|
console.log('res', res.data.data)
|
||||||
this.superAdmin = res.data.data.superAdmin
|
this.superAdmin = res.data.data.superAdmin
|
||||||
this.superAdmin = res.data.data.superAdmin
|
|
||||||
if (!(res.data.data.superAdmin || this.$store.state.user.roleIdList.indexOf('运维管理员') !== -1)) {
|
|
||||||
this.dataForm.deptId = [res.data.data.deptId]
|
|
||||||
}
|
|
||||||
this.query()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
@ -327,7 +321,7 @@ export default {
|
||||||
creator: '',
|
creator: '',
|
||||||
type: '应用资源',
|
type: '应用资源',
|
||||||
name: '',
|
name: '',
|
||||||
deptIds: this.dataForm.deptId
|
region: true
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
@ -414,7 +408,7 @@ export default {
|
||||||
selectType: 0,
|
selectType: 0,
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
name: names,
|
name: names,
|
||||||
deptIds: this.dataForm.deptId
|
region: true
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
|
|
@ -159,7 +159,9 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
"
|
"
|
||||||
@click="downloadFile(formName.enclosure, '申请附件')"
|
@click="
|
||||||
|
downloadFile(formName.enclosure, formName.enclosureName)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
下载
|
下载
|
||||||
</button>
|
</button>
|
||||||
|
@ -362,6 +364,7 @@
|
||||||
xhr.responseType = 'blob'
|
xhr.responseType = 'blob'
|
||||||
xhr.send()
|
xhr.send()
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
|
console.log('下载', path, this.status, navigator)
|
||||||
if (this.status === 200 || this.status === 304) {
|
if (this.status === 200 || this.status === 304) {
|
||||||
// 如果是IE10及以上,不支持download属性,采用msSaveOrOpenBlob方法,但是IE10以下也不支持msSaveOrOpenBlob
|
// 如果是IE10及以上,不支持download属性,采用msSaveOrOpenBlob方法,但是IE10以下也不支持msSaveOrOpenBlob
|
||||||
if ('msSaveOrOpenBlob' in navigator) {
|
if ('msSaveOrOpenBlob' in navigator) {
|
||||||
|
@ -379,6 +382,8 @@
|
||||||
a.click()
|
a.click()
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
URL.revokeObjectURL(url)
|
URL.revokeObjectURL(url)
|
||||||
|
} else {
|
||||||
|
message.warning('下载失败')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -536,6 +536,8 @@
|
||||||
a.click()
|
a.click()
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
URL.revokeObjectURL(url)
|
URL.revokeObjectURL(url)
|
||||||
|
} else {
|
||||||
|
message.warning('下载失败')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,6 +157,8 @@
|
||||||
a.click()
|
a.click()
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
URL.revokeObjectURL(url)
|
URL.revokeObjectURL(url)
|
||||||
|
} else {
|
||||||
|
message.warning('下载失败')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue