资金报表开发

This commit is contained in:
a0049873 2022-11-25 17:27:21 +08:00
parent 411f091383
commit 28f120bd6e
1 changed files with 26 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: hisense.guoyue * @Author: hisense.guoyue
* @LastEditors: hisense.wuhongjian * @LastEditors: Light
* @LastEditTime: 2022-11-24 10:07:57 * @LastEditTime: 2022-11-25 17:24:25
* @Description: 资金报表 * @Description: 资金报表
--> -->
<template> <template>
@ -82,6 +82,7 @@
placeholder="请选择提供部门" placeholder="请选择提供部门"
filterable filterable
clearable clearable
:disabled='disabled'
> >
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option <el-option
@ -232,6 +233,7 @@ export default {
data () { data () {
return { return {
disabled: true,
exportExcelCondition: '', exportExcelCondition: '',
token: Cookies.get('ucsToken'), token: Cookies.get('ucsToken'),
// //
@ -309,7 +311,7 @@ export default {
} }
}, },
mounted () { mounted () {
this.init() // this.init()
}, },
created () { created () {
this.$http.get('/sys/dept/all').then((res) => { this.$http.get('/sys/dept/all').then((res) => {
@ -320,6 +322,27 @@ export default {
this.offerDepartSelects.push({ label: val.name, value: val.id }) this.offerDepartSelects.push({ label: val.name, value: val.id })
}) })
}) })
this.$http.get('/sys/user/info').then(res => {
this.dataForm.provideDept = res.data.data.deptId
this.init()
if (res.data.data.superAdmin == 1) {
this.disabled = false
this.dataForm.provideDept = ''
this.init()
return
}
if (res.data.data.roleIdList) {
res.data.data.roleIdList.map(val => {
this.$http.get('/sys/role/' + val).then(res1 => {
if (res1.data.data.name === '运维管理员') {
this.disabled = false
this.dataForm.provideDept = ''
this.init()
}
})
})
}
})
} }
} }
</script> </script>