Commit ee00a414 authored by 程卓's avatar 程卓

修改getconfig

parent c059b476
...@@ -712,11 +712,9 @@ export default { ...@@ -712,11 +712,9 @@ export default {
}, },
created(){}, created(){},
mounted(){ mounted(){
console.log('当前登录api: ' + this.$api.BASE_URL) this.getConfig()
if (this.$api.BASE_URL.indexOf('xuhui')!=-1 || this.$api.BASE_URL.indexOf('31.0.161.39')!=-1 ) { //徐汇分支 if (this.$api.BASE_URL.indexOf('xuhui')!=-1 || this.$api.BASE_URL.indexOf('31.0.161.39')!=-1 ) { //徐汇分支
console.log('徐汇')
this.getList() this.getList()
this.getConfig()
if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示 if (this.$store.state.userinfos && this.$store.state.userinfos.isAllPerm) { // 不是全部权限dashboard下方的模块不展示
this.getDisposal() this.getDisposal()
this.getHouthMonth() this.getHouthMonth()
...@@ -982,11 +980,16 @@ export default { ...@@ -982,11 +980,16 @@ export default {
* 判断是否开启自定义字段 * 判断是否开启自定义字段
*/ */
getConfig(){ getConfig(){
console.log(1)
this.$ajax.get({ this.$ajax.get({
url: this.$api.GET_CONFIG, url: this.$api.GET_CONFIG,
}).then(res => { }).then(res => {
if (res.code === '200') { if (res.code === '200') {
console.log(2)
this.openConfig = this.$com.confirm(res, 'data.content', []).customKeyEnable this.openConfig = this.$com.confirm(res, 'data.content', []).customKeyEnable
console.log(this.openConfig)
// 是否开启自定义字段存入cookie // 是否开启自定义字段存入cookie
this.$cookie.set('customKeyEnable', this.openConfig) this.$cookie.set('customKeyEnable', this.openConfig)
let isXuHui = this.$com.confirm(res, 'data.content', []) let isXuHui = this.$com.confirm(res, 'data.content', [])
......
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