This commit is contained in:
BianLzhaoMin 2025-08-22 15:29:40 +08:00
parent 4a60a16642
commit 6ff065f24f
7 changed files with 1123 additions and 3 deletions

View File

@ -66,3 +66,11 @@ export const getTeamProjectListAPI = (data) => {
params: data,
})
}
// 首页 三级页面 班组信息列表 (人员列表)
export const getWorkerProjectListAPI = (data) => {
return request({
url: '/bmw/homePageSub/getWorkerMsg',
method: 'GET',
params: data,
})
}

View File

@ -65,6 +65,7 @@ export const constantRoutes = [
path: '',
component: Layout,
redirect: 'index',
permissions: ['home:page:query'],
children: [
{
path: 'index',

View File

@ -0,0 +1,279 @@
<template>
<!-- item4 在用班组 -->
<div class="item-four">
<!-- 班组信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigThree"
@closeDialogOuter="handleCloseDialogOuterThree"
>
<template slot="outerContent">
<TableModel
ref="teamTableRef"
:formLabel="teamFormLabel"
:columnsList="teamColumnsList"
:sendParams="{ proId: proId, subId: subId }"
:request-api="getTeamProjectListAPI"
>
<template
:slot="item"
slot-scope="{ data }"
v-for="item in commonSlots"
>
<template>
<CommonTableSlots
:key="item"
:rowData="data"
:slotName="item"
@handleCheckPersonCount="handleCheckPersonCount"
/>
</template>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 人员信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigFour"
@closeDialogOuter="handleCloseDialogOuterFour"
>
<template slot="outerContent">
<FilterQueryModel
:isPersonFilter="true"
@handelSettingQuery="handelSettingQuery"
/>
<TableModel
ref="personTableRef"
:formLabel="personFormLabel"
:columnsList="personColumnsList"
:testTableList="personTestTableList"
>
<!-- 人员姓名 -->
<template slot="userName" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckUserName(data)"
>
{{ data.userName }}
</span>
</template>
<!-- 红绿灯状态 -->
<template slot="redLightStatus">
<span
style="
color: #ff0000;
font-size: 14px;
cursor: pointer;
"
>
红灯
</span>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 人员详情弹框 -->
<DialogModel
:dialogConfig="dialogConfigFive"
@closeDialogOuter="handleCloseDialogOuterFive"
>
<template slot="outerContent">
<PersonDetails />
</template>
</DialogModel>
</div>
</template>
<script>
import TableModel from '@/components/TableModel'
import DialogModel from '@/components/DialogModel'
import FilterQueryModel from '@/components/FilterQueryModel'
import CommonTableSlots from './common-table-slots'
import PersonDetails from './person-details'
import {
getTotalProjectListAPI,
getLotProjectListAPI,
getSubProjectListAPI,
getTeamProjectListAPI,
} from '@/api/home-index/index'
import {
//
allProjectFormLabel,
allProjectColumnsList,
allProjectTestTableList,
//
childColumnsList,
childTestTableList,
//
subFormLabel,
subColumnsList,
subTestTableList,
//
teamFormLabel,
teamColumnsList,
teamTestTableList,
//
personFormLabel,
personColumnsList,
personTestTableList,
//
dialogConfig,
dialogConfigTwo,
dialogConfigThree,
dialogConfigFour,
dialogConfigFive,
} from './config'
export default {
name: 'ItemFour',
props: {
selectCompany: {
type: [Number, String],
default: '',
},
},
components: {
TableModel,
DialogModel,
FilterQueryModel,
CommonTableSlots,
PersonDetails,
},
data() {
return {
allProjectFormLabel,
allProjectColumnsList,
allProjectTestTableList,
childColumnsList,
childTestTableList,
subFormLabel,
subColumnsList,
subTestTableList,
teamFormLabel,
teamColumnsList,
teamTestTableList,
personFormLabel,
personColumnsList,
personTestTableList,
dialogConfig,
dialogConfigTwo,
dialogConfigThree,
dialogConfigFour,
dialogConfigFive,
getTotalProjectListAPI,
getLotProjectListAPI,
getSubProjectListAPI,
getTeamProjectListAPI,
queryParams: {},
commonSlots: [
'onSiteCount',
'todayAttendanceCount',
'redLightCount',
],
mainProId: '', // id
proId: '', // id
subId: '', // id
}
},
methods: {
//
onHandleCheckProjectCount(data) {
console.log(data)
this.mainProId = data.mainProId
this.dialogConfig.outerTitle = '工程信息'
this.dialogConfig.outerVisible = true
},
//
handleExportAllProject(queryParams) {
this.download(
'/bmw/homePageSub/mainProExport',
{
...queryParams,
},
`总工程列表.xlsx`,
)
},
//
handleCloseDialogOuter(value) {
this.dialogConfig.outerVisible = value
},
//
handleCloseDialogOuterTwo(value) {
this.dialogConfigTwo.outerVisible = value
},
//
handleCloseDialogOuterThree(value) {
this.dialogConfigThree.outerVisible = value
},
//
handleCloseDialogOuterFour(value) {
this.dialogConfigFour.outerVisible = value
},
//
handleCloseDialogOuterFive(value) {
this.dialogConfigFive.outerVisible = value
},
//
handelSettingQuery(query) {
console.log('筛选条件', query)
this.queryParams = query
},
//
onHandleCheckSubCount(data) {
console.log('查看分包数量', data)
this.proId = data.proId
this.dialogConfigTwo.outerTitle = '分包信息'
this.dialogConfigTwo.outerVisible = true
},
//
onHandleCheckTeamCount(data) {
console.log('查看班组数量', data)
this.proId = data.proId
this.subId = ''
this.dialogConfigThree.outerTitle = '班组信息'
this.dialogConfigThree.outerVisible = true
},
//
onHandleCheckTeamCountInSub(data) {
this.subId = data.subId
this.dialogConfigThree.outerTitle = '班组信息'
this.dialogConfigThree.outerVisible = true
},
//
handleCheckPersonCount(data) {
console.log('查看人员信息', data)
this.dialogConfigFour.outerTitle = '人员信息'
this.dialogConfigFour.outerVisible = true
},
//
onHandleCheckUserName(data) {
console.log('查看人员详情', data)
this.dialogConfigFive.outerTitle = '人员详情'
this.dialogConfigFive.outerVisible = true
},
},
watch: {
selectCompany: {
handler() {
// this.getTotalProjectList()
this.$refs.allProjectTableRef.getTableList()
},
deep: true,
},
},
}
</script>

View File

@ -0,0 +1,320 @@
<template>
<!-- item3 在用分包单位 -->
<div class="item-three">
<!-- 分包信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigTwo"
@closeDialogOuter="handleCloseDialogOuterTwo"
>
<!-- 外层弹框 -->
<template slot="outerContent">
<TableModel
ref="subTableRef"
:formLabel="subFormLabel"
:columnsList="subColumnsList"
:request-api="getSubProjectListAPI"
:sendParams="{ proId: proId }"
>
<!-- 在场班组数量 -->
<template slot="teamCount" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckTeamCountInSub(data)"
>
{{ data.teamCount }}
</span>
</template>
<template
:slot="item"
slot-scope="{ data }"
v-for="item in commonSlots"
>
<template>
<CommonTableSlots
:key="item"
:rowData="data"
:slotName="item"
@handleCheckPersonCount="handleCheckPersonCount"
/>
</template>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 班组信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigThree"
@closeDialogOuter="handleCloseDialogOuterThree"
>
<template slot="outerContent">
<TableModel
ref="teamTableRef"
:formLabel="teamFormLabel"
:columnsList="teamColumnsList"
:sendParams="{ proId: proId, subId: subId }"
:request-api="getTeamProjectListAPI"
>
<template
:slot="item"
slot-scope="{ data }"
v-for="item in commonSlots"
>
<template>
<CommonTableSlots
:key="item"
:rowData="data"
:slotName="item"
@handleCheckPersonCount="handleCheckPersonCount"
/>
</template>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 人员信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigFour"
@closeDialogOuter="handleCloseDialogOuterFour"
>
<template slot="outerContent">
<FilterQueryModel
:isPersonFilter="true"
@handelSettingQuery="handelSettingQuery"
/>
<TableModel
ref="personTableRef"
:formLabel="personFormLabel"
:columnsList="personColumnsList"
:testTableList="personTestTableList"
>
<!-- 人员姓名 -->
<template slot="userName" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckUserName(data)"
>
{{ data.userName }}
</span>
</template>
<!-- 红绿灯状态 -->
<template slot="redLightStatus">
<span
style="
color: #ff0000;
font-size: 14px;
cursor: pointer;
"
>
红灯
</span>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 人员详情弹框 -->
<DialogModel
:dialogConfig="dialogConfigFive"
@closeDialogOuter="handleCloseDialogOuterFive"
>
<template slot="outerContent">
<PersonDetails />
</template>
</DialogModel>
</div>
</template>
<script>
import TableModel from '@/components/TableModel'
import DialogModel from '@/components/DialogModel'
import FilterQueryModel from '@/components/FilterQueryModel'
import CommonTableSlots from './common-table-slots'
import PersonDetails from './person-details'
import {
getTotalProjectListAPI,
getLotProjectListAPI,
getSubProjectListAPI,
getTeamProjectListAPI,
} from '@/api/home-index/index'
import {
//
allProjectFormLabel,
allProjectColumnsList,
allProjectTestTableList,
//
childColumnsList,
childTestTableList,
//
subFormLabel,
subColumnsList,
subTestTableList,
//
teamFormLabel,
teamColumnsList,
teamTestTableList,
//
personFormLabel,
personColumnsList,
personTestTableList,
//
dialogConfig,
dialogConfigTwo,
dialogConfigThree,
dialogConfigFour,
dialogConfigFive,
} from './config'
export default {
name: 'ItemThree',
props: {
selectCompany: {
type: [Number, String],
default: '',
},
},
components: {
TableModel,
DialogModel,
FilterQueryModel,
CommonTableSlots,
PersonDetails,
},
data() {
return {
allProjectFormLabel,
allProjectColumnsList,
allProjectTestTableList,
childColumnsList,
childTestTableList,
subFormLabel,
subColumnsList,
subTestTableList,
teamFormLabel,
teamColumnsList,
teamTestTableList,
personFormLabel,
personColumnsList,
personTestTableList,
dialogConfig,
dialogConfigTwo,
dialogConfigThree,
dialogConfigFour,
dialogConfigFive,
getTotalProjectListAPI,
getLotProjectListAPI,
getSubProjectListAPI,
getTeamProjectListAPI,
queryParams: {},
commonSlots: [
'onSiteCount',
'todayAttendanceCount',
'redLightCount',
],
mainProId: '', // id
proId: '', // id
subId: '', // id
}
},
methods: {
//
onHandleCheckProjectCount(data) {
console.log(data)
this.mainProId = data.mainProId
this.dialogConfig.outerTitle = '工程信息'
this.dialogConfig.outerVisible = true
},
//
handleExportAllProject(queryParams) {
this.download(
'/bmw/homePageSub/mainProExport',
{
...queryParams,
},
`总工程列表.xlsx`,
)
},
//
handleCloseDialogOuter(value) {
this.dialogConfig.outerVisible = value
},
//
handleCloseDialogOuterTwo(value) {
this.dialogConfigTwo.outerVisible = value
},
//
handleCloseDialogOuterThree(value) {
this.dialogConfigThree.outerVisible = value
},
//
handleCloseDialogOuterFour(value) {
this.dialogConfigFour.outerVisible = value
},
//
handleCloseDialogOuterFive(value) {
this.dialogConfigFive.outerVisible = value
},
//
handelSettingQuery(query) {
console.log('筛选条件', query)
this.queryParams = query
},
//
onHandleCheckSubCount(data) {
console.log('查看分包数量', data)
this.proId = data.proId
this.dialogConfigTwo.outerTitle = '分包信息'
this.dialogConfigTwo.outerVisible = true
},
//
onHandleCheckTeamCount(data) {
console.log('查看班组数量', data)
this.proId = data.proId
this.subId = ''
this.dialogConfigThree.outerTitle = '班组信息'
this.dialogConfigThree.outerVisible = true
},
//
onHandleCheckTeamCountInSub(data) {
this.subId = data.subId
this.dialogConfigThree.outerTitle = '班组信息'
this.dialogConfigThree.outerVisible = true
},
//
handleCheckPersonCount(data) {
console.log('查看人员信息', data)
this.dialogConfigFour.outerTitle = '人员信息'
this.dialogConfigFour.outerVisible = true
},
//
onHandleCheckUserName(data) {
console.log('查看人员详情', data)
this.dialogConfigFive.outerTitle = '人员详情'
this.dialogConfigFive.outerVisible = true
},
},
watch: {
selectCompany: {
handler() {
// this.getTotalProjectList()
this.$refs.allProjectTableRef.getTableList()
},
deep: true,
},
},
}
</script>

View File

@ -0,0 +1,371 @@
<template>
<!-- item2 标段工程信息 -->
<div class="item-two">
<!-- 标段工程信息-->
<DialogModel
:dialogConfig="dialogConfig"
@closeDialogOuter="handleCloseDialogOuter"
>
<!-- 外层弹框 -->
<template slot="outerContent">
<FilterQueryModel @handelSettingQuery="handelSettingQuery" />
<TableModel
ref="lotProjectTableRef"
:formLabel="allProjectFormLabel"
:columnsList="childColumnsList"
:request-api="getLotProjectListAPI"
:sendParams="{ mainProId: mainProId }"
>
<!-- 分包数量 -->
<template slot="subNum" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckSubCount(data)"
>
{{ data.subNum }}
</span>
</template>
<!-- 班组数量 -->
<template slot="teamNum" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckTeamCount(data)"
>
{{ data.teamNum }}
</span>
</template>
<template
:slot="item"
slot-scope="{ data }"
v-for="item in commonSlots"
>
<template>
<CommonTableSlots
:key="item"
:rowData="data"
:slotName="item"
@handleCheckPersonCount="handleCheckPersonCount"
/>
</template>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 分包信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigTwo"
@closeDialogOuter="handleCloseDialogOuterTwo"
>
<!-- 外层弹框 -->
<template slot="outerContent">
<TableModel
ref="subTableRef"
:formLabel="subFormLabel"
:columnsList="subColumnsList"
:request-api="getSubProjectListAPI"
:sendParams="{ proId: proId }"
>
<!-- 在场班组数量 -->
<template slot="teamCount" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckTeamCountInSub(data)"
>
{{ data.teamCount }}
</span>
</template>
<template
:slot="item"
slot-scope="{ data }"
v-for="item in commonSlots"
>
<template>
<CommonTableSlots
:key="item"
:rowData="data"
:slotName="item"
@handleCheckPersonCount="handleCheckPersonCount"
/>
</template>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 班组信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigThree"
@closeDialogOuter="handleCloseDialogOuterThree"
>
<template slot="outerContent">
<TableModel
ref="teamTableRef"
:formLabel="teamFormLabel"
:columnsList="teamColumnsList"
:sendParams="{ proId: proId, subId: subId }"
:request-api="getTeamProjectListAPI"
>
<template
:slot="item"
slot-scope="{ data }"
v-for="item in commonSlots"
>
<template>
<CommonTableSlots
:key="item"
:rowData="data"
:slotName="item"
@handleCheckPersonCount="handleCheckPersonCount"
/>
</template>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 人员信息弹框 -->
<DialogModel
:dialogConfig="dialogConfigFour"
@closeDialogOuter="handleCloseDialogOuterFour"
>
<template slot="outerContent">
<FilterQueryModel
:isPersonFilter="true"
@handelSettingQuery="handelSettingQuery"
/>
<TableModel
ref="personTableRef"
:formLabel="personFormLabel"
:columnsList="personColumnsList"
:testTableList="personTestTableList"
>
<!-- 人员姓名 -->
<template slot="userName" slot-scope="{ data }">
<span
class="cursor-blue"
@click="onHandleCheckUserName(data)"
>
{{ data.userName }}
</span>
</template>
<!-- 红绿灯状态 -->
<template slot="redLightStatus">
<span
style="
color: #ff0000;
font-size: 14px;
cursor: pointer;
"
>
红灯
</span>
</template>
</TableModel>
</template>
</DialogModel>
<!-- 人员详情弹框 -->
<DialogModel
:dialogConfig="dialogConfigFive"
@closeDialogOuter="handleCloseDialogOuterFive"
>
<template slot="outerContent">
<PersonDetails />
</template>
</DialogModel>
</div>
</template>
<script>
import TableModel from '@/components/TableModel'
import DialogModel from '@/components/DialogModel'
import FilterQueryModel from '@/components/FilterQueryModel'
import CommonTableSlots from './common-table-slots'
import PersonDetails from './person-details'
import {
getTotalProjectListAPI,
getLotProjectListAPI,
getSubProjectListAPI,
getTeamProjectListAPI,
} from '@/api/home-index/index'
import {
//
allProjectFormLabel,
allProjectColumnsList,
allProjectTestTableList,
//
childColumnsList,
childTestTableList,
//
subFormLabel,
subColumnsList,
subTestTableList,
//
teamFormLabel,
teamColumnsList,
teamTestTableList,
//
personFormLabel,
personColumnsList,
personTestTableList,
//
dialogConfig,
dialogConfigTwo,
dialogConfigThree,
dialogConfigFour,
dialogConfigFive,
} from './config'
export default {
name: 'ItemTwo',
props: {
selectCompany: {
type: [Number, String],
default: '',
},
},
components: {
TableModel,
DialogModel,
FilterQueryModel,
CommonTableSlots,
PersonDetails,
},
data() {
return {
allProjectFormLabel,
allProjectColumnsList,
allProjectTestTableList,
childColumnsList,
childTestTableList,
subFormLabel,
subColumnsList,
subTestTableList,
teamFormLabel,
teamColumnsList,
teamTestTableList,
personFormLabel,
personColumnsList,
personTestTableList,
dialogConfig,
dialogConfigTwo,
dialogConfigThree,
dialogConfigFour,
dialogConfigFive,
getTotalProjectListAPI,
getLotProjectListAPI,
getSubProjectListAPI,
getTeamProjectListAPI,
queryParams: {},
commonSlots: [
'onSiteCount',
'todayAttendanceCount',
'redLightCount',
],
mainProId: '', // id
proId: '', // id
subId: '', // id
}
},
methods: {
//
onHandleCheckProjectCount(data) {
console.log(data)
this.mainProId = data.mainProId
this.dialogConfig.outerTitle = '工程信息'
this.dialogConfig.outerVisible = true
},
//
handleExportAllProject(queryParams) {
this.download(
'/bmw/homePageSub/mainProExport',
{
...queryParams,
},
`总工程列表.xlsx`,
)
},
//
handleCloseDialogOuter(value) {
this.dialogConfig.outerVisible = value
},
//
handleCloseDialogOuterTwo(value) {
this.dialogConfigTwo.outerVisible = value
},
//
handleCloseDialogOuterThree(value) {
this.dialogConfigThree.outerVisible = value
},
//
handleCloseDialogOuterFour(value) {
this.dialogConfigFour.outerVisible = value
},
//
handleCloseDialogOuterFive(value) {
this.dialogConfigFive.outerVisible = value
},
//
handelSettingQuery(query) {
console.log('筛选条件', query)
this.queryParams = query
},
//
onHandleCheckSubCount(data) {
console.log('查看分包数量', data)
this.proId = data.proId
this.dialogConfigTwo.outerTitle = '分包信息'
this.dialogConfigTwo.outerVisible = true
},
//
onHandleCheckTeamCount(data) {
console.log('查看班组数量', data)
this.proId = data.proId
this.subId = ''
this.dialogConfigThree.outerTitle = '班组信息'
this.dialogConfigThree.outerVisible = true
},
//
onHandleCheckTeamCountInSub(data) {
this.subId = data.subId
this.dialogConfigThree.outerTitle = '班组信息'
this.dialogConfigThree.outerVisible = true
},
//
handleCheckPersonCount(data) {
console.log('查看人员信息', data)
this.dialogConfigFour.outerTitle = '人员信息'
this.dialogConfigFour.outerVisible = true
},
//
onHandleCheckUserName(data) {
console.log('查看人员详情', data)
this.dialogConfigFive.outerTitle = '人员详情'
this.dialogConfigFive.outerVisible = true
},
},
watch: {
selectCompany: {
handler() {
// this.getTotalProjectList()
this.$refs.allProjectTableRef.getTableList()
},
deep: true,
},
},
}
</script>

View File

@ -0,0 +1,132 @@
<template>
<!-- 人员列表 -->
<div class="person-list">
<!-- 人员信息弹框 -->
<!-- <DialogModel
:dialogConfig="dialogConfigFour"
@closeDialogOuter="handleCloseDialogOuterFour"
>
<template slot="outerContent">
</template>
</DialogModel> -->
<FilterQueryModel
:isPersonFilter="true"
@handelSettingQuery="handelSettingQuery"
/>
<TableModel
ref="personTableRef"
:formLabel="personFormLabel"
:columnsList="personColumnsList"
:request-api="getWorkerProjectListAPI"
:sendParams="{ mainProId: selectCompany }"
>
<!-- 人员姓名 -->
<template slot="userName" slot-scope="{ data }">
<span class="cursor-blue" @click="onHandleCheckUserName(data)">
{{ data.userName }}
</span>
</template>
<!-- 红绿灯状态 -->
<template slot="redLightStatus">
<span style="color: #ff0000; font-size: 14px; cursor: pointer">
红灯
</span>
</template>
</TableModel>
<!-- 人员详情弹框 -->
<DialogModel
:dialogConfig="dialogConfigFive"
@closeDialogOuter="handleCloseDialogOuterFive"
>
<template slot="outerContent">
<PersonDetails />
</template>
</DialogModel>
</div>
</template>
<script>
import TableModel from '@/components/TableModel'
import DialogModel from '@/components/DialogModel'
import FilterQueryModel from '@/components/FilterQueryModel'
import CommonTableSlots from './common-table-slots'
import PersonDetails from './person-details'
import { getWorkerProjectListAPI } from '@/api/home-index/index'
import {
//
personFormLabel,
personColumnsList,
personTestTableList,
//
dialogConfigFour,
dialogConfigFive,
} from './config'
export default {
name: 'PersonList',
props: {
selectCompany: {
type: [Number, String],
default: '',
},
},
components: {
TableModel,
DialogModel,
FilterQueryModel,
CommonTableSlots,
PersonDetails,
},
data() {
return {
personFormLabel,
personColumnsList,
personTestTableList,
dialogConfigFour,
dialogConfigFive,
getWorkerProjectListAPI,
queryParams: {},
commonSlots: [
'onSiteCount',
'todayAttendanceCount',
'redLightCount',
],
}
},
methods: {
// //
// handleCheckPersonCount(data) {
// console.log('', data)
// this.dialogConfigFour.outerTitle = ''
// this.dialogConfigFour.outerVisible = true
// },
//
onHandleCheckUserName(data) {
console.log('查看人员详情', data)
this.dialogConfigFive.outerTitle = '人员详情'
this.dialogConfigFive.outerVisible = true
},
handleCloseDialogOuterFive() {
this.dialogConfigFive.outerVisible = false
},
//
handelSettingQuery() {},
},
watch: {
selectCompany: {
handler() {
// this.getTotalProjectList()
this.$refs.personTableRef.getTableList()
},
deep: true,
},
},
}
</script>

View File

@ -70,12 +70,20 @@
<script>
import DialogModel from '@/components/DialogModel'
import ItemOne from './components/item-one.vue' //
import ItemTwo from './components/item-two.vue' //
import ItemThree from './components/item-three.vue' //
import ItemFour from './components/item-four.vue' //
import PersonList from './components/person-list.vue' //
import { getDataOverviewProjectAPI } from '@/api/home-index/index'
export default {
name: 'DataOverviewProject',
components: {
DialogModel,
ItemOne,
ItemTwo,
ItemThree,
ItemFour,
PersonList,
},
props: {
//
@ -120,7 +128,7 @@ export default {
count: 1,
name: '在场人员',
dataKey: 'einNum',
component: 'ItemFive',
component: 'PersonList',
icon: 'on-site-person',
},
{
@ -128,7 +136,7 @@ export default {
name: '今日打卡',
icon: 'clock-in',
dataKey: 'attNum',
component: 'ItemSix',
component: 'PersonList',
},
],
//
@ -182,9 +190,10 @@ export default {
//
onHandleCheckItem(item) {
this.dialogConfig.outerTitle = item.name
// this.currentComponent = item.component
this.currentComponent = item.component
this.dialogConfig.outerVisible = true
},
//
handleCloseDialogOuter(value) {
this.dialogConfig.outerVisible = value