Commit f6c322cf authored by jingnan's avatar jingnan 👀

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

parent aa839a1e
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
</div> </div>
</template> </template>
<script> <script>
import http from '@/utils/http'
import { import {
delRecentlyAndCommonVisitData, delRecentlyAndCommonVisitData,
getRecentlyVisitData, getRecentlyVisitData,
...@@ -224,12 +225,17 @@ export default { ...@@ -224,12 +225,17 @@ export default {
} }
], ],
fileDialog: false, fileDialog: false,
proxyDialog: false proxyDialog: false,
canModifyPwd: false
} }
}, },
computed: { computed: {
...mapGetters(['activeWorkSpace']), ...mapGetters(['activeWorkSpace']),
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
// 三元用户信息
ternaryUserInfo() {
return this.$store.getters.ternaryUserInfo
},
settings() { settings() {
let items = [ let items = [
{ {
...@@ -266,6 +272,9 @@ export default { ...@@ -266,6 +272,9 @@ export default {
const removeItemNames = ['工作代理', '上传监控'] const removeItemNames = ['工作代理', '上传监控']
items = items.filter(m => !removeItemNames.includes(m.name)) items = items.filter(m => !removeItemNames.includes(m.name))
} }
if (!this.canModifyPwd && !this.ternaryUserInfo.isAdmin) {
items = items.filter(m => !['密码修改'].includes(m.name))
}
return items return items
} }
}, },
...@@ -287,8 +296,11 @@ export default { ...@@ -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: { methods: {
getOrganization() { 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