修改文字,郊县改成乡镇

This commit is contained in:
yangjun 2025-09-10 08:49:22 +08:00
parent 80377dd9d7
commit e21d49c4ca
34 changed files with 154 additions and 83 deletions

View File

@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
#后台接口父地址(必填) #后台接口父地址(必填)
VITE_GLOB_API_URL=/jeecgboot VITE_GLOB_API_URL=/api
#后台接口全路径地址(必填) #后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8080/jeecg-boot VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8050/jeecg-boot
# 接口父路径前缀 # 接口父路径前缀
VITE_GLOB_API_URL_PREFIX= VITE_GLOB_API_URL_PREFIX=

View File

@ -166,12 +166,12 @@
</div> </div>
</div> </div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
<script src="/static/baidu/js/script/city.js"></script> <!-- <script src="/static/baidu/js/script/city.js"></script>
<script src="/static/baidu/js/artDialog/artDialog.source.js?skin=chrome"></script> <script src="/static/baidu/js/artDialog/artDialog.source.js?skin=chrome"></script>
<script src="/static/baidu/js/artDialog/iframeTools.source.js"></script> <script src="/static/baidu/js/artDialog/iframeTools.source.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9QkBtTHNnppQPAx49wGSdgD1E3pZ0LB7"></script> <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9QkBtTHNnppQPAx49wGSdgD1E3pZ0LB7"></script> -->
<!-- 百度统计 --> <!-- 百度统计 -->
<script> <!-- <script>
var _hmt = _hmt || []; var _hmt = _hmt || [];
(function() { (function() {
var hm = document.createElement("script"); var hm = document.createElement("script");
@ -179,7 +179,7 @@
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})(); })();
</script> </script> -->
</body> </body>
</html> </html>

View File

@ -37,7 +37,7 @@ function sortByTime(arr: any[]) {
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('城区')); const city = data.filter(d => String(d.regionType).includes('城区'));
const county = data.filter(d => String(d.regionType).includes('郊县')); const county = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city), county: sortByTime(county) }; return { city: sortByTime(city), county: sortByTime(county) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -71,7 +71,7 @@ function prepareOptions(records: any[]) {
const countySW = county.map((r: any) => safeNum(r.view035)); const countySW = county.map((r: any) => safeNum(r.view035));
const countyHW = county.map((r: any) => safeNum(r.view036)); const countyHW = county.map((r: any) => safeNum(r.view036));
countyOption = { countyOption = {
title: { text: '郊县供/回水温度【实时】', left: 'center', top: 10 }, title: { text: '乡镇供/回水温度【实时】', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -137,7 +137,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fixed: 'right', fixed: 'right',
}, },
beforeFetch: async (params) => { beforeFetch: async (params) => {
queryParam.regionType = '郊县' queryParam.regionType = '乡镇'
return Object.assign(params, queryParam); return Object.assign(params, queryParam);
}, },
}, },
@ -181,7 +181,7 @@ function handleSuperQuery(params) {
*/ */
function handleAdd() { function handleAdd() {
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.add({regionType:'郊县'}); registerModal.value.add({regionType:'乡镇'});
} }
/** /**

View File

@ -41,10 +41,78 @@ export const columns: BasicColumn[] = [
dataIndex: 'companyAddress' dataIndex: 'companyAddress'
}, },
]; ];
//列表数据
export const columnsJx: BasicColumn[] = [
{
title: '序号',
align:"center",
dataIndex: 'id'
},
{
title: '公司名称',
align:"center",
dataIndex: 'companyJxName'
},
{
title: '乡镇名称',
align:"center",
dataIndex: 'companyName'
},
{
title: '公司类型',
align:"center",
dataIndex: 'companyType_dictText'
},
{
title: '锅炉房个数',
align:"center",
dataIndex: 'boilerHouse'
},
{
title: '换热站个数',
align:"center",
dataIndex: 'barterHeat'
},
{
title: '电话',
align:"center",
dataIndex: 'companyPhone'
},
{
title: '公司地址',
align:"center",
dataIndex: 'companyAddress'
},
];
//查询数据 //查询数据
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
label: "公司名称", label: "公司名称",
field: 'companyJxName',
component: 'Input',
//colProps: {span: 6},
},
{
label: "乡镇名称",
field: 'companyName',
component: 'Input',
//colProps: {span: 6},
},
{
label: "公司类型",
field: 'companyType',
component: 'JSelectMultiple',
componentProps:{
dictCode:"h_company_type"
},
//colProps: {span: 6},
},
];
//查询数据
export const searchForm2Schema: FormSchema[] = [
{
label: "公司名称",
field: 'companyName', field: 'companyName',
component: 'Input', component: 'Input',
//colProps: {span: 6}, //colProps: {span: 6},

View File

@ -39,7 +39,7 @@
import {BasicTable, useTable, TableAction} from '/@/components/Table'; import {BasicTable, useTable, TableAction} from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage' import { useListPage } from '/@/hooks/system/useListPage'
import ThermalcompanyModal from './components/ThermalcompanyModal.vue' import ThermalcompanyModal from './components/ThermalcompanyModal.vue'
import {columns, searchFormSchema} from './Thermalcompany.data'; import {columnsJx, searchFormSchema} from './Thermalcompany.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './Thermalcompany.api'; import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './Thermalcompany.api';
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '/@/store/modules/user';
@ -56,7 +56,7 @@
column: 'id', column: 'id',
order: 'asc', order: 'asc',
}, },
columns, columns:columnsJx,
canResize:false, canResize:false,
formConfig: { formConfig: {
//labelWidth: 120, //labelWidth: 120,
@ -73,7 +73,7 @@
fixed:'right' fixed:'right'
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.regionType = '郊县' queryParam.regionType = '乡镇'
return Object.assign(params, queryParam); return Object.assign(params, queryParam);
}, },
}, },

View File

@ -82,7 +82,7 @@ export const searchFormSchemaJx: FormSchema[] = [
field: 'companyId', field: 'companyId',
component: 'JSelectMultiple', component: 'JSelectMultiple',
componentProps:{ componentProps:{
dictCode:"bl_thermalcompany,company_name,id,del_flag = '0' and region_type = '郊县'" dictCode:"bl_thermalcompany,company_name,id,del_flag = '0' and region_type = '乡镇'"
}, },
//colProps: {span: 6}, //colProps: {span: 6},
}, },

View File

@ -74,7 +74,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fixed: 'right' fixed: 'right'
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.regionType = '郊县' queryParam.regionType = '乡镇'
return Object.assign(params, queryParam); return Object.assign(params, queryParam);
}, },
}, },

View File

@ -125,7 +125,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fixed: 'right' fixed: 'right'
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.value.regionType = '郊县' queryParam.value.regionType = '乡镇'
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },
}, },
@ -235,13 +235,13 @@ function searchReset() {
const thermalcompany = ref(); const thermalcompany = ref();
async function getThermalcompany() { async function getThermalcompany() {
let params = {regionType:'郊县'}; let params = {regionType:'乡镇'};
thermalcompany.value = await companylist(params); thermalcompany.value = await companylist(params);
} }
const heatsource = ref(); const heatsource = ref();
async function getHeatsource() { async function getHeatsource() {
let params = {regionType:'郊县'}; let params = {regionType:'乡镇'};
heatsource.value = await heatsourcelist(params); heatsource.value = await heatsourcelist(params);
} }
@ -251,7 +251,7 @@ async function getHeatsource() {
// } // }
async function handleChange1(record) { async function handleChange1(record) {
let params = { companyCompanyId: record,regionType:'郊县' }; let params = { companyCompanyId: record,regionType:'乡镇' };
heatsource.value = await heatsourcelist(params); heatsource.value = await heatsourcelist(params);
// heatsourcestation.value = []; // heatsourcestation.value = [];
queryParam.value.sourceSourceId = ''; queryParam.value.sourceSourceId = '';

View File

@ -193,13 +193,13 @@
const thermalcompany = ref(); const thermalcompany = ref();
async function getThermalcompany(){ async function getThermalcompany(){
let params = {regionType:'郊县'}; let params = {regionType:'乡镇'};
thermalcompany.value = await companylist(params); thermalcompany.value = await companylist(params);
} }
const heatsource = ref(); const heatsource = ref();
async function getHeatsource(){ async function getHeatsource(){
let params = {regionType:'郊县'}; let params = {regionType:'乡镇'};
heatsource.value = await heatsourcelist(params); heatsource.value = await heatsourcelist(params);
} }

View File

@ -13,13 +13,13 @@
<a-col :lg="6"> <a-col :lg="6">
<a-form-item name="companyCompanyId"> <a-form-item name="companyCompanyId">
<template #label><span title="供热公司">供热公司</span></template> <template #label><span title="供热公司">供热公司</span></template>
<j-dict-select-tag placeholder="请选择供热公司" v-model:value="queryParam.companyCompanyId" dictCode="bl_thermalcompany,company_name,id,del_flag = '0' and region_type = '郊县'" allow-clear /> <j-dict-select-tag placeholder="请选择供热公司" v-model:value="queryParam.companyCompanyId" dictCode="bl_thermalcompany,company_name,id,del_flag = '0' and region_type = '乡镇'" allow-clear />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="6"> <a-col :lg="6">
<a-form-item name="sourceSourceId"> <a-form-item name="sourceSourceId">
<template #label><span title="锅炉房">锅炉房</span></template> <template #label><span title="锅炉房">锅炉房</span></template>
<j-dict-select-tag placeholder="请选择锅炉房" v-model:value="queryParam.sourceSourceId" :dictCode="`bl_heatsource,source_name,id,del_flag = '0' and region_type = '郊县' and company_id = '${queryParam.companyCompanyId || -1}'`" allow-clear /> <j-dict-select-tag placeholder="请选择锅炉房" v-model:value="queryParam.sourceSourceId" :dictCode="`bl_heatsource,source_name,id,del_flag = '0' and region_type = '乡镇' and company_id = '${queryParam.companyCompanyId || -1}'`" allow-clear />
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- <a-col :lg="6"> <!-- <a-col :lg="6">
@ -73,7 +73,7 @@
import { JInput } from '/@/components/Form'; import { JInput } from '/@/components/Form';
const formRef = ref(); const formRef = ref();
const queryParam = reactive<any>({regionType:'郊县'}); const queryParam = reactive<any>({regionType:'乡镇'});
const toggleSearchStatus = ref<boolean>(false); const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref(); const registerModal = ref();
const userStore = useUserStore(); const userStore = useUserStore();
@ -133,7 +133,7 @@
*/ */
function handleAdd() { function handleAdd() {
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.add({regionType:'郊县'}); registerModal.value.add({regionType:'乡镇'});
} }
/** /**

View File

@ -23,7 +23,7 @@
<a-tab-pane key="city" tab="城区供回水温度"> <a-tab-pane key="city" tab="城区供回水温度">
<div ref="cityChartRef" class="chart-large"></div> <div ref="cityChartRef" class="chart-large"></div>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="county" tab="郊县供回水温度"> <a-tab-pane key="county" tab="乡镇供回水温度">
<div ref="countyChartRef" class="chart-large"></div> <div ref="countyChartRef" class="chart-large"></div>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
@ -33,13 +33,13 @@
<a-row :gutter="20" class="third-row"> <a-row :gutter="20" class="third-row">
<a-col :xs="24" :md="12"> <a-col :xs="24" :md="12">
<a-card bordered class="mini-card"> <a-card bordered class="mini-card">
<div class="mini-title">郊县瞬时热量实时</div> <div class="mini-title">乡镇瞬时热量实时</div>
<div ref="countyPowerChartRef" class="chart-medium"></div> <div ref="countyPowerChartRef" class="chart-medium"></div>
</a-card> </a-card>
</a-col> </a-col>
<a-col :xs="24" :md="12"> <a-col :xs="24" :md="12">
<a-card bordered class="mini-card" style="margin-left: 8px;"> <a-card bordered class="mini-card" style="margin-left: 8px;">
<div class="mini-title">郊县瞬时流量实时</div> <div class="mini-title">乡镇瞬时流量实时</div>
<div ref="countyFlowChartRef" class="chart-medium"></div> <div ref="countyFlowChartRef" class="chart-medium"></div>
</a-card> </a-card>
</a-col> </a-col>
@ -59,8 +59,8 @@ const activeTab = ref('city');
const cards = ref([ const cards = ref([
{ label: '城区锅炉房数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#5B8FF9,#2FC25B)' }, { label: '城区锅炉房数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#5B8FF9,#2FC25B)' },
{ label: '城区换热站数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#2FC25B,#FACC14)' }, { label: '城区换热站数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#2FC25B,#FACC14)' },
{ label: '郊县数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#F04864,#9254DE)' }, { label: '乡镇数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#F04864,#9254DE)' },
{ label: '郊县锅炉房数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#9254DE,#5B8FF9)' } { label: '乡镇锅炉房数量', value: 0, note: '实时统计', color: 'linear-gradient(90deg,#9254DE,#5B8FF9)' }
]); ]);
/* ---- dom refs ---- */ /* ---- dom refs ---- */
@ -95,7 +95,7 @@ function sortByTime(arr: any[]) {
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('城区')); const city = data.filter(d => String(d.regionType).includes('城区'));
const county = data.filter(d => String(d.regionType).includes('郊县')); const county = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city), county: sortByTime(county) }; return { city: sortByTime(city), county: sortByTime(county) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -129,7 +129,7 @@ function prepareOptions(records: any[]) {
const countySW = county.map((r: any) => safeNum(r.view035)); const countySW = county.map((r: any) => safeNum(r.view035));
const countyHW = county.map((r: any) => safeNum(r.view036)); const countyHW = county.map((r: any) => safeNum(r.view036));
countyOption = { countyOption = {
title: { text: '郊县供/回水温度【实时】', left: 'center', top: 10 }, title: { text: '乡镇供/回水温度【实时】', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },
@ -240,8 +240,8 @@ async function loadData() {
cards.value = [ cards.value = [
{ label: '城区锅炉房数量', value: s?.cqglfsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#5B8FF9,#2FC25B)' }, { label: '城区锅炉房数量', value: s?.cqglfsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#5B8FF9,#2FC25B)' },
{ label: '城区换热站数量', value: s?.cqhrzsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#2FC25B,#FACC14)' }, { label: '城区换热站数量', value: s?.cqhrzsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#2FC25B,#FACC14)' },
{ label: '郊县数量', value: s?.jxsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#F04864,#9254DE)' }, { label: '乡镇数量', value: s?.jxsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#F04864,#9254DE)' },
{ label: '郊县锅炉房数量', value: s?.jxglfsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#9254DE,#5B8FF9)' } { label: '乡镇锅炉房数量', value: s?.jxglfsl ?? 0, note: '实时统计', color: 'linear-gradient(90deg,#9254DE,#5B8FF9)' }
]; ];
// 2. // 2.

View File

@ -106,7 +106,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fullScreen: false, fullScreen: false,
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.value.regionType = '郊县' queryParam.value.regionType = '乡镇'
params.column = '', params.order = '';// params.column = '', params.order = '';//
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },

View File

@ -118,7 +118,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fullScreen: false, fullScreen: false,
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.value.regionType = '郊县' queryParam.value.regionType = '乡镇'
params.column = '', params.order = '';// params.column = '', params.order = '';//
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },
@ -162,13 +162,13 @@ function searchReset() {
const thermalcompany = ref(); const thermalcompany = ref();
async function getThermalcompany() { async function getThermalcompany() {
let params = { regionType: '郊县' }; let params = { regionType: '乡镇' };
thermalcompany.value = await companylist(params); thermalcompany.value = await companylist(params);
} }
const heatsource = ref(); const heatsource = ref();
async function getHeatsource() { async function getHeatsource() {
let params = { regionType: '郊县' }; let params = { regionType: '乡镇' };
heatsource.value = await heatsourcelist(params); heatsource.value = await heatsourcelist(params);
} }
@ -178,7 +178,7 @@ async function getHeatsource() {
// } // }
async function handleChange1(record) { async function handleChange1(record) {
var params = { companyId: record, regionType: '郊县' }; var params = { companyId: record, regionType: '乡镇' };
heatsource.value = await heatsourcelist(params); heatsource.value = await heatsourcelist(params);
// heatsourcestation.value = []; // heatsourcestation.value = [];
} }

View File

@ -9,7 +9,7 @@
@cancel="handleCqzxtCancel" :okButtonProps="{ class: { 'jee-hidden': true } }" cancelText="关闭"> @cancel="handleCqzxtCancel" :okButtonProps="{ class: { 'jee-hidden': true } }" cancelText="关闭">
<ZxtCQ ref="cqzxtRef"></ZxtCQ> <ZxtCQ ref="cqzxtRef"></ZxtCQ>
</a-modal> </a-modal>
<!-- 郊县折线图 --> <!-- 乡镇折线图 -->
<a-modal title="详情" width="100vw" wrap-class-name="full-modal" v-if="jxzxtVisible" :visible="jxzxtVisible" <a-modal title="详情" width="100vw" wrap-class-name="full-modal" v-if="jxzxtVisible" :visible="jxzxtVisible"
@cancel="handleJxzxtCancel" :okButtonProps="{ class: { 'jee-hidden': true } }" cancelText="关闭"> @cancel="handleJxzxtCancel" :okButtonProps="{ class: { 'jee-hidden': true } }" cancelText="关闭">
<ZxtJX ref="jxzxtRef"></ZxtJX> <ZxtJX ref="jxzxtRef"></ZxtJX>

View File

@ -176,7 +176,7 @@ function init(record_: any) {
const params = { const params = {
pageNo: 1, pageNo: 1,
pageSize: -1, pageSize: -1,
regionType: '郊县', regionType: '乡镇',
view001: record_.view001, view001: record_.view001,
view002: record_.view002, view002: record_.view002,
view004: -1, view004: -1,

View File

@ -102,7 +102,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fullScreen: false, fullScreen: false,
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.value.regionType = '郊县' queryParam.value.regionType = '乡镇'
params.column = '', params.order = '';// params.column = '', params.order = '';//
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },

View File

@ -150,7 +150,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
fullScreen: false, fullScreen: false,
}, },
beforeFetch: (params) => { beforeFetch: (params) => {
queryParam.value.regionType = '郊县' queryParam.value.regionType = '乡镇'
params.column = '', params.order = '';// params.column = '', params.order = '';//
return Object.assign(params, queryParam.value); return Object.assign(params, queryParam.value);
}, },

View File

@ -38,7 +38,7 @@
<a-select ref="select" placeholder="请选择换区域" v-model:value="queryParam.regionType"> <a-select ref="select" placeholder="请选择换区域" v-model:value="queryParam.regionType">
<a-select-option value="">全部</a-select-option> <a-select-option value="">全部</a-select-option>
<a-select-option value="城区">城区</a-select-option> <a-select-option value="城区">城区</a-select-option>
<a-select-option value="郊县">郊县</a-select-option> <a-select-option value="乡镇">乡镇</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@ -110,14 +110,14 @@
</div> </div>
<div class="right-text"> <div class="right-text">
<div class="top-text-3">{{ jxsl }}</div> <div class="top-text-3">{{ jxsl }}</div>
<div class="bottom-text-3">郊县总数</div> <div class="bottom-text-3">乡镇总数</div>
</div> </div>
<div class="left-img" style="cursor: pointer;" @click="openModal(2, '郊县锅炉房')"> <div class="left-img" style="cursor: pointer;" @click="openModal(2, '乡镇锅炉房')">
<img src="./dashboard/dp_icon1.png" /> <img src="./dashboard/dp_icon1.png" />
</div> </div>
<div class="right-text" style="cursor: pointer;" @click="openModal(2, '郊县锅炉房')"> <div class="right-text" style="cursor: pointer;" @click="openModal(2, '乡镇锅炉房')">
<div class="top-text-4">{{ jxglfsl }}</div> <div class="top-text-4">{{ jxglfsl }}</div>
<div class="bottom-text-4">郊县锅炉房总数</div> <div class="bottom-text-4">乡镇锅炉房总数</div>
</div> </div>
</div> </div>
<div class="middle"> <div class="middle">
@ -125,7 +125,7 @@
<div class="area-header"> <div class="area-header">
<div class="header-left"> <div class="header-left">
<img src="./dashboard/dp_icon4.png" alt="icon" /> <img src="./dashboard/dp_icon4.png" alt="icon" />
<span class="header-left-text">郊县瞬时热量实时</span> <span class="header-left-text">乡镇瞬时热量实时</span>
</div> </div>
</div> </div>
<div class="area-body"></div> <div class="area-body"></div>
@ -134,7 +134,7 @@
<div class="area-header"> <div class="area-header">
<div class="header-left"> <div class="header-left">
<img src="./dashboard/dp_icon4.png" alt="icon" /> <img src="./dashboard/dp_icon4.png" alt="icon" />
<span class="header-left-text">郊县瞬时流量实时</span> <span class="header-left-text">乡镇瞬时流量实时</span>
</div> </div>
</div> </div>
<div class=" area-body"></div> <div class=" area-body"></div>
@ -144,7 +144,7 @@
<div class="area-header"> <div class="area-header">
<div class="header-left"> <div class="header-left">
<img src="./dashboard/dp_icon4.png" alt="icon" /> <img src="./dashboard/dp_icon4.png" alt="icon" />
<span class="header-left-text">郊县供回水温度实时</span> <span class="header-left-text">乡镇供回水温度实时</span>
</div> </div>
<div class="header-right" style="display: flex; "> <div class="header-right" style="display: flex; ">
<div class="header-right"> <div class="header-right">
@ -443,7 +443,7 @@ function updateChartLine() {
}, true); }, true);
} }
// area-6 // area-6
function updateChartCounty() { function updateChartCounty() {
if (!chartCounty) return; if (!chartCounty) return;

View File

@ -19,13 +19,13 @@
<tr v-for="(item,index) in list" :key="item.id" :class="index%2==0?'data-list-data-screen':'data-list-data3-screen'"> <tr v-for="(item,index) in list" :key="item.id" :class="index%2==0?'data-list-data-screen':'data-list-data3-screen'">
<td class="tabulation-screen">{{ item.view004Name!=null?item.view004Name:item.view002Name }}</td> <td class="tabulation-screen">{{ item.view004Name!=null?item.view004Name:item.view002Name }}</td>
<td v-if="item.regionType=='城区'" style="width:20%; text-align: center;">{{ item.datatime }}</td> <td v-if="item.regionType=='城区'" style="width:20%; text-align: center;">{{ item.datatime }}</td>
<td v-if="item.regionType=='郊县'" style="width:20%; text-align: center;">{{ item.view032 }}</td> <td v-if="item.regionType=='乡镇'" style="width:20%; text-align: center;">{{ item.view032 }}</td>
<td v-if="item.regionType=='城区'&&item.view004==null" style="width:10%; text-align: center;">{{ item.view005 }}</td> <td v-if="item.regionType=='城区'&&item.view004==null" style="width:10%; text-align: center;">{{ item.view005 }}</td>
<td v-if="item.regionType=='城区'&&item.view004==null" style="width:10%; text-align: center;">{{ item.view006 }}</td> <td v-if="item.regionType=='城区'&&item.view004==null" style="width:10%; text-align: center;">{{ item.view006 }}</td>
<td v-if="item.regionType=='城区'&&item.view004!=null" style="width:10%; text-align: center;">{{ item.view009 }}</td> <td v-if="item.regionType=='城区'&&item.view004!=null" style="width:10%; text-align: center;">{{ item.view009 }}</td>
<td v-if="item.regionType=='城区'&&item.view004!=null" style="width:10%; text-align: center;">{{ item.view010 }}</td> <td v-if="item.regionType=='城区'&&item.view004!=null" style="width:10%; text-align: center;">{{ item.view010 }}</td>
<td v-if="item.regionType=='郊县'" style="width:10%; text-align: center;">{{ item.view035 }}</td> <td v-if="item.regionType=='乡镇'" style="width:10%; text-align: center;">{{ item.view035 }}</td>
<td v-if="item.regionType=='郊县'" style="width:10%; text-align: center;">{{ item.view036 }}</td> <td v-if="item.regionType=='乡镇'" style="width:10%; text-align: center;">{{ item.view036 }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -198,7 +198,7 @@ function init(record_: any) {
const params = { const params = {
pageNo: 1, pageNo: 1,
pageSize: -1, pageSize: -1,
regionType: '郊县', regionType: '乡镇',
view001: record_.view001, view001: record_.view001,
view002: record_.view002, view002: record_.view002,
startDate: formatDateTime(start), startDate: formatDateTime(start),

View File

@ -92,7 +92,7 @@ async function getHistoryList(){
value1 = Number(list[i].view005); value1 = Number(list[i].view005);
value2 = Number(list[i].view006); value2 = Number(list[i].view006);
} }
if(list[i].regionType =='郊县'){ if(list[i].regionType =='乡镇'){
value1 = Number(list[i].view035); value1 = Number(list[i].view035);
value2 = Number(list[i].view036); value2 = Number(list[i].view036);
} }

View File

@ -29,7 +29,7 @@ function sortByTime(arr: any[]) {
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -49,7 +49,7 @@ function prepareOptions(records: any[]) {
const citySW = city.map((r: any) => safeNum(r.view035)); const citySW = city.map((r: any) => safeNum(r.view035));
const cityHW = city.map((r: any) => safeNum(r.view036)); const cityHW = city.map((r: any) => safeNum(r.view036));
cityOption = { cityOption = {
title: { text: '郊县锅炉房供/回水温度', left: 'center', top: 10 }, title: { text: '乡镇锅炉房供/回水温度', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -51,14 +51,14 @@ function sortByTime(arr: any[]) {
const heatsource = ref(); const heatsource = ref();
async function getHeatsource(){ async function getHeatsource(){
heatsource.value = await heatsourcelist({regionType: '郊县'}); heatsource.value = await heatsourcelist({regionType: '乡镇'});
} }
async function handleChange(){ async function handleChange(){
loadData(); loadData();
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -75,7 +75,7 @@ function prepareOptions(records: any[]) {
const citySW = city.map((r: any) => safeNum(r.view005)); const citySW = city.map((r: any) => safeNum(r.view005));
const cityHW = city.map((r: any) => safeNum(r.view006)); const cityHW = city.map((r: any) => safeNum(r.view006));
cityOption = { cityOption = {
title: { text: '郊县锅炉房历史供/回水温度', left: 'center', top: 10 }, title: { text: '乡镇锅炉房历史供/回水温度', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -29,7 +29,7 @@ function sortByTime(arr: any[]) {
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -48,7 +48,7 @@ function prepareOptions(records: any[]) {
console.log("🚀 ~ prepareOptions ~ cityX:", cityX) console.log("🚀 ~ prepareOptions ~ cityX:", cityX)
const citySW = city.map((r: any) => safeNum(r.view037)); const citySW = city.map((r: any) => safeNum(r.view037));
cityOption = { cityOption = {
title: { text: '郊县锅炉房热流量', left: 'center', top: 10 }, title: { text: '乡镇锅炉房热流量', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -51,14 +51,14 @@ function sortByTime(arr: any[]) {
const heatsource = ref(); const heatsource = ref();
async function getHeatsource(){ async function getHeatsource(){
heatsource.value = await heatsourcelist({regionType: '郊县'}); heatsource.value = await heatsourcelist({regionType: '乡镇'});
} }
async function handleChange(){ async function handleChange(){
loadData(); loadData();
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -74,7 +74,7 @@ function prepareOptions(records: any[]) {
const cityX = buildXAxis(city, 'datatime'); const cityX = buildXAxis(city, 'datatime');
const citySW = city.map((r: any) => safeNum(r.view037)); const citySW = city.map((r: any) => safeNum(r.view037));
cityOption = { cityOption = {
title: { text: '郊县锅炉房历史热流量', left: 'center', top: 10 }, title: { text: '乡镇锅炉房历史热流量', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -29,7 +29,7 @@ function sortByTime(arr: any[]) {
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -48,7 +48,7 @@ function prepareOptions(records: any[]) {
console.log("🚀 ~ prepareOptions ~ cityX:", cityX) console.log("🚀 ~ prepareOptions ~ cityX:", cityX)
const citySW = city.map((r: any) => safeNum(r.view041)); const citySW = city.map((r: any) => safeNum(r.view041));
cityOption = { cityOption = {
title: { text: '郊县锅炉房水流量', left: 'center', top: 10 }, title: { text: '乡镇锅炉房水流量', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -51,14 +51,14 @@ function sortByTime(arr: any[]) {
const heatsource = ref(); const heatsource = ref();
async function getHeatsource(){ async function getHeatsource(){
heatsource.value = await heatsourcelist({regionType: '郊县'}); heatsource.value = await heatsourcelist({regionType: '乡镇'});
} }
async function handleChange(){ async function handleChange(){
loadData(); loadData();
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -74,7 +74,7 @@ function prepareOptions(records: any[]) {
const cityX = buildXAxis(city, 'datatime'); const cityX = buildXAxis(city, 'datatime');
const citySW = city.map((r: any) => safeNum(r.view037)); const citySW = city.map((r: any) => safeNum(r.view037));
cityOption = { cityOption = {
title: { text: '郊县锅炉房历史水流量', left: 'center', top: 10 }, title: { text: '乡镇锅炉房历史水流量', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -29,7 +29,7 @@ function sortByTime(arr: any[]) {
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -49,7 +49,7 @@ function prepareOptions(records: any[]) {
const citySW = city.map((r: any) => safeNum(r.view007)); const citySW = city.map((r: any) => safeNum(r.view007));
const cityHW = city.map((r: any) => safeNum(r.view008)); const cityHW = city.map((r: any) => safeNum(r.view008));
cityOption = { cityOption = {
title: { text: '郊县锅炉房供/回水压力', left: 'center', top: 10 }, title: { text: '乡镇锅炉房供/回水压力', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -51,14 +51,14 @@ function sortByTime(arr: any[]) {
const heatsource = ref(); const heatsource = ref();
async function getHeatsource(){ async function getHeatsource(){
heatsource.value = await heatsourcelist({regionType: '郊县'}); heatsource.value = await heatsourcelist({regionType: '乡镇'});
} }
async function handleChange(){ async function handleChange(){
loadData(); loadData();
} }
function splitByRegion(data: any[]) { function splitByRegion(data: any[]) {
const city = data.filter(d => String(d.regionType).includes('郊县')); const city = data.filter(d => String(d.regionType).includes('乡镇'));
return { city: sortByTime(city) }; return { city: sortByTime(city) };
} }
function buildXAxis(records: any[], key = 'view028') { function buildXAxis(records: any[], key = 'view028') {
@ -75,7 +75,7 @@ function prepareOptions(records: any[]) {
const citySW = city.map((r: any) => safeNum(r.view007)); const citySW = city.map((r: any) => safeNum(r.view007));
const cityHW = city.map((r: any) => safeNum(r.view008)); const cityHW = city.map((r: any) => safeNum(r.view008));
cityOption = { cityOption = {
title: { text: '郊县锅炉房历史供/回水压力', left: 'center', top: 10 }, title: { text: '乡镇锅炉房历史供/回水压力', left: 'center', top: 10 },
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
legend: { top: 36, left: 'center' }, legend: { top: 36, left: 'center' },
grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true }, grid: { left: '6%', right: '4%', bottom: 70, top: 70, containLabel: true },

View File

@ -24,6 +24,9 @@
</div> </div>
<div class="reg-bar"> <div class="reg-bar">
</div> </div>
<div hidden>
{{randCodeData}}
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -89,7 +89,7 @@ onMounted(() => {
<style lang="less" scoped> <style lang="less" scoped>
@font-face { @font-face {
font-family: "DS-Digital";// font-family: "DS-Digital";//
src: url("@/assets/fonts/DS-DIGII-3.ttf"); // src: url("@/assets/fonts/DS-DIGII-3.ttf");
} }
.fontTime{ .fontTime{
background: linear-gradient(to right, #47f0ff, #0899ff); background: linear-gradient(to right, #47f0ff, #0899ff);
@ -115,7 +115,7 @@ onMounted(() => {
background: #2e303e; background: #2e303e;
} }
.bgheader{ .bgheader{
background: url("@/assets/images/background_app.png") no-repeat; // background: url("@/assets/images/background_app.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
//background: #2e303e; //background: #2e303e;
} }

View File

@ -215,10 +215,10 @@ onMounted(() => {
<style lang="less" scoped> <style lang="less" scoped>
@import '/@/assets/loginmini/style/screen.less'; @import '/@/assets/loginmini/style/screen.less';
@font-face { // @font-face {
font-family: "DS-Digital";// // font-family: "DS-Digital";//
src: url("@/assets/fonts/DS-DIGII-3.ttf"); // src: url("@/assets/fonts/DS-DIGII-3.ttf");
} // }
.fontTime{ .fontTime{
background: linear-gradient(to right, #47f0ff, #0899ff); background: linear-gradient(to right, #47f0ff, #0899ff);
-webkit-background-clip: text; -webkit-background-clip: text;