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