需求更新

This commit is contained in:
jiayu 2025-05-16 10:09:07 +08:00
parent 00ecfff5cc
commit 496b389a7a
8 changed files with 57 additions and 20 deletions

View File

@ -93,11 +93,14 @@ if (process.env.NODE_ENV === 'development') {
} else {
// 生产环境
console.log('生产环境')
Vue.prototype.url_config = 'http://121.37.106.37:9840/'
// Vue.prototype.url_config = 'http://jxjzw.zhgdyun.com:100/' // 演示平台
// Vue.prototype.work_url = 'http://jxj.zhgdyun.com:33983'// 工作流地址 演示平台
// Vue.prototype.url_config = 'http://117.146.73.156:9809/'// 中新建项目
// Vue.prototype.work_url = 'http://117.146.73.156:19997'// 工作流地址 通用
// Vue.prototype.url_config = 'http://121.37.106.37:9809/' // 测试环境
Vue.prototype.url_config = 'http://101.43.164.214:11111/'
Vue.prototype.work_url = 'http://101.43.164.214:11131'// 工作流地址 通用
// Vue.prototype.url_config = 'http://101.43.164.214:11111/'
// Vue.prototype.work_url = 'http://101.43.164.214:11131'// 工作流地址 通用
// Vue.prototype.url_config = 'http://10.168.1.105:11111/' // 线上地址
// Vue.prototype.url_config = 'http://10.168.1.104:11111/' // 线上地址
// Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢线上地址(弃用)

View File

@ -2,9 +2,10 @@
"name" : "智慧安全", //
"appid" : "__UNI__4AA4101",
"description" : "",
"versionName" : "1.3.8",
"versionCode" : 138,
"versionName" : "1.4.1",
"versionCode" : 141,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App */
"app-plus" : {
"usingComponents" : true,

View File

@ -143,14 +143,14 @@
</view>
</view>
<view class="box operateBox">
<!-- <view class="item" @click="viewSafeMange">
<view class="item" @click="viewSafeMange">
<view class="imgBox">
<image src="/static/personManage/aqjy.png" mode="" style="width: 29px;height: 20px;"></image>
</view>
<view class="txt">
安全教育
</view>
</view> -->
</view>
<view v-if="COMPANY != 'longguang'" class="item" @click="goClockIn" v-show="mobileAttendance==0">
<view class="imgBox">
<image src="/static/personManage/ydkq.png" mode="" style="width: 22px;height: 22px;"></image>

View File

@ -49,6 +49,7 @@
</view>
</view>
</view>
<u-select v-model="showSelect" :list="list" @confirm="handleConfirm"></u-select>
</view>
</template>
@ -57,10 +58,19 @@
export default {
data() {
return {
list: [{
label: "人员ID",
value: 1,
}, {
label: "定位标签",
value: 2
}],
showSelect: false,
inputVal: "",
showValue: false,
projectSn: '',
listData: [],
scanId: null
}
},
onLoad() {
@ -101,11 +111,26 @@
uni.scanCode({
onlyFromCamera: true,
success: function(res) {
that.showDetailsBtn(res.result)
that.scanId = res.result;
const id = that.scanId.split(':')[1]
// that.showSelect = true;
that.showDetailsBtn('', id)
},
fail: function(error) {}
});
},
handleConfirm(val) {
console.info(val, '======')
let id = '';
let otherId = '';
const value = val[0].value
if(value === 1) {
id = this.scanId
} else {
otherId = this.scanId.split(':')[1]
}
this.showDetailsBtn(id, otherId)
},
//
blur() {
if (this.inputVal == '') {
@ -113,9 +138,10 @@
}
},
showDetailsBtn(id) {
showDetailsBtn(id, otherId) {
console.info(id, '=========', otherId)
uni.navigateTo({
url: './searchTeam/personDetail?id=' + id
url: './searchTeam/personDetail?id=' + id + '&otherId=' + otherId
})
},
}

View File

@ -54,7 +54,7 @@
<text class="star">*</text>培训人
</view>
<view class="uni-form-input">
<input class="uni-input" placeholder-class="cl" name="eduTeacher" :value="form.eduTeacher"
<input class="uni-input" placeholder-class="cl" name="eduTeacher" v-model="form.eduTeacher"
placeholder="请输入" />
</view>
</view>
@ -105,7 +105,7 @@
培训课时(分钟)
</view>
<view class="uni-form-input">
<input class="uni-input" placeholder-class="cl" name="eduClasshour" :value="form.eduClasshour"
<input class="uni-input" placeholder-class="cl" name="eduClasshour" v-model="form.eduClasshour"
placeholder="请输入" />
</view>
</view>
@ -445,7 +445,6 @@
})
return false;
}
if (this.form.eduClasshour==0) {
uni.showToast({
title: '培训课时不能为零',

View File

@ -339,6 +339,7 @@
pdgroundColor: '#000',
qrUrl: '此二维码仅供展示',
workerId: 0,
otherId: null,
operateType: false,
originWorkerInfo: {}, //
workerInfo: {}, //
@ -363,15 +364,16 @@
},
onLoad(options) {
this.workerId = options.id;
this.otherId = options.otherId;
this.btnAuth = this.checkBtnPermission({
key: 'assist_attendance',
menuPath: '/project/labor/attendanceManage'
})
// this.getDetailsData();
},
onShow() {
this.getDetailsData();
this.getSafeScoreDetail();
async onShow() {
await this.getDetailsData();
await this.getSafeScoreDetail();
},
methods: {
goTo() {
@ -441,18 +443,23 @@
},
//
getDetailsData() {
console.info("otherId", this.otherId)
this.sendRequest({
url: 'xmgl/workerInfo/viewWorkerInfoDetail',
method: 'post',
data: {
workerId: this.workerId,
workerId: this.workerId || undefined,
locationCardno: this.otherId || undefined,
projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn
},
success: res => {
console.log('res', res)
if (res.code == 200) {
this.originWorkerInfo = {
...res.result.workerInfo
};
this.workerInfo = res.result.workerInfo;
this.workerId = this.workerInfo.id;
console.info(res.result)
this.productRecord(res.result.workerInfo)
//

View File

@ -149,7 +149,7 @@
closeBle
} from '@/static/js/BLEConn.js'
import {
getBottomLevelData
getBottomLevelData, exitApp
} from "@/utils/tool.js"
export default {

View File

@ -6,8 +6,8 @@
</view>
</headers>
<!-- <video class="videoBox" id="myVideo" :custom-cache="false" :src="url" controls autoplay></video> -->
<!-- 外网IP地址访问视频监控 -->
<view v-show="isYsy && playUrlFilter && accessToken" :style="{width: '100%', height: '225px'}">
<video v-if="!isYsy" class="videoBox" id="myVideo" :custom-cache="false" :src="playUrlFilter" controls autoplay></video>
<view v-if="isYsy && playUrlFilter && accessToken" :style="{width: '100%', height: '225px'}">
<!-- H5环境使用ezuikit -->
<!-- #ifdef H5 -->
<iframe :src="ysyPlayUrl" :style="webviewStyles" frameborder="0" :scrolling="'no'"></iframe>
@ -21,7 +21,6 @@
></web-view>
<!-- #endif -->
</view>
<video v-show="!isYsy" class="videoBox" id="myVideo" :custom-cache="false" :src="playUrlFilter" controls autoplay></video>
<view class="videoName">
{{videoInfo.videoName}}
<button v-if="videoInfo.videoType==3" type="primary" class="changeBtn btn" @click="changeStreamFn">{{streamType==1?'切换到主码流':'切换到子码流'}}</button>
@ -72,6 +71,7 @@
};
},
onLoad(options) {
this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn;
//videoType 123ISC456
// this.url = options.url
this.videoInfo=uni.getStorageSync('videoInfo')
@ -100,6 +100,7 @@
return this.url
},
isYsy(){
console.info(this.videoInfo?.videoType, '======')
return this.videoInfo?.videoType == 1
},
ysyPlayUrl() {