|
@@ -359,22 +359,22 @@
|
|
|
},
|
|
|
async mounted() {
|
|
|
var staffId=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffId
|
|
|
- getAdminId().toPromise().then(response => {console.log(11111)})
|
|
|
- this.loading = false
|
|
|
- // WebSocket
|
|
|
- // this.$store.dispatch('setAdminId', response.data.data)
|
|
|
- if ('WebSocket' in window) {
|
|
|
- if (process.env.NODE_ENV === 'production') {
|
|
|
- this.websocket = new WebSocket('wss://www.zthymaoyi.com/wss/websocket/'+staffId )
|
|
|
- }
|
|
|
- else {
|
|
|
- // this.websocket = new WebSocket('ws://192.168.1.115:8090/commonUser/api/onOpen?adminId=84f62127b7384dcdbaeaddfe460329fc' )
|
|
|
- this.websocket = new WebSocket('ws://192.168.1.115:8090/websocket/'+staffId )
|
|
|
- }
|
|
|
- this.initWebSocket()
|
|
|
- } else {
|
|
|
- alert('当前浏览器不支持websocket')
|
|
|
- }
|
|
|
+ // getAdminId().toPromise().then(response => {console.log(11111)})
|
|
|
+ this.loading = false
|
|
|
+ // WebSocket
|
|
|
+ // this.$store.dispatch('setAdminId', response.data.data)
|
|
|
+ if ('WebSocket' in window) {
|
|
|
+ if (process.env.NODE_ENV === 'production') {
|
|
|
+ this.websocket = new WebSocket('wss://www.zthymaoyi.com/wss/websocket/'+staffId )
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ // this.websocket = new WebSocket('ws://192.168.1.115:8090/commonUser/api/onOpen?adminId=84f62127b7384dcdbaeaddfe460329fc' )
|
|
|
+ this.websocket = new WebSocket('ws://192.168.1.119:9100/websocket/'+staffId )
|
|
|
+ }
|
|
|
+ this.initWebSocket()
|
|
|
+ } else {
|
|
|
+ alert('当前浏览器不支持websocket')
|
|
|
+ }
|
|
|
|
|
|
let that = this
|
|
|
this.getChartsData()
|
|
@@ -500,15 +500,15 @@
|
|
|
contract(index){
|
|
|
if(index == 0){
|
|
|
this.$router.push({
|
|
|
- name:"buyContract"
|
|
|
+ name:'buyContract'
|
|
|
})
|
|
|
}else if(index == 1){
|
|
|
this.$router.push({
|
|
|
- name:"salesContract"
|
|
|
+ name:'salesContract'
|
|
|
})
|
|
|
}else if(index == 3){
|
|
|
this.$router.push({
|
|
|
- name:"warehouseManagementList"
|
|
|
+ name:'warehouseManagementList'
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -551,11 +551,11 @@
|
|
|
data = [{
|
|
|
name: '已完成量',
|
|
|
value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
- type:"采购合同"
|
|
|
+ type:'采购合同'
|
|
|
}, {
|
|
|
name: '待完成量',
|
|
|
value: this.chartsData[i].biViewInfoList[1].count,
|
|
|
- type:"采购合同"
|
|
|
+ type:'采购合同'
|
|
|
}]
|
|
|
text = '合同总量'
|
|
|
formatter = '{b}{c}吨 </br> 占比{d}%'
|
|
@@ -569,11 +569,11 @@
|
|
|
data = [{
|
|
|
name: '已开票',
|
|
|
value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
- type:"采购合同"
|
|
|
+ type:'采购合同'
|
|
|
}, {
|
|
|
name: '待开票',
|
|
|
value: this.chartsData[i].biViewInfoList[1].count,
|
|
|
- type:"采购合同"
|
|
|
+ type:'采购合同'
|
|
|
}]
|
|
|
text = '合同总额'
|
|
|
formatter = '{b}{c}元 </br> 占比{d}%'
|
|
@@ -586,11 +586,11 @@
|
|
|
data = [{
|
|
|
name: '已付款',
|
|
|
value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
- type: "采购合同"
|
|
|
+ type: '采购合同'
|
|
|
}, {
|
|
|
name: '待付款',
|
|
|
value: this.chartsData[i].biViewInfoList[1].count,
|
|
|
- type: "采购合同"
|
|
|
+ type: '采购合同'
|
|
|
}]
|
|
|
text = '合同总额'
|
|
|
formatter = '{b}{c}元 </br> 占比{d}%'
|
|
@@ -603,7 +603,7 @@
|
|
|
data = [{
|
|
|
name: '已完成量',
|
|
|
value: this.chartsData[i].biViewInfoList[0].count,
|
|
|
- type: "销售合同"
|
|
|
+ type: '销售合同'
|
|
|
}, {
|
|
|
name: '待完成量',
|
|
|
value: this.chartsData[i].biViewInfoList[1].count
|