update
parent
e1867c94fd
commit
9052d6e41b
|
|
@ -1366,3 +1366,11 @@ export async function fetchReviewAuthCateList(params?: any) {
|
|||
export async function fetchmoduleStatExternalPage(params?: any) {
|
||||
return http.get(`/moduleStat/externalPage`, { params })
|
||||
}
|
||||
// 内部统计列表
|
||||
export async function fetchmoduleStatInternalPage(params?: any) {
|
||||
return http.get(`/moduleStat/internalPage`, { params })
|
||||
}
|
||||
// 获取岗位
|
||||
export async function fetchPostList(params?: any) {
|
||||
return http.get(`/common/getPostList`, { params })
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@ import HomeHead from '@/views/home/components/HomeHead.vue'
|
|||
import {
|
||||
timeStat,
|
||||
externalTimeStat,
|
||||
fetchmoduleStatExternalPage
|
||||
fetchmoduleStatExternalPage,
|
||||
fetchPostList,
|
||||
fetchmoduleStatInternalPage
|
||||
} from '@/api/daikin/base'
|
||||
import { formatDate } from '@/utils/format'
|
||||
import { Chart1 } from './indexData'
|
||||
|
|
@ -33,17 +35,27 @@ const pageInfo = reactive({
|
|||
total: 10
|
||||
})
|
||||
const moduleCode = ref()
|
||||
const imoduleCode = ref()
|
||||
const visitDay = ref()
|
||||
const waibuKd = ref()
|
||||
const inseideDetail = ref([])
|
||||
const outDetail = ref([])
|
||||
const postId = ref<any>([])
|
||||
const nickName = ref()
|
||||
const postList = ref<any>([])
|
||||
const getPostList = async () => {
|
||||
const res: any = await fetchPostList()
|
||||
postList.value = res.data || []
|
||||
}
|
||||
|
||||
const getInsideListPage = async () => {
|
||||
const res: any = await fetchmoduleStatExternalPage({
|
||||
waibuKd: waibuKd.value,
|
||||
visitDay: visitDay.value,
|
||||
moduleCode: moduleCode.value,
|
||||
const res: any = await fetchmoduleStatInternalPage({
|
||||
postId: postId.value,
|
||||
nickName: nickName.value,
|
||||
moduleCode: imoduleCode.value,
|
||||
pageNum: pageInfo.currentPage,
|
||||
pageSize: pageInfo.pageSize
|
||||
pageSize: pageInfo.pageSize,
|
||||
...states
|
||||
})
|
||||
inseideDetail.value = res?.rows || []
|
||||
pageInfo.total = res?.total || 0
|
||||
|
|
@ -60,8 +72,9 @@ const getListPage = async () => {
|
|||
pageInfo.total = res?.total || 0
|
||||
}
|
||||
|
||||
getPostList()
|
||||
getListPage()
|
||||
// getInsideListPage()
|
||||
getInsideListPage()
|
||||
|
||||
const clickButton = (id) => {
|
||||
primary.value = id
|
||||
|
|
@ -226,7 +239,7 @@ const selValue = ref('')
|
|||
<span class="text-#000 mr-10px">日期: </span>
|
||||
<div class="max-w-350px flex items-center">
|
||||
<el-date-picker
|
||||
v-if="['inside', 'out'].includes(activeName)"
|
||||
v-if="['inside', 'out', 'inside-detail'].includes(activeName)"
|
||||
v-model="value1"
|
||||
type="daterange"
|
||||
range-separator="到"
|
||||
|
|
@ -234,6 +247,7 @@ const selValue = ref('')
|
|||
end-placeholder="结束时间"
|
||||
@change="timenFirst"
|
||||
:shortcuts="shortcuts"
|
||||
clearable
|
||||
/>
|
||||
<el-date-picker
|
||||
v-else
|
||||
|
|
@ -241,14 +255,19 @@ const selValue = ref('')
|
|||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="选择日期"
|
||||
clearable
|
||||
/>
|
||||
</div>
|
||||
<div class="mx-4 flex items-center">
|
||||
<div
|
||||
class="mx-4 flex items-center"
|
||||
v-if="['inside-detail', 'out-detail'].includes(activeName)"
|
||||
>
|
||||
<span class="text-#000 mr-10px">模块: </span>
|
||||
<el-select
|
||||
v-if="'out-detail' === activeName"
|
||||
v-model="moduleCode"
|
||||
placeholder="选择模块"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in externalList"
|
||||
|
|
@ -257,14 +276,39 @@ const selValue = ref('')
|
|||
:value="item.moduleCode"
|
||||
/>
|
||||
</el-select>
|
||||
<template v-if="'inside-detail' === activeName">
|
||||
<el-select v-model="imoduleCode" placeholder="选择模块" clearable>
|
||||
<el-option
|
||||
v-for="item in dataList"
|
||||
:key="item.id"
|
||||
:label="item.moduleName"
|
||||
:value="item.moduleCode"
|
||||
/>
|
||||
</el-select>
|
||||
<span class="text-#000 mr-10px ml-4">职位: </span>
|
||||
<el-select v-model="postId" placeholder="选择职位" clearable>
|
||||
<el-option
|
||||
v-for="item in postList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center" v-if="activeName === 'out-detail'">
|
||||
>
|
||||
<span class="text-#000 mr-10px w-50px">供方: </span>
|
||||
<el-input
|
||||
v-model="waibuKd"
|
||||
placeholder="请输入供方昵称或代码"
|
||||
></el-input>
|
||||
</div>
|
||||
<div class="flex items-center" v-if="activeName === 'inside-detail'">
|
||||
>
|
||||
<span class="text-#000 mr-10px w-50px">昵称: </span>
|
||||
<el-input v-model="nickName" placeholder="请输入用户昵称"></el-input>
|
||||
</div>
|
||||
<el-button
|
||||
type="primary"
|
||||
:icon="Search"
|
||||
|
|
@ -328,7 +372,7 @@ const selValue = ref('')
|
|||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane v-if="false" label="本部足迹-明细" name="inside-detail">
|
||||
<el-tab-pane label="本部足迹-明细" name="inside-detail">
|
||||
<div v-if="activeName === 'inside-detail'" class="h-720px">
|
||||
<div class="w100% h-full overflow-auto">
|
||||
<el-table
|
||||
|
|
@ -347,34 +391,28 @@ const selValue = ref('')
|
|||
}"
|
||||
:cell-style="{ 'text-align': 'center', 'overflow-y': 'auto' }"
|
||||
>
|
||||
<el-table-column prop="deptName" label="排序" />
|
||||
<el-table-column prop="moduleName" label="模块名称" />
|
||||
<el-table-column
|
||||
prop="cateName"
|
||||
label="所属分类"
|
||||
prop="postName"
|
||||
label="职位名称"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="scope">
|
||||
<span v-if="scope"></span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="title"
|
||||
label="标题名称"
|
||||
prop="nickName"
|
||||
label="用户昵称"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
label="文件列表"
|
||||
prop="filePath"
|
||||
label="访问次数"
|
||||
prop="visitCount"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
label="访问日期"
|
||||
prop="visitTime"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column label="排序" prop="sort" show-overflow-tooltip />
|
||||
<el-table-column label="查看范围" prop="userIdList">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" class="button" @click=""
|
||||
>查看范围</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="absolute bottom-2px right-30px z-20 bg-#fff">
|
||||
|
|
@ -409,13 +447,6 @@ const selValue = ref('')
|
|||
}"
|
||||
:cell-style="{ 'text-align': 'center', 'overflow-y': 'auto' }"
|
||||
>
|
||||
<el-table-column prop="userId" label="供方ID" />
|
||||
<el-table-column
|
||||
prop="nickName"
|
||||
label="供方昵称"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="title"
|
||||
label="访问模块"
|
||||
|
|
@ -425,13 +456,20 @@ const selValue = ref('')
|
|||
<span>{{ externalObj[row.moduleCode] || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="userId" label="供方ID" />
|
||||
<el-table-column
|
||||
prop="nickName"
|
||||
label="供方昵称"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="访问计数"
|
||||
prop="visitCount"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
label="访问时间"
|
||||
label="访问日期"
|
||||
prop="visitDay"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue