提交 b82541e8 authored 作者: 邓文彬's avatar 邓文彬

fix(pad): 日志存储方式修改

上级 d7e4e6af
......@@ -33,9 +33,7 @@ export default {
content: "您拒绝了存储权限,请去设置-应用开启存储权限。",
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
} else if (res.cancel) {
// console.log('用户点击取消');
}
},
});
......@@ -58,7 +56,6 @@ export default {
},
onShow: function () {
const now_user = uni.getStorageSync("now_user") || {};
console.log("--now_user-", now_user)
if (now_user.user) {
this.$store.commit("SET_USER", now_user);
}
......@@ -70,10 +67,8 @@ export default {
uni.setStorageSync("last_time", this.$store.state.now_user.LastSynchronizationTime);
console.log("---onHide", )
},
onUnload() {
console.log("-----onUnload-------")
},
methods: {
/**
......@@ -98,7 +93,6 @@ export default {
});
})
.catch((error) => {
console.log("--USER_LiST-", USER_LiST);
// 文件不存在, 写入文件
const fileContent = JSON.stringify(
Base64.encode(JSON.stringify(USER_LiST))
......@@ -117,7 +111,6 @@ export default {
});
})
.then((res) => {
// console.log("-xxxxxxxxxxx---", res)
// 获取文件数据
let userData = Base64.decode(res);
......
<template>
<view class="container">
<view v-for="(item,index) in tabConfig" :key="index" class="list_item" @tap="clickItem(index)">
<view :class="[currentIndex==index?'active':'','normalItem'] " >
<span class="iconNormal" v-if="item.flag"></span>
<span class="nor_text">{{item.label}}</span>
</view>
</view>
</view>
</template>
<script>
export default {
props:{
currentIndex:{
type:Number,
default:0
},
tabConfig:{
type:Array,
require:true,
default() {
return
[
{label:'运维概述',flag:false},
{label:'运维机具一览表',flag:false},
{label:'运维检查内容',flag:false},
{label:'详细运维表单+运维结果及意见建议',flag:false},
{label:'附件表',flag:false},
]
}
}
},
data() {
return {
}
},
methods:{
clickItem(val) {
this.$emit('clickItem',val)
}
}
}
</script>
<style scoped lang="less">
.container {
width: 100%;
height: 34px;
display: flex;
align-items: center;
border-bottom: 2px solid rgba(119, 140, 162, 0.1);
font-size: 16px;
box-sizing: border-box;
.list_item {
display: inline-flex;
box-sizing: border-box;
position: relative;
flex: 1;
justify-content: center;
align-items: center;
position: relative;
.normalItem {
display: flex;
align-items: center;
.nor_text {
white-space: nowrap
}
}
.iconNormal {
width: 14px;
height: 14px;
margin-right: 2px;
background-image: url('../../static/img/notCheck.png');
background-size: 100%;
background-repeat: no-repeat;
background-position: center center;
}
}
.active {
color: #5474e8;
// border-bottom-width: 20px;
border-bottom: 3px solid;
// line-height: 25px;
// line-height: 23px;
padding: 2px 0px;
.iconNormal {
width: 14px;
height: 14px;
margin-right: 2px;
background-image: url('../../static/img/successGreen.png');
background-repeat: no-repeat;
background-position: center center;
}
}
}
</style>
<template>
<view class="time-content">
<uni-data-checkbox mode="tag" v-model="time" :localdata="timeList" @change="timeChange">
</uni-data-checkbox>
<uni-datetime-picker type="daterange" v-if="zdyShow" class="time-input" style="width: 280px;"
@change="change"></uni-datetime-picker>
</view>
</template>
<script>
export default {
data() {
return {
zdyShow: false,
time: 0,
timeList: [{
text: '全部',
value: 0
}, {
text: '本日',
value: 5
},{
text: '本月',
value: 1
}, {
text: '本季',
value: 2
}, {
text: '本年',
value: 3
}, {
text: '自定义',
value: 4
}],
searchForm: {
startTime: '',
endTime: ''
}
}
},
watch: {
searchForm: {
handler(newV, oldV) {
// console.log(newV,oldV);
this.$emit('change', newV)
},
immediate: true,
deep: true
}
},
methods: {
timeChange() {
// console.log(this.time);
if (this.time == 4) {
this.zdyShow = true
} else {
this.zdyShow = false
if (this.time == 1) {
this.getMouthData()
} else if (this.time == 2) {
this.getQuarterly()
} else if (this.time == 3) {
this.getNowYear()
}else if(this.time == 5){
this.getNowDate()
} else {
this.searchForm = {
startTime: '',
endTime: ''
}
}
}
},
change(e) {
// console.log(e);
if (e.length >= 1) {
this.searchForm.startTime = (e[0]) + ' ' + '00:00'
this.searchForm.endTime = (e[1]) + ' ' + '23:59'
} else {
this.searchForm = {
startTime: '',
endTime: ''
}
}
// console.log(this.searchForm);
},
getNowDate(){
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDate();
month = (month > 9) ? month : ("0" + month);
day = (day < 10) ? ("0" + day) : day;
this.searchForm.startTime = year + "-" + month + "-" + day + ' ' + '00:00';
this.searchForm.endTime = year + "-" + month + "-" + day + ' ' + '23:59';
},
// 获取本年
getNowYear() {
let date = new Date();
let year = date.getFullYear();
this.searchForm.startTime = [year, "01", "01"].join("-") + ' ' + '00:00';
this.searchForm.endTime = [year, "12", "31"].join("-") + ' ' + '23:59';
},
// 获取本月
getMouthData() {
let date = new Date();
let year = date.getFullYear();
let mouth = (date.getMonth() + 1).toString().padStart(2, "0");
let lastDay = new Date(year, mouth, 0).getDate(); //获取本月的最后一天是几号
this.searchForm.startTime = [year, mouth, "01"].join("-") + ' ' + '00:00';
this.searchForm.endTime = [year, mouth, lastDay].join("-") + ' ' + '23:59';
// console.log(startTime, endTime);
},
// 获取本季度
getQuarterly() {
let date = new Date();
let year = date.getFullYear();
let mouth = date.getMonth() + 1;
let jd = Math.ceil(mouth / 3); //获取当前季度
let startTime = new Date(year, (jd - 1) * 3, 1); //获取当前季度开始时间
let startMouth = (startTime.getMonth() + 1).toString().padStart(2, "0"); // 获取当前季度开始的月份
let endTime = new Date(year, jd * 3, 0); //获取当前季度结束时间
let endMouth = (endTime.getMonth() + 1).toString().padStart(2, "0"); // 获取当前季度结束的月份
let endDay = endTime.getDate(); // 获取当前季度结束的日期
this.searchForm.startTime = [year, startMouth, "01"].join("-") + ' ' + '00:00';
this.searchForm.endTime = [year, endMouth, endDay].join("-") + ' ' + '23:59';
},
}
}
</script>
<style lang="less" scoped>
.time-content {
display: inline-block;
// display: flex;
.time-input {
position: absolute;
top: 0;
left: 380px;
}
/deep/.uni-date-range--x[data-v-6e13d7e2] {
right: -314px !important;
}
}
</style>
\ No newline at end of file
<template>
<view class="inp-dialog" ref="dialog" >
<view v-show="visible"
:style="{'width':accpetData.width,'height':accpetData.height,'left':accpetData.left,'top':accpetData.top}"
class="normal" :class="isHas ? 'hasData' : ''">
<view hover-class="button-spread" hover-stay-time="100" v-for="(item,index) in accpetData.dataList"
:key="index" class="list_item" @tap="handlerSubmit(item,index)">
<span v-html="item.label"></span>
</view>
</view>
<!-- <view class="cloack" @tap="handlerShow" v-show="cloackFlag"></view> -->
</view>
</template>
<script>
export default {
props: {
visible: {
type: Boolean,
},
propsData: {
type: Object,
default () {
return {
width: '150px',
height: '300px',
left: '120px',
top: '35px',
type: 1,
dataList: [],
}
}
}
},
data() {
return {
cloackFlag: true,
accpetData: {},
isHas:false
}
},
mounted() {
this.accpetData = JSON.parse(JSON.stringify(this.propsData))
if(this.accpetData.dataList.length >= 1){
this.isHas = true
}else{
this.isHas = false
}
},
methods: {
handlerShow() {
this.cloackFlag = false
this.$emit('update:visible', false)
},
handlerSubmit(val, index) {
if (this.accpetData.type != 1) {
this.accpetData.dataList.map((item, ids) => {
if (ids !== index) {
item.flag = false
}
})
}
this.$emit('updateData', val.label)
}
}
}
</script>
<style lang="less" scoped>
.cloack {
position: fixed;
bottom: 0px;
top: 0px;
left: 0px;
right: 0px;
background-color: rgba(0, 0, 0, 0);
transition-duration: 0.3s;
z-index: 996;
// background-color: red;
// border: 1px solid red;
// overflow-y: auto;
}
.hasData{
padding: 16px;
}
.normal {
background: white;
box-shadow: 0px 2px 8px 0px rgba(119, 140, 162, 0.2);
border-radius: 2px;
z-index: 999;
position: absolute;
// position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
padding-right: 0;
padding-bottom: 0;
.active {
background-color: #5474e8 !important;
color: white !important;
}
.list_item {
// height: 40px;
background-color: #ffffff;
box-shadow: 0px 1px 4px 0px rgba(119, 140, 162, 0.16);
border-radius: 2px;
padding: 7px 16px;
text-align: center;
margin-right: 14px;
color: #5474e8;
border: 1px solid #5474e8;
z-index: 990;
margin-bottom: 14px;
}
.button-spread {
background-color: #5474e8;
color: #ffffff;
}
}
</style>
\ No newline at end of file
<template>
<view class="content" @click.stop>
<view @tap="showDialog">
<!-- easyInput type="textarea" 光标会自动跳至末尾 使用textarea-->
<textarea class="textarea-class" v-if="type == 'textarea'" :maxlength="maxlength" :placeholder="placeholder" :disabled="disabled"
:value="inputVal" @input="handleInput" @clear='inputClear' @focus="inputFocus"></textarea>
<uni-easyinput v-else ref="input" :maxlength="maxlength" :placeholder="placeholder" :type="type"
:disabled="disabled" :value="inputVal" @input="handleInput" @clear='inputClear'
@focus="inputFocus"></uni-easyinput>
</view>
<tag-dialog ref="dialog" v-if="dialogShow" :visible.sync="dialogShow" :propsData="dialogCofig"
@updateData="handlerAccpet"></tag-dialog>
</view>
</template>
<script>
import tagDialog from "./dialog_tag.vue"
import getDateTime from "@/common/getdateTime.js"
export default {
name: "hintInput",
components: {
tagDialog
},
props: {
placeholder: {
type: String,
default: '先选再编辑'
},
type: {
type: String,
default: 'text'
},
isShow:{
type: Boolean,
default: false
},
maxlength: {
type: Number,
default: 140
},
disabled: {
type: Boolean,
default: false
},
hasDate: {
type: Boolean,
default: false
},
value: {
type: String,
default: ''
},
configData: {
type: Object
},
theSeparator: {
type: String
},
},
data() {
return {
inputVal: '',
dialogShow: false,
dialogCofig: this.configData,
flag_OBJ: null,
input_pl_cursor: false
};
},
watch: {
configData(newV) {
this.dialogCofig = newV
},
dialogType(newV) {
this.dialogCofig.type = newV
},
dialogShow(newV, oldV) {
},
'$store.state.flgObj': {
handler(newV, oldV) {
if (!newV) {
this.dialogShow = newV
// console.log(newV, 888888);
}
},
},
isShow(newV,oldV){
if(!newV){
this.dialogShow = newV
}
}
},
created() {
this.inputVal = this.value
},
mounted() {
// console.log(this.configData,'s');
},
methods: {
inputClear() {
this.inputVal = ''
},
inputFocus(e) {
},
handleInput(event) {
if(this.type == 'textarea'){
let value = event.detail.value;
this.$emit('input', value)
}else{
this.$emit('input', event)
}
},
handlerAccpet(val) {
if (this.dialogCofig.type == 2) {
this.inputVal = val
this.$emit('input', val)
} else {
if (val == '无此项,不用填写。') {
this.inputVal = val
this.$emit('input', val)
} else {
if (val.indexOf("<br/>") != -1) {
// console.log('包含br',val.toString().split('<br/>').join('\n'))
val = val.toString().split('<br/>').join('\n')
} else {
// let c = val.toString().split('<br/>').join('')
}
// console.log(c,'输入');
let oldVal = this.value
let newVal = ''
if (this.theSeparator) { //有分隔符
if (this.hasDate) { //加当天日期
let timeStr = getDateTime.dateTimeStr('y-m-d')
newVal = (oldVal += val) + ':' + timeStr + this.theSeparator
} else {
if (!oldVal) {
newVal = (oldVal += val)
} else {
newVal = oldVal + (this.theSeparator + val)
}
}
this.inputVal = newVal
} else {
this.inputVal = (oldVal += val) + '\n'
}
this.$emit('input', this.inputVal)
}
}
},
showDialog() {
// console.log(th);
this.dialogShow = true
this.$store.commit('set_FLAG',true) //控制遮罩层
this.$emit('fous')
},
}
}
</script>
<style lang="less">
.content {
position: relative;
}
/deep/.is-disabled {
background-color: rgba(0, 0, 0, 0) !important;
}
.content-input {
/* #ifndef APP-NVUE */
width: auto;
/* #endif */
position: relative;
overflow: hidden;
flex: 1;
line-height: 1;
font-size: 14px;
height: 35px;
// min-height: 36px;
}
.textarea-class {
position: relative;
overflow: hidden;
flex: 1;
line-height: 1.5;
font-size: 14px;
margin: 6px;
margin-left: 0;
height: 80px;
min-height: 80px;
/* #ifndef APP-NVUE */
min-height: 80px;
width: auto;
/* #endif */
}
</style>
\ No newline at end of file
差异被折叠。
<template>
<view class="container">
<segmentControl :tabConfig="tabConfig" @clickItem="onClickItem" :currentIndex.sync="current"></segmentControl>
<view class="scroll-y" :style="!show ? 'height: 340px' : 'height: 300px'">
<item :listData='listData' :itemKey='itemKey' ref="item" @save='save'></item>
</view>
</view>
</template>
<script>
import segmentControl from "../global/segmentedControl.vue"
import item from "./item.vue"
export default {
components: {
segmentControl,
item
},
props: ['isShow', 'rdata'],
watch: {
isShow: {
handler(newV, oldV) {
this.show = newV
},
immediate: true
},
rdata: {
handler(newV, oldV) {
this.allData = newV
let arr = []
for (let key in newV) {
arr.push(key)
}
this.tabConfigArr.map((item, index) => {
if (arr.indexOf(item['key']) !== -1) {
if (this.tabConfig.indexOf(item) == -1) {
this.tabConfig.push(item)
}
}
})
this.listData = this.allData[this.tabConfig[this.current].key] //进入显示第一项
this.itemKey = this.tabConfig[this.current].key
},
immediate: true
},
current:{
handler(newV){
this.listData = this.allData[this.tabConfig[newV].key]
this.itemKey = this.tabConfig[newV].key
},
immediate:true
},
tabConfig: {
handler(newV, oldV) {
let v = newV.every(item => {
return item.flag
})
let isCom = false
if (v) { //全部都保存成功
isCom = true
} else {
isCom = false
}
this.$emit('save', isCom)
},
deep: true
},
},
data() {
return {
itemKey: '',
show: false,
tabConfig: [],
tabConfigArr: [{
label: '电气系统',
flag: false,
key: 'eleConfigData'
},
{
label: '通风系统',
flag: false,
key: 'ventConfigData'
},
{
label: '消防系统',
flag: false,
key: 'fireConfigData'
},
{
label: '环控系统',
flag: false,
key: 'enviConfigData'
},
{
label: '安防系统',
flag: false,
key: 'securityConfigData'
},
{
label: '屏蔽室',
flag: false,
key: 'ShieldConfigData'
},
{
label: '应急指挥中心',
flag: false,
key: 'emerConfigData'
},
{
label: '库房',
flag: false,
key: 'wareConfigData'
},
{
label: '办报机房',
flag: false,
key: 'newspaperConfigData'
},
{
label: '打印机房',
flag: false,
key: 'priRoomConfigData'
},
{
label: '卫生间淋浴房',
flag: false,
key: 'toiletConfigData'
},
{
label: '休息室淋浴房',
flag: false,
key: 'loungeConfigData'
},
{
label: '其他',
flag: false,
key: 'otherConfigData'
},
],
current: 0,
listData: []
}
},
methods: {
onClickItem(e) {
this.current = e
},
saveData() {
this.$refs.item.returnData().then(res => {
this.tabConfig[this.current].flag = true
if(this.current == this.tabConfig.length - 1) return
this.current += 1
}).catch(err => {
this.tabConfig[this.current].flag = false
})
},
save(data, key) {
this.allData[key] = data
this.$emit('retrunData', this.allData)
},
}
}
</script>
<style lang="less" scoped>
.container {
.scroll-y {
overflow: hidden;
overflow-y: auto;
.is-mask {
width: 100%;
height: 100%;
background-color: red;
}
}
}
</style>
\ No newline at end of file
<template>
<view class="container">
<segmentControl :tabConfig="tabConfig" @clickItem="onClickItem" :currentIndex.sync="current"></segmentControl>
<view v-if="disabled" class="scroll-y" :style="!show ? 'height: 400px' : 'height: 340px'">
<electrical v-show="current == 0" ref="elect" @save="save" :listData="lData" :disabled="disabled"></electrical>
<vent v-show="current == 1" ref="vent" @save="save" :listData="lData" :disabled="disabled"></vent>
<fire-control v-show="current == 2" ref="fire" @save="save" :listData="lData" :disabled="disabled"></fire-control>
<environmental v-show="current == 3" ref="envi" @save="save" :listData="lData" :disabled="disabled"></environmental>
<security v-show="current == 4" ref="security" @save="save" :listData="lData" :disabled="disabled"></security>
<other v-show="current == 5" ref="other" @save="save" :listData="lData" :disabled="disabled"></other>
</view>
<view v-else class="scroll-y" :style="!show ? 'height: 340px' : 'height: 280px'">
<electrical v-show="current == 0" ref="elect" @save="save" :listData="lData"></electrical>
<vent v-show="current == 1" ref="vent" @save="save" :listData="lData"></vent>
<fire-control v-show="current == 2" ref="fire" @save="save" :listData="lData"></fire-control>
<environmental v-show="current == 3" ref="envi" @save="save" :listData="lData"></environmental>
<security v-show="current == 4" ref="security" @save="save" :listData="lData"></security>
<other v-show="current == 5" ref="other" @save="save" :listData="lData"></other>
</view>
</view>
</template>
<script>
import segmentControl from "../../global/segmentedControl.vue"
import electrical from "../roomItem/electrical.vue"
import vent from "../roomItem/vent.vue"
import fireControl from "../roomItem/fireControl.vue"
import environmental from "../roomItem/environmental.vue"
import security from "../roomItem/security.vue"
import shield from "../roomItem/shield.vue"
import other from "../roomItem/other.vue"
import printer from "../roomItem/printer.vue"
export default {
components: {
segmentControl,
electrical,
vent,
fireControl,
environmental,
security,
shield,
other,
printer
},
props: ['isShow','listData','disabled'],
data() {
return {
tabConfig: [{
label: '电气系统',
flag: false
},
{
label: '通风系统',
flag: false
},
{
label: '消防系统',
flag: false
},
{
label: '环控系统',
flag: false
},
{
label: '安防系统',
flag: false
},
{
label: '其他',
flag: false
},
],
current: 0,
tableData: [],
show:false,
lData:{}
}
},
watch: {
isShow:{
handler(newV,oldV){
console.log(newV,'ishow');
this.show = newV
},
immediate:true
},
listData:{
handler(newV,oldV){
this.lData = newV
console.log(this.lData ,'12399');
},
immediate:true
},
tabConfig: {
handler(newV, oldV) {
let v = newV.every(item => {
return item.flag
})
let isCom = false
if (v) { //全部都保存成功
isCom = true
} else {
isCom = false
}
this.$emit('save',isCom)
},
deep: true
},
},
created() {
// this.lData = listData
// console.log(listData);
},
methods: {
onClickItem(e) {
this.current = e
},
saveData() {
let val = this.current
let refName = ''
switch (val) {
case 0:
refName = 'elect';
break;
case 1:
refName = 'vent';
break;
case 2:
refName = 'fire';
break;
case 3:
refName = 'envi';
break;
case 4:
refName = 'security';
break;
case 5:
refName = 'other';
break;
}
// console.log('子组件的');
this.$refs[refName].returnData().then(res => {
console.log('通过');
this.tabConfig[val].flag = true
}).catch(err => {
console.log('失败');
this.tabConfig[val].flag = false
})
},
save(data,tempData){
// console.log(123123);
this.$emit('saveData',data,tempData)
// console.log('父组件接收',data,tempData);
}
},
}
</script>
<style lang="less" scoped>
.container {
.scroll-y {
overflow: hidden;
overflow-y: auto;
}
}
</style>
\ No newline at end of file
import pmConfigData from "./pmConfigFile.js"
import hmConfigData from "./hmConfigFile.js"
import csConfigData from "./csConfigFile.js"
import jyConfigData from "./jyConfigFile.js"
import upsConfigData from "./upsConfigFile.js"
import otherConfigData from "./otherConfigFile.js"
import equiConfigData from "./equiConfigFile.js"
import sbfCsConfigData from "./sbfCsonfigFile.js"
import sbfUpsConfigData from "./sbfUpsConfigFile.js"
let allData = {
...pmConfigData,
...hmConfigData,
...csConfigData,
...jyConfigData,
...upsConfigData,
...otherConfigData,
...equiConfigData,
...sbfCsConfigData,
...sbfUpsConfigData
}
export default allData
\ No newline at end of file
let csConfigData = {
// 电气系统
eleConfigData: [{
content: '市电配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±10%,三相电压允许不平衡度为2%。',
label1: '',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDSPDa: '',
dataKey: 'HMDSPDa'
}, {
title: 'b',
HMDSPDb: '',
dataKey: 'HMDSPDb'
}, {
title: 'c',
HMDSPDc: '',
dataKey: 'HMDSPDc'
}, ]
}],
resKey: 'HMDSPDResult',
remKey: 'HMDSPDRemarks',
HMDSPDResult: '正常',
HMDSPDRemarks: '',
},
{
content: '市电电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDSDLa: '',
dataKey: 'HMDSDLa'
}, {
title: 'b',
HMDSDLb: '',
dataKey: 'HMDSDLb'
}, {
title: 'c',
HMDSDLc: '',
dataKey: 'HMDSDLc'
}, ]
}],
resKey: 'HMDSDLResult',
remKey: 'HMDSDLRemarks',
HMDSDLResult: '正常',
HMDSDLRemarks: ''
},
{
content: 'UPS配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±3%。',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDUPDa: '',
dataKey: 'HMDUPDa'
}, {
title: 'b',
HMDUPDb: '',
dataKey: 'HMDUPDb'
}, {
title: 'c',
HMDUPDc: '',
dataKey: 'HMDUPDc'
}, ]
}],
resKey: 'HMDUPDResult',
remKey: 'HMDUPDRemarks',
HMDUPDResult: '正常',
HMDUPDRemarks: '',
},
{
content: 'UPS电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDUDLa: '',
dataKey: 'HMDUDLa'
}, {
title: 'b',
HMDUDLb: '',
dataKey: 'HMDUDLb'
}, {
title: 'c',
HMDUDLc: '',
dataKey: 'HMDUDLc'
}, ]
}],
resKey: 'HMDUDLResult',
remKey: 'HMDUDLRemarks',
HMDUDLResult: '正常',
HMDUDLRemarks: '',
},
{
content: '照明灯具正常照明、开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'HMDZMDResult',
remKey: 'HMDZMDRemarks',
HMDZMDResult: '正常',
HMDZMDRemarks: ''
},
{
content: '机柜内光纤收发器机架电源供电正常。',
detect: '目视观察电源指示灯是否明亮。',
mea: [],
resKey: 'HMDJGXResult',
remKey: 'HMDJGXRemarks',
HMDJGXResult: '正常',
HMDJGXRemarks: ''
}
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示。参考温湿度:18°C ~28°C、35%~75%,无告警。精密空调加湿系统无漏水。',
mea: [],
resKey: 'HMTKTResult',
remKey: 'HMTKTRemarks',
HMTKTResult: '正常',
HMTKTRemarks: '',
}, {
content: '新风系统工作正常。',
detect: '用风量仪检测出风口。',
mea: [{
name: '(风速m/s)',
detail: [{
HMTXFWind: '',
dataKey: 'HMTXFWind'
}]
}],
resKey: 'HMTXFResult',
remKey: 'HMTXFRemarks',
HMTXFResult: '正常',
HMTXFRemarks: '',
}],
// 消防系统
fireConfigData: [{
content: '气体灭火装置未过期,压力值在正常范围。',
detect: '压力表针应在绿色区域内(2.0~4.2MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
CSXQT1: '',
dataKey: 'CSXQT1'
},{
title: '2#',
CSXQT2: '',
dataKey: 'CSXQT2'
},{
title: '3#',
CSXQT3: '',
dataKey: 'CSXQT3'
}]
},
{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
CSXQTKg1: '',
dataKey: 'CSXQTKg1'
},{
title: '2#',
CSXQTKg2: '',
dataKey: 'CSXQTKg2'
},{
title: '3#',
CSXQTKg3: '',
dataKey: 'CSXQTKg3'
},]
}
],
resKey: 'CSXQTResult',
remKey: 'CSXQTRemarks',
CSXQTResult: '正常',
CSXQTRemarks: '钢瓶充装日期:',
}, {
content: '手持灭火器未过期,压力值在正常范围',
detect: '压力表针应在绿色区域内(1.0~1.4MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
CSXSCY1: '',
dataKey: 'CSXSCY1'
}]
}],
resKey: 'CSXSCYResult',
remKey: 'CSXSCYRemarks',
CSXSCYResult: '正常',
CSXSCYRemarks: '钢瓶充装日期:',
detect2: '二氧化碳灭火器,是否已过5年检测期。',
mea2: [{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
CSXSCE1: '',
dataKey: 'CSXSCE1'
}, {
title: '2#',
CSXSCE2: '',
dataKey: 'CSXSCE2'
}]
}],
resKey2: 'CSXSCEResult',
remKey2: 'CSXSCERemarks',
CSXSCEResult: '正常',
CSXSCERemarks: '钢瓶充装日期:',
},
{
content: '消防控制主机运行正常。',
detect: '检查控制面板显示运行正常。',
mea: [],
resKey: 'HMXKZResult',
remKey: 'HMXKZRemarks',
HMXKZResult: '正常',
HMXKZRemarks: ''
},
],
// 环控系统
enviConfigData: [{
content: '温湿度计。',
detect: '目视观察。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHWSJTemp: '',
dataKey: 'HMHWSJTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHWSJHumidity: '',
dataKey: 'HMHWSJHumidity'
}]
}],
resKey: 'HMHWSJResult',
remKey: 'HMHWSJRemarks',
HMHWSJResult: '正常',
HMHWSJRemarks: ''
}, {
content: '温湿度传感器数据采集正常。',
detect: '观察传感器显示是否正常,环控软件上是否显示正常。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHCGQTemp: '',
dataKey: 'HMHCGQTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHCGQHumidity: '',
dataKey: 'HMHCGQHumidity'
}]
}],
resKey: 'HMHCGQResult',
remKey: 'HMHCGQRemarks',
HMHCGQResult: '正常',
HMHCGQRemarks: ''
}, {
content: '精密空调数据采集正常。',
detect: '环控软件上是否显示正常。',
mea: [],
resKey: 'HMHKTResult',
remKey: 'HMHKTRemarks',
HMHKTResult: '正常',
HMHKTRemarks: ''
}, {
content: '市电电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHSDCa: '',
dataKey: 'HMHSDCa'
}, {
title: 'b',
HMHSDCb: '',
dataKey: 'HMHSDCb'
}, {
title: 'c',
HMHSDCc: '',
dataKey: 'HMHSDCc'
}, ]
}],
resKey: 'HMHSDCResult',
remKey: 'HMHSDCRemarks',
HMHSDCResult: '正常',
HMHSDCRemarks: '',
}, {
content: 'UPS电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHUCJa: '',
dataKey: 'HMHUCJa'
}, {
title: 'b',
HMHUCJb: '',
dataKey: 'HMHUCJb'
}, {
title: 'c',
HMHUCJc: '',
dataKey: 'HMHUCJc'
}, ]
}],
resKey: 'HMHUCJResult',
remKey: 'HMHUCJRemarks',
HMHUCJResult: '正常',
HMHUCJRemarks: '',
}],
// 安防系统
securityConfigData: [{
content: '照明监控图像正常,无黑屏无雪花。',
detect: '由总值班室电脑调阅,也可从本地录像机显示器查看。',
mea: [],
resKey: 'HMATXResult',
remKey: 'HMATXRemarks',
HMATXResult: '正常',
HMATXRemarks: ''
}, {
content: '监控视频回放能正常调用。',
detect: '由总值班室电脑调阅,也可从本地录像机显示器查看。',
mea: [],
resKey: 'HMASPResult',
remKey: 'HMASPRemarks',
HMASPResult: '正常',
HMASPRemarks: ''
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。',
mea: [],
resKey: 'HMAMJResult',
remKey: 'HMAMJRemarks',
HMAMJResult: '正常',
HMAMJRemarks: ''
}, {
content: '入侵报警防区能正常触发报警。',
detect: '由总值班室电脑操作布防撤防。',
mea: [],
resKey: 'CSABJResult',
remKey: 'CSABJRemarks',
CSABJResult: '正常',
CSABJRemarks: ''
}],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
csConfigData
}
\ No newline at end of file
let equiConfigData = {
// 电气系统
eleConfigData: [{
content: '市电配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±10%,三相电压允许不平衡度为2%。',
label1: '',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDSPDa: '',
dataKey: 'HMDSPDa'
}, {
title: 'b',
HMDSPDb: '',
dataKey: 'HMDSPDb'
}, {
title: 'c',
HMDSPDc: '',
dataKey: 'HMDSPDc'
}, ]
}],
resKey: 'HMDSPDResult',
remKey: 'HMDSPDRemarks',
HMDSPDResult: '正常',
HMDSPDRemarks: '',
},
{
content: '市电电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDSDLa: '',
dataKey: 'HMDSDLa'
}, {
title: 'b',
HMDSDLb: '',
dataKey: 'HMDSDLb'
}, {
title: 'c',
HMDSDLc: '',
dataKey: 'HMDSDLc'
}, ]
}],
resKey: 'HMDSDLResult',
remKey: 'HMDSDLRemarks',
HMDSDLResult: '正常',
HMDSDLRemarks: ''
},
{
content: 'UPS配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±3%,与市电同柜,电压值由列头机柜显示屏显示。',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDUPDa: '',
dataKey: 'HMDUPDa'
}, {
title: 'b',
HMDUPDb: '',
dataKey: 'HMDUPDb'
}, {
title: 'c',
HMDUPDc: '',
dataKey: 'HMDUPDc'
}, ]
}],
resKey: 'HMDUPDResult',
remKey: 'HMDUPDRemarks',
HMDUPDResult: '正常',
HMDUPDRemarks: '',
},
{
content: '机房显示屏读取UPS数据正常。',
detect: '目视观察字体完整,能正常切换,与市电同柜,电流值由列头机柜显示屏显示。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDUDLa: '',
dataKey: 'HMDUDLa'
}, {
title: 'b',
HMDUDLb: '',
dataKey: 'HMDUDLb'
}, {
title: 'c',
HMDUDLc: '',
dataKey: 'HMDUDLc'
}, ]
}],
resKey: 'HMDUDLResult',
remKey: 'HMDUDLRemarks',
HMDUDLResult: '正常',
HMDUDLRemarks: '',
},
{
content: '照明灯具正常照明、开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'HMDZMDResult',
remKey: 'HMDZMDRemarks',
HMDZMDResult: '正常',
HMDZMDRemarks: ''
},
{
content: '机柜显示屏显示正常。',
detect: '目视观察有无报警信息。',
mea: [],
resKey: 'HMDJGXResult',
remKey: 'HMDJGXRemarks',
HMDJGXResult: '正常',
HMDJGXRemarks: ''
}
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示。参考温湿度:18°C ~28°C、35%~75%,无告警。精密空调加湿系统无漏水。',
mea: [],
resKey: 'HMTKTResult',
remKey: 'HMTKTRemarks',
HMTKTResult: '正常',
HMTKTRemarks: '',
}, {
content: '新风系统工作正常。',
detect: '用风量仪检测出风口。',
mea: [{
name: '(风速m/s)',
detail: [{
HMTXFWind: '',
dataKey: 'HMTXFWind'
}]
}],
resKey: 'HMTXFResult',
remKey: 'HMTXFRemarks',
HMTXFResult: '正常',
HMTXFRemarks: '',
}],
// 消防系统
fireConfigData: [{
content: '气体灭火装置未过期,压力值在正常范围。',
detect: '压力表针应在绿色区域内(2.0~4.2MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
HMXQT1: '',
dataKey: 'HMXQT1'
}]
},
{
name: '(钢瓶公斤数kg)',
detail: [{
HMXQTKg: '',
dataKey: 'HMXQTKg'
}]
}
],
resKey: 'HMXQTResult',
remKey: 'HMXQTRemarks',
HMXQTResult: '正常',
HMXQTRemarks: '钢瓶充装日期:',
}, {
content: '手持灭火器未过期,压力值在正常范围',
detect: '压力表针应在绿色区域内(1.0~1.4MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
HMXSCY1: '',
dataKey: 'HMXSCY1'
}, {
title: '2#',
HMXSCY2: '',
dataKey: 'HMXSCY2'
}, {
title: '3#',
HMXSCY3: '',
dataKey: 'HMXSCY3'
}]
}],
resKey: 'HMXSCYResult',
remKey: 'HMXSCYRemarks',
HMXSCYResult: '正常',
HMXSCYRemarks: '钢瓶充装日期:',
detect2: '二氧化碳灭火器,是否已过5年检测期。',
mea2: [{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
HMXSCE1: '',
dataKey: 'HMXSCE1'
}, {
title: '2#',
HMXSCE2: '',
dataKey: 'HMXSCE2'
}]
}],
resKey2: 'HMXSCEResult',
remKey2: 'HMXSCERemarks',
HMXSCEResult: '正常',
HMXSCERemarks: '钢瓶充装日期:',
},
{
content: '消防控制主机运行正常。',
detect: '检查控制面板显示运行正常。',
mea: [],
resKey: 'HMXKZResult',
remKey: 'HMXKZRemarks',
HMXKZResult: '正常',
HMXKZRemarks: ''
},
],
// 环控系统
enviConfigData: [{
content: '温湿度传感器数据采集正常。',
detect: '观察传感器显示是否正常,环控软件上是否显示正常。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHCGQTemp: '',
dataKey: 'HMHCGQTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHCGQHumidity: '',
dataKey: 'HMHCGQHumidity'
}]
}],
resKey: 'HMHCGQResult',
remKey: 'HMHCGQRemarks',
HMHCGQResult: '正常',
HMHCGQRemarks: ''
}, {
content: '精密空调数据采集正常。',
detect: '环控软件上是否显示正常。',
mea: [],
resKey: 'HMHKTResult',
remKey: 'HMHKTRemarks',
HMHKTResult: '正常',
HMHKTRemarks: ''
}, {
content: '市电电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHSDCa: '',
dataKey: 'HMHSDCa'
}, {
title: 'b',
HMHSDCb: '',
dataKey: 'HMHSDCb'
}, {
title: 'c',
HMHSDCc: '',
dataKey: 'HMHSDCc'
}, ]
}],
resKey: 'HMHSDCResult',
remKey: 'HMHSDCRemarks',
HMHSDCResult: '正常',
HMHSDCRemarks: '',
}],
// 安防系统
securityConfigData: [{
content: '照明监控图像正常,无黑屏无雪花。',
detect: '由机房操作间电脑调阅。',
mea: [],
resKey: 'HMATXResult',
remKey: 'HMATXRemarks',
HMATXResult: '正常',
HMATXRemarks: ''
}, {
content: '监控视频回放能正常调用。',
detect: '由机房操作间电脑调阅。',
mea: [],
resKey: 'HMASPResult',
remKey: 'HMASPRemarks',
HMASPResult: '正常',
HMASPRemarks: ''
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。',
mea: [],
resKey: 'HMAMJResult',
remKey: 'HMAMJRemarks',
HMAMJResult: '正常',
HMAMJRemarks: ''
}],
// 屏蔽室
ShieldConfigData: [{
content: '屏蔽门开合正常。',
detect: '目视观察。',
mea: [],
resKey: 'HMPKHkResult',
remKey: 'HMPKHkRemarks',
HMPKHkResult: '正常',
HMPKHkRemarks: '',
},
{
content: '屏蔽门簧片无破损脱落。 ',
detect: '目视观察。',
mea: [],
resKey: 'HMPHPResult',
remKey: 'HMPHPRemarks',
HMPHPResult: '正常',
HMPHPRemarks: ''
},
{
content: '滤波器工作正常。',
detect: '有无异常声响,机房内是否有设备出现异常。',
mea: [],
resKey: 'HMPNBQResult',
remKey: 'HMPNBQRemarks',
HMPNBQResult: '正常',
HMPNBQRemarks: ''
},
{
content: '进出水波导管无漏水。',
detect: '打开精密空调门观察是否有漏水迹象。 ',
mea: [],
resKey: 'HMPBDGResult',
remKey: 'HMPBDGRemarks',
HMPBDGResult: '正常',
HMPBDGRemarks: ''
}
],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
equiConfigData
}
\ No newline at end of file
let jyConfigData = {
// 电气系统
eleConfigData: [{
content: 'LED大屏(拼接屏)正常工作。',
detect: '目视观察。',
mea: [],
resKey: 'JYDPJPResult',
remKey: 'JYDPJPRemarks',
JYDPJPResult: '正常',
JYDPJPRemarks: ''
},
{
content: 'LED大屏(98吋)正常工作。',
detect: '目视观察。',
mea: [],
resKey: 'JYDSResult',
remKey: 'JYDSRemarks',
JYDSResult: '正常',
JYDSRemarks: ''
},
{
content: '照明灯具正常照明。',
detect: '目视观察。',
mea: [],
resKey: 'JYDZMDResult',
remKey: 'JYDZMDRemarks',
JYDZMDResult: '正常',
JYDZMDRemarks: ''
},
{
content: '开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'JYDCZResult',
remKey: 'JYDCZRemarks',
JYDCZResult: '正常',
JYDCZRemarks: ''
}
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示正常,出风正常。',
mea: [],
resKey: 'JYTKTResult',
remKey: 'JYTKTRemarks',
JYTKTResult: '正常',
JYTKTRemarks: '',
}, {
content: '新风系统工作正常。',
detect: '用风量仪检测出风口。',
mea: [
// {
// name: '(风速m/s)',
// detail: [{
// HMTXFWind: '',
// dataKey: 'HMTXFWind'
// }]
// },
],
resKey: 'JYTXFResult',
remKey: 'JYTXFRemarks',
JYTXFResult: '正常',
JYTXFRemarks: '',
}],
// 消防系统
fireConfigData: [{
content: '手持灭火器未过期,压力值在正常范围',
detect: '二氧化碳灭火器,是否已过5年检测期。',
mea: [{
name: '(钢瓶公斤数kg)',
flag:true,
detail: [{
title: '1#',
JYXSC1: '',
dataKey: 'JYXSC1'
}, {
title: '2#',
JYXSC2: '',
dataKey: 'JYXSC2'
}]
}],
resKey: 'JYXSCResult',
remKey: 'JYXSCRemarks',
JYXSCResult: '正常',
JYXSCRemarks: '钢瓶充装日期:',
}, ],
// 机柜系统
cabinetConfigData: [{
content: '交换机正常工作。',
detect: '目视观察。',
mea: [],
resKey: 'JYJJHJResult',
remKey: 'JYJJHJRemarks',
JYJJHJResult: '正常',
JYJJHJRemarks: ''
},
{
content: '音视频矩阵正常工作。',
detect: '目视观察,能正常切换。',
mea: [],
resKey: 'JYJSPResult',
remKey: 'JYJSPRemarks',
JYJSPResult: '正常',
JYJSPRemarks: ''
},
{
content: '功放正常工作。',
detect: '目视观察,指示灯正常,能正常出声。',
mea: [],
resKey: 'JYJGFResult',
remKey: 'JYJGFRemarks',
JYJGFResult: '正常',
JYJGFRemarks: ''
}
],
// 安防系统
securityConfigData: [{
content: '照明监控图像正常,无黑屏无雪花。',
detect: '由总值班室电脑调阅,也可从传输机房录像机显示器查看。图像时间是否准确,校准电脑时间,并与摄像机时间同步。',
mea: [{
name: '(摄像机时间偏差)',
detail: [{
JYATXDeviation: '',
dataKey: 'JYATXDeviation'
}]
}],
resKey: 'JYATXResult',
remKey: 'JYATXRemarks',
JYATXResult: '正常',
JYATXRemarks: '不定期校准时间'
}, {
content: '监控视频回放能正常调用。',
detect: '由总值班室电脑调阅,也可从录像机传输机房显示器查看。',
mea: [],
resKey: 'JYASPResult',
remKey: 'JYASPRemarks',
JYASPResult: '正常',
JYASPRemarks: ''
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。指纹机时间是否准确,校准电脑时间,并与指纹机时间同步。',
mea: [{
name: '(指纹机时间偏差)',
detail: [{
JYAMJDeviation: '',
dataKey: 'JYAMJDeviation'
}]
}],
resKey: 'JYAMJResult',
remKey: 'JYAMJRemarks',
JYAMJResult: '正常',
JYAMJRemarks: '不定期校准时间'
}, {
content: '入侵报警防区能正常布撤防。',
detect: '由总值班室电脑操作布防撤防。',
mea: [],
resKey: 'JYARQResult',
remKey: 'JYARQRemarks',
JYARQResult: '正常',
JYARQRemarks: ''
}, {
content: '播报扩声系统声音传输正常。',
detect: '能听到正常播报音量。',
mea: [],
resKey: 'JYAKSResult',
remKey: 'JYAKSRemarks',
JYAKSResult: '正常',
JYAKSRemarks: ''
}],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
// 打印机
printerConfigData: [{
mea: [{
name: '(目测)',
detail: [{
title: 'k(黑)',
inkBoxk: '',
dataKey: 'inkBoxk'
}, {
title: 'c(青)',
inkBoxc: '',
dataKey: 'inkBoxc'
}, {
title: 'M(红)',
inkBoxm: '',
dataKey: 'inkBoxm'
}, {
title: 'Y(黄)',
inkBoxy: '',
dataKey: 'inkBoxy'
}]
}],
model: '奔图CP2510DN',
purpose: '主渠道收发',
state: '密',
inkBoxModel: 'CTL350',
testPage: '',
record: ''
}, {
mea: [{
name: '(目测)',
detail: [{
title: '(黑)',
inkBoxk: '',
dataKey: 'inkBoxk'
}]
}],
model: '奔图P3305DN',
purpose: '电子政务外网',
state: '明',
inkBoxModel: '硒鼓TL413',
testPage: '',
record: ''
}, {
mea: [],
model: '佳能LBP6300n',
purpose: '多路传真',
state: '明',
inkBoxModel: '硒鼓CE505A',
testPage: '',
record: ''
}, ],
// 耗材余量
// balanceConfigData: [{
// mea: [{
// detail: [{
// title: '350K(黑)',
// JYHK: '',
// dataKey: 'JYHK'
// },
// {
// title: '350C(青)',
// JYHC: '',
// dataKey: 'JYHC'
// },
// {
// title: '350M(红)',
// JYHM: '',
// dataKey: 'JYHM'
// },
// {
// title: '350Y(黄)',
// JYHY: '',
// dataKey: 'JYHY'
// },
// ]
// },{
// detail: [{
// title: '200HK(黑)',
// JYHHK: '',
// dataKey: 'JYHHK'
// },
// {
// title: '200HC(青)',
// JYHHC: '',
// dataKey: 'JYHHC'
// },
// {
// title: '200HM(红)',
// JYHHM: '',
// dataKey: 'JYHHM'
// },
// {
// title: '200HY(黄)',
// JYHHY: '',
// dataKey: 'JYHHY'
// },
// ]
// }],
// }]
}
module.exports = {
jyConfigData
}
\ No newline at end of file
let otherConfigData = {
// 应急指挥中心
emerConfigData: [{
content: '照明灯具正常照明。',
detect: '目视观察。',
mea: [],
resKey: 'OYJZMDResult',
remKey: 'OYJZMDRemarks',
OYJZMDResult: '正常',
OYJZMDRemarks: ''
},
{
content: '开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'OYJKGResult',
remKey: 'OYJKGRemarks',
OYJKGResult: '正常',
OYJKGRemarks: ''
},
{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示正常,出风正常。',
mea: [],
resKey: 'OYJKTResult',
remKey: 'OYJKTRemarks',
OYJKTResult: '正常',
OYJKTRemarks: ''
}
],
// 库房
wareConfigData: [{
content: '照明灯具正常照明。',
detect: '目视观察。',
mea: [],
resKey: 'OKFZMDResult',
remKey: 'OKFZMDRemarks',
OKFZMDResult: '正常',
OKFZMDRemarks: ''
},
{
content: '开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'OKFKGResult',
remKey: 'OKFKGRemarks',
OKFKGResult: '正常',
OKFKGRemarks: ''
},
{
content: '入侵报警防区能正常布撤防。',
detect: '由总值班室电脑操作布防撤防,现场触发会变灯。',
mea: [],
resKey: 'OKFRQResult',
remKey: 'OKFRQRemarks',
OKFRQResult: '正常',
OKFRQRemarks: ''
}
],
// 办报机房
newspaperConfigData: [{
content: '照明灯具正常照明。',
detect: '目视观察。',
mea: [],
resKey: 'OBBZMDResult',
remKey: 'OBBZMDRemarks',
OBBZMDResult: '正常',
OBBZMDRemarks: ''
},
{
content: '开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'OBBKGResult',
remKey: 'OBBKGRemarks',
OBBKGResult: '正常',
OBBKGRemarks: ''
},
{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示正常,出风正常。',
mea: [],
resKey: 'OBBKTResult',
remKey: 'OBBKTRemarks',
OBBKTResult: '正常',
OBBKTRemarks: ''
},
{
content: '二氧化碳灭火器,是否已过5年检测期。',
detect: '钢瓶公斤数(kg):1# :3kg; 2#:3kg。',
mea: [],
resKey: 'OBBEResult',
remKey: 'OBBERemarks',
OBBEResult: '正常',
OBBERemarks: '钢瓶充装日期:'
}
],
// 打印机房
priRoomConfigData: [{
content: '照明灯具正常照明。',
detect: '目视观察。',
mea: [],
resKey: 'ODYZMDResult',
remKey: 'ODYZMDRemarks',
ODYZMDResult: '正常',
ODYZMDRemarks: ''
},
{
content: '开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'ODYKGResult',
remKey: 'ODYKGRemarks',
ODYKGResult: '正常',
ODYKGRemarks: ''
},
{
content: '通风系统正常工作。',
detect: '换气扇工作正常,有进出风声音。',
mea: [],
resKey: 'ODYTFResult',
remKey: 'ODYTFRemarks',
ODYTFResult: '正常',
ODYTFRemarks: ''
},
{
content: '二氧化碳灭火器,是否已过5年检测期。',
detect: '钢瓶公斤数(kg):1# :3kg; 2#:3kg。',
mea: [],
resKey: 'ODYEResult',
remKey: 'ODYERemarks',
ODYEResult: '正常',
ODYERemarks: '钢瓶充装日期:'
},
{
content: '打印机工作正常。',
detect: '目视观察。',
mea: [],
resKey: 'ODYDYJResult',
remKey: 'ODYDYJRemarks',
ODYDYJResult: '正常',
ODYDYJRemarks: ''
},
{
content: '碎纸机工作正常。',
detect: '目视观察。',
mea: [],
resKey: 'ODYSZJResult',
remKey: 'ODYSZJRemarks',
ODYSZJResult: '正常',
ODYSZJRemarks: ''
},
],
// 卫生间淋浴房
toiletConfigData: [{
content: '打热水器工作正常。',
detect: '无漏水及其他异常告警。',
mea: [],
resKey: 'OWSJResult',
remKey: 'OWSJRemarks',
OWSJResult: '正常',
OWSJRemarks: '热水器型号:1、海尔ES50H-Z4(ZE)'
}, ],
// 休息室淋浴房
loungeConfigData: [{
content: '打热水器工作正常。',
detect: '无漏水及其他异常告警。',
mea: [],
resKey: 'OXXSResult',
remKey: 'OXXSRemarks',
OXXSResult: '正常',
OXXSRemarks: '热水器型号:2、海尔EC5002-YG3(UI)'
}],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
otherConfigData
}
\ No newline at end of file
let pmConfigData = {
// 电气系统
eleConfigData: [{
content: '市电配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±10%,三相电压允许不平衡度为2%。',
label1: '',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDSPDa: '',
dataKey: 'HMDSPDa'
}, {
title: 'b',
HMDSPDb: '',
dataKey: 'HMDSPDb'
}, {
title: 'c',
HMDSPDc: '',
dataKey: 'HMDSPDc'
}, ]
}],
resKey: 'HMDSPDResult',
remKey: 'HMDSPDRemarks',
HMDSPDResult: '正常',
HMDSPDRemarks: '',
},
{
content: '市电电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDSDLa: '',
dataKey: 'HMDSDLa'
}, {
title: 'b',
HMDSDLb: '',
dataKey: 'HMDSDLb'
}, {
title: 'c',
HMDSDLc: '',
dataKey: 'HMDSDLc'
}, ]
}],
resKey: 'HMDSDLResult',
remKey: 'HMDSDLRemarks',
HMDSDLResult: '正常',
HMDSDLRemarks: ''
},
{
content: 'UPS配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±3%。',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDUPDa: '',
dataKey: 'HMDUPDa'
}, {
title: 'b',
HMDUPDb: '',
dataKey: 'HMDUPDb'
}, {
title: 'c',
HMDUPDc: '',
dataKey: 'HMDUPDc'
}, ]
}],
resKey: 'HMDUPDResult',
remKey: 'HMDUPDRemarks',
HMDUPDResult: '正常',
HMDUPDRemarks: '',
},
{
content: 'UPS电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDUDLa: '',
dataKey: 'HMDUDLa'
}, {
title: 'b',
HMDUDLb: '',
dataKey: 'HMDUDLb'
}, {
title: 'c',
HMDUDLc: '',
dataKey: 'HMDUDLc'
}, ]
}],
resKey: 'HMDUDLResult',
remKey: 'HMDUDLRemarks',
HMDUDLResult: '正常',
HMDUDLRemarks: '',
},
{
content: '照明灯具正常照明、开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'HMDZMDResult',
remKey: 'HMDZMDRemarks',
HMDZMDResult: '正常',
HMDZMDRemarks: ''
},
{
content: '机柜内光纤收发器机架电源供电正常。',
detect: '目视观察电源指示灯是否明亮。',
mea: [],
resKey: 'HMDJGXResult',
remKey: 'HMDJGXRemarks',
HMDJGXResult: '正常',
HMDJGXRemarks: ''
}
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示。参考温湿度:18°C ~28°C、35%~75%,无告警。精密空调加湿系统无漏水。',
mea: [],
resKey: 'HMTKTResult',
remKey: 'HMTKTRemarks',
HMTKTResult: '正常',
HMTKTRemarks: '',
}, {
content: '新风系统工作正常。',
detect: '用风量仪检测出风口。',
mea: [{
name: '(风速m/s)',
detail: [{
HMTXFWind: '',
dataKey: 'HMTXFWind'
}]
}],
resKey: 'HMTXFResult',
remKey: 'HMTXFRemarks',
HMTXFResult: '正常',
HMTXFRemarks: '',
}],
// 消防系统
fireConfigData: [{
content: '气体灭火装置未过期,压力值在正常范围。',
detect: '压力表针应在绿色区域内(2.0~4.2MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
HMXQT1: '',
dataKey: 'HMXQT1'
}]
},
{
name: '(钢瓶公斤数kg)',
detail: [{
HMXQTKg: '',
dataKey: 'HMXQTKg'
}]
}
],
resKey: 'HMXQTResult',
remKey: 'HMXQTRemarks',
HMXQTResult: '正常',
HMXQTRemarks: '钢瓶充装日期:',
}, {
content: '手持灭火器未过期,压力值在正常范围',
detect: '压力表针应在绿色区域内(1.0~1.4MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
PMXSC1: '',
dataKey: 'PMXSC1'
}, {
title: '2#',
PMXSC2: '',
dataKey: 'PMXSC2'
}]
}],
resKey: 'PMXSCResult',
remKey: 'PMXSCRemarks',
PMXSCResult: '正常',
PMXSCRemarks: '钢瓶充装日期:',
},
{
content: '消防控制主机运行正常。',
detect: '检查控制面板显示运行正常。',
mea: [],
resKey: 'HMXKZResult',
remKey: 'HMXKZRemarks',
HMXKZResult: '正常',
HMXKZRemarks: ''
},
],
// 环控系统
enviConfigData: [{
content: '温湿度计。',
detect: '目视观察。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHWSJTemp: '',
dataKey: 'HMHWSJTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHWSJHumidity: '',
dataKey: 'HMHWSJHumidity'
}]
}],
resKey: 'HMHWSJResult',
remKey: 'HMHWSJRemarks',
HMHWSJResult: '正常',
HMHWSJRemarks: ''
}, {
content: '温湿度传感器数据采集正常。',
detect: '观察传感器显示是否正常,环控软件上是否显示正常。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHCGQTemp: '',
dataKey: 'HMHCGQTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHCGQHumidity: '',
dataKey: 'HMHCGQHumidity'
}]
}],
resKey: 'HMHCGQResult',
remKey: 'HMHCGQRemarks',
HMHCGQResult: '正常',
HMHCGQRemarks: ''
}, {
content: '精密空调数据采集正常。',
detect: '环控软件上是否显示正常。',
mea: [],
resKey: 'HMHKTResult',
remKey: 'HMHKTRemarks',
HMHKTResult: '正常',
HMHKTRemarks: ''
}, {
content: '市电电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHSDCa: '',
dataKey: 'HMHSDCa'
}, {
title: 'b',
HMHSDCb: '',
dataKey: 'HMHSDCb'
}, {
title: 'c',
HMHSDCc: '',
dataKey: 'HMHSDCc'
}, ]
}],
resKey: 'HMHSDCResult',
remKey: 'HMHSDCRemarks',
HMHSDCResult: '正常',
HMHSDCRemarks: '',
}, {
content: 'UPS电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHUCJa: '',
dataKey: 'HMHUCJa'
}, {
title: 'b',
HMHUCJb: '',
dataKey: 'HMHUCJb'
}, {
title: 'c',
HMHUCJc: '',
dataKey: 'HMHUCJc'
}, ]
}],
resKey: 'HMHUCJResult',
remKey: 'HMHUCJRemarks',
HMHUCJResult: '正常',
HMHUCJRemarks: '',
}],
// 安防系统
securityConfigData: [{
content: '监控图像正常,无黑屏无雪花。',
detect: '由总值班室电脑调阅,也可从本地录像机显示器查看。',
mea: [],
resKey: 'HMATXResult',
remKey: 'HMATXRemarks',
HMATXResult: '正常',
HMATXRemarks: ''
}, {
content: '监控视频回放能正常调用。',
detect: '由总值班室电脑调阅,也可从本地录像机显示器查看。',
mea: [],
resKey: 'HMASPResult',
remKey: 'HMASPRemarks',
HMASPResult: '正常',
HMASPRemarks: ''
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。',
mea: [],
resKey: 'HMAMJResult',
remKey: 'HMAMJRemarks',
HMAMJResult: '正常',
HMAMJRemarks: ''
}, {
content: '入侵报警防区能正常触发报警。',
detect: '由总值班室电脑操作布防撤防。',
mea: [],
resKey: 'PMARQResult',
remKey: 'PMARQRemarks',
PMARQResult: '正常',
PMARQRemarks: ''
}],
// 屏蔽室
ShieldConfigData: [{
content: '屏蔽门开合正常,屏蔽效能监测仪测试数据达标。',
freq1: '14KHz',
requ1: '≥65dB',
freq2: '950MHz',
requ2: '≥100dB',
text:'屏蔽效能:',
mea: [{
detail: [{
HMPKHk: '',
dataKey: 'HMPKHk'
}]
}],
mea2: [{
detail: [{
HMPKHm: '',
dataKey: 'HMPKHm'
}]
}],
resKey: 'HMPKHkResult',
remKey: 'HMPKHkRemarks',
HMPKHkResult: '正常',
HMPKHkRemarks: '',
resKey2: 'HMPKHmResult',
HMPKHmResult: '正常',
remKey2: 'HMPKHmRemarks',
HMPKHmRemarks: ''
},
{
content: '屏蔽门簧片无破损脱落。 ',
detect: '目视观察。',
mea: [],
resKey: 'HMPHPResult',
remKey: 'HMPHPRemarks',
HMPHPResult: '正常',
HMPHPRemarks: ''
},
{
content: '滤波器工作正常。',
detect: '有无异常声响,机房内是否有设备出现异常。',
mea: [],
resKey: 'HMPNBQResult',
remKey: 'HMPNBQRemarks',
HMPNBQResult: '正常',
HMPNBQRemarks: ''
},
{
content: '进出水波导管无漏水。',
detect: '打开精密空调门观察是否有漏水迹象。 ',
mea: [],
resKey: 'HMPBDGResult',
remKey: 'HMPBDGRemarks',
HMPBDGResult: '正常',
HMPBDGRemarks: ''
}
],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
pmConfigData
}
\ No newline at end of file
let sbfCsConfigData = {
// 电气系统
eleConfigData: [{
content: '市电配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±10%,三相电压允许不平衡度为2%。',
label1: '',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDSPDa: '',
dataKey: 'HMDSPDa'
}, {
title: 'b',
HMDSPDb: '',
dataKey: 'HMDSPDb'
}, {
title: 'c',
HMDSPDc: '',
dataKey: 'HMDSPDc'
}, ]
}],
resKey: 'HMDSPDResult',
remKey: 'HMDSPDRemarks',
HMDSPDResult: '正常',
HMDSPDRemarks: '',
},
{
content: '市电电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDSDLa: '',
dataKey: 'HMDSDLa'
}, {
title: 'b',
HMDSDLb: '',
dataKey: 'HMDSDLb'
}, {
title: 'c',
HMDSDLc: '',
dataKey: 'HMDSDLc'
}, ]
}],
resKey: 'HMDSDLResult',
remKey: 'HMDSDLRemarks',
HMDSDLResult: '正常',
HMDSDLRemarks: ''
},
{
content: 'UPS配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '与市电同柜,无电量仪。',
mea: [],
resKey: 'HMDUPDResult',
remKey: 'HMDUPDRemarks',
HMDUPDResult: '正常',
HMDUPDRemarks: '',
},
{
content: '照明灯具正常照明、开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'HMDZMDResult',
remKey: 'HMDZMDRemarks',
HMDZMDResult: '正常',
HMDZMDRemarks: '与市局传输机房共用'
}
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '检查空调面板显示。参考温湿度:18°C ~28°C、35%~75%',
mea: [],
resKey: 'HMTKTResult',
remKey: 'HMTKTRemarks',
HMTKTResult: '正常',
HMTKTRemarks: '与市局传输机房共用',
}, {
content: '新风系统工作正常。',
detect: '用风量仪检测出风口。',
mea: [{
name: '(风速m/s)',
detail: [{
HMTXFWind: '',
dataKey: 'HMTXFWind'
}]
}],
resKey: 'HMTXFResult',
remKey: 'HMTXFRemarks',
HMTXFResult: '正常',
HMTXFRemarks: '与市局传输机房共用',
}],
// 消防系统
fireConfigData: [{
content: '气体灭火装置压力值在正常范围。',
detect: '压力表针应在绿色区域内(2.0~4.2MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
CSXQT1: '',
dataKey: 'CSXQT1'
},{
title: '2#',
CSXQT2: '',
dataKey: 'CSXQT2'
},{
title: '3#',
CSXQT3: '',
dataKey: 'CSXQT3'
}]
},
{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
CSXQTKg1: '',
dataKey: 'CSXQTKg1'
},{
title: '2#',
CSXQTKg2: '',
dataKey: 'CSXQTKg2'
},{
title: '3#',
CSXQTKg3: '',
dataKey: 'CSXQTKg3'
},]
}
],
resKey: 'CSXQTResult',
remKey: 'CSXQTRemarks',
CSXQTResult: '正常',
CSXQTRemarks: '钢瓶充装日期: (与市局传输机房共用)',
}, {
content: '手持灭火器压力值在正常范围',
detect: '压力表针应在绿色区域内(1.0~1.4MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
CSXSCY1: '',
dataKey: 'CSXSCY1'
}]
}],
resKey: 'CSXSCYResult',
remKey: 'CSXSCYRemarks',
CSXSCYResult: '正常',
CSXSCYRemarks: '钢瓶充装日期: (与市局传输机房共用)',
detect2: '二氧化碳灭火器,是否已过5年检测期。',
mea2: [{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
CSXSCE1: '',
dataKey: 'CSXSCE1'
}]
}],
resKey2: 'CSXSCEResult',
remKey2: 'CSXSCERemarks',
CSXSCEResult: '正常',
CSXSCERemarks: '钢瓶充装日期: (与市局传输机房共用)',
},
{
content: '消防控制主机运行正常。',
detect: '检查控制面板显示运行正常。',
mea: [],
resKey: 'HMXKZResult',
remKey: 'HMXKZRemarks',
HMXKZResult: '正常',
HMXKZRemarks: '与市局传输机房共用'
},
],
// 环控系统
enviConfigData: [{
content: '温湿度计。',
detect: '目视观察。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHWSJTemp: '',
dataKey: 'HMHWSJTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHWSJHumidity: '',
dataKey: 'HMHWSJHumidity'
}]
}],
resKey: 'HMHWSJResult',
remKey: 'HMHWSJRemarks',
HMHWSJResult: '正常',
HMHWSJRemarks: '与市局传输机房共用'
}, {
content: '温湿度传感器数据采集正常。',
detect: '观察传感器显示是否正常,环控软件上是否显示正常。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHCGQTemp: '',
dataKey: 'HMHCGQTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHCGQHumidity: '',
dataKey: 'HMHCGQHumidity'
}]
}],
resKey: 'HMHCGQResult',
remKey: 'HMHCGQRemarks',
HMHCGQResult: '正常',
HMHCGQRemarks: '与市局传输机房共用'
}, {
content: '精密空调数据采集正常。',
detect: '环控软件上是否显示正常。',
mea: [],
resKey: 'HMHKTResult',
remKey: 'HMHKTRemarks',
HMHKTResult: '正常',
HMHKTRemarks: '与市局传输机房共用'
}, {
content: '市电电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHSDCa: '',
dataKey: 'HMHSDCa'
}, {
title: 'b',
HMHSDCb: '',
dataKey: 'HMHSDCb'
}, {
title: 'c',
HMHSDCc: '',
dataKey: 'HMHSDCc'
}, ]
}],
resKey: 'HMHSDCResult',
remKey: 'HMHSDCRemarks',
HMHSDCResult: '正常',
HMHSDCRemarks: '',
}],
// 安防系统
securityConfigData: [{
content: '照明监控图像正常,无黑屏无雪花。',
detect: '由总值班室电脑调阅,也可从录像机显示器查看。',
mea: [],
resKey: 'HMATXResult',
remKey: 'HMATXRemarks',
HMATXResult: '正常',
HMATXRemarks: '与市局传输机房共用'
}, {
content: '监控视频回放能正常调用。',
detect: '由总值班室电脑调阅,也可从录像机显示器查看。',
mea: [],
resKey: 'HMASPResult',
remKey: 'HMASPRemarks',
HMASPResult: '正常',
HMASPRemarks: '与市局传输机房共用'
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。',
mea: [],
resKey: 'HMAMJResult',
remKey: 'HMAMJRemarks',
HMAMJResult: '正常',
HMAMJRemarks: '与市局传输机房共用'
}, {
content: '入侵报警防区能正常触发报警。',
detect: '由总值班室电脑操作布防撤防。',
mea: [],
resKey: 'CSABJResult',
remKey: 'CSABJRemarks',
CSABJResult: '正常',
CSABJRemarks: '与市局传输机房共用'
}],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
sbfCsConfigData
}
\ No newline at end of file
let sbfUpsConfigData = {
// 电气系统
eleConfigData: [{
content: '市电配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±10%,三相电压允许不平衡度为2%。',
label1: '',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDSPDa: '',
dataKey: 'HMDSPDa'
}, {
title: 'b',
HMDSPDb: '',
dataKey: 'HMDSPDb'
}, {
title: 'c',
HMDSPDc: '',
dataKey: 'HMDSPDc'
}, ]
}],
resKey: 'HMDSPDResult',
remKey: 'HMDSPDRemarks',
HMDSPDResult: '正常',
HMDSPDRemarks: '',
},
{
content: '市电电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDSDLa: '',
dataKey: 'HMDSDLa'
}, {
title: 'b',
HMDSDLb: '',
dataKey: 'HMDSDLb'
}, {
title: 'c',
HMDSDLc: '',
dataKey: 'HMDSDLc'
}, ]
}],
resKey: 'HMDSDLResult',
remKey: 'HMDSDLRemarks',
HMDSDLResult: '正常',
HMDSDLRemarks: ''
},
{
content: 'UPS配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±3%,无电量仪,UPS输出电压值由主机显示屏读取。',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDUPDa: '',
dataKey: 'HMDUPDa'
}, {
title: 'b',
HMDUPDb: '',
dataKey: 'HMDUPDb'
}, {
title: 'c',
HMDUPDc: '',
dataKey: 'HMDUPDc'
}, ]
}],
resKey: 'HMDUPDResult',
remKey: 'HMDUPDRemarks',
HMDUPDResult: '正常',
HMDUPDRemarks: '',
},
{
content: 'UPS主机显示屏读取数据正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDUDLa: '',
dataKey: 'HMDUDLa'
}, {
title: 'b',
HMDUDLb: '',
dataKey: 'HMDUDLb'
}, {
title: 'c',
HMDUDLc: '',
dataKey: 'HMDUDLc'
}, ]
}],
resKey: 'HMDUDLResult',
remKey: 'HMDUDLRemarks',
HMDUDLResult: '正常',
HMDUDLRemarks: '',
},
{
content: 'UPS主机正常运行。 ',
detect: '常查看UPS主机屏幕显示参数是否有异常。',
label1: '',
mea: [{
name: '(负载百分比%)',
detail: [{
title: 'a',
UPSDZJa1: '',
dataKey: 'UPSDZJa1'
}, {
title: 'b',
UPSDZJb1: '',
dataKey: 'UPSDZJb1'
}, {
title: 'c',
UPSDZJc1: '',
dataKey: 'UPSDZJc1'
}, ]
}],
resKey: 'UPSDZJResult1',
remKey: 'UPSDZJRemarks1',
UPSDZJResult1: '正常',
UPSDZJRemarks1: '',
},
{
content: 'EPS主机正常运行。',
detect: '常查看EPS主机屏幕显示参数是否有异常。',
label1: '',
mea: [],
resKey: 'UPSDZJResult2',
remKey: 'UPSDZJRemarks2',
UPSDZJResult2: '正常',
UPSDZJRemarks2: '',
},
{
content: '照明灯具正常照明、开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'HMDZMDResult',
remKey: 'HMDZMDRemarks',
HMDZMDResult: '正常',
HMDZMDRemarks: '与市局UPS机房共用'
},
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '室内温度应在18°C ~30°C。空调温度可设在22°C左右。',
mea: [],
resKey: 'HMTKTResult',
remKey: 'HMTKTRemarks',
HMTKTResult: '正常',
HMTKTRemarks: '与市局UPS机房共用',
}],
// 消防系统
fireConfigData: [{
content: '气体灭火装置压力值在正常范围。',
detect: '压力表针应在绿色区域内(2.0~4.2MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
UPSXQ1: '',
dataKey: 'UPSXQ1'
},{
title: '2#',
UPSXQ2: '',
dataKey: 'UPSXQ2'
}]
},
{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
UPSXQKg1: '',
dataKey: 'UPSXQKg1'
},{
title: '2#',
UPSXQKg2: '',
dataKey: 'UPSXQKg2'
}]
}
],
resKey: 'UPSXQResult',
remKey: 'UPSXQRemarks',
UPSXQResult: '正常',
UPSXQRemarks: '钢瓶充装日期: (与市局UPS机房共用)',
}, {
content: '手持灭火器压力值在正常范围',
detect: '二氧化碳灭火器,是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
UPSXSC1: '',
dataKey: 'UPSXSC1'
},{
title: '2#',
UPSXSC2: '',
dataKey: 'UPSXSC2'
}]
}],
resKey: 'UPSXSCResult',
remKey: 'UPSXSCRemarks',
UPSXSCResult: '正常',
UPSXSCRemarks: '钢瓶充装日期: (与市局UPS机房共用)',
},
{
content: '消防控制主机运行正常。',
detect: '检查控制面板显示运行正常。',
mea: [],
resKey: 'HMXKZResult',
remKey: 'HMXKZRemarks',
HMXKZResult: '正常',
HMXKZRemarks: '与市局UPS机房共用'
},
],
// 环控系统
enviConfigData: [{
content: '温湿度计。',
detect: '目视观察。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHWSJTemp: '',
dataKey: 'HMHWSJTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHWSJHumidity: '',
dataKey: 'HMHWSJHumidity'
}]
}],
resKey: 'HMHWSJResult',
remKey: 'HMHWSJRemarks',
HMHWSJResult: '正常',
HMHWSJRemarks: '与市局UPS机房共用'
}, {
content: '温湿度传感器数据采集正常。',
detect: '观察传感器显示是否正常,环控软件上是否显示正常。参考温湿度:18°C ~30°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHCGQTemp: '',
dataKey: 'HMHCGQTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHCGQHumidity: '',
dataKey: 'HMHCGQHumidity'
}]
}],
resKey: 'HMHCGQResult',
remKey: 'HMHCGQRemarks',
HMHCGQResult: '正常',
HMHCGQRemarks: '与市局UPS机房共用'
}, {
content: '市电电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHSDCa: '',
dataKey: 'HMHSDCa'
}, {
title: 'b',
HMHSDCb: '',
dataKey: 'HMHSDCb'
}, {
title: 'c',
HMHSDCc: '',
dataKey: 'HMHSDCc'
}, ]
}],
resKey: 'HMHSDCResult',
remKey: 'HMHSDCRemarks',
HMHSDCResult: '正常',
HMHSDCRemarks: '',
}, {
content: 'UPS数据采集正常。',
detect: '输入、输出电压值环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHUCJa: '',
dataKey: 'HMHUCJa'
}, {
title: 'b',
HMHUCJb: '',
dataKey: 'HMHUCJb'
}, {
title: 'c',
HMHUCJc: '',
dataKey: 'HMHUCJc'
}, ]
}],
resKey: 'HMHUCJResult',
remKey: 'HMHUCJRemarks',
HMHUCJResult: '正常',
HMHUCJRemarks: '',
}],
// 安防系统
securityConfigData: [{
content: '监控图像正常,无黑屏无雪花。',
detect: '由省备份总值班室电脑调阅。',
mea: [],
resKey: 'HMATXResult',
remKey: 'HMATXRemarks',
HMATXResult: '正常',
HMATXRemarks: ''
}, {
content: '监控视频回放能正常调用。',
detect: '由省备份总值班室电脑调阅。',
mea: [],
resKey: 'HMASPResult',
remKey: 'HMASPRemarks',
HMASPResult: '正常',
HMASPRemarks: ''
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。',
mea: [],
resKey: 'HMAMJResult',
remKey: 'HMAMJRemarks',
HMAMJResult: '正常',
HMAMJRemarks: '与市局UPS机房共用'
}],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
sbfUpsConfigData
}
\ No newline at end of file
let upsConfigData = {
// 电气系统
eleConfigData: [{
content: '市电配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±10%,三相电压允许不平衡度为2%。',
label1: '',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDSPDa: '',
dataKey: 'HMDSPDa'
}, {
title: 'b',
HMDSPDb: '',
dataKey: 'HMDSPDb'
}, {
title: 'c',
HMDSPDc: '',
dataKey: 'HMDSPDc'
}, ]
}],
resKey: 'HMDSPDResult',
remKey: 'HMDSPDRemarks',
HMDSPDResult: '正常',
HMDSPDRemarks: '',
},
{
content: '市电电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDSDLa: '',
dataKey: 'HMDSDLa'
}, {
title: 'b',
HMDSDLb: '',
dataKey: 'HMDSDLb'
}, {
title: 'c',
HMDSDLc: '',
dataKey: 'HMDSDLc'
}, ]
}],
resKey: 'HMDSDLResult',
remKey: 'HMDSDLRemarks',
HMDSDLResult: '正常',
HMDSDLRemarks: ''
},
{
content: 'UPS配电柜供电正常,无锈蚀、灼烧痕迹,无跳闸,接线可靠。',
detect: '电压值220v±3%。',
mea: [{
name: '(电压V)',
detail: [{
title: 'a',
HMDUPDa: '',
dataKey: 'HMDUPDa'
}, {
title: 'b',
HMDUPDb: '',
dataKey: 'HMDUPDb'
}, {
title: 'c',
HMDUPDc: '',
dataKey: 'HMDUPDc'
}, ]
}],
resKey: 'HMDUPDResult',
remKey: 'HMDUPDRemarks',
HMDUPDResult: '正常',
HMDUPDRemarks: '',
},
{
content: 'UPS电量仪读数正常。',
detect: '目视观察字体完整,能正常切换。',
mea: [{
name: '(电流A)',
detail: [{
title: 'a',
HMDUDLa: '',
dataKey: 'HMDUDLa'
}, {
title: 'b',
HMDUDLb: '',
dataKey: 'HMDUDLb'
}, {
title: 'c',
HMDUDLc: '',
dataKey: 'HMDUDLc'
}, ]
}],
resKey: 'HMDUDLResult',
remKey: 'HMDUDLRemarks',
HMDUDLResult: '正常',
HMDUDLRemarks: '',
},
{
content: 'UPS主机1正常运行。 ',
detect: '常查看UPS主机屏幕显示参数是否有异。',
label1: '',
mea: [{
name: '(负载百分比%)',
detail: [{
title: 'a',
UPSDZJa1: '',
dataKey: 'UPSDZJa1'
}, {
title: 'b',
UPSDZJb1: '',
dataKey: 'UPSDZJb1'
}, {
title: 'c',
UPSDZJc1: '',
dataKey: 'UPSDZJc1'
}, ]
}],
resKey: 'UPSDZJResult1',
remKey: 'UPSDZJRemarks1',
UPSDZJResult1: '正常',
UPSDZJRemarks1: '',
},
{
content: 'UPS主机2正常运行。',
detect: '常查看UPS主机屏幕显示参数是否有异。',
label1: '',
mea: [{
name: '(负载百分比%)',
detail: [{
title: 'a',
UPSDZJa2: '',
dataKey: 'UPSDZJa2'
}, {
title: 'b',
UPSDZJb2: '',
dataKey: 'UPSDZJb2'
}, {
title: 'c',
UPSDZJc2: '',
dataKey: 'UPSDZJc2'
}, ]
}],
resKey: 'UPSDZJResult2',
remKey: 'UPSDZJRemarks2',
UPSDZJResult2: '正常',
UPSDZJRemarks2: '',
},
{
content: '照明灯具正常照明、开关插座正常使用。',
detect: '目视观察,开关测试。',
mea: [],
resKey: 'HMDZMDResult',
remKey: 'HMDZMDRemarks',
HMDZMDResult: '正常',
HMDZMDRemarks: ''
},
],
// 通风系统
ventConfigData: [{
content: '空调能按模式正常工作。',
detect: '室内温度应在18°C ~30°C。空调温度可设在22°C左右。',
mea: [],
resKey: 'HMTKTResult',
remKey: 'HMTKTRemarks',
HMTKTResult: '正常',
HMTKTRemarks: '',
}],
// 消防系统
fireConfigData: [{
content: '气体灭火装置未过期,压力值在正常范围。',
detect: '压力表针应在绿色区域内(2.0~4.2MP),是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
UPSXQ1: '',
dataKey: 'UPSXQ1'
},{
title: '2#',
UPSXQ2: '',
dataKey: 'UPSXQ2'
}]
},
{
name: '(钢瓶公斤数kg)',
detail: [{
title: '1#',
UPSXQKg1: '',
dataKey: 'UPSXQKg1'
},{
title: '2#',
UPSXQKg2: '',
dataKey: 'UPSXQKg2'
}]
}
],
resKey: 'UPSXQResult',
remKey: 'UPSXQRemarks',
UPSXQResult: '正常',
UPSXQRemarks: '钢瓶充装日期:',
}, {
content: '手持灭火器未过期,压力值在正常范围',
detect: '二氧化碳灭火器,是否已过5年检测期。',
mea: [{
name: '(钢瓶压力值MP)',
detail: [{
title: '1#',
UPSXSC1: '',
dataKey: 'UPSXSC1'
},{
title: '2#',
UPSXSC2: '',
dataKey: 'UPSXSC2'
}]
}],
resKey: 'UPSXSCResult',
remKey: 'UPSXSCRemarks',
UPSXSCResult: '正常',
UPSXSCRemarks: '钢瓶充装日期:',
},
{
content: '消防控制主机运行正常。',
detect: '检查控制面板显示运行正常。',
mea: [],
resKey: 'HMXKZResult',
remKey: 'HMXKZRemarks',
HMXKZResult: '正常',
HMXKZRemarks: ''
},
],
// 环控系统
enviConfigData: [{
content: '温湿度计。',
detect: '目视观察。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHWSJTemp: '',
dataKey: 'HMHWSJTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHWSJHumidity: '',
dataKey: 'HMHWSJHumidity'
}]
}],
resKey: 'HMHWSJResult',
remKey: 'HMHWSJRemarks',
HMHWSJResult: '正常',
HMHWSJRemarks: ''
}, {
content: '温湿度传感器数据采集正常。',
detect: '观察传感器显示是否正常,环控软件上是否显示正常。参考温湿度:18°C ~28°C、35%~75%。',
mea: [{
name: '(温度)',
detail: [{
HMHCGQTemp: '',
dataKey: 'HMHCGQTemp'
}]
}, {
name: '(湿度)',
detail: [{
HMHCGQHumidity: '',
dataKey: 'HMHCGQHumidity'
}]
}],
resKey: 'HMHCGQResult',
remKey: 'HMHCGQRemarks',
HMHCGQResult: '正常',
HMHCGQRemarks: ''
}, {
content: '市电电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHSDCa: '',
dataKey: 'HMHSDCa'
}, {
title: 'b',
HMHSDCb: '',
dataKey: 'HMHSDCb'
}, {
title: 'c',
HMHSDCc: '',
dataKey: 'HMHSDCc'
}, ]
}],
resKey: 'HMHSDCResult',
remKey: 'HMHSDCRemarks',
HMHSDCResult: '正常',
HMHSDCRemarks: '',
}, {
content: 'UPS电量仪数据采集正常。',
detect: '与电量仪接口是否牢固,环控软件上是否显示正常。',
label1: '',
mea: [{
name: '(电压)',
detail: [{
title: 'a',
HMHUCJa: '',
dataKey: 'HMHUCJa'
}, {
title: 'b',
HMHUCJb: '',
dataKey: 'HMHUCJb'
}, {
title: 'c',
HMHUCJc: '',
dataKey: 'HMHUCJc'
}, ]
}],
resKey: 'HMHUCJResult',
remKey: 'HMHUCJRemarks',
HMHUCJResult: '正常',
HMHUCJRemarks: '',
}],
// 安防系统
securityConfigData: [{
content: '监控图像正常,无黑屏无雪花。',
detect: '由总值班室电脑调阅,也可从本地录像机显示器查看。',
mea: [],
resKey: 'HMATXResult',
remKey: 'HMATXRemarks',
HMATXResult: '正常',
HMATXRemarks: ''
}, {
content: '监控视频回放能正常调用。',
detect: '由总值班室电脑调阅,也可从本地录像机显示器查看。',
mea: [],
resKey: 'HMASPResult',
remKey: 'HMASPRemarks',
HMASPResult: '正常',
HMASPRemarks: ''
}, {
content: '门禁读卡或指纹能正常开门。',
detect: '直接开门测试。',
mea: [],
resKey: 'HMAMJResult',
remKey: 'HMAMJRemarks',
HMAMJResult: '正常',
HMAMJRemarks: ''
}],
// 其他
otherConfigData: [{
content: '设备无积灰,无锈蚀,标识规范齐全。',
detect: '目视观察。',
mea: [],
resKey: 'HMQResult',
remKey: 'HMQRemarks',
HMQResult: '正常',
HMQRemarks: ''
}],
}
module.exports = {
upsConfigData
}
\ No newline at end of file
<template>
<view class="container">
<segmentControl :tabConfig="tabConfig" @clickItem="onClickItem" :currentIndex.sync="current"></segmentControl>
<view v-if="disabled" class="scroll-y" :style="!show ? 'height: 400px' : 'height: 340px'">
<electrical v-show="current == 0" ref="elect" @save="save" :listData="lData" :disabled="disabled"></electrical>
<vent v-show="current == 1" ref="vent" @save="save" :listData="lData" :disabled="disabled"></vent>
<fire-control v-show="current == 2" ref="fire" @save="save" :listData="lData" :disabled="disabled"></fire-control>
<environmental v-show="current == 3" ref="envi" @save="save" :listData="lData" :disabled="disabled"></environmental>
<security v-show="current == 4" ref="security" @save="save" :listData="lData" :disabled="disabled"></security>
<shield v-show="current == 5" ref="shield" @save="save" :listData="lData" :disabled="disabled"></shield>
<other v-show="current == 6" ref="other" @save="save" :listData="lData" :disabled="disabled"></other>
</view>
<view v-else class="scroll-y" :style="!show ? 'height: 340px' : 'height: 280px'">
<electrical v-show="current == 0" ref="elect" @save="save" :listData="lData"></electrical>
<vent v-show="current == 1" ref="vent" @save="save" :listData="lData"></vent>
<fire-control v-show="current == 2" ref="fire" @save="save" :listData="lData"></fire-control>
<environmental v-show="current == 3" ref="envi" @save="save" :listData="lData"></environmental>
<security v-show="current == 4" ref="security" @save="save" :listData="lData"></security>
<shield v-show="current == 5" ref="shield" @save="save" :listData="lData"></shield>
<other v-show="current == 6" ref="other" @save="save" :listData="lData"></other>
</view>
</view>
</template>
<script>
import segmentControl from "../../global/segmentedControl.vue"
import electrical from "../roomItem/electrical.vue"
import vent from "../roomItem/vent.vue"
import fireControl from "../roomItem/fireControl.vue"
import environmental from "../roomItem/environmental.vue"
import security from "../roomItem/security.vue"
import shield from "../roomItem/shield.vue"
import other from "../roomItem/other.vue"
import printer from "../roomItem/printer.vue"
export default {
components: {
segmentControl,
electrical,
vent,
fireControl,
environmental,
security,
shield,
other,
printer
},
props: ['isShow','listData','disabled'],
data() {
return {
tabConfig: [{
label: '电气系统',
flag: false
},
{
label: '通风系统',
flag: false
},
{
label: '消防系统',
flag: false
},
{
label: '环控系统',
flag: false
},
{
label: '安防系统',
flag: false
},
{
label: '屏蔽室',
flag: false
},
{
label: '其他',
flag: false
},
],
current: 0,
tableData: [],
show:false,
lData:{}
}
},
watch: {
isShow:{
handler(newV,oldV){
this.show = newV
},
immediate:true
},
listData:{
handler(newV,oldV){
this.lData = newV
// console.log(this.lData ,'12399');
},
immediate:true
},
tabConfig: {
handler(newV, oldV) {
let v = newV.every(item => {
return item.flag
})
let isCom = false
if (v) { //全部都保存成功
isCom = true
} else {
isCom = false
}
this.$emit('save',isCom)
},
deep: true
},
},
created() {
// this.lData = listData
// console.log(listData);
},
methods: {
onClickItem(e) {
this.current = e
},
saveData() {
let val = this.current
let refName = ''
switch (val) {
case 0:
refName = 'elect';
break;
case 1:
refName = 'vent';
break;
case 2:
refName = 'fire';
break;
case 3:
refName = 'envi';
break;
case 4:
refName = 'security';
break;
case 5:
refName = 'shield';
break;
case 6:
refName = 'other';
break;
}
// console.log('子组件的');
this.$refs[refName].returnData().then(res => {
console.log('通过');
this.tabConfig[val].flag = true
}).catch(err => {
console.log('失败');
this.tabConfig[val].flag = false
})
},
save(data,tempData){
// console.log(123123);
this.$emit('saveData',data,tempData)
// console.log('父组件接收',data,tempData);
}
},
}
</script>
<style lang="less" scoped>
.container {
.scroll-y {
overflow: hidden;
overflow-y: auto;
}
}
</style>
\ No newline at end of file
<template>
<view class="container">
<segmentControl :tabConfig="tabConfig" @clickItem="onClickItem" :currentIndex.sync="current"></segmentControl>
<view v-if="disabled" class="scroll-y" :style="!show ? 'height: 400px' : 'height: 340px'">
<electrical v-show="current == 0" ref="elect" @save="save" :listData="lData" :disabled="disabled"></electrical>
<vent v-show="current == 1" ref="vent" @save="save" :listData="lData" :disabled="disabled"></vent>
<fire-control v-show="current == 2" ref="fire" @save="save" :listData="lData" :disabled="disabled"></fire-control>
<environmental v-show="current == 3" ref="envi" @save="save" :listData="lData" :disabled="disabled"></environmental>
<security v-show="current == 4" ref="security" @save="save" :listData="lData" :disabled="disabled"></security>
<shield v-show="current == 5" ref="shield" @save="save" :listData="lData" :disabled="disabled"></shield>
<other v-show="current == 6" ref="other" @save="save" :listData="lData" :disabled="disabled"></other>
<printer v-show="current == 7" ref="printer" @save="save" :listData="lData" :disabled="disabled"></printer>
</view>
<view v-else class="scroll-y" :style="!show ? 'height: 340px' : 'height: 280px'">
<electrical v-show="current == 0" ref="elect" @save="save" :listData="lData"></electrical>
<vent v-show="current == 1" ref="vent" @save="save" :listData="lData"></vent>
<fire-control v-show="current == 2" ref="fire" @save="save" :listData="lData"></fire-control>
<environmental v-show="current == 3" ref="envi" @save="save" :listData="lData"></environmental>
<security v-show="current == 4" ref="security" @save="save" :listData="lData"></security>
<shield v-show="current == 5" ref="shield" @save="save" :listData="lData"></shield>
<other v-show="current == 6" ref="other" @save="save" :listData="lData"></other>
<printer v-show="current == 7" ref="printer" @save="save" :listData="lData"></printer>
</view>
</view>
</template>
<script>
import segmentControl from "../../global/segmentedControl.vue"
import electrical from "../roomItem/electrical.vue"
import vent from "../roomItem/vent.vue"
import fireControl from "../roomItem/fireControl.vue"
import environmental from "../roomItem/environmental.vue"
import security from "../roomItem/security.vue"
import shield from "../roomItem/shield.vue"
import other from "../roomItem/other.vue"
import printer from "../roomItem/printer.vue"
export default {
components: {
segmentControl,
electrical,
vent,
fireControl,
environmental,
security,
shield,
other,
printer
},
props: ['isShow', 'listData', 'disabled'],
data() {
return {
tabConfig: [{
label: '电气系统',
flag: false
},
{
label: '通风系统',
flag: false
},
{
label: '消防系统',
flag: false
},
{
label: '环控系统',
flag: false
},
{
label: '安防系统',
flag: false
},
{
label: '屏蔽室',
flag: false
},
{
label: '其他',
flag: false
},
{
label: '打印机',
flag: false
},
],
current: 0,
tableData: [],
show: false,
lData: {},
}
},
watch: {
isShow: {
handler(newV, oldV) {
// console.log(newV,'ishow');
this.show = newV
},
immediate: true
},
listData: {
handler(newV, oldV) {
console.log(newV, '机房组件接收的数据');
this.lData = newV
// console.log(this.lData ,'12399');
},
immediate: true
},
tabConfig: {
handler(newV, oldV) {
let v = newV.every(item => {
return item.flag
})
let isCom = false
if (v) { //全部都保存成功
isCom = true
} else {
isCom = false
}
this.$emit('save', isCom)
},
deep: true
},
},
created() {
console.log(this.disabled, 123);
// this.lData = listData
// console.log(listData);
},
methods: {
onClickItem(e) {
this.current = e
},
saveData() {
let val = this.current
let refName = ''
switch (val) {
case 0:
refName = 'elect';
break;
case 1:
refName = 'vent';
break;
case 2:
refName = 'fire';
break;
case 3:
refName = 'envi';
break;
case 4:
refName = 'security';
break;
case 5:
refName = 'shield';
break;
case 6:
refName = 'other';
break;
case 7:
refName = 'printer';
break;
}
// console.log('子组件的');
this.$refs[refName].returnData().then(res => {
console.log('通过');
this.tabConfig[val].flag = true
}).catch(err => {
console.log('失败');
this.tabConfig[val].flag = false
})
},
save(data, tempData) {
// console.log(123123);
this.$emit('saveData', data, tempData)
// console.log('父组件接收',data,tempData);
}
},
}
</script>
<style lang="less" scoped>
.container {
.scroll-y {
overflow: hidden;
overflow-y: auto;
.is-mask{
width: 100%;
height: 100%;
background-color: red;
}
}
}
</style>
\ No newline at end of file
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论