Browse Source

监督端执法监督码首页路由修改,现场执法表格居中显示

dev-v1.0.3
wangmingyong 4 months ago
parent
commit
4cb3a4ce5e
  1. 31
      zdxt-web-client/zdxt-admin-plus-ui/src/layout/components/Navbar.vue
  2. 6
      zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/enterprises_inspected_noft/index.vue
  3. 4
      zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enforcement_bureau_unit/index.vue
  4. 4
      zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enforcement_complaint/index.vue
  5. 6
      zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enterprise/index.vue

31
zdxt-web-client/zdxt-admin-plus-ui/src/layout/components/Navbar.vue

@ -1,25 +1,25 @@
<template> <template>
<div class="navbar"> <div class="navbar">
<hamburger id="hamburger-container" :is-active="appStore.sidebar.opened" class="hamburger-container" @toggle-click="toggleSideBar" /> <hamburger id="hamburger-container" :is-active="appStore.sidebar.opened" class="hamburger-container"
@toggle-click="toggleSideBar" />
<breadcrumb v-if="!settingsStore.topNav" id="breadcrumb-container" class="breadcrumb-container" /> <breadcrumb v-if="!settingsStore.topNav" id="breadcrumb-container" class="breadcrumb-container" />
<top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" /> <top-nav v-if="settingsStore.topNav" id="topmenu-container" class="topmenu-container" />
<div class="right-menu flex align-center"> <div class="right-menu flex align-center">
<template v-if="appStore.device !== 'mobile'"> <template v-if="appStore.device !== 'mobile'">
<el-select <el-select v-model="currentSystemCode" class="min-w-160px mr-8px" placeholder="切换菜单组"
v-model="currentSystemCode" @change="handleSystemCodeChange">
class="min-w-160px mr-8px" <el-option v-for="item in permissionStore.visibleSystemCodeOptions" :key="item.value" :label="item.label"
placeholder="切换菜单组" :value="item.value">
@change="handleSystemCodeChange" <el-icon style="vertical-align: middle; margin-right: 4px;">
> <component :is="item.icon" />
<el-option v-for="item in permissionStore.visibleSystemCodeOptions" :key="item.value" :label="item.label" :value="item.value"> </el-icon>
<el-icon style="vertical-align: middle; margin-right: 4px;"><component :is="item.icon" /></el-icon>
<span>{{ item.label }}</span> <span>{{ item.label }}</span>
</el-option> </el-option>
<template #prefix><svg-icon icon-class="tree-table" class="el-input__icon input-icon" /></template> <template #prefix><svg-icon icon-class="tree-table" class="el-input__icon input-icon" /></template>
</el-select> </el-select>
<!-- <el-select <!-- <el-select
v-if="userId === 1 && tenantEnabled" v-if="userId === 1 && tenantEnabled"
v-model="companyName" v-model="companyName"
class="min-w-244px" class="min-w-244px"
@ -34,14 +34,14 @@
<template #prefix><svg-icon icon-class="company" class="el-input__icon input-icon" /></template> <template #prefix><svg-icon icon-class="company" class="el-input__icon input-icon" /></template>
</el-select>--> </el-select>-->
<!-- <search-menu ref="searchMenuRef" /> <!-- <search-menu ref="searchMenuRef" />
<el-tooltip content="搜索" effect="dark" placement="bottom"> <el-tooltip content="搜索" effect="dark" placement="bottom">
<div class="right-menu-item hover-effect" @click="openSearchMenu"> <div class="right-menu-item hover-effect" @click="openSearchMenu">
<svg-icon class-name="search-icon" icon-class="search" /> <svg-icon class-name="search-icon" icon-class="search" />
</div> </div>
</el-tooltip>--> </el-tooltip>-->
<!-- 消息 --> <!-- 消息 -->
<!-- <el-tooltip :content="proxy.$t('navbar.message')" effect="dark" placement="bottom"> <!-- <el-tooltip :content="proxy.$t('navbar.message')" effect="dark" placement="bottom">
<div> <div>
<el-popover placement="bottom" trigger="click" transition="el-zoom-in-top" :width="300" :persistent="false"> <el-popover placement="bottom" trigger="click" transition="el-zoom-in-top" :width="300" :persistent="false">
<template #reference> <template #reference>
@ -141,8 +141,11 @@ const handleSystemCodeChange = async (systemCode: string) => {
await permissionStore.switchSystemCode(systemCode); await permissionStore.switchSystemCode(systemCode);
// 非 iframe 模式时跳转到首页并刷新 // 非 iframe 模式时跳转到首页并刷新
if (!permissionStore.iframeMode) { if (!permissionStore.iframeMode) {
await proxy?.$router.push('/'); console.log('切换系统编码', systemCode);
await proxy?.$tab.refreshPage(); const targetPath = systemCode === 'supervisionCode'
? '/statistics/administrative/enterprise-enforcement'
: '/';
await proxy?.$router.replace(targetPath);
} }
}; };

6
zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/enterprises_inspected_noft/index.vue

@ -191,9 +191,9 @@ const handleShowDetail = async (row: EnterprisesInspectedVo) => {
<!-- 表格区域 --> <!-- 表格区域 -->
<el-card shadow="hover"> <el-card shadow="hover">
<el-table ref="tableRef" v-loading="loading" :data="tableData" :height="tableHeight" border stripe> <el-table ref="tableRef" v-loading="loading" :data="tableData" :height="tableHeight" border stripe>
<el-table-column label="企业名称" prop="enterpriseName" min-width="260" :show-overflow-tooltip="true" /> <el-table-column label="企业名称" prop="enterpriseName" :show-overflow-tooltip="true" align="center" />
<el-table-column label="执法次数" prop="num" width="100" align="center" /> <el-table-column label="执法次数" prop="num" align="center" />
<el-table-column label="最后一次执法时间" prop="enforcementTime" width="180" align="center" /> <el-table-column label="最后一次执法时间" prop="enforcementTime" align="center" />
<el-table-column label="操作" width="100" align="center" fixed="right"> <el-table-column label="操作" width="100" align="center" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link size="small" @click="handleShowDetail(row)">详情</el-button> <el-button type="primary" link size="small" @click="handleShowDetail(row)">详情</el-button>

4
zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enforcement_bureau_unit/index.vue

@ -217,8 +217,8 @@ const handleExport = async () => {
<!-- 主表:执法单位列表 --> <!-- 主表:执法单位列表 -->
<el-card v-show="viewLevel === 1" shadow="hover"> <el-card v-show="viewLevel === 1" shadow="hover">
<el-table ref="tableRef" v-loading="loading" :data="unitTableData" :height="tableHeight" border stripe> <el-table ref="tableRef" v-loading="loading" :data="unitTableData" :height="tableHeight" border stripe>
<el-table-column label="部门名称" prop="unitName" min-width="260" :show-overflow-tooltip="true" /> <el-table-column label="部门名称" prop="unitName" align="center" :show-overflow-tooltip="true" />
<el-table-column label="执法人员数量" prop="personnelCount" width="140" align="center" /> <el-table-column label="执法人员数量" prop="personnelCount" align="center" />
<el-table-column label="操作" width="100" align="center" fixed="right"> <el-table-column label="操作" width="100" align="center" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link size="small" :disabled="row.personnelCount <= 0" @click="handleShowDetail(row)">详情</el-button> <el-button type="primary" link size="small" :disabled="row.personnelCount <= 0" @click="handleShowDetail(row)">详情</el-button>

4
zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enforcement_complaint/index.vue

@ -391,8 +391,8 @@ const downloadBlob = (res: any, filename: string) => {
<!-- 主表格 --> <!-- 主表格 -->
<el-card shadow="hover" v-loading="loading1"> <el-card shadow="hover" v-loading="loading1">
<el-table :data="groupTableData" border stripe> <el-table :data="groupTableData" border stripe>
<el-table-column label="被投诉对象" prop="complaintDepartment" min-width="260" :show-overflow-tooltip="true" /> <el-table-column label="被投诉对象" prop="complaintDepartment" align="center" :show-overflow-tooltip="true" />
<el-table-column label="投诉数量" width="140" align="center"> <el-table-column label="投诉数量" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-link type="primary" :underline="false" @click="handleShowDetail(row)">{{ row.total }}</el-link> <el-link type="primary" :underline="false" @click="handleShowDetail(row)">{{ row.total }}</el-link>
</template> </template>

6
zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_enterprise/index.vue

@ -393,14 +393,14 @@ const handleExportType = async () => {
<!-- 区域汇总表 (viewLevel=1) --> <!-- 区域汇总表 (viewLevel=1) -->
<el-card v-if="viewLevel === 1" shadow="hover" v-loading="loading1"> <el-card v-if="viewLevel === 1" shadow="hover" v-loading="loading1">
<el-table :data="areaStatList" border stripe> <el-table :data="areaStatList" border stripe>
<el-table-column label="区域" min-width="150" align="center"> <el-table-column label="区域" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-link v-if="row.name !== '其他'" type="primary" :underline="false" @click="handleAreaClick(row)">{{ row.name }}</el-link> <el-link v-if="row.name !== '其他'" type="primary" :underline="false" @click="handleAreaClick(row)">{{ row.name }}</el-link>
<span v-else>{{ row.name }}</span> <span v-else>{{ row.name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="企业数量" prop="totalNumber" width="120" align="center" /> <el-table-column label="企业数量" prop="totalNumber" align="center" />
<el-table-column label="续存企业数量" prop="existNumber" width="130" align="center" /> <el-table-column label="续存企业数量" prop="existNumber" align="center" />
<el-table-column label="操作" width="80" align="center"> <el-table-column label="操作" width="80" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-link type="success" :underline="false" @click="handleAreaDetailClick(row)">详情</el-link> <el-link type="success" :underline="false" @click="handleAreaDetailClick(row)">详情</el-link>

Loading…
Cancel
Save