fix: BUG修改
This commit is contained in:
parent
f957d875ea
commit
3a204335e1
@ -250,8 +250,8 @@ export const getDustengineeringPage = (params: User.ReqUserParams) => {
|
|||||||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/gov/environmentDev/engineeringPage`, params);
|
return http.post<ResPage<User.ResUserList>>(BASEURL + `/gov/environmentDev/engineeringPage`, params);
|
||||||
};
|
};
|
||||||
// 统计扬尘设备数据
|
// 统计扬尘设备数据
|
||||||
export const getDuststatistics = () => {
|
export const getDuststatistics = (params: any) => {
|
||||||
return http.get<ResPage<User.ResUserList>>(BASEURL + `/gov/environmentDev/statistics`);
|
return http.get<ResPage<User.ResUserList>>(BASEURL + `/gov/environmentDev/statistics/${params.type}`);
|
||||||
};
|
};
|
||||||
// 列表查询扬尘设备管理信息
|
// 列表查询扬尘设备管理信息
|
||||||
export const getDustMonitorDev = (params: ReqAiMonitorDev) => {
|
export const getDustMonitorDev = (params: ReqAiMonitorDev) => {
|
||||||
|
|||||||
@ -31,6 +31,10 @@ export const getEngineeringAll = () => {
|
|||||||
return http.get<ResponseSame<ScreenResponse.EngineeringAllResponse>>(BASEURL + `/gov/api/index/engineeringStat`);
|
return http.get<ResponseSame<ScreenResponse.EngineeringAllResponse>>(BASEURL + `/gov/api/index/engineeringStat`);
|
||||||
};
|
};
|
||||||
//顶部查询工程统计信息
|
//顶部查询工程统计信息
|
||||||
export const getMapProject = () => {
|
export const getMapEngineering = () => {
|
||||||
return http.get<ResponseSame<ScreenResponse.mapProjectResponse>>(BASEURL + `/gov/api/index/engineeringList`);
|
return http.get<ResponseSame<ScreenResponse.mapProjectResponse>>(BASEURL + `/gov/api/index/engineeringList`);
|
||||||
};
|
};
|
||||||
|
// 顶部查询项目统计信息
|
||||||
|
export const getMapProject = () => {
|
||||||
|
return http.get<ResponseSame<ScreenResponse.mapProjectResponse>>(BASEURL + `/gov/api/index/projectList`);
|
||||||
|
};
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tool-bar-ri">
|
<div class="tool-bar-ri">
|
||||||
<div class="header-icon">
|
<div class="header-icon" style="margin: 0 26px">
|
||||||
<!-- <AssemblySize id="assemblySize" />
|
<!-- <AssemblySize id="assemblySize" />
|
||||||
<Language id="language" />
|
<Language id="language" />
|
||||||
<SearchMenu id="searchMenu" />
|
<SearchMenu id="searchMenu" />
|
||||||
<ThemeSetting id="themeSetting" /> -->
|
<ThemeSetting id="themeSetting" /> -->
|
||||||
<div style="display: flex; align-items: center; cursor: pointer">
|
<!-- <div style="display: flex; align-items: center; cursor: pointer">
|
||||||
<Message id="message" />
|
<Message id="message" />
|
||||||
<!-- <Fullscreen id="fullscreen" /> -->
|
<Fullscreen id="fullscreen" />
|
||||||
<!-- <div class="messagetext">消息</div> -->
|
<div class="messagetext">消息</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span style="margin: 0 26px">|</span>
|
<span style="margin: 0 26px">|</span> -->
|
||||||
</div>
|
</div>
|
||||||
<!-- <span class="username">Geeker</span> -->
|
<!-- <span class="username">Geeker</span> -->
|
||||||
<Avatar />
|
<Avatar />
|
||||||
|
|||||||
@ -338,7 +338,10 @@ const getAIengPage = async () => {
|
|||||||
};
|
};
|
||||||
// 获取页面统计数字
|
// 获取页面统计数字
|
||||||
const getStatisticsList = async () => {
|
const getStatisticsList = async () => {
|
||||||
const res = await getDuststatistics();
|
let requestData = {
|
||||||
|
type: active.value + 1
|
||||||
|
};
|
||||||
|
const res = await getDuststatistics(requestData);
|
||||||
mapTitleList.value = res.result;
|
mapTitleList.value = res.result;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -364,10 +367,12 @@ watch(
|
|||||||
await getAIproPage();
|
await getAIproPage();
|
||||||
await getproList();
|
await getproList();
|
||||||
onSearch(records.value[0]);
|
onSearch(records.value[0]);
|
||||||
|
getStatisticsList();
|
||||||
} else {
|
} else {
|
||||||
await getAIengPage();
|
await getAIengPage();
|
||||||
await getengList();
|
await getengList();
|
||||||
onSearch(records.value[0]);
|
onSearch(records.value[0]);
|
||||||
|
getStatisticsList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -385,8 +390,8 @@ watch(
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await mapData();
|
await mapData();
|
||||||
// getAIengPage();
|
|
||||||
getStatisticsList();
|
getStatisticsList();
|
||||||
|
// getAIengPage();
|
||||||
getproList();
|
getproList();
|
||||||
await getAIproPage();
|
await getAIproPage();
|
||||||
|
|
||||||
|
|||||||
@ -59,13 +59,11 @@ const projectStatusImg = ref({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const projectStatus = ref({
|
const projectStatus = ref({
|
||||||
1: "末开工",
|
0: "末开工",
|
||||||
2: "在建",
|
1: "在建",
|
||||||
3: "普通停工",
|
2: "停工",
|
||||||
4: "处罚停工",
|
3: "验收",
|
||||||
5: "完工",
|
4: "完工"
|
||||||
6: "待竣工",
|
|
||||||
7: "竣工"
|
|
||||||
});
|
});
|
||||||
const mapProjectList = ref([]);
|
const mapProjectList = ref([]);
|
||||||
const getProjectList = async () => {
|
const getProjectList = async () => {
|
||||||
@ -152,27 +150,15 @@ const initMap = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">项目名称:</span>
|
<span class="label">项目名称:</span>
|
||||||
<span class="value">${item.engineering_name}</span>
|
<span class="value">${item.project_name}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">项目状态:</span>
|
<span class="label">项目状态:</span>
|
||||||
<span class="value">${projectStatusEnum.value[item.state] ? projectStatusEnum.value[item.state] : "暂无"}</span>
|
<span class="value">${projectStatusEnum.value[item.state] ? projectStatusEnum.value[item.state] : "暂无"}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
|
||||||
<span class="label">项目造价:</span>
|
|
||||||
<span class="value">${item.engineering_cost || 0}万元</span>
|
|
||||||
</div>
|
|
||||||
<div class="info">
|
|
||||||
<span class="label">工程面积:</span>
|
|
||||||
<span class="value">${item.engineering_area || 0}m²</span>
|
|
||||||
</div>
|
|
||||||
<div class="info">
|
|
||||||
<span class="label">建设单位:</span>
|
|
||||||
<span class="value">${item.enterprise_name || "暂无"}</span>
|
|
||||||
</div>
|
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">项目地址:</span>
|
<span class="label">项目地址:</span>
|
||||||
<span class="value">${item.province + item.city + item.district + item.address || "暂无"}</span>
|
<span class="value">${item.project_address || "暂无"}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
marker.on("mousemove", markerMousemove);
|
marker.on("mousemove", markerMousemove);
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
height: calc(100% - 96px);
|
||||||
.left-content {
|
.left-content {
|
||||||
// flex: 1;
|
// flex: 1;
|
||||||
padding: 26px 36px 0 0;
|
padding: 26px 36px 0 0;
|
||||||
@ -24,6 +25,9 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
.book-content {
|
.book-content {
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
color: #333;
|
color: #333;
|
||||||
@ -32,6 +36,10 @@
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.checkgroup-content {
|
||||||
|
overflow-y: scroll;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,6 +89,7 @@
|
|||||||
<el-radio v-for="item in option" :label="item.dictLabel" :key="item.dictCode">{{ item.dictValue }}</el-radio>
|
<el-radio v-for="item in option" :label="item.dictLabel" :key="item.dictCode">{{ item.dictValue }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<div>收件人</div>
|
<div>收件人</div>
|
||||||
|
<div class="checkgroup-content">
|
||||||
<el-checkbox-group class="flx-justify-column" v-model="value">
|
<el-checkbox-group class="flx-justify-column" v-model="value">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="item in nameList"
|
v-for="item in nameList"
|
||||||
@ -98,6 +99,7 @@
|
|||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
<FileUpload v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -189,10 +191,16 @@ const getMsg = val => {
|
|||||||
};
|
};
|
||||||
const handlechange = e => {
|
const handlechange = e => {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
console.log(current.value);
|
||||||
current.value.files = e.map(item => {
|
current.value.files = e.map(item => {
|
||||||
item.label = current.value.dictLabel;
|
item.label = current.value.dictLabel;
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
|
if (!current.value.fileName) {
|
||||||
|
e.map(item => {
|
||||||
|
current.value.fileName = item.response.filename;
|
||||||
|
});
|
||||||
|
}
|
||||||
console.log(annexFileList.value);
|
console.log(annexFileList.value);
|
||||||
};
|
};
|
||||||
// 通讯录过滤寻找匹配合适项
|
// 通讯录过滤寻找匹配合适项
|
||||||
@ -267,7 +275,9 @@ const onAddData = () => {
|
|||||||
|
|
||||||
const deleteRow = row => {
|
const deleteRow = row => {
|
||||||
const i = annexFileList.value?.indexOf(row);
|
const i = annexFileList.value?.indexOf(row);
|
||||||
i != null && annexFileList.value?.splice(i, 1);
|
console.log(i);
|
||||||
|
annexFileList.value?.splice(i, 1);
|
||||||
|
// i != null && annexFileList.value?.splice(i, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 上传附件按钮
|
// 上传附件按钮
|
||||||
@ -325,7 +335,15 @@ const handleSubmit = async (formEl: FormInstance | undefined) => {
|
|||||||
annexFileList.value.forEach(item => {
|
annexFileList.value.forEach(item => {
|
||||||
let files = item.files;
|
let files = item.files;
|
||||||
files?.forEach(j => {
|
files?.forEach(j => {
|
||||||
|
if (j.response.fileId) {
|
||||||
editFiles.push(j.response);
|
editFiles.push(j.response);
|
||||||
|
} else {
|
||||||
|
editFiles.push({
|
||||||
|
fileName: j.response.filename,
|
||||||
|
fileSize: "",
|
||||||
|
fileUrl: j.response.url
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
await noticeeditmyPost({
|
await noticeeditmyPost({
|
||||||
@ -395,27 +413,42 @@ onMounted(async () => {
|
|||||||
console.log(searchForm.value.type);
|
console.log(searchForm.value.type);
|
||||||
|
|
||||||
leftForm.value = store.Message;
|
leftForm.value = store.Message;
|
||||||
annexFileList.value.forEach(item => {
|
console.log(annexFileList.value);
|
||||||
const currFiles = store.Message.annexFileList.filter(j => {
|
console.log(store.Message.annexFileList);
|
||||||
return j.label == item.fileName;
|
annexFileList.value = [];
|
||||||
});
|
store.Message.annexFileList.forEach(item => {
|
||||||
const files = [];
|
// const currFiles = store.Message.annexFileList.filter(j => {
|
||||||
|
// return j.label == item.fileName;
|
||||||
|
// });
|
||||||
|
// const files = [];
|
||||||
|
|
||||||
currFiles.forEach(curr => {
|
// currFiles.forEach(curr => {
|
||||||
annexFileList.value.fileName = curr.fileName;
|
// // item.fileName = curr.fileName;
|
||||||
files.push({
|
// files.push({
|
||||||
id: curr.fileId,
|
// id: curr.fileId,
|
||||||
name: curr.fileName,
|
// name: curr.fileName,
|
||||||
size: +curr.fileSize,
|
// size: +curr.fileSize,
|
||||||
|
// type: "image/png",
|
||||||
|
// response: { ...curr, contentType: "image/png" }
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
annexFileList.value.push({
|
||||||
|
fileName: item.fileName,
|
||||||
|
files: [
|
||||||
|
{
|
||||||
|
id: item.fileId,
|
||||||
|
name: item.fileName,
|
||||||
|
size: +item.fileSize,
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
response: { ...curr, contentType: "image/png" }
|
response: { ...item, contentType: "image/png" }
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
// item.files = files;
|
||||||
|
|
||||||
item.files = files;
|
|
||||||
// item.fileName = store.Message?.title;
|
// item.fileName = store.Message?.title;
|
||||||
});
|
});
|
||||||
console.log(annexFileList.value);
|
console.log(annexFileList.value);
|
||||||
|
console.log(annexFileList.value.fileName);
|
||||||
tags.value = store.Message.acceptList;
|
tags.value = store.Message.acceptList;
|
||||||
|
|
||||||
tags.value.forEach(item => {
|
tags.value.forEach(item => {
|
||||||
|
|||||||
@ -4,6 +4,9 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #f6f6f6;
|
background-color: #f6f6f6;
|
||||||
|
.plr-20 {
|
||||||
|
height: calc(100% - 112px);
|
||||||
|
}
|
||||||
// padding: 0 20px;
|
// padding: 0 20px;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
.middle-video {
|
.middle-video {
|
||||||
@ -85,7 +88,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
:deep() {
|
||||||
|
.el-tabs__content {
|
||||||
|
height: calc(100% - 55px);
|
||||||
|
}
|
||||||
|
.el-tab-pane {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.el-scrollbar {
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
}
|
||||||
.demo-tabs > .el-tabs__content {
|
.demo-tabs > .el-tabs__content {
|
||||||
padding: 32px;
|
padding: 32px;
|
||||||
width: 15vw;
|
width: 15vw;
|
||||||
@ -98,7 +111,7 @@
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
overflow: auto;
|
// overflow: auto;
|
||||||
:deep(.el-tabs__nav-wrap) {
|
:deep(.el-tabs__nav-wrap) {
|
||||||
// overflow: auto;
|
// overflow: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<h3>实时视频</h3>
|
<h3>实时视频</h3>
|
||||||
<!-- <span>-</span>
|
<!-- <span>-</span>
|
||||||
<h3>{{ childTitle }}</h3> -->
|
<h3>{{ childTitle }}</h3> -->
|
||||||
<img @click="onPhoto" src="@/assets/images/AIwaring/抓拍.png" alt="" />
|
<!-- <img @click="onPhoto" src="@/assets/images/AIwaring/抓拍.png" alt="" /> -->
|
||||||
</div>
|
</div>
|
||||||
<!-- 视频数据站位 -->
|
<!-- 视频数据站位 -->
|
||||||
<!-- <div id="playWnd" ref="playWndBox" class="box vedioShow"></div> -->
|
<!-- <div id="playWnd" ref="playWndBox" class="box vedioShow"></div> -->
|
||||||
@ -41,7 +41,7 @@
|
|||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-form">
|
<!-- <div class="right-form">
|
||||||
<div class="date-form">
|
<div class="date-form">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="dateForm.dateTime"
|
v-model="dateForm.dateTime"
|
||||||
@ -84,7 +84,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="question-form" v-for="item in rightForm" :key="item.monitorId">
|
<div class="question-form" v-for="item in rightForm" :key="item.monitorId">
|
||||||
<!-- <div class="title">{{ active === "first" ? item.projectName : item.engineeringName }}</div> -->
|
|
||||||
<div class="title">{{ item.engineeringName === null ? item.projectName : item.engineeringName }}</div>
|
<div class="title">{{ item.engineeringName === null ? item.projectName : item.engineeringName }}</div>
|
||||||
|
|
||||||
<div class="desc">
|
<div class="desc">
|
||||||
@ -149,7 +148,7 @@
|
|||||||
:handleCurrentChange="handleCurrentChange"
|
:handleCurrentChange="handleCurrentChange"
|
||||||
class="pagination"
|
class="pagination"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user