提交 2e5db679 authored 作者: 刘守彩's avatar 刘守彩

feat: new app add

上级 90114c3f
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
## 说明 ## 说明
**`master`分支,用于F座3楼机房,`master_two`分支,用于坑洞机房。两个分支互不合并。** **`master`分支,用于F座3楼机房,`master_two`分支,用于山南机房。两个分支互不合并。**
\ No newline at end of file \ No newline at end of file
[ [
{ {
"id": "1", "id": "61b4dafea514193b9b39e3d4bb847bbd",
"roomName": "F3内环屏蔽机房", "roomName": "山南UPS间",
"buildingId": "8a02454d00bd9df7bda41f7d1a6c471e", "buildingId": "8a02454d00bd9df7bda41f7d1a6c471e",
"buildingName": "G座", "buildingName": "G座",
"roomType": "1", "roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/25/20de409bc81f48dbbeaeb9c198683ee6_20250325143326A008.jpeg,http://192.168.100.103:8099/profile/upload/2025/03/25/1711459331134717_20250325143340A009.png", "roomFile": "",
"roomAddress": null, "roomAddress": null,
"keynoteFlag": "0", "keynoteFlag": "0",
"sort": "1", "sort": "1",
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
"dictValue": "1" "dictValue": "1"
}, },
{ {
"id": "2", "id": "2cd89f11ca6bf410a2e9921a832ceff3",
"roomName": "F3外环屏蔽机房", "roomName": "接入机房",
"buildingId": "8", "buildingId": "8",
"buildingName": "A座", "buildingName": "A座",
"roomType": "1", "roomType": "1",
"roomFile": "/profile/upload/2025/03/24/sample_640×426 - 副本_20250324135659A007.JPG", "roomFile": "",
"roomAddress": null, "roomAddress": null,
"keynoteFlag": "0", "keynoteFlag": "0",
"sort": "4", "sort": "4",
...@@ -44,12 +44,12 @@ ...@@ -44,12 +44,12 @@
"dictValue": "2" "dictValue": "2"
}, },
{ {
"id": "3", "id": "920c0307eca9fa9d84a8b718762873c5",
"roomName": "F2汇聚机房", "roomName": "传输机房",
"buildingId": "10", "buildingId": "10",
"buildingName": "B座", "buildingName": "B座",
"roomType": "1", "roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/18/20de409bc81f48dbbeaeb9c198683ee6_20250318141902A009.jpeg", "roomFile": "",
"roomAddress": null, "roomAddress": null,
"keynoteFlag": "0", "keynoteFlag": "0",
"sort": "4", "sort": "4",
...@@ -66,12 +66,12 @@ ...@@ -66,12 +66,12 @@
"dictValue": "3" "dictValue": "3"
}, },
{ {
"id": "4", "id": "d1b0c6686d7563b8e9d9fb51b139a4bc",
"roomName": " A2汇聚机房", "roomName": " 国安专区",
"buildingId": "10", "buildingId": "10",
"buildingName": "B座", "buildingName": "B座",
"roomType": "1", "roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/27/微信截图_20250327155657_20250327155711A005.png", "roomFile": "",
"roomAddress": null, "roomAddress": null,
"keynoteFlag": "0", "keynoteFlag": "0",
"sort": "4", "sort": "4",
...@@ -88,12 +88,12 @@ ...@@ -88,12 +88,12 @@
"dictValue": "4" "dictValue": "4"
}, },
{ {
"id": "5", "id": "8d1704ba09694bc4d7e681d5b00ef52e",
"roomName": "A3屏蔽机房", "roomName": "纪委专区",
"buildingId": "10", "buildingId": "10",
"buildingName": "B座", "buildingName": "B座",
"roomType": "1", "roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/18/1711459331134717_20250318150705A002.png", "roomFile": "",
"roomAddress": null, "roomAddress": null,
"keynoteFlag": "0", "keynoteFlag": "0",
"sort": "5", "sort": "5",
...@@ -110,12 +110,12 @@ ...@@ -110,12 +110,12 @@
"dictValue": "5" "dictValue": "5"
}, },
{ {
"id": "6", "id": "f9264f7781e9a6d467894a886dce5918",
"roomName": "A-1UPS间", "roomName": "山南市委机房",
"buildingId": "8", "buildingId": "8",
"buildingName": "A1座", "buildingName": "A1座",
"roomType": "1", "roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/18/1711459331134717_20250318150705A002.png", "roomFile": "",
"roomAddress": null, "roomAddress": null,
"keynoteFlag": "0", "keynoteFlag": "0",
"sort": "6", "sort": "6",
...@@ -130,115 +130,5 @@ ...@@ -130,115 +130,5 @@
"SHOW": null, "SHOW": null,
"roomFeature": "3", "roomFeature": "3",
"dictValue": "6" "dictValue": "6"
}, }
{
"id": "7",
"roomName": "B2汇聚机房",
"buildingId": "10",
"buildingName": "B座",
"roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/18/1711459331134717_20250318150705A002.png",
"roomAddress": null,
"keynoteFlag": "0",
"sort": "7",
"roomDesc": "市民中心A座4楼",
"remark": null,
"createTime": "1742785651000",
"createBy": "",
"updateTime": "1742785651000",
"updateBy": "",
"delFlag": "0",
"synFlag": "1",
"SHOW": null,
"roomFeature": "1",
"dictValue": "7"
},
{
"id": "8",
"roomName": "C2汇聚机房",
"buildingId": "8",
"buildingName": "A1座",
"roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/20/sample_640×426 - 副本_20250320091529A001.JPG",
"roomAddress": null,
"keynoteFlag": "0",
"sort": "9",
"roomDesc": "A座-3楼",
"remark": null,
"createTime": "1742785675000",
"createBy": "",
"updateTime": "1742785675000",
"updateBy": "",
"delFlag": "0",
"synFlag": "1",
"SHOW": null,
"roomFeature": "1",
"dictValue": "8"
},
{
"id": "9",
"roomName": "D2汇聚机房",
"buildingId": "8",
"buildingName": "A1座",
"roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/20/sample_640×426 - 副本_20250320091529A001.JPG",
"roomAddress": null,
"keynoteFlag": "0",
"sort": "9",
"roomDesc": "A座-3楼",
"remark": null,
"createTime": "1742785675000",
"createBy": "",
"updateTime": "1742785675000",
"updateBy": "",
"delFlag": "0",
"synFlag": "1",
"SHOW": null,
"roomFeature": "1",
"dictValue": "9"
},
{
"id": "10",
"roomName": "E2汇聚机房",
"buildingId": "8",
"buildingName": "A1座",
"roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/20/sample_640×426 - 副本_20250320091529A001.JPG",
"roomAddress": null,
"keynoteFlag": "0",
"sort": "9",
"roomDesc": "A座-3楼",
"remark": null,
"createTime": "1742785675000",
"createBy": "",
"updateTime": "1742785675000",
"updateBy": "",
"delFlag": "0",
"synFlag": "1",
"SHOW": null,
"roomFeature": "1",
"dictValue": "10"
},
{
"id": "11",
"roomName": "F-2UPS间",
"buildingId": "8",
"buildingName": "A1座",
"roomType": "1",
"roomFile": "http://192.168.100.103:8099/profile/upload/2025/03/20/sample_640×426 - 副本_20250320091529A001.JPG",
"roomAddress": null,
"keynoteFlag": "0",
"sort": "9",
"roomDesc": "A座-3楼",
"remark": null,
"createTime": "1742785675000",
"createBy": "",
"updateTime": "1742785675000",
"updateBy": "",
"delFlag": "0",
"synFlag": "1",
"SHOW": null,
"roomFeature": "1",
"dictValue": "11"
}
] ]
[{ [{
"userId": "1", "userId": "1",
"user": "姜安平", "user": "姚祚",
"avatar": "", "avatar": "",
"passWord": "Jap@123", "passWord": "Yz@123",
"roleName": "巡检员", "roleName": "巡检员",
"unitName": "运维", "unitName": "运维",
"isAdmin": "", "isAdmin": "",
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
}, },
{ {
"userId": "2", "userId": "2",
"user": "段树梁", "user": "郑宏杰",
"avatar": "", "avatar": "",
"passWord": "Dsl@123", "passWord": "Zhj@123",
"roleName": "巡检员", "roleName": "巡检员",
"unitName": "运维", "unitName": "运维",
"isAdmin": "", "isAdmin": "",
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
}, },
{ {
"userId": "3", "userId": "3",
"user": "孔佳真", "user": "何祥",
"avatar": "", "avatar": "",
"passWord": "Kjz@123", "passWord": "Hx@123",
"roleName": "巡检员", "roleName": "巡检员",
"unitName": "运维", "unitName": "运维",
"isAdmin": "", "isAdmin": "",
...@@ -30,16 +30,6 @@ ...@@ -30,16 +30,6 @@
}, },
{ {
"userId": "4", "userId": "4",
"user": "钟校明",
"avatar": "",
"passWord": "Zxm@123",
"roleName": "巡检员",
"unitName": "运维",
"isAdmin": "",
"LastSynchronizationTime": ""
},
{
"userId": "5",
"user": "管理员", "user": "管理员",
"avatar": "", "avatar": "",
"passWord": "Gly@124", "passWord": "Gly@124",
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<!-- 巡检管理搜索页 --> <!-- 巡检管理搜索页 -->
<view class="search-com"> <view class="search-com">
<view class="search-com-left"> <view class="search-com-left">
<uni-data-select v-if="!hiddenSearch.includes('inspectionType')" class="uni-search-item" <!-- <uni-data-select v-if="!hiddenSearch.includes('inspectionType')" class="uni-search-item"
v-model="searchFrom.inspectionType" :localdata="inspectArr" @change="(e) => change(e, 'inspectionType')" v-model="searchFrom.inspectionType" :localdata="inspectArr" @change="(e) => change(e, 'inspectionType')"
placeholder="类型"></uni-data-select> placeholder="类型"></uni-data-select> -->
<uni-data-select v-if="!hiddenSearch.includes('synFlag')" class="uni-search-item" v-model="searchFrom.synFlag" :localdata="synchronization" placeholder="是否同步" <uni-data-select v-if="!hiddenSearch.includes('synFlag')" class="uni-search-item" v-model="searchFrom.synFlag" :localdata="synchronization" placeholder="是否同步"
@change="(e) => change(e, 'synFlag')"></uni-data-select> @change="(e) => change(e, 'synFlag')"></uni-data-select>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
@confirm="dialogInputConfirm2" @confirm="dialogInputConfirm2"
> >
</uni-popup-dialog> </uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>
...@@ -81,11 +81,11 @@ export default { ...@@ -81,11 +81,11 @@ export default {
text: "机房巡检", text: "机房巡检",
url: "/pages/inspectionContent/inspectionContentList?backValue=home", url: "/pages/inspectionContent/inspectionContentList?backValue=home",
}, },
{ // {
image: "../../static/img/jd.png", // image: "../../static/img/jd.png",
text: "井道巡检", // text: "井道巡检",
url: "/pages/shaftInspection/shaftInspectionList?backValue=home", // url: "/pages/shaftInspection/shaftInspectionList?backValue=home",
}, // },
{ {
image: "../../static/img/sj.png", image: "../../static/img/sj.png",
text: "设备上架", text: "设备上架",
...@@ -322,7 +322,7 @@ export default { ...@@ -322,7 +322,7 @@ export default {
.card-container { .card-container {
display: flex; display: flex;
justify-content: space-between; justify-content: space-evenly;
.card { .card {
width: 224px; width: 224px;
...@@ -345,5 +345,6 @@ export default { ...@@ -345,5 +345,6 @@ export default {
} }
} }
} }
} }
</style> </style>
...@@ -129,22 +129,21 @@ ...@@ -129,22 +129,21 @@
<text class="iconfont icon-weixunjian"></text> <text class="iconfont icon-weixunjian"></text>
</template> </template>
<template v-else> <template v-else>
<text
v-if="card.status == 0"
class="iconfont icon-weixunjian"
></text>
<text <text
v-if="card.status == 1" v-if="card.status == 1"
class="iconfont icon-wancheng" class="iconfont icon-wancheng"
></text> ></text>
<text <text
v-if="card.status == 2" v-else-if="card.status == 2"
class="iconfont icon-shibai1" class="iconfont icon-shibai1"
></text> ></text>
<text
v-else
class="iconfont icon-weixunjian"
></text>
</template> </template>
<text class="status" v-if="card.isSubmit == 0">草稿</text> <text class="status" v-if="card.isSubmit == 0">草稿</text>
<text class="status" v-else>{{ card.statusLable }}</text> <text class="status" v-else>{{ card.statusLable || '未巡检' }}</text>
</view> </view>
<view class="second-row"> <view class="second-row">
<text class="location">{{ card.name }}</text> <text class="location">{{ card.name }}</text>
...@@ -152,7 +151,7 @@ ...@@ -152,7 +151,7 @@
</view> </view>
<view class="spacer-image right" v-if="cardIndex < row.length - 1"> <view class="spacer-image right" v-if="cardIndex < row.length - 1">
<image <image
v-if="inspectionNumber == 11" v-if="inspectionNumber == 6"
class="img" class="img"
src="@/static/img/arr2.svg" src="@/static/img/arr2.svg"
mode="aspectFit" mode="aspectFit"
...@@ -172,7 +171,7 @@ ...@@ -172,7 +171,7 @@
" "
> >
<image <image
v-if="inspectionNumber == 11" v-if="inspectionNumber == 6"
class="img" class="img"
src="@/static/img/arr2.svg" src="@/static/img/arr2.svg"
mode="aspectFit" mode="aspectFit"
...@@ -259,6 +258,7 @@ import assRoomApi from "@/api/assRoom.js"; ...@@ -259,6 +258,7 @@ import assRoomApi from "@/api/assRoom.js";
import inspectApi from "@/api/inspect"; import inspectApi from "@/api/inspect";
import { sqlToData, dataToSql, getHistoryData } from "./shared"; import { sqlToData, dataToSql, getHistoryData } from "./shared";
import Dialog from "@/pages/inspectionManagement/dialog.vue"; import Dialog from "@/pages/inspectionManagement/dialog.vue";
import log from "../../api/log";
export default { export default {
components: { components: {
...@@ -289,7 +289,7 @@ export default { ...@@ -289,7 +289,7 @@ export default {
isList: true, isList: true,
isLast: false, isLast: false,
}, //弹窗文案 }, //弹窗文案
name: "F座3楼-内环屏蔽机房", name: "山南UPS间",
value: "1", value: "1",
listData: [], listData: [],
isDialog: false, isDialog: false,
...@@ -380,13 +380,12 @@ export default { ...@@ -380,13 +380,12 @@ export default {
(item) => item.isSubmit == 1 (item) => item.isSubmit == 1
); );
let group1 = this.cardsInfo.slice(0, 5); let group1 = this.cardsInfo.slice(0, 3);
let group2 = this.cardsInfo.slice(5, 10); let group2 = this.cardsInfo.slice(3, 6);
let group3 = this.cardsInfo.slice(10);
if (!this.isSign) { if (!this.isSign) {
group2 = group2.reverse(); group2 = group2.reverse();
} }
this.rows = [group1, group2, group3]; this.rows = [group1, group2];
this.detailsInfo = detailsInfo; this.detailsInfo = detailsInfo;
} else { } else {
...@@ -427,12 +426,14 @@ export default { ...@@ -427,12 +426,14 @@ export default {
* 前端用的:jfType 机房类型 0屏蔽  1汇聚  2电池间(1) 3电池间(2) * 前端用的:jfType 机房类型 0屏蔽  1汇聚  2电池间(1) 3电池间(2)
* roomFeature 机房类型枚举:1.汇聚机房,2.屏蔽机房,3.UPS机房,4.数据机房 * roomFeature 机房类型枚举:1.汇聚机房,2.屏蔽机房,3.UPS机房,4.数据机房
*/ */
jfType: item.dictValue == "11" ? "3" : jfType, // jfType: item.dictValue == "11" ? "3" : jfType,
jfType,
isVaild: item.isVaild || false, // 校验通过 isVaild: item.isVaild || false, // 校验通过
status: item.status || 0, status: item.status || 0,
statusLable: item.statusLable || "未巡检", statusLable: item.statusLable || "未巡检",
}; };
}); });
console.log('listFormat', list)
return list; return list;
}, },
init(baseList) { init(baseList) {
...@@ -443,10 +444,9 @@ export default { ...@@ -443,10 +444,9 @@ export default {
console.log("this.listData", this.listData); console.log("this.listData", this.listData);
const group1 = list.slice(0, 5); const group1 = list.slice(0, 3);
const group2 = list.slice(5, 10).reverse(); const group2 = list.slice(3, 6).reverse();
const group3 = list.slice(10); this.rows = [group1, group2];
this.rows = [group1, group2, group3];
if (this.uid) { if (this.uid) {
this.inspectionCode = this.detailsInfo.inspectionCode; this.inspectionCode = this.detailsInfo.inspectionCode;
...@@ -516,13 +516,12 @@ export default { ...@@ -516,13 +516,12 @@ export default {
(item) => item.isSubmit == 1 (item) => item.isSubmit == 1
); );
let group1 = this.cardsInfo.slice(0, 5); let group1 = this.cardsInfo.slice(0, 3);
let group2 = this.cardsInfo.slice(5, 10); let group2 = this.cardsInfo.slice(3, 6);
let group3 = this.cardsInfo.slice(10);
if (!this.isSign) { if (!this.isSign) {
group2 = group2.reverse(); group2 = group2.reverse();
} }
this.rows = [group1, group2, group3]; this.rows = [group1, group2];
console.log("this.cardsInfo", this.cardsInfo); console.log("this.cardsInfo", this.cardsInfo);
this.isDisable = this.isDisable || detailsInfo.synchronization == 1; // 是否禁用 1:已同步数据 0: 未同步数据 this.isDisable = this.isDisable || detailsInfo.synchronization == 1; // 是否禁用 1:已同步数据 0: 未同步数据
...@@ -548,7 +547,7 @@ export default { ...@@ -548,7 +547,7 @@ export default {
} }
console.log("this.detailsItem", this.detailsItem); console.log("this.detailsItem", this.detailsItem);
}, },
startDialogBtn(name = "F座3楼-内环屏蔽机房", jfType = "0", value = "1") { startDialogBtn(name = "山南UPS间", jfType = "0", value = "1") {
let item = this.findTargetObject(this.listData); let item = this.findTargetObject(this.listData);
console.log("即将操作的机房", item); console.log("即将操作的机房", item);
...@@ -564,7 +563,7 @@ export default { ...@@ -564,7 +563,7 @@ export default {
this.value = value; this.value = value;
this.$refs.startDialog.open(); this.$refs.startDialog.open();
}, },
startDialog(name = "F座3楼-内环屏蔽机房", jfType = "0", value = "1") { startDialog(name = "山南UPS间", jfType = "0", value = "1") {
this.name = name; this.name = name;
this.jfType = jfType; this.jfType = jfType;
this.value = value; this.value = value;
...@@ -937,7 +936,7 @@ export default { ...@@ -937,7 +936,7 @@ export default {
border-radius: 9.6px; border-radius: 9.6px;
overflow: auto; overflow: auto;
.card-wrapper { .card-wrapper {
width: calc((100% - 4 * 12.8px) / 5); /* 严格五等分宽度 */ width: calc((100% - 3 * 12.8px) / 3); /* 严格3等分宽度 */
.card { .card {
margin-bottom: 12.8px; margin-bottom: 12.8px;
} }
...@@ -951,7 +950,7 @@ export default { ...@@ -951,7 +950,7 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
.card-wrapper { .card-wrapper {
width: calc((100% - 4 * 43.2px) / 5); /* 严格五等分宽度 */ width: calc((100% - 3 * 43.2px) / 3); /* 严格3等分宽度 */
.card { .card {
height: 51.2px; height: 51.2px;
margin-bottom: 43.2px; margin-bottom: 43.2px;
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</view> </view>
<!-- v-if="value > 2" --> <!-- v-if="value > 2" -->
<view class="action-btn complete-btn" @click="submit(1)"> 完成巡检 </view> <view class="action-btn complete-btn" @click="submit(1)"> 完成巡检 </view>
<!-- <view class="action-btn" @click="normal"> 一键正常 </view> --> <view class="action-btn" @click="normal"> 一键正常 </view>
</view> </view>
<startDialog <startDialog
ref="startDialog" ref="startDialog"
...@@ -247,7 +247,7 @@ export default { ...@@ -247,7 +247,7 @@ export default {
this.dictValue = options.dictValue; this.dictValue = options.dictValue;
this.inspectionCode = options.inspectionCode; this.inspectionCode = options.inspectionCode;
this.backValue = options.backValue || ""; this.backValue = options.backValue || "";
this.imgSrc = `../../static/img/jf/jf${this.value}.png`; this.imgSrc = `../../static/img/jf_new/jf${this.value}.png`;
this.tabs = this.tabs =
this.jfType === "2" || this.jfType === "3" this.jfType === "2" || this.jfType === "3"
...@@ -448,7 +448,8 @@ export default { ...@@ -448,7 +448,8 @@ export default {
* 前端用的:jfType 机房类型 0屏蔽  1汇聚  2电池间(1) 3电池间(2) * 前端用的:jfType 机房类型 0屏蔽  1汇聚  2电池间(1) 3电池间(2)
* roomFeature 机房类型枚举:1.汇聚机房,2.屏蔽机房,3.UPS机房,4.数据机房 * roomFeature 机房类型枚举:1.汇聚机房,2.屏蔽机房,3.UPS机房,4.数据机房
*/ */
jfType: item.dictValue == "11" ? "3" : jfType, // jfType: item.dictValue == "11" ? "3" : jfType,
jfType,
isVaild: false, // 校验通过 isVaild: false, // 校验通过
details: this.paramsObjFirst, details: this.paramsObjFirst,
status: item.status, status: item.status,
...@@ -984,7 +985,7 @@ export default { ...@@ -984,7 +985,7 @@ export default {
margin-bottom: 15px; margin-bottom: 15px;
.weitu { .weitu {
width: 100%; width: 100%;
height: 280px; height: 320px;
} }
} }
.kong { .kong {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<block slot="right" class="nav-right"> <block slot="right" class="nav-right">
<view class="header-buttons"> <view class="header-buttons">
<view class="button" @click="clickInspection(1)">机房巡检</view> <view class="button" @click="clickInspection(1)">机房巡检</view>
<view class="button" @click="clickInspection(2)">井道巡检</view> <!-- <view class="button" @click="clickInspection(2)">井道巡检</view> -->
</view> </view>
</block> </block>
</uni-nav-bar> </uni-nav-bar>
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
data() { data() {
return { return {
person: { person: {
account: "", // "管理员", account: "管理员", // "管理员",
pwd: "" // Gly@124", pwd: "Gly@124" // Gly@124",
}, },
backButtonPress: 0, backButtonPress: 0,
personList: [], personList: [],
......
zI7Z5z3b
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论