Commit f6c322cf authored by jingnan's avatar jingnan 👀

合并产品【10262】【测评】三员账号登录平台后对于账密登录的项目,密码修改功能保留与隐藏处理

parent aa839a1e
......@@ -129,6 +129,7 @@
</div>
</template>
<script>
import http from '@/utils/http'
import {
delRecentlyAndCommonVisitData,
getRecentlyVisitData,
......@@ -224,12 +225,17 @@ export default {
}
],
fileDialog: false,
proxyDialog: false
proxyDialog: false,
canModifyPwd: false
}
},
computed: {
...mapGetters(['activeWorkSpace']),
...mapGetters(['userInfo']),
// 三元用户信息
ternaryUserInfo() {
return this.$store.getters.ternaryUserInfo
},
settings() {
let items = [
{
......@@ -266,6 +272,9 @@ export default {
const removeItemNames = ['工作代理', '上传监控']
items = items.filter(m => !removeItemNames.includes(m.name))
}
if (!this.canModifyPwd && !this.ternaryUserInfo.isAdmin) {
items = items.filter(m => !['密码修改'].includes(m.name))
}
return items
}
},
......@@ -287,8 +296,11 @@ export default {
}
},
mounted() {
async mounted() {
const res = await http.get('/SystemConfig/getSystemConfigByKey?configKey=IsSupportChangePassword')
if (this.$utils._get(res, 'items[0].configValue') === 'true') {
this.canModifyPwd = true
}
},
methods: {
getOrganization() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment