Browse Source

init

newStyle
lancer 3 years ago
parent
commit
3fa5084b18
6 changed files with 23 additions and 17 deletions
  1. BIN
      dist.zip
  2. +6
    -6
      src/page/wel.vue
  3. +12
    -6
      src/router/axios.js
  4. +1
    -1
      src/views/Statistics/ReceptionOverview.vue
  5. +2
    -2
      src/views/building/Count.vue
  6. +2
    -2
      vue.config.js

BIN
dist.zip View File


+ 6
- 6
src/page/wel.vue View File

@@ -556,17 +556,17 @@
<div class="pagechen">
<div class="pageboxtitle1">录音总时长(小时)</div>
<div class="pageboxtitle2">
<div class="span1">{{sysSec.receptionTimeCount || 0}}</div>
<div class="span1">{{sysSec.receptionTime || 0}}</div>
<div class="span2">
<span class="span2-1"> 环比:{{sysCompare.receptionTimeCount || 0}}</span>
<span class="span2-1"> 环比:{{sysCompare.receptionTime || 0}}</span>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionTimeCount>0">
<span class="span2-2" v-if="orderBy.receptionTime>0">
<i class="el-icon-top" style="color: red;"></i>
{{orderBy.receptionTimeCount || 0}}%
{{orderBy.receptionTime || 0}}%
</span>
<span class="span2-3" v-if="orderBy.receptionTimeCount<0">
<span class="span2-3" v-if="orderBy.receptionTime<0">
<i class="el-icon-bottom" style="color: #25CEBA;"></i>
{{orderBy.receptionTimeCount || 0}}%
{{orderBy.receptionTime || 0}}%
</span>
</div>
</div>


+ 12
- 6
src/router/axios.js View File

@@ -57,23 +57,29 @@ axios.interceptors.request.use(config => {
}, error => {
return Promise.reject(error)
})
let idx=0
// HTTPresponse拦截
axios.interceptors.response.use(res => {
NProgress.done()
const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default']

if (status === 401) {
Message({
message: message,
type: 'error'
})
idx++
if(idx==1){
Message({
message: message,
type: 'error'
})
}
store.dispatch('LogOut').then(() => {
router.push({ path: '/login' })
})
return
}else{
idx=0
}

// console.log(idx);
if (status !== 200 || res.data.code === 1) {
Message({
message: message,


+ 1
- 1
src/views/Statistics/ReceptionOverview.vue View File

@@ -5,7 +5,7 @@
<div class="app-titel" v-if="role!=3" style="margin-bottom:10px;">
<div class="titel-text">楼盘选择:</div>
<div style="margin-left: 26px">
<el-select v-model="houseId" placeholder="请选择" @change="houseChange">
<el-select v-model="houseId" filterable placeholder="请选择" @change="houseChange">
<el-option
v-for="item in houseList"
:key="item.id"


+ 2
- 2
src/views/building/Count.vue View File

@@ -415,7 +415,7 @@ export default {
houseId: row.id,
startDate: this.searchForm.startDate,
endDate: this.searchForm.endDate,
dateType: this.searchForm.dateType,
timeType:this.searchForm.dateType
},
});
},
@@ -432,7 +432,7 @@ export default {
// 公司
this.selflag='1'
this.changeValue=row.orgName
this.searchForm.agentName=row.orgName
this.searchForm.orgName=row.orgName
this.houseStatistics();
}
},


+ 2
- 2
vue.config.js View File

@@ -3,8 +3,8 @@
* https://cli.vuejs.org/zh/config/
*/
// const url = 'http://pigx-gateway'
// const url = 'http://39.97.167.65:9999' //测试
const url = 'http://192.168.31.160:9999' //长龙
const url = 'http://39.97.167.65:9999' //测试
// const url = 'http://192.168.31.169:9999' //长龙
// const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
// const url = 'http://nitu5e.natappfree.cc' //王笑


Loading…
Cancel
Save