bug修复

This commit is contained in:
BianLzhaoMin 2024-11-21 16:31:37 +08:00
parent 76d7d63731
commit be2c78d469
5 changed files with 86 additions and 9 deletions

View File

@ -1,5 +1,6 @@
import request from '@/utils/request_new'
import request_yn from '@/utils/request_new_yn'
import request_yn_new from '@/utils/request_new_yn_home' // 测试环境 1918
// 获取首页数据
export function getHomePageListApi(data) {
@ -19,7 +20,7 @@ export function getHomePageSelectApi() {
}
// 首页二级页面--作业计划详情-作业计划列表
export function getWorkPlanDetailsApi(data) {
return request_yn({
return request_yn_new({
url: '/ynPlan/home/getjhxxq',
method: 'post',
data
@ -27,7 +28,7 @@ export function getWorkPlanDetailsApi(data) {
}
// 首页二级页面--作业计划详情-作业人员及持证信息
export function getWorkPersonnelApi(data) {
return request_yn({
return request_yn_new({
url: '/ynPlan/home/getDayUser',
method: 'post',
data
@ -35,7 +36,7 @@ export function getWorkPersonnelApi(data) {
}
// 首页二级页面--作业计划详情-作业票、站班会照片
export function getStandGuardImgApi(data) {
return request_yn({
return request_yn_new({
url: '/ynPlan/home/getZbhPhotos',
method: 'post',
data
@ -43,7 +44,7 @@ export function getStandGuardImgApi(data) {
}
// 首页二级页面--作业计划详情-持证信息详情
export function getHoldCardInfoApi(data) {
return request_yn({
return request_yn_new({
url: '/ynPlan/home/getDayUserCZ',
method: 'post',
data

View File

@ -92,7 +92,7 @@
<view @tap="onPreviewImage(index)" v-for="(item, index) in standGuardList" :key="index">
<image
class="image-content"
:src="`${config.loginBaseUrl}ynPlan${item.imgPath}`"
:src="`http://192.168.0.14:19191/ynPlanApp${item.imgPath}`"
mode="scaleToFill"
lazy-load="true"
></image>
@ -226,11 +226,12 @@ export default {
this.workPersonList = res.data
console.log('人员信息---', res)
console.log('站班会照片', response)
this.holdCardList = res.datac
this.standGuardList = response.data
this.imgList = this.standGuardList.map(e => {
return `${config.loginBaseUrl}ynPlan${e.imgPath}`
return `http://192.168.0.14:19191/ynPlanApp${e.imgPath}`
})
},
/* 点击作业计划时查询作业人员 */

View File

@ -465,6 +465,7 @@
v-for="item in projectListSel"
:key="item.value"
@tap="onChangeProjectInPopup(item)"
style="overflow: hidden"
>
{{ item.text }}
</view>
@ -548,7 +549,9 @@
</view>
<view class="view-project-list">
<scroll-view :scroll-y="true" class="view-project-item">
<view v-for="item in workWaitProjectList" :key="item.id">{{ item.proName }}</view>
<view v-for="item in workWaitProjectList" :key="item.id" @tap="onViewAuditingDetails(item)">
{{ item.proName }}
</view>
</scroll-view>
</view>
</view>
@ -1361,7 +1364,7 @@ export default {
},
/* 获取审核人接口 */
async getAUditingUserInfoData() {
const res = await getAUditingUserInfoApi({ name: '' })
const res = await getAUditingUserInfoApi({ name: this.searchUserName })
this.auditingUserList = res.map(e => {
this.$set(e, 'isChecked', false)
return e
@ -2137,6 +2140,77 @@ export default {
border-bottom: 1px solid #ccc;
}
}
.popup-view {
height: 60vh;
width: 95vw;
display: flex;
flex-direction: column;
background-color: #ccc;
.popup-view-title {
width: 94%;
margin: 0 auto;
padding: 30rpx 0;
display: flex;
justify-content: space-between;
align-items: center;
text {
color: #333;
font-size: 38rpx;
font-weight: bold;
}
}
.search-container {
width: 100%;
padding: 28rpx 0;
background-color: #fff;
.search-box {
width: 94%;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
.view-search-ipt {
width: 65%;
}
.view-search-btn {
width: 27%;
height: 68rpx;
text-align: center;
line-height: 68rpx;
color: #fff;
background-color: #00337a;
border-radius: 12rpx;
}
}
}
.view-project-list {
flex: 1;
overflow: hidden;
.view-project-item {
width: 96%;
height: 96%;
margin: 2% auto;
background-color: #fff;
view {
width: 100%;
padding-top: 13rpx;
padding-bottom: 6rpx;
text-align: center;
border-bottom: 1px solid #ccc;
box-sizing: border-box;
}
}
}
}
.style_text_1 {
color: #0bd51c;
}

View File

@ -616,6 +616,7 @@ export default {
async getAUditingUserInfoData() {
const res = await getAUditingUserInfoApi({ name: this.searchUserName })
console.log(res, '搜索结果')
this.auditingUserList = res.map(e => {
this.$set(e, 'isChecked', false)
return e

View File

@ -285,7 +285,7 @@ export default {
this.standGuardList = response.data
this.imgList = this.standGuardList.map(e => {
return `${config.loginBaseUrl}ynPlan${e.imgPath}`
return `http://192.168.0.14:19191/ynPlanApp${e.imgPath}`
})
},
/* 点击作业计划时查询作业人员 */