Compare commits
No commits in common. "c4b2b6b57848cdc09517b1ab86c402d6456668a0" and "47afb8a442b89e73d81628b78cc4d45f76fed4b9" have entirely different histories.
c4b2b6b578
...
47afb8a442
|
@ -1,45 +1,38 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="myProject">
|
<view class="myProject">
|
||||||
<view v-if="number !== 0" class="myProjectItem" v-for="(item, index) in myProjectList" :key="index">
|
<view 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>进行中</text>-->
|
<!--<text>进行中</text>-->
|
||||||
</view>
|
</view>
|
||||||
<view class="myProjectIndex"
|
<view class="myProjectIndex">地址:
|
||||||
>地址:
|
|
||||||
<text>{{ item?.provinceName }}{{ item.cityName }}{{ item.districtsName }}{{ item.streetName }}</text>
|
<text>{{ item?.provinceName }}{{ item.cityName }}{{ item.districtsName }}{{ item.streetName }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex; justify-content: space-between">
|
<view style="display: flex;justify-content: space-between">
|
||||||
<text>联系人:{{ item?.contactPersonInfo.name }}</text>
|
<text>联系人:{{ item?.contactPersonInfo.name }}</text>
|
||||||
<text>电话:{{ item?.contactPersonInfo.telephone }}</text>
|
<text>电话:{{ item?.contactPersonInfo.telephone }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="project">
|
<view class="project">
|
||||||
<view @click="projectClick(item?.name, serviceProject)" v-for="(serviceProject, index) in item.serviceProjectList" :key="index">
|
<view @click="projectClick(item?.name,serviceProject)" v-for="(serviceProject,index) in item.serviceProjectList"
|
||||||
|
:key="index">
|
||||||
{{ serviceProject.name }}
|
{{ serviceProject.name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="myProject">
|
|
||||||
<nut-empty image="empty" description="暂无项目">
|
|
||||||
<div style="margin-top: 10px"></div>
|
|
||||||
</nut-empty>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import api from '@/request/index'
|
import api from "@/request/index";
|
||||||
import { onMounted, ref } from 'vue'
|
import {onMounted, ref} from "vue";
|
||||||
import Taro from '@tarojs/taro'
|
import Taro from "@tarojs/taro";
|
||||||
import './myEnterprisesUnit.scss'
|
import './myEnterprisesUnit.scss'
|
||||||
import { MyProjectList, ServiceProjectList } from '@/types/subPages/projectManager/myProject'
|
import {MyProjectList, ServiceProjectList} from "@/types/subPages/projectManager/myProject";
|
||||||
|
|
||||||
const myProjectList = ref<MyProjectList[]>()
|
const myProjectList = ref<MyProjectList[]>()
|
||||||
const number = ref(0)
|
|
||||||
const getMyServiceProject = async () => {
|
const getMyServiceProject = async () => {
|
||||||
const resp = await api.get<MyProjectList[]>(`/policeIndex/getUnitServiceProjectList`)
|
const resp = await api.get<MyProjectList[]>(`/policeIndex/getUnitServiceProjectList`)
|
||||||
myProjectList.value = resp.data
|
myProjectList.value = resp.data
|
||||||
number.value = resp.data?.length || 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const projectClick = (enterprisesUnitName: string, serviceProject: ServiceProjectList) => {
|
const projectClick = (enterprisesUnitName: string, serviceProject: ServiceProjectList) => {
|
||||||
|
|
Loading…
Reference in New Issue