检测优化
This commit is contained in:
parent
2fc6825cf5
commit
99ee9ac87e
@ -60,11 +60,6 @@
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.interval = setInterval(() => {
|
||||
// this.getbottom()
|
||||
}, 3000);
|
||||
|
||||
console.log(this.aindex);
|
||||
this.aindex = this.msg
|
||||
},
|
||||
methods:{
|
||||
|
@ -1,9 +1,10 @@
|
||||
// 应用全局配置
|
||||
module.exports = {
|
||||
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
||||
baseUrl: 'http://192.168.31.130:48080/admin-api',
|
||||
baseUrl: 'http://127.0.0.1:48080/admin-api',
|
||||
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
||||
wsUrl: 'ws://127.0.0.1:48080',
|
||||
// 应用信息
|
||||
appInfo: {
|
||||
// 应用名称
|
||||
|
5
main.js
5
main.js
@ -18,6 +18,9 @@ let timerId;
|
||||
export function startSocketConnect(userId) {
|
||||
SocketTask = null
|
||||
SocketTask = connect(userId);
|
||||
Vue.prototype.$msgSocket = SocketTask
|
||||
console.log(SocketTask,211221);
|
||||
console.log(uni.getStorageSync('userId'),21212);
|
||||
if (!timerId && uni.getStorageSync('userId')) {
|
||||
timerId = setInterval(() => {
|
||||
sendSocketMessage(SocketTask)
|
||||
@ -31,7 +34,7 @@ export function closeSocketMain(userId) {
|
||||
}
|
||||
Vue.prototype.$startSocketConnect = startSocketConnect
|
||||
Vue.prototype.$closeSocketMain = closeSocketMain
|
||||
Vue.prototype.$msgSocket = SocketTask
|
||||
|
||||
|
||||
Vue.prototype.$imgeUrl = 'http://www.nuoyunr.com/lananRsc';
|
||||
// #ifndef VUE3
|
||||
|
@ -222,7 +222,7 @@
|
||||
uni.setStorageSync('roleSelect','worker')
|
||||
uni.setStorageSync('userId',res.data.user.id)
|
||||
uni.hideLoading();
|
||||
this.$startSocketConnect()
|
||||
this.$startSocketConnect(res.data.user.id)
|
||||
uni.redirectTo({
|
||||
url:'/pages/staff/staff'
|
||||
})
|
||||
|
@ -93,14 +93,22 @@
|
||||
<view class="x-box">
|
||||
<view class="h-title" style="display: flex;align-items: center;justify-content: space-between;">
|
||||
<view class="qiu_">{{index +1}}</view>
|
||||
<text>{{ item.title }}</text>
|
||||
<text style="width: 46%;" >{{ item.title }}</text>
|
||||
<text class="times">{{ item.createTime }}</text>
|
||||
</view>
|
||||
<view class="">
|
||||
<text>{{ item.content }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<view class="xb_" v-if="index != detailData.stepInfos.length - 1 ">↓ </view>
|
||||
<text>{{ item.content }}</text>
|
||||
<view v-if="item.images" >
|
||||
<view v-for="it in item.images.split(',')">
|
||||
<image :src="baseImageUrl+'/'+it" mode=""></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="annniu" v-if="detailData.status&&detailData.status == 0&&workNodeStatus == 1"
|
||||
@click="hge = true;getProject()">
|
||||
@ -659,7 +667,7 @@
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #F4F4F4;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.top-heder {
|
||||
@ -699,6 +707,11 @@
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
background: white;
|
||||
padding-bottom: 0px;
|
||||
padding-top: 0px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
@ -829,6 +842,7 @@
|
||||
}
|
||||
|
||||
.times {
|
||||
width: 30%;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
@ -1071,11 +1085,13 @@
|
||||
}
|
||||
|
||||
.xb_ {
|
||||
width: 35px;
|
||||
|
||||
width: 13%;
|
||||
height: 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
padding-left: 10px;
|
||||
color: #0D2E8D;
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
|
@ -124,8 +124,12 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(6060606);
|
||||
this.$startSocketConnect(uni.getStorageSync('userId'))
|
||||
this.msgInfo()
|
||||
},
|
||||
onShow() {
|
||||
console.log( this.$msgSocket,131);
|
||||
this.getList()
|
||||
},
|
||||
watch: {
|
||||
|
Loading…
Reference in New Issue
Block a user