提交 d33b124a authored 作者: caodi\cd's avatar caodi\cd

fix:提交

上级 af54e348
{ {
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [
{ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
"path": "pages/login/login" {
}, "path": "pages/login/login"
{ },
"path": "pages/home/home", {
"style": { "path": "pages/home/home",
"navigationBarTitleText": "" "style": {
} "navigationBarTitleText": ""
}, }
{ //操作日志 },
"path": "pages/index/operLog" {
}, //操作日志
"path": "pages/index/operLog"
},
//杭州内网机房巡检 //杭州内网机房巡检
{ {
"path": "pages/inspection/inspFirst" "path": "pages/inspection/inspFirst"
}, },
{ {
"path": "pages/report/sampleTable" "path": "pages/report/sampleTable"
}, },
{
//修改密码
"path": "pages/index/editPd"
},
{
"path": "pages/home/home",
"style": {
"navigationBarTitleText": ""
}
},
{ //修改密码 // 机房巡检
"path": "pages/index/editPd" {
}, "path": "pages/inspectionContent/inspectionContent",
{ "style": {
"path": "pages/home/home", "navigationBarTitleText": ""
"style": { }
"navigationBarTitleText": "" },
} // 井道巡检
}, {
"path": "pages/shaftInspection/shaftInspection",
"style": {
"navigationBarTitleText": ""
}
},
// 机房巡检 // 新增配置---------
{ // 巡检管理
"path": "pages/inspectionContent/inspectionContent", {
"style": { "path": "pages/inspectionManagement/index"
"navigationBarTitleText": "" },
} // 设备上架管理
}, {
// 井道巡检 "path": "pages/listingManagement/index"
{ },
"path": "pages/shaftInspection/shaftInspection", //机房巡检列表
"style": { {
"navigationBarTitleText": "" "path": "pages/inspectionContent/inspectionContentList",
} "style": {
}, "navigationBarTitleText": ""
}
// 新增配置--------- },
// 巡检管理 // 机房巡检新页面
{ {
"path": "pages/inspectionManagement/index" "path": "pages/inspectionContent/inspectionContentNew",
}, "style": {
// 设备上架管理 "navigationBarTitleText": ""
{ }
"path": "pages/listingManagement/index" },
}, // 井道巡检列表
// 井道巡检列表 {
{ "path": "pages/shaftInspection/shaftInspectionList",
"path": "pages/shaftInspection/shaftInspectionList", "style": {
"style": { "navigationBarTitleText": ""
"navigationBarTitleText": "" }
} },
}, // 井道巡检新页面
// 井道巡检新页面 {
{ "path": "pages/shaftInspection/shaftInspectionNew",
"path": "pages/shaftInspection/shaftInspectionNew", "style": {
"style": { "navigationBarTitleText": ""
"navigationBarTitleText": "" }
} }
} ],
], "globalStyle": {
"globalStyle": { "pageOrientation": "landscape",
"pageOrientation": "landscape", "navigationStyle": "custom",
"navigationStyle": "custom", "rpxCalcBaseDeviceWidth": 1280, // 设计稿基准宽度
"rpxCalcBaseDeviceWidth": 1280, // 设计稿基准宽度 "rpxCalcMaxDeviceWidth": 2560, // 设备最大宽度
"rpxCalcMaxDeviceWidth": 2560, // 设备最大宽度 "rpxCalcIncludeWidth": 1024 // 包含宽度
"rpxCalcIncludeWidth": 1024 // 包含宽度 },
}, "uniIdRouter": {},
"uniIdRouter": {}, "condition": {
"condition": { //模式配置,仅开发期间生效 //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项) "current": 0, //当前激活的模式(list 的索引项)
"list": [{ "list": [
"name": "", //模式名称 {
"path": "", //启动页面,必选 "name": "", //模式名称
"query": "" //启动参数,在页面的onLoad函数里面得到 "path": "", //启动页面,必选
}] "query": "" //启动参数,在页面的onLoad函数里面得到
} }
} ]
\ No newline at end of file }
}
<template>
<view v-if="isOpen" class="synchronous-dialog">
<view class="synchronous-content">
<!-- 巡检事项 -->
<view class="form-item">
<text class="form-label"><text class="required">*</text>巡检事项:</text>
<text>{{ inspectionItem }}</text>
</view>
<!-- 情况摘要(多选输入框) -->
<view class="form-item">
<text class="form-label"><text class="required">*</text>情况摘要:</text>
<textarea
v-model="summary"
placeholder="请输入情况摘要"
auto-height
class="input-box"
></textarea>
</view>
<!-- 固定词 -->
<view class="form-item last">
<text class="form-label"></text>
<view class="fixed-words">
<text
v-for="(word, index) in fixedWords"
:key="index"
class="word"
@click="selectWord(word)"
>
{{ word }}
</text>
</view>
</view>
<view class="row-item bottom-row">
<button class="button btn" @click="handleClose">取消</button>
<button class="button" @click="handleConfirm">确认</button>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
// 父组件传递的巡检事项
inspectionItem: {
type: String,
default: "",
},
// 父组件传递的固定词
fixedWords: {
type: Array,
default: () => ["已检查", "正常", "异常", "需处理"],
},
},
data() {
return {
summary: "", // 情况摘要
isOpen: false,
};
},
methods: {
// 打开弹窗
open() {
this.isOpen = true;
},
// 关闭弹窗
close() {
this.isOpen = false;
},
// 选择固定词
selectWord(word) {
this.summary += word + " "; // 将选中的词添加到输入框
},
// 确认
handleConfirm() {
this.$emit("confirm", this.summary); // 将情况摘要回传给父组件
this.handleClose();
},
// 关闭弹窗
handleClose() {
this.summary = ""; // 清空输入框
this.close();
},
},
};
</script>
<style scoped lang="less">
.synchronous-dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
.synchronous-content {
padding: 3% 20px 32px 24px;
width: 400px;
height: 300px;
box-sizing: border-box;
background-image: linear-gradient(
-6deg,
#f9ffe7 0%,
#ffffff 12%,
#fcfeff 73%,
#ccf1ff 100%
);
border: 0.4px solid rgba(224, 224, 224, 1);
border-radius: 12px;
position: relative;
.row-item {
display: flex;
align-items: center;
justify-content: center;
}
.title {
font-family: PingFangSC-Medium;
font-size: 18px;
color: #000000;
text-align: center;
line-height: 26px;
font-weight: 500;
}
.count-num {
margin: 5% 0 5% 0;
align-items: flex-end;
.num {
display: inline-block;
font-family: AlibabaPuHuiTi_2_65_Medium;
font-size: 50px;
color: #3774f6;
line-height: 44px;
font-weight: 500;
}
}
.operating-instructions {
margin-bottom: 8%;
.title {
font-size: 13px;
color: #4a4a4a;
line-height: 24px;
font-weight: 600;
text-align: left;
}
.instructions-item {
font-size: 12px;
color: #7c7c7c;
line-height: 22px;
font-weight: 400;
}
}
// 打包按钮
.bottom-row {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
.button {
display: flex;
align-items: center;
justify-content: center;
background-image: linear-gradient(180deg, #3773f6 0%, #2c57f6 99%);
box-shadow: 0px 10px 24px 0px rgba(51, 104, 246, 0.24);
border-radius: 27px;
width: 128px;
height: 32px;
margin: 10px;
color: #fff;
&.btn {
background: #ffffff;
color: #000000;
}
}
}
// 关闭按钮
.close-button {
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
.iconfont {
color: #fff;
font-size: 24px;
}
}
}
}
.form-item {
width: 100%;
display: flex;
align-items: center;
padding: 9.6px 0;
line-height: 28.8px;
border-bottom: 0.8px solid #f2f3f5;
&.last{
border: 0;
}
.form-label {
font-size: 11.2px;
font-weight: bold;
margin-right: 25.6px;
width: 64px;
text-align: right;
.required {
color: red;
margin-right: 3.2px;
}
}
.switch-container {
display: flex;
gap: 9.6px;
.status-btn {
flex: 1;
padding: 5.6px 19.2px;
font-size: 12.8px;
color: #000000;
background: #f2f2f2;
text-align: center;
font-weight: 400;
line-height: 17.6px;
border-radius: 14.4px;
&.active {
color: #ffffff;
background: #3774f6;
border: 0.32px solid rgba(224, 224, 224, 1);
}
}
}
.input-box {
flex: 1;
border-radius: 3.2px;
font-size: 12.8px;
line-height: 19.2px;
}
.photo-limit {
font-size: 12.8px;
color: #959595;
line-height: 19.2px;
font-weight: 400;
}
.photo-container {
display: flex;
flex-wrap: wrap;
margin-bottom: 6.4px;
.photo-item {
position: relative;
margin-right: 6.4px;
margin-bottom: 6.4px;
.photo {
width: 57.6px;
height: 57.6px;
border-radius: 3.2px;
margin-left: 9.6px;
}
.delete-photo {
position: absolute;
top: -6.4px;
right: -6.4px;
background-color: #ff4d4f;
color: #fff;
width: 12.8px;
height: 12.8px;
border-radius: 50%;
text-align: center;
line-height: 12.8px;
font-size: 9.6px;
}
}
}
.photo-btn {
background: #ffffff;
border: 0.272px solid rgba(221, 221, 221, 1);
border-radius: 1.64px;
width: 57.6px;
height: 57.6px;
font-size: 57.6px;
color: #cccccc;
text-align: center;
line-height: 51.2px;
}
}
</style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:fixed="true" :fixed="true"
background-color="rgba(214, 240, 255, 0.0)" background-color="rgba(214, 240, 255, 0.0)"
status-bar status-bar
rightWidth="300" rightWidth="240"
> >
<block slot="left"> <block slot="left">
<view class="uni-nav-bar-text" @click="back"> <view class="uni-nav-bar-text" @click="back">
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<view class="header-buttons"> <view class="header-buttons">
<button class="button" @click="lookLog">查看样表</button> <button class="button" @click="lookLog">查看样表</button>
</view> </view>
</block> </uni-nav-bar </block>
><!-- 第二个模块 --> </uni-nav-bar>
<view class="profile-section"> <view class="profile-section">
<view class="profile-box"> <view class="profile-box">
<view class="profile-left"> <view class="profile-left">
...@@ -26,7 +26,12 @@ ...@@ -26,7 +26,12 @@
mode="aspectFit" mode="aspectFit"
></image> ></image>
</view> </view>
<view class="username">{{ userName }}</view> <view class="info">
<view class="username">{{ userInfo.user }}</view>
<view class="number"
>巡检编号:<text class="value">{{ inspectionCode }}</text></view
>
</view>
</view> </view>
<view class="profile-right"> <view class="profile-right">
<button class="record-button" @click="toListingManagement"> <button class="record-button" @click="toListingManagement">
...@@ -35,7 +40,6 @@ ...@@ -35,7 +40,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 每排 5 个卡片,共 4 排 -->
<view class="box"> <view class="box">
<view class="bar"> <view class="bar">
<view class="title"> 巡检进度 </view> <view class="title"> 巡检进度 </view>
...@@ -50,137 +54,179 @@ ...@@ -50,137 +54,179 @@
v-for="(row, rowIndex) in rows" v-for="(row, rowIndex) in rows"
:key="rowIndex" :key="rowIndex"
> >
<!-- 每排的卡片 -->
<view <view
class="card-wrapper" class="card-wrapper"
v-for="(card, cardIndex) in row" v-for="(card, cardIndex) in row"
:key="cardIndex" :key="cardIndex"
@click="
toShaftInspection(
card.dictLabel,
card.jfType
)
"
> >
<!-- 卡片内容 -->
<view class="card"> <view class="card">
<view class="card-content"> <view class="card-content">
<!-- 第一行:图标和巡检状态 -->
<view class="first-row"> <view class="first-row">
<image class="icon" src="/static/icon.png"></image> <image
<text class="status">巡检状态</text> class="icon"
src="@/static/img/add-img/home1.png"
></image>
<text class="status">{{ card.statusLable }}</text>
</view> </view>
<!-- 第二行:机房位置 -->
<view class="second-row"> <view class="second-row">
<text class="location">机房位置</text> <text class="location">{{ card.dictLabel }}</text>
</view> </view>
</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 src="@/static/img/arr2.svg" mode="aspectFit"></image> <!-- <image src="@/static/img/arr2.svg" mode="aspectFit"></image> -->
</view> </view>
<!-- 每排卡片下方的图片(除了最后一排) -->
<view class="spacer-image bottom" v-if="rowIndex < rows.length - 1"> <view class="spacer-image bottom" v-if="rowIndex < rows.length - 1">
<view v-if="cardIndex == 0 || cardIndex == 4"> <view v-if="cardIndex == 0 || cardIndex == 4">
<image src="@/static/img/arr2.svg" mode="aspectFit"></image <!-- <image src="@/static/img/arr2.svg" mode="aspectFit"></image> -->
></view> </view>
</view> </view>
</view> </view>
</view> </view </view>
></view> </view></view
>
</view> </view>
</template> </template>
<script> <script>
import moment from "moment";
import { pad_1_1_inspection_position } from "@/utils/dictJF.js";
import { getInspectionDetails } from "@/request/index.js";
export default { export default {
data() { data() {
return { return {
userName: this.$store.state.now_user.user, inspectionCode: "",
// 20 个卡片数据,分成 4 排,每排 5 个 rows: [],
rows: [ baseInfo: {}, // 基础信息
new Array(5).fill({}), // 第一排 inspectionNumber: 0, // 已巡检的井道数量
new Array(5).fill({}), // 第二排 detailsInfo: {}, // 详情
new Array(5).fill({}), // 第三排 isDisable: false, // 禁用
new Array(1).fill({}), // 第四排 uid: "",
],
}; };
}, },
computed: {
userInfo() {
return this.$store.state.now_user || {};
},
},
onLoad(options) {
this.isDisable = options.isDisable == 1 ? true : false;
console.log("options.uid", options.uid);
if (options.uid) {
this.uid = options.uid;
this.getDetails(options.uid);
} else {
this.init();
}
},
methods: { methods: {
// 返回 init() {
return new Promise((resolve, reject) => {
let list = pad_1_1_inspection_position.rows.map((item, index) => {
return item;
});
const group1 = list.slice(0, 5);
const group2 = list.slice(5, 10);
const group3 = list.slice(10);
this.rows = [group1, group2, group3];
this.inspectionCode = `JFXJ${moment().format("yyyyMMDDHHmmss")}${
Math.floor(Math.random() * 900) + 100
}`;
if (this.detailsInfo.inspectionType) {
const fillCheck = this.detailsInfo.fillCheck.split(",");
setTimeout(() => {
this.tabList.forEach((item, index) => {
item.isVaild = fillCheck.includes(item.value);
this.tempForm[index] &&
this.setComponentData(item.refName, this.tempForm[index]);
});
}, 500);
} else {
this.baseInfo = this.$store.state.temp_data;
}
resolve();
});
},
// 跳转到具体的机房
toShaftInspection(location,jfType) {
uni.navigateTo({
url: `/pages/inspectionContent/inspectionContentNew?&inspectionCode=${this.inspectionCode}&jfType=${jfType}&location=${location}&uid=${this.uid}`,
});
},
back() { back() {
uni.navigateBack(); uni.navigateBack();
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/* 导航栏样式 */
.uni-nav-bar-text { .uni-nav-bar-text {
height: 36px; height: 28.8px;
width: 36px; width: 28.8px;
background: #ffffff; background: #ffffff;
border: 0.4px solid rgba(224, 224, 224, 1); border: 0.32px solid rgba(224, 224, 224, 1);
border-radius: 18px; border-radius: 14.4px;
border-radius: 50%;
color: #333; color: #333;
text-align: center; text-align: center;
.iconfont { .iconfont {
font-size: 20px; font-size: 16px;
line-height: 36px; line-height: 28.8px;
} }
} }
.nav-right { .nav-right {
width: 240px; width: 192px;
} }
.header-buttons { .header-buttons {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: auto; // 将按钮组推到最右侧 margin-left: auto;
.button { .button {
width: 112px; width: 89.6px;
height: 36px; height: 28.8px;
background: #ffffff; background: #ffffff;
border-radius: 18px; border-radius: 14.4px;
margin-left: 16px; margin-left: 12.8px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 16px; font-size: 12.8px;
color: #000000; color: #000000;
line-height: 36px; line-height: 28.8px;
font-weight: 400; font-weight: 400;
} }
} }
.container { .container {
background-image: linear-gradient(115deg, #e8f0fb 0%, #e1ebfa 100%); background-image: linear-gradient(115deg, #e8f0fb 0%, #e1ebfa 100%);
padding: 0 32px; padding: 0 25.6px;
height: 100vh;
} }
.profile-section { .profile-section {
width: 100%; width: 100%;
margin-bottom: 16px; margin-bottom: 12.8px;
.profile-box { .profile-box {
background-color: #fff; background-color: #fff;
border-radius: 12px; border-radius: 9.6px;
padding: 16px 32px; padding: 12.8px 25.6px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.profile-left { .profile-left {
display: flex; display: flex;
align-items: center; align-items: center;
.avatar { .avatar {
position: relative; position: relative;
width: 86px; width: 68.8px;
height: 86px; height: 68.8px;
margin-right: 9.6px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.change-password { .change-password {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
...@@ -188,51 +234,59 @@ export default { ...@@ -188,51 +234,59 @@ export default {
right: 0; right: 0;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
text-align: center; text-align: center;
height: 22px; height: 17.6px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 12px; font-size: 9.6px;
color: #ffffff; color: #ffffff;
line-height: 20px; line-height: 16px;
font-weight: 400; font-weight: 400;
} }
} }
.info {
.username {
font-size: 16px;
color: #000000;
line-height: 22.4px;
font-weight: 500;
margin-bottom: 7.2px;
}
.number {
font-size: 12.8px;
color: #4a4a4a;
line-height: 22.4px;
font-weight: 400;
.username { .value {
margin-left: 16px; color: #000000;
font-family: PingFangSC-Medium; }
font-size: 20px; }
color: #000000;
line-height: 28px;
font-weight: 500;
} }
} }
.profile-right { .profile-right {
display: flex; display: flex;
.inspection-button { .inspection-button {
width: 112px; width: 89.6px;
height: 36px; height: 28.8px;
background-image: linear-gradient(105deg, #68acfb 0%, #3774f6 100%); background-image: linear-gradient(105deg, #68acfb 0%, #3774f6 100%);
border-radius: 18px; border-radius: 14.4px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 16px; font-size: 12.8px;
color: #ffffff; color: #ffffff;
line-height: 36px; line-height: 28.8px;
font-weight: 400; font-weight: 400;
margin-right: 16px; margin-right: 12.8px;
} }
.record-button { .record-button {
width: 144px; width: 115.2px;
height: 36px; height: 28.8px;
background: #ffffff; background: #ffffff;
border: 1px solid rgba(55, 116, 246, 1); border: 0.8px solid rgba(55, 116, 246, 1);
border-radius: 18px; border-radius: 14.4px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 16px; font-size: 12.8px;
color: #3774f6; color: #3774f6;
line-height: 36px; line-height: 28.8px;
font-weight: 400; font-weight: 400;
} }
} }
...@@ -240,45 +294,45 @@ export default { ...@@ -240,45 +294,45 @@ export default {
} }
.box { .box {
background: #ffffff; background: #ffffff;
border-radius: 12px 12px 0 0; border-radius: 9.6px 9.6px 0 0;
padding: 16px 24px; padding: 12.8px 19.2px;
.bar { .bar {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
.title { .title {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
font-size: 18px; font-size: 14.4px;
color: #000000; color: #000000;
line-height: 34px; line-height: 27.2px;
font-weight: 500; font-weight: 500;
} }
.dai { .dai {
background: rgba(243, 152, 0, 0.08); background: rgba(243, 152, 0, 0.08);
border-radius: 10px; border-radius: 8px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 11.2px;
color: #4a4a4a; color: #4a4a4a;
letter-spacing: 0; letter-spacing: 0;
text-align: right; text-align: right;
line-height: 34px; line-height: 27.2px;
font-weight: 400; font-weight: 400;
margin: 0 12px; margin: 0 9.6px;
padding: 0 12px; padding: 0 9.6px;
.num { .num {
color: #f39800; color: #f39800;
} }
} }
.yi { .yi {
background: rgba(55, 116, 246, 0.08); background: rgba(55, 116, 246, 0.08);
border-radius: 10px; border-radius: 8px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 11.2px;
color: #4a4a4a; color: #4a4a4a;
letter-spacing: 0; letter-spacing: 0;
text-align: right; text-align: right;
line-height: 34px; line-height: 27.2px;
font-weight: 400; font-weight: 400;
padding: 0 12px; padding: 0 9.6px;
.num { .num {
color: #000; color: #000;
} }
...@@ -287,93 +341,83 @@ export default { ...@@ -287,93 +341,83 @@ export default {
} }
.card-box { .card-box {
background: #ffffff; background: #ffffff;
border-radius: 0 0 12px 12px; border-radius: 0 0 9.6px 9.6px;
padding: 16px 24px; padding: 12.8px 19.2px;
height: calc(100vh - 225px);
} }
.card-row { .card-row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
position: relative; // 用于定位下方的图片 position: relative;
width: 100%;
&.right { &.right {
flex-direction: row-reverse;
.card-wrapper { .card-wrapper {
.spacer-image.right { .spacer-image.right {
position: absolute; position: absolute;
left: -54px; left: -43.2px;
top: 50%; top: 50%;
transform: translateY(-50%) rotate(180deg); transform: translateY(-50%) rotate(180deg);
image { image {
width: 54px; // 图片宽度与间距一致 width: 43.2px;
height: 54px; // 图片高度与间距一致 height: 43.2px;
} }
} }
} }
} }
.card-wrapper { .card-wrapper {
display: flex; width: calc((100% - 4 * 43.2px) / 5); /* 严格五等分宽度 */
align-items: center;
.card { .card {
width: 126px; height: 51.2px;
height: 64px; margin-bottom: 43.2px;
margin-bottom: 54px; border-radius: 8px;
border-radius: 10px; background-color: rgba(242, 242, 242, 0.6);
background-color: #ffffff; box-shadow: 0 1.6px 3.2px rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
position: relative; position: relative;
.card-content { .card-content {
padding: 8px; padding: 6.4px;
.first-row { .first-row {
display: flex; display: flex;
align-items: center; align-items: center;
.icon { .icon {
width: 16px; width: 12.8px;
height: 16px; height: 12.8px;
margin-right: 8px; margin-right: 6.4px;
} }
.status { .status {
font-size: 12px; font-size: 9.6px;
color: #333333; color: #333333;
} }
} }
.second-row { .second-row {
margin-top: 4px; margin-top: 3.2px;
padding-left: 21px;
.location { .location {
font-size: 12px; font-size: 9.6px;
color: #666666; color: #666666;
} }
} }
} }
} }
.spacer-image.right { .spacer-image.right {
position: absolute; position: absolute;
right: -54px; right: -43.2px;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
image { image {
width: 54px; // 图片宽度与间距一致 width: 43.2px;
height: 54px; // 图片高度与间距一致 height: 43.2px;
} }
} }
} }
.spacer-image.bottom { .spacer-image.bottom {
position: absolute; position: absolute;
bottom: -54px; // 图片位于卡片下方 bottom: -43.2px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
image { image {
width: 54px; // 图片宽度与间距一致 width: 43.2px;
height: 54px; // 图片高度与间距一致 height: 43.2px;
} }
} }
} }
......
<template>
<!-- 井道巡检操作 -->
<view class="container">
<uni-nav-bar
:fixed="true"
background-color="rgba(214, 240, 255, 0.0)"
status-bar
rightWidth="300"
>
<block slot="left">
<view class="uni-nav-bar-text" @click="back">
<text class="iconfont icon-Arrow-Left"></text>
</view>
</block>
</uni-nav-bar>
<!-- Tab 操作区域 -->
<view class="module">
<view class="location">{{ location }}</view>
<view class="tab-buttons">
<view
v-for="(tab, index) in tabs"
:key="index"
:class="['tab-item', { active: activeTab === index }]"
@click="switchTab(index)"
>
<image :src="tab.icon" class="tab-icon"></image>
<text class="tab-text">{{ tab.label }}</text>
<view v-if="activeTab === index" class="underline"></view>
</view>
</view>
<view class="tip">
<image
class="tip-icon"
src="@/static/img/add-img/home1.png"
mode="aspectFit"
></image
><view class="text">
<view
class="itemText"
v-for="(item, index) in tabs[activeTab].text"
:key="index"
>{{ item }}</view
>
</view>
</view>
<view class="tab-content">
<view class="jfImg">
<image
class="weitu"
src="@/static/img/add-img/weitu.png"
mode="aspectFit"
></image
></view>
<!-- 操作区域 -->
<wlhj :inspectionItem="tabs[activeTab].label"></wlhj>
<view class="form-item"
><text class="form-label">巡检项</text>
<view class="label">
<text>{{ tabs[activeTab].label }}</text>
</view>
</view>
<view class="form-item">
<text class="form-label"
><text class="required">*</text>巡检结论</text
>
<view class="switch-container">
<view
:class="['status-btn', { active: inspectionResult === 0 }]"
@click="setInspectionResult(0)"
>
正常
</view>
<view
:class="['status-btn', { active: inspectionResult === 1 }]"
@click="setInspectionResult(1)"
>
异常
</view>
</view>
</view>
<view class="form-item">
<text class="form-label"
><text class="required">*</text>情况摘要</text
>
<input
class="input-box"
v-model="list[activeTab] && list[activeTab].conclusion"
placeholder="请输入情况摘要"
/>
</view>
<view class="form-item">
<text class="form-label">现场照片</text>
<view class="photo-box">
<view class="photo-container">
<view @click="takePhoto" class="photo-btn"> + </view>
<view
v-for="(photo, index) in list[activeTab] &&
list[activeTab].photos"
:key="index"
class="photo-item"
>
<image :src="photo" class="photo"></image>
<text class="delete-photo" @click="deletePhoto(index)">×</text>
</view>
</view>
<view class="photo-limit"
>请对检查项进行拍照留存(限5张)。发现“异常、告警”时,需拍照留存。</view
>
</view>
</view>
</view>
</view>
<!-- 模块4:提交模块 -->
<!-- <view class="module submit-module">
<button class="action-btn" @click="saveDraft">暂存</button>
<button class="action-btn complete-btn" @click="complete">
完成
</button>
</view> -->
<view class="submit-module">
<button class="action-btn" @click="submit(0)">暂存</button>
<button
v-if="isSubmitEnabled"
class="action-btn complete-btn"
@click="submit(1)"
>
完成巡检
</button>
<button v-else class="action-btn complete-btn" @click="nextTab">
下一项
</button>
</view>
<!-- 使用 uni-popup 组件 完成弹窗 -->
<uni-popup ref="popup" type="center">
<view class="popup-content">
<!-- 关闭按钮 -->
<view class="close-icon" @click="closePopup">×</view>
<!-- 成功图标 -->
<view class="icon-success">✔️</view>
<!-- 保存成功的文字 -->
<view class="success-text">保存成功</view>
<!-- 下一项按钮 -->
<view class="next-button" @click="closePopup">下一项</view>
</view>
</uni-popup>
</view>
</template>
<script>
import {
pad_2_1_inspection_items,
pad_2_1_inspection_position,
pad_2_1_floor,
} from "@/utils/dict.js"; //巡检位置,A座到F座 楼层2楼4楼到26楼
import {
addLog,
getLogContent,
LOG_TYPE_ENUM,
writeInspectionData,
} from "@/utils/IoReadingAndWriting.js";
import { getInspectionDetails } from "@/request/index.js";
import moment from "moment";
import _ from "lodash";
import wlhj from "./model/wlhj.vue"; //物理环境
export default {
components: {
wlhj,
},
data() {
return {
location: "",
value: "",
dictValue: "",
inspectionCode: "",
isSubmitEnabled: false, // 提交按钮是否可点击
uid: "",
jfType: 0,
randomDescription: "这是一段随机说明文字。", // 随机说明文字
tabs: [
{
label: "物理环境",
icon: "../../static/img/add-img/home1.png",
text: [
"1、地板、墙壁:检查地板是否平整,无凹陷或凸起,确保设备放置平稳;检查墙面是否完整,无脱落、开裂或霉变现象。",
"‌2、机房清洁:机房内应保持清洁,无悬浮颗粒物、无积水、无异味;机柜及设备表面应无灰尘‌。",
"机房通风:确保机房通风设施正常运转。",
"4、机房照明:应急照明和疏散指示灯功能正常‌。",
"5、漏水检测:检查机房内外地面排水系统、水阀门的完好性、漏水情况、墙体的渗漏情况、水管是否完好、窗户是否紧固等‌。",
],
},
{
label: "安防系统",
icon: "../../static/img/add-img/home1.png",
text: [
"1、门禁:门禁系统是否正常运作;门禁外观无破损。",
"2、监控:有监控的机房需确保监控摄像头‌设备正常运作;监控摄像头外观无破损。",
],
},
this.jfType === 2 || this.jfType === 3
? {
label: "设备告警",
icon: "../../static/img/add-img/home1.png",
text: [
"检查服务器、存储设备、网络设备(如交换机、路由器)等机房设备是否有异响或故障报警。‌",
],
}
: {
label: "电池状态",
icon: "../../static/img/add-img/home1.png",
text: [
"1、定期检查机房电池设备的外观是否完好无损,确保没有破损或腐蚀现象‌;",
"‌2、使用温度计检测电池组的温度,确保其工作温度在耐受范围内(15℃-30℃);并确认电池内阻在耐受范围内( <10mΩ)。",
"‌3、检查电池的容量是否在正常范围内;检查电池的连接状态,确保没有松动或损坏的连接‌。",
"‌4、定期检查电池的充电状态,确保电池组能够正常充电,并且充电过程中没有异常现象‌。",
],
},
{
label: "机房温湿度",
icon: "../../static/img/add-img/home1.png",
text: [
"机房内的温度应控制在25°C,湿度应在20%-70%之间。超出这个范围可能会影响设备的正常运行和寿命‌。",
],
},
{
label: "电力系统",
icon: "../../static/img/add-img/home1.png",
text: [
"1、检查主电源和备用电源(如UPS)是否正常工作;",
"‌2、检查UPS设备的电力状态和工作情况;如果配备发电机,需检查其启动和运行状态;",
"‌3、检查机房的电力线路是否稳定,确保没有裸露、老化或损坏的情况‌;",
"‌4、检查配电柜、开关等设备的运行状态,确保其正常工作,没有异常声音或气味‌;",
"5、检查机房设备的接地线路是否良好;",
"‌6、检查防雷设施是否正常工作;",
"7、‌定期测试备用电源的启动和运行情况,确保在紧急情况下能够迅速切换。‌",
],
},
{
label: "消防系统",
icon: "../../static/img/add-img/home1.png",
text: [
"‌1、确保机房内配备足够数量的消防设施,如灭火器、消防栓、烟雾报警器。",
"‌2、检查消防设施‌是否符合标准,定期检查电线和电缆,确保没有裸露、老化等问题。",
"3、检查机房应疏散指示和标志是否清晰;确保机房紧急出口畅通无阻‌。",
],
},
{
label: "线路情况",
icon: "../../static/img/add-img/home1.png",
text: [
"1、机柜:检查机柜及设备表面是否有灰尘;检查机柜标识和标签是否清晰牢固;‌",
"2、配线架:检查线路的布线是否整齐,无交叉或混乱现象。",
"3、电力线路:检查外观是否有破损; 接地装置完整性等。",
],
},
{
label: "其它",
icon: "../../static/img/add-img/home1.png",
text: [
"检查地面、墙壁、天花板、是否有裂痕、水渍,机房内是否有鼠患、蚁患、蟑螂活动的痕迹。",
],
},
],
activeTab: 0, // 当前选中的 Tab
inspectionResult: 0, // Switch 值(0: 正常, 1: 异常)
conclusion: "", // 情况摘要
photos: [], // 现场照片
historyData: null, // 历史数据
firstSubmitTime: null, // 首次提交时间
detailsInfo: {}, // 详情
baseInfo: {}, // 基础信息
list: [], //巡检信息
};
},
computed: {
userInfo() {
return this.$store.state.now_user || {};
},
// isOperationPermissions() {
// // 是否有操作权限
// const {
// uid,
// createByName
// } = this.detailsInfo;
// return !uid || (uid && createByName == this.userInfo.user);
// },
},
onLoad(options) {
this.coverlist();
this.isDisable = options.isDisable == 1 ? true : false;
this.uid = options.uid;
this.jfType = options.jfType;
this.location = options.location;
this.value = options.value;
this.dictValue = options.dictValue;
this.inspectionCode = options.inspectionCode;
console.log("options", options);
if (options.uid) {
this.getDetails(options.uid);
} else {
this.init();
}
},
watch: {},
mounted() {},
methods: {
// 初始化
init() {
return new Promise((resolve, reject) => {
// 判断是否有回显数据
// 基础数据
this.baseInfo = {
inspectionType: "2",
inspectionCode: this.inspectionCode,
recordName: `${moment().format("yyyyMMDD")}-井道巡检`,
inspectionTime: moment().format("yyyy-MM-DD HH:mm"),
inspectionBy: this.$store.state.now_user.user,
inspectionById: this.$store.state.now_user.userId,
createByName: this.$store.state.now_user.user,
isException: "", // 是否有异常,大于0存在异常
inspectionNumber: 0, //巡检数量
floor: this.floor, // 楼层
isSubmit: "", // 0 是草稿态; 1 是正式提交
isSign: "", // 是否签字
conclusion: "", //摘要
creatTime: `${new Date().getTime()}`,
items: [],
};
console.log(2222, this.baseInfo, this.list, this.detailsInfo);
resolve();
});
},
// 回显数据
getDetails(uid) {
uni.showLoading();
getInspectionDetails(uid)
.then((res) => {
const detailsInfo = res;
console.log("getDetails", res);
let list =
detailsInfo.originData[this.value - 1].position[this.dictValue - 1]
.details;
// 未巡检需要处理默认数据结构
if (list && list.length) {
this.list = list;
}
this.inspectionResult = list[0].inspectionResult;
console.log("let list", list);
this.detailsInfo = detailsInfo;
console.log("获取list", this.list);
this.isDisable = this.isDisable || detailsInfo.synchronization == 1; // 是否禁用 1:已同步数据 0: 未同步数据
uni.hideLoading();
})
.catch((error) => {
uni.showToast({
title: error.msg,
icon: "none",
duration: 1000,
});
uni.hideLoading();
});
},
// 数据结构重组
coverlist() {
// 获取井道巡检的三个检查项固定数据再进行处理
const data = pad_2_1_inspection_items.rows.map((item) => {
return {
// ...item,
dictLabel: item.dictLabel,
dictValue: item.dictValue,
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论
itemCode: item.dictValue, // 检查项 如:门禁
measuredData: this.floor, // 逗号分隔字符串
photos: [], // 照片
};
});
this.list = data;
},
// 更新当前 Tab 数据
updateCurrentTabData() {
const currentTabData = this.list[this.activeTab];
this.inspectionResult = currentTabData.inspectionResult;
this.conclusion = currentTabData.conclusion;
this.photos = currentTabData.photos;
},
// 拍照
takePhoto() {
uni.chooseImage({
count: 1,
sourceType: ["camera"], // 可以从相机拍摄
success: async (res) => {
if (this.photos.length < 5) {
const base64 = await this.convertFileToBase64(res.tempFilePaths[0]);
this.photos.push(base64);
this.list[this.activeTab].photos = this.photos;
} else {
uni.showToast({
title: "最多只能上传5张照片",
icon: "none",
});
}
},
});
},
// 转化为base64
convertFileToBase64(filePath) {
return new Promise((resolve, reject) => {
plus.io.resolveLocalFileSystemURL(
filePath,
function (entry) {
entry.file(
function (file) {
const reader = new plus.io.FileReader();
reader.onloadend = function (evt) {
const base64 = evt.target.result; // 获取 Base64 数据
resolve(base64); // 返回 Base64 数据
};
reader.readAsDataURL(file); // 读取文件并转换为 Base64
},
function (error) {
reject("获取文件对象失败:" + error.message);
}
);
},
function (error) {
reject("解析文件路径失败:" + error.message);
}
);
});
},
// 删除照片
deletePhoto(index) {
this.photos.splice(index, 1);
this.list[this.activeTab].photos = this.photos;
},
// 处理提交数据
getParams(isSubmit) {
if (this.uid) {
let posItem =
this.detailsInfo.originData[this.value - 1].position[
this.dictValue - 1
];
posItem.details = this.list;
posItem.isSubmit = isSubmit;
// 提交才会有巡检状态,暂存没有
if (isSubmit) {
if (!this.checkInspectionResult(this.list)) {
posItem.status = 2; //1表示已经巡检过有异常
posItem.statusLable = "巡检异常";
} else {
posItem.status = 1; //1表示已经巡检过没有异常
posItem.statusLable = "已巡检";
}
} else {
posItem.status = 0; //暂存就是未巡检
posItem.statusLable = "未巡检";
}
let { notZeroCount, equalTwoCount } = this.count(
this.detailsInfo.originData
);
this.detailsInfo.inspectionNumber = notZeroCount; //巡检总数
this.detailsInfo.isException = equalTwoCount; //异常数量
this.detailsInfo.isSubmit =
this.typeSubmit(this.detailsInfo.originData) > 0 ? 0 : 1; //是否提交
console.log("this.detailsInfo", this.detailsInfo);
this.detailsInfo.submitTime = moment().format("yyyy-MM-DD"); // 记录提交时间
this.detailsInfo.submitMonth = moment().format("yyyy-MM"); // 记录提交月份
this.detailsInfo.synchronization = 2; //编辑中
return this.detailsInfo;
} else {
let baseInfo = this.baseInfo;
let dataObj = pad_2_1_inspection_position.rows.map((item, index) => {
return {
name: item.dictLabel,
value: item.dictValue,
isVaild: false, // 校验通过
// type: 1, // 枚举值
position: pad_2_1_floor.rows,
refName: `TabContentItem_${index}`,
descript: "检查内容包括门禁、卫生、设备告警。",
};
});
let tabList = JSON.parse(JSON.stringify(dataObj));
let posItem = tabList[this.value - 1].position[this.dictValue - 1];
posItem.details = this.list;
posItem.isSubmit = isSubmit; //当前项是否提交
if (!this.checkInspectionResult(this.list)) {
posItem.status = 2; //1表示已经巡检过有异常
posItem.statusLable = "巡检异常";
} else {
posItem.status = 1; //1表示已经巡检过没有异常
posItem.statusLable = "已巡检";
}
// 根据获取到的每个井道的isSubmit来判断是否有暂存状态,只有有一个井道是暂存,那就是编辑中、暂存状态
let typeSubmit = this.typeSubmit(tabList);
const data = {
...baseInfo,
isSubmit: typeSubmit > 0 ? 0 : 1, //0暂存(编辑中) 1提交(待同步,已同步)
inspectionNumber: 1,
isException: posItem.status == 2 ? 1 : 0,
items: [],
synchronization: typeSubmit > 0 ? 2 : 0, // 是否同步过
submitTime: moment().format("yyyy-MM-DD"), // 记录提交时间
submitMonth: moment().format("yyyy-MM"), // 记录提交月份
originData: tabList, //所有大楼和楼层的数据
};
console.log("getParams,data", data);
return data;
}
},
count(originData) {
return originData.reduce(
(acc, curr) => {
curr.position.forEach((item) => {
if (item.status !== 0) {
acc.notZeroCount++; // 统计 status 不为 0 的数量
}
if (item.status === 2) {
acc.equalTwoCount++; // 统计 status 等于 2 的数量
}
});
return acc;
},
{
notZeroCount: 0,
equalTwoCount: 0,
} // 初始化统计结果
);
},
typeSubmit(originData) {
return originData.reduce((acc, curr) => {
return (
acc +
curr.position.reduce((innerAcc, innerCurr) => {
return innerCurr.status === 0 ? innerAcc + 1 : innerAcc;
}, 0)
);
}, 0);
},
// 检查是否存在异常
checkInspectionResult(arr) {
return !arr.some((obj) => obj.inspectionResult === 1);
},
// 提交
submit(isSubmit = 1) {
// 校验是否通过
if (isSubmit && !this.isAllTabValid()) {
uni.showToast({
title: "请填写完整必填项",
icon: "none",
});
return false;
}
const params = this.getParams(isSubmit); //数据获取
const all_data = this.$store.state.all_data; //获取全部数据
let logContent = "";
console.log("this.uid", this.uid);
console.log("all_data", all_data);
if (this.uid) {
const index = all_data.findIndex((element) => element.uid == this.uid);
params.uid = this.uid;
all_data[index] = params;
logContent = getLogContent(
LOG_TYPE_ENUM.edit,
`${params.recordName}(${params.inspectionCode})`,
"巡检模块"
);
} else {
params.uid = new Date().getTime(); // 唯一标识 pad 端使用
all_data.push(params);
logContent = getLogContent(
LOG_TYPE_ENUM.add,
`${params.recordName}(${params.inspectionCode})`,
"巡检模块"
);
}
// 更新巡检list
const userInfo = this.userInfo;
console.log("all_data存储", all_data);
this.$store.commit("SET_ALL_DATA", all_data);
const inspectList = all_data.filter(
(item) => item.createByName == userInfo.user
);
console.log("inspectList", inspectList);
writeInspectionData(inspectList, userInfo.user);
// 更新日志
const log_list = this.$store.state.log_list;
logContent.inspectionType = params.inspectionType;
log_list.push(logContent);
this.$store.commit("SET_LOG_LIST", log_list);
addLog(log_list).then((res) => {
console.log("日志文件写入成功");
});
// 清空基础缓存信息
this.$store.commit("SET_TEMP_DATA", {}); // 缓存[巡检信息]
uni.showToast({
title: isSubmit ? "提交成功" : "保存草稿成功",
icon: "success",
});
uni.navigateTo({
url: "/pages/inspectionManagement/index",
});
},
// 检查所有Tab 的必填项是否填写完整
isAllTabValid() {
const data = this.list;
// 校验函数
const validateData = (data) => {
return data.every(
(item) =>
item.inspectionResult !== null && item.conclusion.trim() !== ""
);
};
// 调用校验函数
const isValid = validateData(data);
console.log(141, isValid);
return isValid;
},
// 检查当前 Tab 的必填项是否填写完整
isCurrentTabValid() {
const currentTabData = this.list[this.activeTab];
console.log("currentTabData", currentTabData);
return (
currentTabData.inspectionResult !== null && // 巡检结论必填
currentTabData.conclusion.trim() !== "" // 情况摘要必填
// 现场照片为非必填项,不做校验
);
},
// 下一项
nextTab() {
console.log(5215415, this.isCurrentTabValid());
if (!this.isCurrentTabValid()) {
uni.showToast({
title: "请填写完整必填项",
icon: "none",
});
return false;
}
if (this.activeTab === 2) {
this.isSubmitEnabled = true;
} else {
this.switchTab(this.activeTab + 1);
}
},
// 切换 Tab
switchTab(index) {
this.activeTab = index;
this.updateCurrentTabData();
}, // 设置巡检结论
setInspectionResult(value) {
console.log("value", value);
this.inspectionResult = value;
this.list[this.activeTab].inspectionResult = value; // 更新当前 Tab 的数据
},
// 返回
back() {
uni.navigateBack();
},
// 关闭弹窗
closePopup() {
this.switchTab((this.activeTab + 1) % this.tabs.length);
},
},
};
</script>
<style scoped lang="less">
.uni-nav-bar-text {
height: 28.8px;
width: 28.8px;
background: #ffffff;
border: 0.32px solid rgba(224, 224, 224, 1);
border-radius: 14.4px;
color: #333;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
.iconfont {
font-size: 16px;
line-height: 28.8px;
}
}
.container {
padding: 19.2px;
height: 100vh;
}
.module {
background: #ffffff;
border-radius: 9.6px;
padding: 12.8px 20px;
overflow: hidden;
.location {
font-size: 14.4px;
color: #000000;
line-height: 20.8px;
font-weight: 500;
margin-bottom: 14.4px;
}
}
.tab-content {
height: calc(100vh - 280px); /* 根据实际情况调整高度 */
overflow-y: auto; /* 垂直方向滚动 */
overflow-x: hidden; /* 防止水平方向滚动 */
}
.title-bar {
display: flex;
align-items: center;
margin-bottom: 8px;
.blue-line {
width: 3.2px;
height: 12.8px;
background-color: #007aff;
margin-right: 6.4px;
}
.title {
font-size: 12.8px;
font-weight: bold;
}
.location {
margin-left: 6.4px;
color: #666;
}
.submit-btn {
position: absolute;
right: 19.2px;
width: 20%;
background-color: #ccc;
color: #fff;
border-radius: 3.2px;
padding: 3.2px 6.4px;
font-size: 9.6px;
&.active {
background-color: #007aff;
}
}
}
.description {
font-size: 11.2px;
color: #666;
}
.tab-buttons {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 8px;
gap: 16px;
}
.tip {
width: 100%;
background: rgba(55, 116, 246, 0.05);
border: 0.8px solid rgba(55, 116, 246, 0.3);
border-radius: 8px;
font-size: 11.2px;
color: #4a4a4a;
letter-spacing: 0;
font-weight: 400;
padding: 4.8px 9.6px;
display: flex;
.tip-icon {
width: 11.2px;
height: 11.2px;
margin-right: 6.4px;
}
.text {
line-height: 17.6px;
color: #4a4a4a;
letter-spacing: 0;
font-weight: 400;
}
}
.jfImg {
width: 100%;
.weitu {
width: 100%;
height: 280px;
}
}
.tab-item {
display: flex;
align-items: flex-start;
position: relative;
padding: 6.4px 0;
cursor: pointer;
white-space: nowrap;
.tab-icon {
width: 8.4px;
height: 8.4px;
margin-bottom: 3.2px;
margin-right: 2.4px;
}
.tab-text {
font-size: 11.2px;
color: #333;
}
&.active {
.tab-text {
color: #3774f6;
}
.underline {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 1.6px;
background-color: #3774f6;
}
}
}
.form-item {
display: flex;
align-items: center;
padding: 9.6px 0;
line-height: 28.8px;
border-bottom: 0.8px solid #f2f3f5;
.form-label {
font-size: 11.2px;
margin-right: 25.6px;
width: 58.4px;
text-align: right;
color: #7c7c7c;
.required {
color: red;
margin-right: 3.2px;
}
}
.label {
font-size: 11.2px;
}
.switch-container {
display: flex;
gap: 9.6px;
.status-btn {
flex: 1;
padding: 5.6px 19.2px;
font-size: 12.8px;
color: #000000;
background: #f2f2f2;
text-align: center;
font-weight: 400;
line-height: 17.6px;
border-radius: 14.4px;
&.active {
color: #ffffff;
background: #3774f6;
border: 0.32px solid rgba(224, 224, 224, 1);
}
}
}
.input-box {
flex: 1;
border-radius: 3.2px;
font-size: 12.8px;
line-height: 19.2px;
}
.photo-limit {
font-size: 12.8px;
color: #959595;
line-height: 19.2px;
font-weight: 400;
}
.photo-container {
display: flex;
flex-wrap: wrap;
margin-bottom: 6.4px;
.photo-item {
position: relative;
margin-right: 6.4px;
margin-bottom: 6.4px;
.photo {
width: 57.6px;
height: 57.6px;
border-radius: 3.2px;
margin-left: 9.6px;
}
.delete-photo {
position: absolute;
top: -6.4px;
right: -6.4px;
background-color: #ff4d4f;
color: #fff;
width: 12.8px;
height: 12.8px;
border-radius: 50%;
text-align: center;
line-height: 12.8px;
font-size: 9.6px;
}
}
}
.photo-btn {
background: #ffffff;
border: 0.272px solid rgba(221, 221, 221, 1);
border-radius: 1.64px;
width: 57.6px;
height: 57.6px;
font-size: 57.6px;
color: #cccccc;
text-align: center;
line-height: 51.2px;
}
}
.submit-module {
display: flex;
justify-content: center;
position: fixed;
gap: 16px;
left: 50%;
transform: translateX(-50%);
bottom: 25.6px;
.action-btn {
width: 145.6px;
height: 38.4px;
line-height: 38.4px;
background: #ffffff;
border: 0.8px solid rgba(224, 224, 224, 1);
box-shadow: 0px 8px 19.2px 0px rgba(185, 185, 185, 0.24);
border-radius: 21.6px 19.2px 19.2px 21.6px;
font-size: 16px;
color: #000000;
text-align: center;
font-weight: 400;
&.complete-btn {
background-image: linear-gradient(180deg, #3773f6 0%, #2c57f6 99%);
color: #ffffff;
}
}
}
.popup-content {
background-color: white;
padding: 32px;
border-radius: 8px;
text-align: center;
position: relative;
width: 240px;
.close-icon {
position: absolute;
top: 8px;
right: 8px;
font-size: 16px;
cursor: pointer;
}
.icon-success {
font-size: 32px;
color: green;
margin-bottom: 16px;
}
.success-text {
font-size: 14.4px;
margin-bottom: 16px;
}
.next-button {
background-color: blue;
color: white;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 12.8px;
&:hover {
opacity: 0.9;
}
}
}
</style>
<template>
<view class="container">
<!-- 表单区域 -->
<view class="form">
<view
class="form-item"
v-for="(item, index) in formData"
:key="index"
>
<!-- 文字显示区域 -->
<view class="text-display" @click="showPopup(index)">
{{ item.text || '点击输入文字' }}
</view>
<!-- 图片上传区域 -->
<view class="image-upload">
<image
v-if="item.image"
:src="item.image"
mode="aspectFill"
class="uploaded-image"
></image>
<button @click="uploadImage(index)">上传图片</button>
</view>
</view>
</view>
<!-- 提交按钮 -->
<button class="submit-btn" @click="submitForm">提交</button>
<!-- 自定义弹窗组件 -->
<custom-popup
ref="customPopup"
:inspection-item="currentInspectionItem"
:fixed-words="fixedWords"
@confirm="handlePopupConfirm"
></custom-popup>
</view>
</template>
<script>
import CustomPopup from '@/components/CustomPopup.vue';
export default {
components: {
CustomPopup
},
data() {
return {
formData: [
{ text: '', image: '' },
{ text: '', image: '' },
{ text: '', image: '' },
{ text: '', image: '' },
{ text: '', image: '' }
],
currentIndex: -1, // 当前操作的索引
currentInspectionItem: '巡检事项', // 当前巡检事项
fixedWords: ['漏水', '损坏', '正常', '异常'] // 固定词
};
},
methods: {
// 显示弹窗
showPopup(index) {
this.currentIndex = index;
this.$refs.customPopup.open();
},
// 处理弹窗确认
handlePopupConfirm(summary) {
if (this.currentIndex !== -1) {
this.formData[this.currentIndex].text = summary; // 回显到文字显示区域
this.currentIndex = -1;
}
},
// 上传图片
uploadImage(index) {
uni.chooseImage({
count: 1,
success: (res) => {
if (this.formData[index].image) {
uni.showToast({
title: '每组只能上传一张图片',
icon: 'none'
});
return;
}
this.formData[index].image = res.tempFilePaths[0]; // 保存图片路径
}
});
},
// 提交表单
submitForm() {
let isValid = true;
this.formData.forEach((item, index) => {
if (!item.text || !item.image) {
isValid = false;
uni.showToast({
title: `第 ${index + 1} 组数据未填写完整`,
icon: 'none'
});
}
});
if (isValid) {
uni.showToast({
title: '提交成功',
icon: 'success'
});
console.log('提交的数据:', this.formData);
// 这里可以处理提交逻辑,比如将数据发送到后端
}
}
}
};
</script>
<style scoped>
.container {
padding: 20px;
}
.form {
margin-bottom: 20px;
}
.form-item {
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 8px;
padding: 10px;
}
.text-display {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
cursor: pointer;
}
.image-upload {
display: flex;
align-items: center;
}
.uploaded-image {
width: 100px;
height: 100px;
margin-right: 10px;
border-radius: 5px;
}
.submit-btn {
background-color: #007aff;
color: #fff;
padding: 10px;
border-radius: 5px;
text-align: center;
}
</style>
\ No newline at end of file
<template>
<!-- 机房巡检操作 -->
<view>
<view v-for="(item, index) in itemData.detail" :key="index">
<view class="form-item">
<text class="form-label"><text class="required">*</text>巡检结论</text>
<view class="switch-container">
<view
:class="['status-btn', { active: item.inspectionResult === 0 }]"
@click="setInspectionResult(0)"
>
正常
</view>
<view
:class="['status-btn', { active: item.inspectionResult === 1 }]"
@click="setInspectionResult(1)"
>
异常
</view>
</view>
</view>
<view class="form-item">
<text class="form-label"><text class="required">*</text>情况摘要</text>
<text class="required" @click="showPopup(index)">{{
item.conclusion || "请输入"
}}</text>
</view>
<view class="form-item">
<text class="form-label">现场照片</text>
<view class="photo-box">
<view class="photo-container">
<view @click="takePhoto" class="photo-btn"> + </view>
<view
v-for="(photo, index) in item && item.photos"
:key="index"
class="photo-item"
>
<image :src="photo" class="photo"></image>
<text class="delete-photo" @click="deletePhoto(index)">×</text>
</view>
</view>
<view class="photo-limit">请对检查项进行拍照留存(限5张)。</view>
</view>
</view> </view
><custom-popup
ref="customPopup"
:inspectionItem="inspectionItem"
@confirm="handlePopupConfirm"
></custom-popup>
</view>
</template>
<script>
import customPopup from "../components/customPopup.vue";
import _ from "lodash";
export default {
components: {
customPopup,
},
props: {
// 父组件传递的巡检状态
status: {
type: Number,
default: 0,
},
// 父组件传递的巡检事项名
inspectionItem: {
type: String,
default: "",
},
// 父组件传递的数据
itemData: {
type: Object,
default: () => ({
// 0是未巡检 1是已巡检 2巡检异常
status: 0,
detail: [
{
label: "地板、墙壁破损",
inspectionResult: 0,
conclusion: "",
photos: [],
},
{
label: "机房清洁",
inspectionResult: 0,
conclusion: "",
photos: [],
},
{
label: "机房通风",
inspectionResult: 0,
conclusion: "",
photos: [],
},
{
label: "机房照明",
inspectionResult: 0,
conclusion: "",
photos: [],
},
{
label: "漏水检测",
inspectionResult: 0,
conclusion: "",
photos: [],
},
],
}),
},
},
data() {
return {
currentIndex: 0, // 当前操作的索引
};
},
computed: {
userInfo() {
return this.$store.state.now_user || {};
},
},
mounted() {},
methods: {
// 显示弹窗
showPopup(index) {
this.currentIndex = index;
this.$refs.customPopup.open();
},
// 处理弹窗确认
handlePopupConfirm(summary) {
if (this.currentIndex !== -1) {
this.itemData.detail[this.currentIndex].text = summary; // 回显到文字显示区域
this.currentIndex = -1;
}
},
},
};
</script>
<style scoped lang="less">
.form-item {
display: flex;
align-items: center;
padding: 9.6px 0;
line-height: 28.8px;
border-bottom: 0.8px solid #f2f3f5;
.form-label {
font-size: 11.2px;
margin-right: 25.6px;
width: 58.4px;
text-align: right;
color: #7c7c7c;
.required {
color: red;
margin-right: 3.2px;
}
}
.label {
font-size: 11.2px;
}
.switch-container {
display: flex;
gap: 9.6px;
.status-btn {
flex: 1;
padding: 5.6px 19.2px;
font-size: 12.8px;
color: #000000;
background: #f2f2f2;
text-align: center;
font-weight: 400;
line-height: 17.6px;
border-radius: 14.4px;
&.active {
color: #ffffff;
background: #3774f6;
border: 0.32px solid rgba(224, 224, 224, 1);
}
}
}
.input-box {
flex: 1;
border-radius: 3.2px;
font-size: 12.8px;
line-height: 19.2px;
}
.photo-limit {
font-size: 12.8px;
color: #959595;
line-height: 19.2px;
font-weight: 400;
}
.photo-container {
display: flex;
flex-wrap: wrap;
margin-bottom: 6.4px;
.photo-item {
position: relative;
margin-right: 6.4px;
margin-bottom: 6.4px;
.photo {
width: 57.6px;
height: 57.6px;
border-radius: 3.2px;
margin-left: 9.6px;
}
.delete-photo {
position: absolute;
top: -6.4px;
right: -6.4px;
background-color: #ff4d4f;
color: #fff;
width: 12.8px;
height: 12.8px;
border-radius: 50%;
text-align: center;
line-height: 12.8px;
font-size: 9.6px;
}
}
}
.photo-btn {
background: #ffffff;
border: 0.272px solid rgba(221, 221, 221, 1);
border-radius: 1.64px;
width: 57.6px;
height: 57.6px;
font-size: 57.6px;
color: #cccccc;
text-align: center;
line-height: 51.2px;
}
}
</style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</block> </block>
<block slot="right" class="nav-right"> <block slot="right" class="nav-right">
<view class="header-buttons"> <view class="header-buttons">
<!-- <button class="button" @click="lookLog">查看样表</button> --> <button class="button" @click="lookLog">查看样表</button>
</view> </view>
</block> </block>
</uni-nav-bar> </uni-nav-bar>
...@@ -106,18 +106,9 @@ ...@@ -106,18 +106,9 @@
<script> <script>
import moment from "moment"; import moment from "moment";
import Tabs from "./model/tabs.vue";
import TabContentItem from "./model/tabContentItem.vue";
import {
addLog,
getLogContent,
LOG_TYPE_ENUM,
writeDarf,
writeInspectionData,
} from "@/utils/IoReadingAndWriting.js";
import { pad_2_1_inspection_position, pad_2_1_floor } from "@/utils/dict.js"; import { pad_2_1_inspection_position, pad_2_1_floor } from "@/utils/dict.js";
import { getInspectionDetails, getDarft } from "@/request/index.js"; import { getInspectionDetails } from "@/request/index.js";
export default { export default {
data() { data() {
return { return {
...@@ -355,6 +346,7 @@ export default { ...@@ -355,6 +346,7 @@ export default {
} }
.info { .info {
margin-right: 9.6px;
.username { .username {
font-size: 16px; font-size: 16px;
color: #000000; color: #000000;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
src="@/static/img/add-img/home1.png" src="@/static/img/add-img/home1.png"
mode="aspectFit" mode="aspectFit"
></image ></image
>请点击“需巡检井道”执行巡检 >{{ tabs[activeTab].text }}
</view> </view>
<view class="tab-content"> <view class="tab-content">
<!-- 操作区域 --> <!-- 操作区域 -->
...@@ -185,14 +185,17 @@ export default { ...@@ -185,14 +185,17 @@ export default {
{ {
label: "门禁", label: "门禁",
icon: "../../static/img/add-img/home1.png", icon: "../../static/img/add-img/home1.png",
text: "检查门禁是否可以正常开启/关闭",
}, },
{ {
label: "卫生", label: "卫生",
icon: "../../static/img/add-img/home1.png", icon: "../../static/img/add-img/home1.png",
text: "检查卫生状况是否保持清洁",
}, },
{ {
label: "设备告警", label: "设备告警",
icon: "../../static/img/add-img/home1.png", icon: "../../static/img/add-img/home1.png",
text: "检查设备是否存在告警,有无设备离线或故障",
}, },
], ],
activeTab: 0, // 当前选中的 Tab activeTab: 0, // 当前选中的 Tab
...@@ -278,7 +281,7 @@ export default { ...@@ -278,7 +281,7 @@ export default {
if (list && list.length) { if (list && list.length) {
this.list = list; this.list = list;
} }
this.inspectionResult = list[0].inspectionResult this.inspectionResult = list[0].inspectionResult;
console.log("let list", list); console.log("let list", list);
this.detailsInfo = detailsInfo; this.detailsInfo = detailsInfo;
console.log("获取list", this.list); console.log("获取list", this.list);
...@@ -295,22 +298,6 @@ export default { ...@@ -295,22 +298,6 @@ export default {
uni.hideLoading(); uni.hideLoading();
}); });
}, },
// 加载历史数据
loadHistoryData() {
const history = uni.getStorageSync("inspectionHistory");
console.log("history", history);
if (
history &&
Date.now() - history.firstSubmitTime < 168 * 60 * 60 * 1000
) {
this.historyData = history;
this.location = history.location;
this.randomDescription = history.randomDescription;
this.list = history.tabData;
this.activeTab = 0; // 默认切换到第一个 Tab
this.updateCurrentTabData();
}
},
// 数据结构重组 // 数据结构重组
coverlist() { coverlist() {
// 获取井道巡检的三个检查项固定数据再进行处理 // 获取井道巡检的三个检查项固定数据再进行处理
...@@ -420,7 +407,7 @@ export default { ...@@ -420,7 +407,7 @@ export default {
console.log("this.detailsInfo", this.detailsInfo); console.log("this.detailsInfo", this.detailsInfo);
this.detailsInfo.submitTime = moment().format("yyyy-MM-DD"); // 记录提交时间 this.detailsInfo.submitTime = moment().format("yyyy-MM-DD"); // 记录提交时间
this.detailsInfo.submitMonth = moment().format("yyyy-MM"); // 记录提交月份 this.detailsInfo.submitMonth = moment().format("yyyy-MM"); // 记录提交月份
this.detailsInfo.synchronization = 2 //编辑中 this.detailsInfo.synchronization = 2; //编辑中
return this.detailsInfo; return this.detailsInfo;
} else { } else {
let baseInfo = this.baseInfo; let baseInfo = this.baseInfo;
...@@ -840,16 +827,19 @@ export default { ...@@ -840,16 +827,19 @@ export default {
.form-label { .form-label {
font-size: 11.2px; font-size: 11.2px;
font-weight: bold;
margin-right: 25.6px; margin-right: 25.6px;
width: 58.4px; width: 58.4px;
text-align: right; text-align: right;
color: #7c7c7c;
.required { .required {
color: red; color: red;
margin-right: 3.2px; margin-right: 3.2px;
} }
} }
.label {
font-size: 11.2px;
}
.switch-container { .switch-container {
display: flex; display: flex;
......
...@@ -4,1415 +4,1427 @@ ...@@ -4,1415 +4,1427 @@
// 巡检类型 // 巡检类型
export const pad_inspection_type = { export const pad_inspection_type = {
"total": 2, total: 2,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:48:07", createTime: "2024-09-05 15:48:07",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1263, dictCode: 1263,
"dictSort": 1, dictSort: 1,
"dictLabel": "机房巡检", dictLabel: "机房巡检",
"dictValue": "1", dictValue: "1",
"dictType": "pad_inspection_type", dictType: "pad_inspection_type",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:48:14", createTime: "2024-09-05 15:48:14",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1264, dictCode: 1264,
"dictSort": 2, dictSort: 2,
"dictLabel": "井道巡检", dictLabel: "井道巡检",
"dictValue": "2", dictValue: "2",
"dictType": "pad_inspection_type", dictType: "pad_inspection_type",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 机房巡检_汇聚机房巡检 // 机房巡检_汇聚机房巡检
export const pad_1_1_inspection_items = { export const pad_1_1_inspection_items = {
"total": 11, total: 11,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:49:18", createTime: "2024-09-05 15:49:18",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1265, dictCode: 1265,
"dictSort": 1, dictSort: 1,
"dictLabel": "门禁", dictLabel: "门禁",
"dictValue": "1", dictValue: "1",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:49:27", createTime: "2024-09-05 15:49:27",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1266, dictCode: 1266,
"dictSort": 2, dictSort: 2,
"dictLabel": "空调", dictLabel: "空调",
"dictValue": "2", dictValue: "2",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:49:34", createTime: "2024-09-05 15:49:34",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1267, dictCode: 1267,
"dictSort": 3, dictSort: 3,
"dictLabel": "温度", dictLabel: "温度",
"dictValue": "3", dictValue: "3",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:49:40", createTime: "2024-09-05 15:49:40",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1268, dictCode: 1268,
"dictSort": 4, dictSort: 4,
"dictLabel": "湿度", dictLabel: "湿度",
"dictValue": "4", dictValue: "4",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:49:48", createTime: "2024-09-05 15:49:48",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1269, dictCode: 1269,
"dictSort": 5, dictSort: 5,
"dictLabel": "配电", dictLabel: "配电",
"dictValue": "5", dictValue: "5",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:49:56", createTime: "2024-09-05 15:49:56",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1270, dictCode: 1270,
"dictSort": 6, dictSort: 6,
"dictLabel": "消防", dictLabel: "消防",
"dictValue": "6", dictValue: "6",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:50:03", createTime: "2024-09-05 15:50:03",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1271, dictCode: 1271,
"dictSort": 7, dictSort: 7,
"dictLabel": "UPS", dictLabel: "UPS",
"dictValue": "7", dictValue: "7",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:50:09", createTime: "2024-09-05 15:50:09",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1272, dictCode: 1272,
"dictSort": 8, dictSort: 8,
"dictLabel": "水浸", dictLabel: "水浸",
"dictValue": "8", dictValue: "8",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:50:14", createTime: "2024-09-05 15:50:14",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1273, dictCode: 1273,
"dictSort": 9, dictSort: 9,
"dictLabel": "灯光", dictLabel: "灯光",
"dictValue": "9", dictValue: "9",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:50:22", createTime: "2024-09-05 15:50:22",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1274, dictCode: 1274,
"dictSort": 10, dictSort: 10,
"dictLabel": "痕迹", dictLabel: "痕迹",
"dictValue": "10", dictValue: "10",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:50:28", createTime: "2024-09-05 15:50:28",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1275, dictCode: 1275,
"dictSort": 11, dictSort: 11,
"dictLabel": "清洁", dictLabel: "清洁",
"dictValue": "11", dictValue: "11",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 机房巡检_汇聚机房巡检_位置 // 机房巡检_汇聚机房巡检_位置
export const pad_1_1_inspection_position = { export const pad_1_1_inspection_position = {
"total": 6, total: 6,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:51:21", createTime: "2024-09-05 15:51:21",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1276, dictCode: 1276,
"dictSort": 1, dictSort: 1,
"dictLabel": "A2", dictLabel: "A2",
"dictValue": "1", dictValue: "1",
"dictType": "pad_1_1_inspection_position", dictType: "pad_1_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:51:35", createTime: "2024-09-05 15:51:35",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1277, dictCode: 1277,
"dictSort": 2, dictSort: 2,
"dictLabel": "B2", dictLabel: "B2",
"dictValue": "2", dictValue: "2",
"dictType": "pad_1_1_inspection_position", dictType: "pad_1_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:51:41", createTime: "2024-09-05 15:51:41",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1278, dictCode: 1278,
"dictSort": 3, dictSort: 3,
"dictLabel": "C2", dictLabel: "C2",
"dictValue": "3", dictValue: "3",
"dictType": "pad_1_1_inspection_position", dictType: "pad_1_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:51:49", createTime: "2024-09-05 15:51:49",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1279, dictCode: 1279,
"dictSort": 4, dictSort: 4,
"dictLabel": "D2", dictLabel: "D2",
"dictValue": "4", dictValue: "4",
"dictType": "pad_1_1_inspection_position", dictType: "pad_1_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:51:56", createTime: "2024-09-05 15:51:56",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1280, dictCode: 1280,
"dictSort": 5, dictSort: 5,
"dictLabel": "E2", dictLabel: "E2",
"dictValue": "5", dictValue: "5",
"dictType": "pad_1_1_inspection_position", dictType: "pad_1_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:52:03", createTime: "2024-09-05 15:52:03",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1281, dictCode: 1281,
"dictSort": 6, dictSort: 6,
"dictLabel": "F2", dictLabel: "F2",
"dictValue": "6", dictValue: "6",
"dictType": "pad_1_1_inspection_position", dictType: "pad_1_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 机房巡检_屏蔽机房巡检_检查项 // 机房巡检_屏蔽机房巡检_检查项
export const pad_1_2_inspection_items = { export const pad_1_2_inspection_items = {
"total": 11, total: 11,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:52:30", createTime: "2024-09-05 15:52:30",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1282, dictCode: 1282,
"dictSort": 1, dictSort: 1,
"dictLabel": "门禁", dictLabel: "门禁",
"dictValue": "1", dictValue: "1",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:52:40", createTime: "2024-09-05 15:52:40",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1283, dictCode: 1283,
"dictSort": 2, dictSort: 2,
"dictLabel": "空调", dictLabel: "空调",
"dictValue": "2", dictValue: "2",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:52:46", createTime: "2024-09-05 15:52:46",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1284, dictCode: 1284,
"dictSort": 3, dictSort: 3,
"dictLabel": "温度", dictLabel: "温度",
"dictValue": "3", dictValue: "3",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:52:52", createTime: "2024-09-05 15:52:52",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1285, dictCode: 1285,
"dictSort": 4, dictSort: 4,
"dictLabel": "湿度", dictLabel: "湿度",
"dictValue": "4", dictValue: "4",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:52:58", createTime: "2024-09-05 15:52:58",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1286, dictCode: 1286,
"dictSort": 5, dictSort: 5,
"dictLabel": "列头柜", dictLabel: "列头柜",
"dictValue": "5", dictValue: "5",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:53:03", createTime: "2024-09-05 15:53:03",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1287, dictCode: 1287,
"dictSort": 6, dictSort: 6,
"dictLabel": "消防", dictLabel: "消防",
"dictValue": "6", dictValue: "6",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:53:09", createTime: "2024-09-05 15:53:09",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1288, dictCode: 1288,
"dictSort": 7, dictSort: 7,
"dictLabel": "UPS", dictLabel: "UPS",
"dictValue": "7", dictValue: "7",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:53:15", createTime: "2024-09-05 15:53:15",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1289, dictCode: 1289,
"dictSort": 8, dictSort: 8,
"dictLabel": "水浸", dictLabel: "水浸",
"dictValue": "8", dictValue: "8",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:53:21", createTime: "2024-09-05 15:53:21",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1290, dictCode: 1290,
"dictSort": 9, dictSort: 9,
"dictLabel": "灯光", dictLabel: "灯光",
"dictValue": "9", dictValue: "9",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:53:27", createTime: "2024-09-05 15:53:27",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1291, dictCode: 1291,
"dictSort": 10, dictSort: 10,
"dictLabel": "痕迹", dictLabel: "痕迹",
"dictValue": "10", dictValue: "10",
"dictType": "pad_1_2_inspection_items", dictType: "pad_1_2_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:50:28", createTime: "2024-09-05 15:50:28",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1275, dictCode: 1275,
"dictSort": 11, dictSort: 11,
"dictLabel": "清洁", dictLabel: "清洁",
"dictValue": "11", dictValue: "11",
"dictType": "pad_1_1_inspection_items", dictType: "pad_1_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 机房巡检_屏蔽机房巡检_位置 // 机房巡检_屏蔽机房巡检_位置
export const pad_1_2_inspection_position = { export const pad_1_2_inspection_position = {
"total": 3, total: 3,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:54:32", createTime: "2024-09-05 15:54:32",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1293, dictCode: 1293,
"dictSort": 1, dictSort: 1,
"dictLabel": "A3", dictLabel: "A3",
"dictValue": "1", dictValue: "1",
"dictType": "pad_1_2_inspection_position", dictType: "pad_1_2_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:54:37", createTime: "2024-09-05 15:54:37",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1294, dictCode: 1294,
"dictSort": 2, dictSort: 2,
"dictLabel": "F3内", dictLabel: "F3内",
"dictValue": "2", dictValue: "2",
"dictType": "pad_1_2_inspection_position", dictType: "pad_1_2_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:54:48", createTime: "2024-09-05 15:54:48",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1295, dictCode: 1295,
"dictSort": 3, dictSort: 3,
"dictLabel": "F3外", dictLabel: "F3外",
"dictValue": "3", dictValue: "3",
"dictType": "pad_1_2_inspection_position", dictType: "pad_1_2_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 机房巡检_电池间巡检_检查项 // 机房巡检_电池间巡检_检查项
export const pad_1_3_inspection_items = { export const pad_1_3_inspection_items = {
"msg": "操作成功", msg: "操作成功",
"code": 200, code: 200,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:14", createTime: "2024-09-05 15:55:14",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1296, dictCode: 1296,
"dictSort": 1, dictSort: 1,
"dictLabel": "门禁", dictLabel: "门禁",
"dictValue": "1", dictValue: "1",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:20", createTime: "2024-09-05 15:55:20",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1297, dictCode: 1297,
"dictSort": 2, dictSort: 2,
"dictLabel": "空调", dictLabel: "空调",
"dictValue": "2", dictValue: "2",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:27", createTime: "2024-09-05 15:55:27",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1298, dictCode: 1298,
"dictSort": 3, dictSort: 3,
"dictLabel": "温度", dictLabel: "温度",
"dictValue": "3", dictValue: "3",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:32", createTime: "2024-09-05 15:55:32",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1299, dictCode: 1299,
"dictSort": 4, dictSort: 4,
"dictLabel": "湿度", dictLabel: "湿度",
"dictValue": "4", dictValue: "4",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:39", createTime: "2024-09-05 15:55:39",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1300, dictCode: 1300,
"dictSort": 5, dictSort: 5,
"dictLabel": "消防", dictLabel: "消防",
"dictValue": "5", dictValue: "5",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:44", createTime: "2024-09-05 15:55:44",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1301, dictCode: 1301,
"dictSort": 6, dictSort: 6,
"dictLabel": "UPS1", dictLabel: "UPS1",
"dictValue": "6", dictValue: "6",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:51", createTime: "2024-09-05 15:55:51",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1302, dictCode: 1302,
"dictSort": 7, dictSort: 7,
"dictLabel": "UPS2", dictLabel: "UPS2",
"dictValue": "7", dictValue: "7",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:55:58", createTime: "2024-09-05 15:55:58",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1303, dictCode: 1303,
"dictSort": 8, dictSort: 8,
"dictLabel": "水浸", dictLabel: "水浸",
"dictValue": "8", dictValue: "8",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:56:04", createTime: "2024-09-05 15:56:04",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1304, dictCode: 1304,
"dictSort": 9, dictSort: 9,
"dictLabel": "灯光", dictLabel: "灯光",
"dictValue": "9", dictValue: "9",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:56:09", createTime: "2024-09-05 15:56:09",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1305, dictCode: 1305,
"dictSort": 10, dictSort: 10,
"dictLabel": "痕迹", dictLabel: "痕迹",
"dictValue": "10", dictValue: "10",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:56:14", createTime: "2024-09-05 15:56:14",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1306, dictCode: 1306,
"dictSort": 11, dictSort: 11,
"dictLabel": "清洁", dictLabel: "清洁",
"dictValue": "11", dictValue: "11",
"dictType": "pad_1_3_inspection_items", dictType: "pad_1_3_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
] ],
} };
// 机房巡检_电池间巡检_位置 // 机房巡检_电池间巡检_位置
export const pad_1_3_inspection_position = { export const pad_1_3_inspection_position = {
"total": 3, total: 3,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:56:49", createTime: "2024-09-05 15:56:49",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1307, dictCode: 1307,
"dictSort": 1, dictSort: 1,
"dictLabel": "A-1", dictLabel: "A-1",
"dictValue": "1", dictValue: "1",
"dictType": "pad_1_3_inspection_position", dictType: "pad_1_3_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:56:54", createTime: "2024-09-05 15:56:54",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1308, dictCode: 1308,
"dictSort": 2, dictSort: 2,
"dictLabel": "F-2", dictLabel: "F-2",
"dictValue": "2", dictValue: "2",
"dictType": "pad_1_3_inspection_position", dictType: "pad_1_3_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:57:00", createTime: "2024-09-05 15:57:00",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1309, dictCode: 1309,
"dictSort": 3, dictSort: 3,
"dictLabel": "无", dictLabel: "无",
"dictValue": "3", dictValue: "3",
"dictType": "pad_1_3_inspection_position", dictType: "pad_1_3_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], {
"code": 200, dictLabel: "",
"msg": "查询成功", dictValue: "",
"status": null, conclusion: "", // 情况摘要
"map": null // roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "", // 检查项 如:地板、墙壁破损
photos: [], // 照片
},
],
code: 200,
msg: "查询成功",
status: null,
map: null,
}; };
// 井道巡检_检查项 // 井道巡检_检查项
export const pad_2_1_inspection_items = { export const pad_2_1_inspection_items = {
"total": 3, total: 3,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:58:07", createTime: "2024-09-05 15:58:07",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1310, dictCode: 1310,
"dictSort": 1, dictSort: 1,
"dictLabel": "门禁", dictLabel: "门禁",
"dictValue": "1", dictValue: "1",
"dictType": "pad_2_1_inspection_items", dictType: "pad_2_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"phones":[],//现场照片 phones: [], //现场照片
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:58:12", createTime: "2024-09-05 15:58:12",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1311, dictCode: 1311,
"dictSort": 2, dictSort: 2,
"dictLabel": "卫生", dictLabel: "卫生",
"dictValue": "2", dictValue: "2",
"dictType": "pad_2_1_inspection_items", dictType: "pad_2_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"phones":[], phones: [],
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:58:17", createTime: "2024-09-05 15:58:17",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1312, dictCode: 1312,
"dictSort": 3, dictSort: 3,
"dictLabel": "设备告警", dictLabel: "设备告警",
"dictValue": "3", dictValue: "3",
"dictType": "pad_2_1_inspection_items", dictType: "pad_2_1_inspection_items",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"phones":[], phones: [],
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 井道巡检_电池间巡检_位置 // 井道巡检_电池间巡检_位置
export const pad_2_1_inspection_position = { export const pad_2_1_inspection_position = {
"total": 6, total: 6,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:59:19", createTime: "2024-09-05 15:59:19",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1313, dictCode: 1313,
"dictSort": 1, dictSort: 1,
"dictLabel": "A座", dictLabel: "A座",
"dictValue": "1", dictValue: "1",
"dictType": "pad_2_1_inspection_position", dictType: "pad_2_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:59:25", createTime: "2024-09-05 15:59:25",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1314, dictCode: 1314,
"dictSort": 2, dictSort: 2,
"dictLabel": "B座", dictLabel: "B座",
"dictValue": "2", dictValue: "2",
"dictType": "pad_2_1_inspection_position", dictType: "pad_2_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:59:33", createTime: "2024-09-05 15:59:33",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1315, dictCode: 1315,
"dictSort": 3, dictSort: 3,
"dictLabel": "C座", dictLabel: "C座",
"dictValue": "3", dictValue: "3",
"dictType": "pad_2_1_inspection_position", dictType: "pad_2_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:59:40", createTime: "2024-09-05 15:59:40",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1316, dictCode: 1316,
"dictSort": 4, dictSort: 4,
"dictLabel": "D座", dictLabel: "D座",
"dictValue": "4", dictValue: "4",
"dictType": "pad_2_1_inspection_position", dictType: "pad_2_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:59:46", createTime: "2024-09-05 15:59:46",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1317, dictCode: 1317,
"dictSort": 5, dictSort: 5,
"dictLabel": "E座", dictLabel: "E座",
"dictValue": "5", dictValue: "5",
"dictType": "pad_2_1_inspection_position", dictType: "pad_2_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 15:59:57", createTime: "2024-09-05 15:59:57",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1318, dictCode: 1318,
"dictSort": 6, dictSort: 6,
"dictLabel": "F座", dictLabel: "F座",
"dictValue": "6", dictValue: "6",
"dictType": "pad_2_1_inspection_position", dictType: "pad_2_1_inspection_position",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false default: false,
} },
], ],
"code": 200, code: 200,
"msg": "查询成功", msg: "查询成功",
"status": null, status: null,
"map": null map: null,
}; };
// 井道巡检_楼层 // 井道巡检_楼层
export const pad_2_1_floor = { export const pad_2_1_floor = {
"msg": "操作成功", msg: "操作成功",
"code": 200, code: 200,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:20", createTime: "2024-09-05 16:00:20",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1319, dictCode: 1319,
"dictSort": 1, dictSort: 1,
"dictLabel": "2楼", dictLabel: "2楼",
"dictValue": "1", dictValue: "1",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:27", createTime: "2024-09-05 16:00:27",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1320, dictCode: 1320,
"dictSort": 2, dictSort: 2,
"dictLabel": "4楼", dictLabel: "4楼",
"dictValue": "2", dictValue: "2",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:34", createTime: "2024-09-05 16:00:34",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1321, dictCode: 1321,
"dictSort": 3, dictSort: 3,
"dictLabel": "6楼", dictLabel: "6楼",
"dictValue": "3", dictValue: "3",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:41", createTime: "2024-09-05 16:00:41",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1322, dictCode: 1322,
"dictSort": 4, dictSort: 4,
"dictLabel": "8楼", dictLabel: "8楼",
"dictValue": "4", dictValue: "4",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:46", createTime: "2024-09-05 16:00:46",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1323, dictCode: 1323,
"dictSort": 5, dictSort: 5,
"dictLabel": "10楼", dictLabel: "10楼",
"dictValue": "5", dictValue: "5",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],//数据
"isSubmit":0, isSubmit: 0,//提交状态
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:51", createTime: "2024-09-05 16:00:51",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1324, dictCode: 1324,
"dictSort": 6, dictSort: 6,
"dictLabel": "12楼", dictLabel: "12楼",
"dictValue": "6", dictValue: "6",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:00:57", createTime: "2024-09-05 16:00:57",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1325, dictCode: 1325,
"dictSort": 7, dictSort: 7,
"dictLabel": "14楼", dictLabel: "14楼",
"dictValue": "7", dictValue: "7",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:01:08", createTime: "2024-09-05 16:01:08",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1326, dictCode: 1326,
"dictSort": 8, dictSort: 8,
"dictLabel": "16楼", dictLabel: "16楼",
"dictValue": "8", dictValue: "8",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:01:17", createTime: "2024-09-05 16:01:17",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1327, dictCode: 1327,
"dictSort": 9, dictSort: 9,
"dictLabel": "18楼", dictLabel: "18楼",
"dictValue": "9", dictValue: "9",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:01:26", createTime: "2024-09-05 16:01:26",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1328, dictCode: 1328,
"dictSort": 10, dictSort: 10,
"dictLabel": "20楼", dictLabel: "20楼",
"dictValue": "10", dictValue: "10",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:01:31", createTime: "2024-09-05 16:01:31",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1329, dictCode: 1329,
"dictSort": 11, dictSort: 11,
"dictLabel": "22楼", dictLabel: "22楼",
"dictValue": "11", dictValue: "11",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:01:37", createTime: "2024-09-05 16:01:37",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1330, dictCode: 1330,
"dictSort": 12, dictSort: 12,
"dictLabel": "24楼", dictLabel: "24楼",
"dictValue": "12", dictValue: "12",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
}, },
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:01:46", createTime: "2024-09-05 16:01:46",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": null, remark: null,
"dictCode": 1331, dictCode: 1331,
"dictSort": 13, dictSort: 13,
"dictLabel": "26楼", dictLabel: "26楼",
"dictValue": "13", dictValue: "13",
"dictType": "pad_2_1_floor", dictType: "pad_2_1_floor",
"cssClass": null, cssClass: null,
"listClass": "default", listClass: "default",
"isDefault": "N", isDefault: "N",
"status": "0", status: "0",
"default": false, default: false,
"statusLable":"未巡检", statusLable: "未巡检",
"details":[], details: [],
"isSubmit":0, isSubmit: 0,
} },
] ],
} };
// 机房巡检类型 // 机房巡检类型
export const pad_room_type ={ export const pad_room_type = {
"total": 5, total: 5,
"rows": [ rows: [
{ {
"createBy": "admin", createBy: "admin",
"createTime": "2024-09-05 16:39:23", createTime: "2024-09-05 16:39:23",
"updateBy": null, updateBy: null,
"updateTime": null, updateTime: null,
"remark": "{\"notice\":\"1、巡检位置:A2、B2、C2、D2、E2、F2。&nbsp;&nbsp;&nbsp;2、巡检说明:痕迹检查地面、墙壁、天花板、是否有裂痕、水渍,机房内是否有鼠患、蚁患、蟑螂活动的痕迹,温湿度取最高值,正常室温:20~25℃,湿度:40~60%。\",\"listType\":\"pad_1_1_inspection_items\",\"checkType\":\"pad_1_1_inspection_position\",\"dataType\":\"hjjf\"}", remark:
"dictCode": 1332, '{"notice":"1、巡检位置:A2、B2、C2、D2、E2、F2。&nbsp;&nbsp;&nbsp;2、巡检说明:痕迹检查地面、墙壁、天花板、是否有裂痕、水渍,机房内是否有鼠患、蚁患、蟑螂活动的痕迹,温湿度取最高值,正常室温:20~25℃,湿度:40~60%。","listType":"pad_1_1_inspection_items","checkType":"pad_1_1_inspection_position","dataType":"hjjf"}',
"dictSort": 1, dictCode: 1332,
"dictLabel": "汇聚机房巡检", dictSort: 1,
"dictValue": "1", dictLabel: "汇聚机房巡检",
"dictType": "pad_room_type", dictValue: "1",
"cssClass": null, dictType: "pad_room_type",
"listClass": "default", cssClass: null,
"isDefault": "N", listClass: "default",
"status": "0", isDefault: "N",
"default": false status: "0",
}, default: false,
{ },
"createBy": "admin", {
"createTime": "2024-09-05 16:39:29", createBy: "admin",
"updateBy": null, createTime: "2024-09-05 16:39:29",
"updateTime": null, updateBy: null,
"remark": "{\"listType\":\"pad_1_2_inspection_items\",\"checkType\":\"pad_1_2_inspection_position\",\"dataType\":\"pbjf\"}", updateTime: null,
"dictCode": 1333, remark:
"dictSort": 2, '{"listType":"pad_1_2_inspection_items","checkType":"pad_1_2_inspection_position","dataType":"pbjf"}',
"dictLabel": "屏蔽机房巡检", dictCode: 1333,
"dictValue": "2", dictSort: 2,
"dictType": "pad_room_type", dictLabel: "屏蔽机房巡检",
"cssClass": null, dictValue: "2",
"listClass": "default", dictType: "pad_room_type",
"isDefault": "N", cssClass: null,
"status": "0", listClass: "default",
"default": false isDefault: "N",
}, status: "0",
{ default: false,
"createBy": "admin", },
"createTime": "2024-09-05 16:39:36", {
"updateBy": null, createBy: "admin",
"updateTime": null, createTime: "2024-09-05 16:39:36",
"remark": "{\"listType\":\"pad_1_3_inspection_items\",\"checkType\":\"pad_1_3_inspection_position\",\"dataType\":\"dcj\"}", updateBy: null,
"dictCode": 1334, updateTime: null,
"dictSort": 3, remark:
"dictLabel": "电池间巡检", '{"listType":"pad_1_3_inspection_items","checkType":"pad_1_3_inspection_position","dataType":"dcj"}',
"dictValue": "3", dictCode: 1334,
"dictType": "pad_room_type", dictSort: 3,
"cssClass": null, dictLabel: "电池间巡检",
"listClass": "default", dictValue: "3",
"isDefault": "N", dictType: "pad_room_type",
"status": "0", cssClass: null,
"default": false listClass: "default",
}, isDefault: "N",
{ status: "0",
"createBy": "admin", default: false,
"createTime": "2024-09-05 16:39:46", },
"updateBy": null, {
"updateTime": null, createBy: "admin",
"remark": "{\"dataType\":\"jfzb\"}", createTime: "2024-09-05 16:39:46",
"dictCode": 1335, updateBy: null,
"dictSort": 4, updateTime: null,
"dictLabel": "机房值班", remark: '{"dataType":"jfzb"}',
"dictValue": "4", dictCode: 1335,
"dictType": "pad_room_type", dictSort: 4,
"cssClass": null, dictLabel: "机房值班",
"listClass": "default", dictValue: "4",
"isDefault": "N", dictType: "pad_room_type",
"status": "0", cssClass: null,
"default": false listClass: "default",
}, isDefault: "N",
{ status: "0",
"createBy": "admin", default: false,
"createTime": "2024-09-05 16:39:54", },
"updateBy": null, {
"updateTime": null, createBy: "admin",
"remark": "{\"dataType\":\"zbjj\"}", createTime: "2024-09-05 16:39:54",
"dictCode": 1336, updateBy: null,
"dictSort": 5, updateTime: null,
"dictLabel": "值班交接", remark: '{"dataType":"zbjj"}',
"dictValue": "5", dictCode: 1336,
"dictType": "pad_room_type", dictSort: 5,
"cssClass": null, dictLabel: "值班交接",
"listClass": "default", dictValue: "5",
"isDefault": "N", dictType: "pad_room_type",
"status": "0", cssClass: null,
"default": false listClass: "default",
} isDefault: "N",
], status: "0",
"code": 200, default: false,
"msg": "查询成功", },
"status": null, ],
"map": null code: 200,
msg: "查询成功",
status: null,
map: null,
}; };
/**
* 内置的字典内容
*/
// 巡检类型
export const pad_inspection_type = {
total: 2,
rows: [
{
createBy: "admin",
createTime: "2024-09-05 15:48:07",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1263,
dictSort: 1,
dictLabel: "机房巡检",
dictValue: "1",
dictType: "pad_inspection_type",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
},
{
createBy: "admin",
createTime: "2024-09-05 15:48:14",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1264,
dictSort: 2,
dictLabel: "井道巡检",
dictValue: "2",
dictType: "pad_inspection_type",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
},
],
code: 200,
msg: "查询成功",
status: null,
map: null,
};
// 机房巡检_汇聚屏蔽机房巡检配置
export const pad_1_1_inspection_items = {
total: 11,
rows: [
{
createBy: "admin",
createTime: "2024-09-05 15:49:18",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1265,
dictSort: 1,
dictLabel: "物理环境",
dictValue: "1",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
form: [
{
dictLabel: "地板、墙壁破损",
dictValue: "1",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "1", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "机房清洁",
dictValue: "2",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "2", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "机房通风",
dictValue: "3",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "3", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "机房照明",
dictValue: "4",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "4", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "漏水检测",
dictValue: "5",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "5", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
],
},
{
createBy: "admin",
createTime: "2024-09-05 15:49:27",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1266,
dictSort: 2,
dictLabel: "安防系统",
dictValue: "2",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
form: [
{
dictLabel: "门禁功能",
dictValue: "1",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "1", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "门禁外观破损",
dictValue: "2",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "2", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "是否有监控",
dictValue: "3",
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "3", // 检查项 如:地板、墙壁破损
isHaveItem: true,
},
{
dictLabel: "监控外观破损",
dictValue: "4",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "4", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "监控画面清晰",
dictValue: "5",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "5", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
{
dictLabel: "机房通监控存储连续风",
dictValue: "6",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "6", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
],
},
{
createBy: "admin",
createTime: "2024-09-05 15:49:34",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1267,
dictSort: 3,
dictLabel: "设备告警",
dictValue: "3",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
form: [
{
dictLabel: "是否有告警",
dictValue: "1",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "1", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
faultId: "", //故障编号
uPosition1: ["", ""], //u位 n到n
photos: [], // 照片
},
],
},
{
createBy: "admin",
createTime: "2024-09-05 15:49:40",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1268,
dictSort: 4,
dictLabel: "机房湿温度",
dictValue: "4",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
form: [
{
dictLabel: "设定温度",
dictValue: "1",
value: "25℃",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "1", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
},
{
dictLabel: "实际温度",
dictValue: "2",
conclusion: "", // 情况摘要
// roomType,
inspectionResult: 0, // 异常结论 0: 正常, 1: 异常
itemCode: "2", // 检查项 如:地板、墙壁破损
modalValue: "default", //弹窗分类 default通用ps破损qj清洁
photos: [], // 照片
},
],
},
{
createBy: "admin",
createTime: "2024-09-05 15:49:48",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1269,
dictSort: 5,
dictLabel: "电力系统",
dictValue: "5",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
},
{
createBy: "admin",
createTime: "2024-09-05 15:49:56",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1270,
dictSort: 6,
dictLabel: "消防系统",
dictValue: "6",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
},
{
createBy: "admin",
createTime: "2024-09-05 15:50:03",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1271,
dictSort: 7,
dictLabel: "线路情况",
dictValue: "7",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
},
{
createBy: "admin",
createTime: "2024-09-05 15:50:09",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1272,
dictSort: 8,
dictLabel: "其它",
dictValue: "8",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
},
],
code: 200,
msg: "查询成功",
status: null,
map: null,
};
// 机房巡检_机房巡检_位置
export const pad_1_1_inspection_position = {
total: 11,
rows: [
{
createBy: "admin",
createTime: "2024-09-05 15:51:21",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1276,
dictSort: 1,
dictLabel: "F座3楼-内环屏蔽机房",
dictValue: "1",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [], //数据
isSubmit: 0,
jfType: 0, //机房类型 0屏蔽 1汇聚 2电池间(1) 3电池间(2)
},
{
createBy: "admin",
createTime: "2024-09-05 15:51:35",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1277,
dictSort: 2,
dictLabel: "F座3楼-外环屏蔽机房",
dictValue: "2",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 0,
},
{
createBy: "admin",
createTime: "2024-09-05 15:51:41",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1278,
dictSort: 3,
dictLabel: "F座2楼-汇聚机房",
dictValue: "3",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 1,
},
{
createBy: "admin",
createTime: "2024-09-05 15:51:49",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1279,
dictSort: 4,
dictLabel: "A座2楼-汇聚机房",
dictValue: "4",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 1,
},
{
createBy: "admin",
createTime: "2024-09-05 15:51:56",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1280,
dictSort: 5,
dictLabel: "A座3楼-屏蔽机房",
dictValue: "5",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 0,
},
{
createBy: "admin",
createTime: "2024-09-05 15:52:03",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1281,
dictSort: 6,
dictLabel: "A座1楼-UPS间",
dictValue: "6",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 2,
},
{
createBy: "admin",
createTime: "2024-09-05 16:00:57",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1325,
dictSort: 7,
dictLabel: "B座2楼-汇聚机房",
dictValue: "7",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 1,
},
{
createBy: "admin",
createTime: "2024-09-05 16:01:08",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1326,
dictSort: 8,
dictLabel: "C座2楼-汇聚机房",
dictValue: "8",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 1,
},
{
createBy: "admin",
createTime: "2024-09-05 16:01:17",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1327,
dictSort: 9,
dictLabel: "D座2楼-汇聚机房",
dictValue: "9",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 1,
},
{
createBy: "admin",
createTime: "2024-09-05 16:01:26",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1328,
dictSort: 10,
dictLabel: "E座2楼-汇聚机房",
dictValue: "10",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 1,
},
{
createBy: "admin",
createTime: "2024-09-05 16:01:31",
updateBy: null,
updateTime: null,
remark: null,
dictCode: 1329,
dictSort: 11,
dictLabel: "F座2楼-UPS间",
dictValue: "11",
dictType: "pad_1_1_inspection_items",
cssClass: null,
listClass: "default",
isDefault: "N",
status: "0",
default: false,
statusLable: "未巡检",
details: [],
isSubmit: 0,
jfType: 3,
},
],
code: 200,
msg: "查询成功",
status: null,
map: null,
};
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论