@@ -63,10 +63,11 @@ export default { | |||||
// 刷新token的时间 | // 刷新token的时间 | ||||
refreshTime: '', | refreshTime: '', | ||||
// 计时器 | // 计时器 | ||||
timer: '' | |||||
timer: '', | |||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
this.loading = true | |||||
// 实时检测刷新token | // 实时检测刷新token | ||||
this.refreshToken() | this.refreshToken() | ||||
}, | }, | ||||
@@ -35,6 +35,7 @@ export default { | |||||
this.getTopMenu() | this.getTopMenu() | ||||
// 用户权限加载 | // 用户权限加载 | ||||
this.getUserInfo() | this.getUserInfo() | ||||
console.log('this.getUserInfo()') | |||||
}, | }, | ||||
computed: { | computed: { | ||||
...mapGetters(['menu']) | ...mapGetters(['menu']) | ||||
@@ -1,6 +1,15 @@ | |||||
<template> | <template> | ||||
<div class="box-center"> | <div class="box-center"> | ||||
<div class="house-only" v-if="role == 3 && info.userRoleType != 6"> | |||||
<!-- 顾问 --> | |||||
<div | |||||
v-if="isAdviser" | |||||
style="text-align: center; font-size: 30px; margin: 300px auto" | |||||
> | |||||
欢迎光临 | |||||
</div> | |||||
<div class="house-only" v-if="isHouse"> | |||||
<!-- 楼盘后台 --> | <!-- 楼盘后台 --> | ||||
<div class="app-titel"> | <div class="app-titel"> | ||||
<div class="titel-text">时间</div> | <div class="titel-text">时间</div> | ||||
@@ -434,7 +443,8 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div v-if="role != 3 && info.userRoleType != 6"> | |||||
<div v-if="isSystem"> | |||||
<!-- 系统后台 --> | <!-- 系统后台 --> | ||||
<div style="margin-bottom: 10px; cursor: pointer" v-if="role != 2"> | <div style="margin-bottom: 10px; cursor: pointer" v-if="role != 2"> | ||||
<span style="font-weight: bold; font-size: 18px">待处理</span> | <span style="font-weight: bold; font-size: 18px">待处理</span> | ||||
@@ -1069,12 +1079,7 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div | |||||
v-if="info.userRoleType == 6" | |||||
style="text-align: center; font-size: 30px; margin: 300px auto" | |||||
> | |||||
欢迎光临 | |||||
</div> | |||||
</div> | </div> | ||||
</template> | </template> | ||||
@@ -1120,20 +1125,37 @@ export default { | |||||
list: [], | list: [], | ||||
fraction: "", | fraction: "", | ||||
}, | }, | ||||
info: {}, | |||||
}; | }; | ||||
}, | }, | ||||
computed: { | computed: { | ||||
...mapGetters(["permissions"]), | ...mapGetters(["permissions"]), | ||||
// 获取用户信息 | |||||
userInfo() { | |||||
return this.$store.state.user.userInfo | |||||
}, | |||||
// 是否楼盘后台 | |||||
isHouse() { | |||||
return this.userInfo.userRoleType == null && this.role == 3 | |||||
}, | |||||
// 是否系统后台 | |||||
isSystem() { | |||||
return this.role != 3 && this.userInfo.userRoleType == 1 | |||||
}, | |||||
// 是否顾问 | |||||
isAdviser() { | |||||
return this.userInfo.userRoleType == 6 | |||||
} | |||||
}, | }, | ||||
mounted() { | mounted() { | ||||
this.role = localStorage.getItem("orgType"); | this.role = localStorage.getItem("orgType"); | ||||
this.info = getStore({ name: "userInfo" }); | |||||
if (this.role == 3) { | if (this.role == 3) { | ||||
this.houseId = localStorage.getItem("houseId"); | this.houseId = localStorage.getItem("houseId"); | ||||
this.getgicd(); | this.getgicd(); | ||||
// 获取维度占比 | // 获取维度占比 | ||||
this.getindexZxllist(); | this.getindexZxllist(); | ||||
@@ -1148,6 +1170,7 @@ export default { | |||||
this.waitingForOperation(); | this.waitingForOperation(); | ||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
// 跳转详情 | // 跳转详情 | ||||
toDetail(path, params2 = "", name) { | toDetail(path, params2 = "", name) { | ||||
@@ -246,7 +246,7 @@ | |||||
</el-select> | </el-select> | ||||
</div> | </div> | ||||
<div class="div-lab"> | |||||
<!-- <div class="div-lab"> | |||||
<div class="label">是否有效:</div> | <div class="label">是否有效:</div> | ||||
<el-select | <el-select | ||||
v-model="searchForm.validInvalid" | v-model="searchForm.validInvalid" | ||||
@@ -262,7 +262,7 @@ | |||||
:value="item.value" | :value="item.value" | ||||
></el-option> | ></el-option> | ||||
</el-select> | </el-select> | ||||
</div> | |||||
</div> --> | |||||
</div> | </div> | ||||
<div class="app-titel" style="margin-top: 15px"></div> | <div class="app-titel" style="margin-top: 15px"></div> | ||||
@@ -336,6 +336,7 @@ | |||||
{{ row.zfal == 0 ? "已加精" : "未加精" }} | {{ row.zfal == 0 ? "已加精" : "未加精" }} | ||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
<!-- <el-table-column prop="validInvalidName" label="是否有效" align="center"></el-table-column> --> | |||||
<el-table-column label="操作" align="center" width="200" fixed="right"> | <el-table-column label="操作" align="center" width="200" fixed="right"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
<el-button | <el-button | ||||
@@ -4,10 +4,10 @@ | |||||
*/ | */ | ||||
// const url = 'http://pigx-gateway' | // const url = 'http://pigx-gateway' | ||||
// const url = 'http://39.97.167.65:9999' //测试 | // const url = 'http://39.97.167.65:9999' //测试 | ||||
const url = 'http://192.168.31.167:9999' //长龙 | |||||
// const url = 'http://192.168.31.167:9999' //长龙 | |||||
// const url = 'http://192.168.31.134:9999' //嘉豪 | // const url = 'http://192.168.31.134:9999' //嘉豪 | ||||
// const url = 'http://192.168.31.100:9999' //王笑 | // const url = 'http://192.168.31.100:9999' //王笑 | ||||
// const url = 'http://62.234.122.43:9999' //正式 | |||||
const url = 'http://62.234.122.43:9999' //正式 | |||||
const CompressionWebpackPlugin = require('compression-webpack-plugin') | const CompressionWebpackPlugin = require('compression-webpack-plugin') | ||||
const productionGzipExtensions = ['js', 'css'] | const productionGzipExtensions = ['js', 'css'] | ||||