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