接口内容变动
This commit is contained in:
parent
fffa527ea2
commit
85db3000d9
|
@ -3,7 +3,7 @@
|
|||
<view v-if="number !== 0" class="myProjectItem" v-for="(item, index) in myProjectList" :key="index">
|
||||
<view style="display: flex; justify-content: space-between">
|
||||
<text>{{ item?.name }}</text>
|
||||
<text>单位类型:{{ item?.type.label }}</text>
|
||||
<text>单位类型:{{ item?.type?.label }}</text>
|
||||
</view>
|
||||
<view class="myProjectIndex"
|
||||
>地址:
|
||||
|
@ -18,7 +18,7 @@
|
|||
<view style="border: 1px solid #cccccc; color: #9b9b9f">
|
||||
<view style="display: flex; justify-content: space-between">
|
||||
<text>项目名称:{{ serviceProject.name }}</text>
|
||||
<text>项目类型:{{serviceProject.type.label}}</text>
|
||||
<text>项目类型:{{ serviceProject.type?.label }}</text>
|
||||
</view>
|
||||
<view style="display: flex; justify-content: space-between">
|
||||
<text>项目负责人:{{ serviceProject.projectManagerMiniProgramUserInfo?.name ? serviceProject.projectManagerMiniProgramUserInfo?.name : '无分配项目经理' }}</text>
|
||||
|
@ -26,7 +26,6 @@
|
|||
<view>责任单位:{{ serviceProject.securityUnitName }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="myProject">
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
<!-- <text>进行中</text>-->
|
||||
</view>
|
||||
<view>
|
||||
<view style="float: left;width: 50%;" class="content">
|
||||
经理名称:{{ serviceProject?.projectManagerMiniProgramUserInfo.name }}
|
||||
</view>
|
||||
<view style="float: left; width: 50%" class="content"> 经理名称:{{ serviceProject?.projectManagerMiniProgramUserInfo.name }} </view>
|
||||
<view class="content">手机号:{{ serviceProject?.projectManagerMiniProgramUserInfo.telephone }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -47,9 +45,16 @@
|
|||
<!--表格-->
|
||||
<view class="projectDetailsTableDrop">
|
||||
<view style="padding: 0 12px">项目人员</view>
|
||||
<scroll-view :scroll-y="true" style="height: 80%;" @scrolltoupper="upper" @scrolltolower="lower"
|
||||
:scroll-into-view="toView" :scroll-top="scrollTop" :refresherEnabled="true"
|
||||
@refresherrefresh="onRefresherRefresh" :refresher-triggered="isRefresher"
|
||||
<scroll-view
|
||||
:scroll-y="true"
|
||||
style="height: 80%"
|
||||
@scrolltoupper="upper"
|
||||
@scrolltolower="lower"
|
||||
:scroll-into-view="toView"
|
||||
:scroll-top="scrollTop"
|
||||
:refresherEnabled="true"
|
||||
@refresherrefresh="onRefresherRefresh"
|
||||
:refresher-triggered="isRefresher"
|
||||
>
|
||||
<view class="projectDetailsTable" v-for="(item, index) in securityUserList" :key="index">
|
||||
<view>
|
||||
|
@ -66,7 +71,7 @@
|
|||
</view>
|
||||
<view style="display: flex; justify-content: space-between">
|
||||
<text>创建时间:{{ item.createTime }}</text>
|
||||
<text>身份证:{{ item.idCard }}</text>
|
||||
<text>身份证:{{ item.idCard?.desensitizedValue }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -74,16 +79,15 @@
|
|||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import Taro, {useLoad} from "@tarojs/taro";
|
||||
import Taro, { useLoad } from '@tarojs/taro'
|
||||
import './projectDetails.scss'
|
||||
import {ref} from "vue";
|
||||
import api from "@/request/index";
|
||||
import { ref } from 'vue'
|
||||
import api from '@/request/index'
|
||||
import dayjs from 'dayjs'
|
||||
import {ServiceProjectSecurityUserPagerVo} from "@/types/subPages/projectManager/myProject";
|
||||
import { ServiceProjectSecurityUserPagerVo } from '@/types/subPages/projectManager/myProject'
|
||||
|
||||
const serviceProject = ref()
|
||||
const enterprisesUnitName = ref('')
|
||||
|
@ -91,7 +95,7 @@ const securityUserList = ref<ServiceProjectSecurityUserPagerVo[]>([])
|
|||
useLoad(async (options) => {
|
||||
enterprisesUnitName.value = options.enterprisesUnitName
|
||||
serviceProject.value = JSON.parse(options.serviceProject)
|
||||
console.log(serviceProject.value);
|
||||
console.log(serviceProject.value)
|
||||
await projectDetailsTable()
|
||||
})
|
||||
const projectDetailsTable = async () => {
|
||||
|
@ -104,8 +108,8 @@ const projectDetailsTable = async () => {
|
|||
},
|
||||
page: {
|
||||
size: 4,
|
||||
current: current.value
|
||||
}
|
||||
current: current.value,
|
||||
},
|
||||
}
|
||||
const resp = await api.post<PagerVo<ServiceProjectSecurityUserPagerVo>>('/miniProgramUser/securityUserPager', queryParams)
|
||||
securityUserList.value = [...securityUserList.value, ...resp.data!.records]
|
||||
|
|
|
@ -45,11 +45,16 @@ export interface ProgramUserInfo {
|
|||
telephone?: string
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface ServiceProjectSecurityUserPagerVo {
|
||||
createTime?: string;
|
||||
dateOfBirth?: string;
|
||||
homeAddress?: string;
|
||||
idCard?: string;
|
||||
idCard?: {
|
||||
originalValue: string;
|
||||
desensitizedValue: string;
|
||||
};
|
||||
name?: string;
|
||||
nativePlace?: string;
|
||||
remark?: string;
|
||||
|
@ -60,4 +65,5 @@ export interface ServiceProjectSecurityUserPagerVo {
|
|||
snowFlakeId: string;
|
||||
workPost?: string;
|
||||
sex: BaseEnum<number>
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue