bug修复
This commit is contained in:
parent
76d7d63731
commit
be2c78d469
|
|
@ -1,5 +1,6 @@
|
||||||
import request from '@/utils/request_new'
|
import request from '@/utils/request_new'
|
||||||
import request_yn from '@/utils/request_new_yn'
|
import request_yn from '@/utils/request_new_yn'
|
||||||
|
import request_yn_new from '@/utils/request_new_yn_home' // 测试环境 1918
|
||||||
|
|
||||||
// 获取首页数据
|
// 获取首页数据
|
||||||
export function getHomePageListApi(data) {
|
export function getHomePageListApi(data) {
|
||||||
|
|
@ -19,7 +20,7 @@ export function getHomePageSelectApi() {
|
||||||
}
|
}
|
||||||
// 首页二级页面--作业计划详情-作业计划列表
|
// 首页二级页面--作业计划详情-作业计划列表
|
||||||
export function getWorkPlanDetailsApi(data) {
|
export function getWorkPlanDetailsApi(data) {
|
||||||
return request_yn({
|
return request_yn_new({
|
||||||
url: '/ynPlan/home/getjhxxq',
|
url: '/ynPlan/home/getjhxxq',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
|
|
@ -27,7 +28,7 @@ export function getWorkPlanDetailsApi(data) {
|
||||||
}
|
}
|
||||||
// 首页二级页面--作业计划详情-作业人员及持证信息
|
// 首页二级页面--作业计划详情-作业人员及持证信息
|
||||||
export function getWorkPersonnelApi(data) {
|
export function getWorkPersonnelApi(data) {
|
||||||
return request_yn({
|
return request_yn_new({
|
||||||
url: '/ynPlan/home/getDayUser',
|
url: '/ynPlan/home/getDayUser',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
|
|
@ -35,7 +36,7 @@ export function getWorkPersonnelApi(data) {
|
||||||
}
|
}
|
||||||
// 首页二级页面--作业计划详情-作业票、站班会照片
|
// 首页二级页面--作业计划详情-作业票、站班会照片
|
||||||
export function getStandGuardImgApi(data) {
|
export function getStandGuardImgApi(data) {
|
||||||
return request_yn({
|
return request_yn_new({
|
||||||
url: '/ynPlan/home/getZbhPhotos',
|
url: '/ynPlan/home/getZbhPhotos',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
|
|
@ -43,7 +44,7 @@ export function getStandGuardImgApi(data) {
|
||||||
}
|
}
|
||||||
// 首页二级页面--作业计划详情-持证信息详情
|
// 首页二级页面--作业计划详情-持证信息详情
|
||||||
export function getHoldCardInfoApi(data) {
|
export function getHoldCardInfoApi(data) {
|
||||||
return request_yn({
|
return request_yn_new({
|
||||||
url: '/ynPlan/home/getDayUserCZ',
|
url: '/ynPlan/home/getDayUserCZ',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
<view @tap="onPreviewImage(index)" v-for="(item, index) in standGuardList" :key="index">
|
<view @tap="onPreviewImage(index)" v-for="(item, index) in standGuardList" :key="index">
|
||||||
<image
|
<image
|
||||||
class="image-content"
|
class="image-content"
|
||||||
:src="`${config.loginBaseUrl}ynPlan${item.imgPath}`"
|
:src="`http://192.168.0.14:19191/ynPlanApp${item.imgPath}`"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
lazy-load="true"
|
lazy-load="true"
|
||||||
></image>
|
></image>
|
||||||
|
|
@ -226,11 +226,12 @@ export default {
|
||||||
|
|
||||||
this.workPersonList = res.data
|
this.workPersonList = res.data
|
||||||
console.log('人员信息---', res)
|
console.log('人员信息---', res)
|
||||||
|
console.log('站班会照片', response)
|
||||||
this.holdCardList = res.datac
|
this.holdCardList = res.datac
|
||||||
this.standGuardList = response.data
|
this.standGuardList = response.data
|
||||||
|
|
||||||
this.imgList = this.standGuardList.map(e => {
|
this.imgList = this.standGuardList.map(e => {
|
||||||
return `${config.loginBaseUrl}ynPlan${e.imgPath}`
|
return `http://192.168.0.14:19191/ynPlanApp${e.imgPath}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/* 点击作业计划时查询作业人员 */
|
/* 点击作业计划时查询作业人员 */
|
||||||
|
|
|
||||||
|
|
@ -465,6 +465,7 @@
|
||||||
v-for="item in projectListSel"
|
v-for="item in projectListSel"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@tap="onChangeProjectInPopup(item)"
|
@tap="onChangeProjectInPopup(item)"
|
||||||
|
style="overflow: hidden"
|
||||||
>
|
>
|
||||||
{{ item.text }}
|
{{ item.text }}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -548,7 +549,9 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="view-project-list">
|
<view class="view-project-list">
|
||||||
<scroll-view :scroll-y="true" class="view-project-item">
|
<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>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -1361,7 +1364,7 @@ export default {
|
||||||
},
|
},
|
||||||
/* 获取审核人接口 */
|
/* 获取审核人接口 */
|
||||||
async getAUditingUserInfoData() {
|
async getAUditingUserInfoData() {
|
||||||
const res = await getAUditingUserInfoApi({ name: '' })
|
const res = await getAUditingUserInfoApi({ name: this.searchUserName })
|
||||||
this.auditingUserList = res.map(e => {
|
this.auditingUserList = res.map(e => {
|
||||||
this.$set(e, 'isChecked', false)
|
this.$set(e, 'isChecked', false)
|
||||||
return e
|
return e
|
||||||
|
|
@ -2137,6 +2140,77 @@ export default {
|
||||||
border-bottom: 1px solid #ccc;
|
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 {
|
.style_text_1 {
|
||||||
color: #0bd51c;
|
color: #0bd51c;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -616,6 +616,7 @@ export default {
|
||||||
async getAUditingUserInfoData() {
|
async getAUditingUserInfoData() {
|
||||||
const res = await getAUditingUserInfoApi({ name: this.searchUserName })
|
const res = await getAUditingUserInfoApi({ name: this.searchUserName })
|
||||||
|
|
||||||
|
console.log(res, '搜索结果')
|
||||||
this.auditingUserList = res.map(e => {
|
this.auditingUserList = res.map(e => {
|
||||||
this.$set(e, 'isChecked', false)
|
this.$set(e, 'isChecked', false)
|
||||||
return e
|
return e
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ export default {
|
||||||
this.standGuardList = response.data
|
this.standGuardList = response.data
|
||||||
|
|
||||||
this.imgList = this.standGuardList.map(e => {
|
this.imgList = this.standGuardList.map(e => {
|
||||||
return `${config.loginBaseUrl}ynPlan${e.imgPath}`
|
return `http://192.168.0.14:19191/ynPlanApp${e.imgPath}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/* 点击作业计划时查询作业人员 */
|
/* 点击作业计划时查询作业人员 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue