|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="infoPage" v-if="newData.id">
|
|
|
|
|
|
+ <div class="infoPage" v-if="subjectData.infoId">
|
|
<div :class="versionField() == 'xiBeiNongLinDaXue'?'left-max-box-flex':''" class="left-max-box scrollbar-box">
|
|
<div :class="versionField() == 'xiBeiNongLinDaXue'?'left-max-box-flex':''" class="left-max-box scrollbar-box">
|
|
<div :class="versionField() == 'xiBeiNongLinDaXue'?'top-max-box-flex':''" class="top-max-box" style="position: relative">
|
|
<div :class="versionField() == 'xiBeiNongLinDaXue'?'top-max-box-flex':''" class="top-max-box" style="position: relative">
|
|
<div class="all-title-box">
|
|
<div class="all-title-box">
|
|
@@ -10,174 +10,174 @@
|
|
<div class="left-top-title-box">
|
|
<div class="left-top-title-box">
|
|
<div class="left-box">
|
|
<div class="left-box">
|
|
<div class="lv-name-box">
|
|
<div class="lv-name-box">
|
|
- <p :style="'color:'+newData.fiedColor+';border:1px solid '+newData.fiedColor+';'">{{newData.levelName}}</p>
|
|
|
|
- <p>{{newData.name}}</p>
|
|
|
|
|
|
+ <p :style="'color:'+subjectData.fiedColor+';border:1px solid '+subjectData.fiedColor+';'">{{subjectData.levelName}}</p>
|
|
|
|
+ <p>{{subjectData.name}}</p>
|
|
</div>
|
|
</div>
|
|
<div class="type-address-box">
|
|
<div class="type-address-box">
|
|
- <p>{{newData.typeName}}</p>
|
|
|
|
- <p v-if="newData.subAddrr">{{newData.subAddrr.buildName}}{{newData.subAddrr.floorName}}</p>
|
|
|
|
|
|
+ <p>{{subjectData.typeName}}</p>
|
|
|
|
+ <p v-if="subjectData.subAddrr">{{subjectData.subAddrr.buildName}}{{subjectData.subAddrr.floorName}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="right-code-img" @click="clickCode">
|
|
<div class="right-code-img" @click="clickCode">
|
|
- <vue-qr style="display: block;height:60px;width:60px;cursor:pointer;margin:0 10px 0 0;" :text="newData.qrCodeUrl" :size="300" @click="clickCode"></vue-qr>
|
|
|
|
|
|
+ <vue-qr style="display: block;height:60px;width:60px;cursor:pointer;margin:0 10px 0 0;" :text="subjectData.qrCodeUrl" :size="300" @click="clickCode"></vue-qr>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="user-max-box">
|
|
<div class="user-max-box">
|
|
<div class="left-box">
|
|
<div class="left-box">
|
|
- <p>实验室责任人:<span>{{newData.adminName}}</span></p>
|
|
|
|
- <p>联系方式:<span>{{newData.adminPhone}}</span></p>
|
|
|
|
|
|
+ <p>实验室责任人:<span>{{subjectData.adminName}}</span></p>
|
|
|
|
+ <p>联系方式:<span>{{subjectData.adminPhone}}</span></p>
|
|
</div>
|
|
</div>
|
|
<div class="right-box">
|
|
<div class="right-box">
|
|
- <div v-for="(item,index) in newData.safeUserName" :key="index">
|
|
|
|
- <p>安全责任人:<span>{{newData.safeUserName[index]}}</span></p>
|
|
|
|
- <p>联系方式:<span>{{newData.safeUserPhone[index]?newData.safeUserPhone[index]:'未填写'}}</span></p>
|
|
|
|
|
|
+ <div v-for="(item,index) in subjectData.safeUserName" :key="index">
|
|
|
|
+ <p>安全责任人:<span>{{subjectData.safeUserName[index]}}</span></p>
|
|
|
|
+ <p>联系方式:<span>{{subjectData.safeUserPhone[index]?subjectData.safeUserPhone[index]:'未填写'}}</span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="info-max-box">
|
|
<div class="info-max-box">
|
|
- <div class="for-text-box" v-if="item.privateList.length>0 && item.classifyType==1" v-for="(item,index) in newData.classifyList">
|
|
|
|
|
|
+ <div class="for-text-box" v-if="item.privateList.length>0 && item.classifyType==1" v-for="(item,index) in subjectData.classifyList">
|
|
<p class="info-title">{{item.classifyName}}:</p>
|
|
<p class="info-title">{{item.classifyName}}:</p>
|
|
<div class="for-box" v-for="(item2,index2) in item.privateList" :key="index2">
|
|
<div class="for-box" v-for="(item2,index2) in item.privateList" :key="index2">
|
|
<p class="for-info-p">● {{item2.infoName}}</p>
|
|
<p class="for-info-p">● {{item2.infoName}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="for-img-box" v-if="item.privateList.length>0 && item.classifyType==2" v-for="(item,index) in newData.classifyList">
|
|
|
|
|
|
+ <div class="for-img-box" v-if="item.privateList.length>0 && item.classifyType==2" v-for="(item,index) in subjectData.classifyList">
|
|
<p class="info-title" style="margin-bottom:7px;">{{item.classifyName}}:</p>
|
|
<p class="info-title" style="margin-bottom:7px;">{{item.classifyName}}:</p>
|
|
<img :src="item2.infoContent" v-for="(item2,index2) in item.privateList" :key="index2">
|
|
<img :src="item2.infoContent" v-for="(item2,index2) in item.privateList" :key="index2">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right-max-box scrollbar-box" v-if="versionField() != 'xiBeiNongLinDaXue'">
|
|
|
|
- <div class="all-title-box" style="height:40px;">
|
|
|
|
- <p></p>
|
|
|
|
- <p>传感器监测</p>
|
|
|
|
- <p>{{newData.sensorFunctionStatusList[0]?'数据上报时间:'+newData.sensorFunctionStatusList[0].sendDate:''}}</p>
|
|
|
|
- <p class="reset-button-one" @click="backPage">返回</p>
|
|
|
|
- </div>
|
|
|
|
- <p class="sensor-box" v-for="(item,index) in newData.sensorFunctionStatusList" :key="index">{{item.funcName}}:<span>{{item.formatVal}}</span></p>
|
|
|
|
- <img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!newData.sensorFunctionStatusList[0]">
|
|
|
|
- <p class="null-p" v-if="!newData.sensorFunctionStatusList[0]" >暂无环境监测信息,请在更多操作-物联设备配置中进行添加</p>
|
|
|
|
- <div class="all-title-box" style="height:40px;margin-top:20px;">
|
|
|
|
- <p></p>
|
|
|
|
- <p>物联控制</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="things-box" v-for="(item,index) in newData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'SWITCH'">
|
|
|
|
- <div class="things-for-box">
|
|
|
|
- <p class="left-title">{{item.hardwareName}}</p>
|
|
|
|
- <el-switch
|
|
|
|
- v-if="item.state.code == 3||item.state.code == 4"
|
|
|
|
- class="switch"
|
|
|
|
- @click.native="changeIsNeedCaptcha(item)"
|
|
|
|
- v-model="item.state.code"
|
|
|
|
- :active-value="3"
|
|
|
|
- :inactive-value="4"
|
|
|
|
- active-text="开"
|
|
|
|
- inactive-text="关"
|
|
|
|
- disabled>
|
|
|
|
- </el-switch>
|
|
|
|
- <p class="switch-null-p" v-else>{{item.state.name}}</p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="things-box" v-for="(item,index) in newData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'AI_VENTILATION'">
|
|
|
|
- <div class="things-for-box">
|
|
|
|
- <p class="left-title">{{item.hardwareName}}</p>
|
|
|
|
- <el-switch
|
|
|
|
- v-if="item.state.code == 3||item.state.code == 4"
|
|
|
|
- class="switch"
|
|
|
|
- @click.native="changeIsNeedCaptcha(item)"
|
|
|
|
- v-model="item.state.code"
|
|
|
|
- :active-value="3"
|
|
|
|
- :inactive-value="4"
|
|
|
|
- active-text="开"
|
|
|
|
- inactive-text="关"
|
|
|
|
- disabled>
|
|
|
|
- </el-switch>
|
|
|
|
- <p class="switch-null-p" v-else>{{item.state.name}}</p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="things-box" v-for="(item,index) in newData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'ONE_MACHINE'">
|
|
|
|
- <div class="things-for-box">
|
|
|
|
- <p class="left-title">广播系统</p>
|
|
|
|
- <p class="right-button" @click="handleAdd">播放文字</p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!newData.labHardwareVOListTwo[0]">
|
|
|
|
- <p class="null-p" v-if="!newData.labHardwareVOListTwo[0]" >暂无物联控制信息,请在更多操作-物联设备配置中进行添加</p>
|
|
|
|
- <div class="all-title-box" style="height:40px;margin-top:10px;">
|
|
|
|
- <p></p>
|
|
|
|
- <p>危险源信息</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="source-box">
|
|
|
|
- <span v-for="(item,index) in newData.hazardList" :key="index">{{index==0?item.label:'、'+item.label}}</span>
|
|
|
|
- </div>
|
|
|
|
- <img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!newData.hazardList[0]">
|
|
|
|
- <p class="null-p" v-if="!newData.hazardList[0]" >暂无危险源信息,请在更多操作-关联配置中进行添加</p>
|
|
|
|
- <div class="all-title-box" style="height:40px;margin-top:20px;">
|
|
|
|
- <p></p>
|
|
|
|
- <p>视频监控</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="video-max-box">
|
|
|
|
- <div class="video-min-box" v-for="(item,index) in newData.videoData" :key="item.id">
|
|
|
|
- <video :id="item.divId" ref="videoRef" autoplay controls muted width="240" height="130px"></video>
|
|
|
|
- <p class="el-icon-full-screen position-p" @click="videoFullScreen(index)"></p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!newData.videoData[0]">
|
|
|
|
- <p class="null-p" v-if="!newData.videoData[0]" >暂无视频监控信息,请在更多操作-物联设备配置中进行添加</p>
|
|
|
|
- <div class="all-title-box" style="height:30px;">
|
|
|
|
- <p></p>
|
|
|
|
- <p>检查项信息</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="inspection-box">
|
|
|
|
- <div>
|
|
|
|
- <p>穿戴检查项:</p>
|
|
|
|
- <p>
|
|
|
|
- <span v-for="(item,index) in newData.safeInfo.checkInData">{{index==0?item:'、'+item}}</span>
|
|
|
|
- <span v-if="!newData.safeInfo.checkInData">未设置</span>
|
|
|
|
- </p>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <p>穿戴检查可跳过:</p>
|
|
|
|
- <p>{{newData.skipped == '1'?'是':(newData.skipped == '0'?'否':'')}}</p>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="newData.skipped == 1">
|
|
|
|
- <p>穿戴检查识别上限:</p>
|
|
|
|
- <p>{{newData.checkCount?newData.checkCount:'未设置'}}</p>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <p>离开检查项:</p>
|
|
|
|
- <p>
|
|
|
|
- <span v-for="(item,index) in newData.safeInfo.checkOutData">{{index==0?item:'、'+item}}</span>
|
|
|
|
- <span v-if="!newData.safeInfo.checkOutData">未设置</span>
|
|
|
|
- </p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <!--展示实验室二维码-->
|
|
|
|
- <el-dialog title="实验室二维码" :visible.sync="codeType" width="500px" append-to-body>
|
|
|
|
- <vue-qr style="display: block;height:460px;width:460px;cursor:pointer;margin:0 auto;" :text="newData.qrCodeUrl" :size="200"></vue-qr>
|
|
|
|
- </el-dialog>
|
|
|
|
- <!--播放文字窗口-->
|
|
|
|
- <el-dialog title="广播系统" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
- <el-form-item label="播放文字" prop="txt">
|
|
|
|
- <el-input v-model="form.txt" placeholder="请输入播放文字" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="播报方式" prop="type">
|
|
|
|
- <el-radio-group v-model="form.type">
|
|
|
|
- <el-radio :label="1">文字</el-radio>
|
|
|
|
- <el-radio :label="2">音频</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <div slot="footer" class="dialog-footer dialog-footer-box">
|
|
|
|
- <p class="dialog-footer-button-null"></p>
|
|
|
|
- <p class="dialog-footer-button-info" @click="cancel">取消</p>
|
|
|
|
- <p class="dialog-footer-button-primary" @click="submitFormOne">提交</p>
|
|
|
|
- <p class="dialog-footer-button-null"></p>
|
|
|
|
- </div>
|
|
|
|
- </el-dialog>
|
|
|
|
|
|
+ <!--<div class="right-max-box scrollbar-box" v-if="versionField() != 'xiBeiNongLinDaXue'">-->
|
|
|
|
+ <!--<div class="all-title-box" style="height:40px;">-->
|
|
|
|
+ <!--<p></p>-->
|
|
|
|
+ <!--<p>传感器监测</p>-->
|
|
|
|
+ <!--<p>{{subjectData.sensorFunctionStatusList[0]?'数据上报时间:'+subjectData.sensorFunctionStatusList[0].sendDate:''}}</p>-->
|
|
|
|
+ <!--<p class="reset-button-one" @click="backPage">返回</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<p class="sensor-box" v-for="(item,index) in subjectData.sensorFunctionStatusList" :key="index">{{item.funcName}}:<span>{{item.formatVal}}</span></p>-->
|
|
|
|
+ <!--<img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!subjectData.sensorFunctionStatusList[0]">-->
|
|
|
|
+ <!--<p class="null-p" v-if="!subjectData.sensorFunctionStatusList[0]" >暂无环境监测信息,请在更多操作-物联设备配置中进行添加</p>-->
|
|
|
|
+ <!--<div class="all-title-box" style="height:40px;margin-top:20px;">-->
|
|
|
|
+ <!--<p></p>-->
|
|
|
|
+ <!--<p>物联控制</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div class="things-box" v-for="(item,index) in subjectData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'SWITCH'">-->
|
|
|
|
+ <!--<div class="things-for-box">-->
|
|
|
|
+ <!--<p class="left-title">{{item.hardwareName}}</p>-->
|
|
|
|
+ <!--<el-switch-->
|
|
|
|
+ <!--v-if="item.state.code == 3||item.state.code == 4"-->
|
|
|
|
+ <!--class="switch"-->
|
|
|
|
+ <!--@click.native="changeIsNeedCaptcha(item)"-->
|
|
|
|
+ <!--v-model="item.state.code"-->
|
|
|
|
+ <!--:active-value="3"-->
|
|
|
|
+ <!--:inactive-value="4"-->
|
|
|
|
+ <!--active-text="开"-->
|
|
|
|
+ <!--inactive-text="关"-->
|
|
|
|
+ <!--disabled>-->
|
|
|
|
+ <!--</el-switch>-->
|
|
|
|
+ <!--<p class="switch-null-p" v-else>{{item.state.name}}</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div class="things-box" v-for="(item,index) in subjectData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'AI_VENTILATION'">-->
|
|
|
|
+ <!--<div class="things-for-box">-->
|
|
|
|
+ <!--<p class="left-title">{{item.hardwareName}}</p>-->
|
|
|
|
+ <!--<el-switch-->
|
|
|
|
+ <!--v-if="item.state.code == 3||item.state.code == 4"-->
|
|
|
|
+ <!--class="switch"-->
|
|
|
|
+ <!--@click.native="changeIsNeedCaptcha(item)"-->
|
|
|
|
+ <!--v-model="item.state.code"-->
|
|
|
|
+ <!--:active-value="3"-->
|
|
|
|
+ <!--:inactive-value="4"-->
|
|
|
|
+ <!--active-text="开"-->
|
|
|
|
+ <!--inactive-text="关"-->
|
|
|
|
+ <!--disabled>-->
|
|
|
|
+ <!--</el-switch>-->
|
|
|
|
+ <!--<p class="switch-null-p" v-else>{{item.state.name}}</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div class="things-box" v-for="(item,index) in subjectData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'ONE_MACHINE'">-->
|
|
|
|
+ <!--<div class="things-for-box">-->
|
|
|
|
+ <!--<p class="left-title">广播系统</p>-->
|
|
|
|
+ <!--<p class="right-button" @click="handleAdd">播放文字</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!subjectData.labHardwareVOListTwo[0]">-->
|
|
|
|
+ <!--<p class="null-p" v-if="!subjectData.labHardwareVOListTwo[0]" >暂无物联控制信息,请在更多操作-物联设备配置中进行添加</p>-->
|
|
|
|
+ <!--<div class="all-title-box" style="height:40px;margin-top:10px;">-->
|
|
|
|
+ <!--<p></p>-->
|
|
|
|
+ <!--<p>危险源信息</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div class="source-box">-->
|
|
|
|
+ <!--<span v-for="(item,index) in subjectData.hazardList" :key="index">{{index==0?item.label:'、'+item.label}}</span>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!subjectData.hazardList[0]">-->
|
|
|
|
+ <!--<p class="null-p" v-if="!subjectData.hazardList[0]" >暂无危险源信息,请在更多操作-关联配置中进行添加</p>-->
|
|
|
|
+ <!--<div class="all-title-box" style="height:40px;margin-top:20px;">-->
|
|
|
|
+ <!--<p></p>-->
|
|
|
|
+ <!--<p>视频监控</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div class="video-max-box">-->
|
|
|
|
+ <!--<div class="video-min-box" v-for="(item,index) in subjectData.videoData" :key="item.id">-->
|
|
|
|
+ <!--<video :id="item.divId" ref="videoRef" autoplay controls muted width="240" height="130px"></video>-->
|
|
|
|
+ <!--<p class="el-icon-full-screen position-p" @click="videoFullScreen(index)"></p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<img class="null-data-img" src="@/assets/ZDimages/basicsModules/null-data.png" v-if="!subjectData.videoData[0]">-->
|
|
|
|
+ <!--<p class="null-p" v-if="!subjectData.videoData[0]" >暂无视频监控信息,请在更多操作-物联设备配置中进行添加</p>-->
|
|
|
|
+ <!--<div class="all-title-box" style="height:30px;">-->
|
|
|
|
+ <!--<p></p>-->
|
|
|
|
+ <!--<p>检查项信息</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div class="inspection-box">-->
|
|
|
|
+ <!--<div>-->
|
|
|
|
+ <!--<p>穿戴检查项:</p>-->
|
|
|
|
+ <!--<p>-->
|
|
|
|
+ <!--<span v-for="(item,index) in subjectData.safeInfo.checkInData">{{index==0?item:'、'+item}}</span>-->
|
|
|
|
+ <!--<span v-if="!subjectData.safeInfo.checkInData">未设置</span>-->
|
|
|
|
+ <!--</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div>-->
|
|
|
|
+ <!--<p>穿戴检查可跳过:</p>-->
|
|
|
|
+ <!--<p>{{subjectData.skipped == '1'?'是':(subjectData.skipped == '0'?'否':'')}}</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div v-if="subjectData.skipped == 1">-->
|
|
|
|
+ <!--<p>穿戴检查识别上限:</p>-->
|
|
|
|
+ <!--<p>{{subjectData.checkCount?subjectData.checkCount:'未设置'}}</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<div>-->
|
|
|
|
+ <!--<p>离开检查项:</p>-->
|
|
|
|
+ <!--<p>-->
|
|
|
|
+ <!--<span v-for="(item,index) in subjectData.safeInfo.checkOutData">{{index==0?item:'、'+item}}</span>-->
|
|
|
|
+ <!--<span v-if="!subjectData.safeInfo.checkOutData">未设置</span>-->
|
|
|
|
+ <!--</p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--<!–展示实验室二维码–>-->
|
|
|
|
+ <!--<el-dialog title="实验室二维码" :visible.sync="codeType" width="500px" append-to-body>-->
|
|
|
|
+ <!--<vue-qr style="display: block;height:460px;width:460px;cursor:pointer;margin:0 auto;" :text="subjectData.qrCodeUrl" :size="200"></vue-qr>-->
|
|
|
|
+ <!--</el-dialog>-->
|
|
|
|
+ <!--<!–播放文字窗口–>-->
|
|
|
|
+ <!--<el-dialog title="广播系统" :visible.sync="open" width="500px" append-to-body>-->
|
|
|
|
+ <!--<el-form ref="form" :model="form" :rules="rules" label-width="80px">-->
|
|
|
|
+ <!--<el-form-item label="播放文字" prop="txt">-->
|
|
|
|
+ <!--<el-input v-model="form.txt" placeholder="请输入播放文字" />-->
|
|
|
|
+ <!--</el-form-item>-->
|
|
|
|
+ <!--<el-form-item label="播报方式" prop="type">-->
|
|
|
|
+ <!--<el-radio-group v-model="form.type">-->
|
|
|
|
+ <!--<el-radio :label="1">文字</el-radio>-->
|
|
|
|
+ <!--<el-radio :label="2">音频</el-radio>-->
|
|
|
|
+ <!--</el-radio-group>-->
|
|
|
|
+ <!--</el-form-item>-->
|
|
|
|
+ <!--</el-form>-->
|
|
|
|
+ <!--<div slot="footer" class="dialog-footer dialog-footer-box">-->
|
|
|
|
+ <!--<p class="dialog-footer-button-null"></p>-->
|
|
|
|
+ <!--<p class="dialog-footer-button-info" @click="cancel">取消</p>-->
|
|
|
|
+ <!--<p class="dialog-footer-button-primary" @click="submitFormOne">提交</p>-->
|
|
|
|
+ <!--<p class="dialog-footer-button-null"></p>-->
|
|
|
|
+ <!--</div>-->
|
|
|
|
+ <!--</el-dialog>-->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -192,11 +192,11 @@
|
|
vueQr
|
|
vueQr
|
|
},
|
|
},
|
|
props:{
|
|
props:{
|
|
- newData:{},
|
|
|
|
|
|
+ subjectData:{},
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- // newData:{},
|
|
|
|
|
|
+ // subjectData:{},
|
|
//主要危险类别
|
|
//主要危险类别
|
|
hazardCategory:[],
|
|
hazardCategory:[],
|
|
//风险防控措施
|
|
//风险防控措施
|
|
@@ -237,9 +237,9 @@
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
let self = this;
|
|
let self = this;
|
|
- setTimeout(function(){
|
|
|
|
- self.videoFunction();
|
|
|
|
- },500);
|
|
|
|
|
|
+ // setTimeout(function(){
|
|
|
|
+ // self.videoFunction();
|
|
|
|
+ // },500);
|
|
|
|
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -247,18 +247,18 @@
|
|
videoFunction(){
|
|
videoFunction(){
|
|
let self = this;
|
|
let self = this;
|
|
self.videoList = [];
|
|
self.videoList = [];
|
|
- for(let i=0;i<self.newData.videoData.length;i++){
|
|
|
|
|
|
+ for(let i=0;i<self.subjectData.videoData.length;i++){
|
|
let obj = {
|
|
let obj = {
|
|
player :{},
|
|
player :{},
|
|
flvPlayer:{}
|
|
flvPlayer:{}
|
|
};
|
|
};
|
|
- obj.player = document.getElementById(self.newData.videoData[i].divId);
|
|
|
|
|
|
+ obj.player = document.getElementById(self.subjectData.videoData[i].divId);
|
|
obj.flvPlayer = flvjs.createPlayer(
|
|
obj.flvPlayer = flvjs.createPlayer(
|
|
{
|
|
{
|
|
// isLive: true, //=> 是否为直播流
|
|
// isLive: true, //=> 是否为直播流
|
|
// hasAudio: false, //=> 是否开启声音
|
|
// hasAudio: false, //=> 是否开启声音
|
|
- type: self.newData.videoData[i].videoType, //媒体类型 flv 或 mp4
|
|
|
|
- url: self.newData.videoData[i].url //视频流地址
|
|
|
|
|
|
+ type: self.subjectData.videoData[i].videoType, //媒体类型 flv 或 mp4
|
|
|
|
+ url: self.subjectData.videoData[i].url //视频流地址
|
|
},
|
|
},
|
|
{
|
|
{
|
|
enableStashBuffer: true,//启用 IO 存储缓冲区。 如果您需要实时流播放(最小延迟),请设置为 false,但如果存在网络抖动,则可能会停止。
|
|
enableStashBuffer: true,//启用 IO 存储缓冲区。 如果您需要实时流播放(最小延迟),请设置为 false,但如果存在网络抖动,则可能会停止。
|
|
@@ -310,7 +310,7 @@
|
|
submitFormOne(){
|
|
submitFormOne(){
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- let id = this.newData.id;
|
|
|
|
|
|
+ let id = this.subjectData.id;
|
|
mangerVoice(this.form,id).then(response => {
|
|
mangerVoice(this.form,id).then(response => {
|
|
this.msgSuccess("播放成功");
|
|
this.msgSuccess("播放成功");
|
|
this.open = false;
|
|
this.open = false;
|