|
|
@@ -22,13 +22,31 @@
|
|
|
<div class="title-detail" @click="handlerDetail(item.deviceID)">详情</div>
|
|
|
</div>
|
|
|
<div class="box-content">
|
|
|
+ <!-- plc时钟显示 -->
|
|
|
+ <div class="timePlcNow">2025-12-4 13:23:24</div>
|
|
|
<!-- 二三维信息 -->
|
|
|
- <gateSVG v-if="item.gateStyle == 'fm_fc_ssl'" :ref="(el) => setChildRef(el, index)" :identify="index"></gateSVG>
|
|
|
- <gateDualSVG v-else :ref="(el) => setChildRef(el, index)" :identify="index">
|
|
|
+ <gateSVG v-if="item.gateStyle == 'fm_fc_ssl'" :ref="(el) => setChildRef(el, index)" :identify="index">
|
|
|
+ </gateSVG>
|
|
|
+ <gateDualSVG v-else :ref="(el) => setChildRef(el, index)" :identify="index">
|
|
|
</gateDualSVG>
|
|
|
</div>
|
|
|
<img src="@/assets/images/camera.png" alt="" @click="handlerCamera(item, index)" />
|
|
|
+ <div class="setting-time">
|
|
|
+ <div>
|
|
|
+ <span>定时开启时间:</span>
|
|
|
+ <span class="set-time">13:23:24</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <span>启用状态:</span>
|
|
|
+ <span class="set-time">启用</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <span>定时关闭时间:</span>
|
|
|
+ <span class="set-time">13:23:24</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
<!-- 同步开启/关闭弹窗 -->
|
|
|
<syncModal :visible="visible" @handleCancel="handleCancel" @handleOk="handleOk"></syncModal>
|
|
|
@@ -59,6 +77,7 @@ import gateSVG from './gateSVG.ssl.vue'
|
|
|
import operationModal from './operationModal.vue'
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { devicecontrol, insertSyncRule, GetSyncRule } from '../airdoor.api'
|
|
|
+import { doorStatus } from '../airdoor.data'
|
|
|
// import { getModelComponent } from '../airdoor.data'
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
|
@@ -106,7 +125,13 @@ async function handleOk(param) {
|
|
|
let res = await devicecontrol({ deviceids: deviceStr, paramcode: paramcode, password: param.pass || globalConfig?.simulatedPassword })
|
|
|
if (res) {
|
|
|
visible.value = param.visib
|
|
|
- visibleStatus.value = ''
|
|
|
+ // visibleStatus.value = ''
|
|
|
+ doorStatus.openOrclose = true
|
|
|
+ doorStatus.statusCode = visibleStatus.value
|
|
|
+ setTimeout(() => {
|
|
|
+ doorStatus.openOrclose = false
|
|
|
+ doorStatus.statusCode = ''
|
|
|
+ }, 60000 * 5)
|
|
|
}
|
|
|
}
|
|
|
//取消
|
|
|
@@ -263,6 +288,29 @@ watch(() => props.infoData, (newV, oldV) => {
|
|
|
height: calc(100% - 40px);
|
|
|
}
|
|
|
|
|
|
+ .timePlcNow {
|
|
|
+ position: absolute;
|
|
|
+ right: 5px;
|
|
|
+ top: 0px;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .setting-time {
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ bottom: -25px;
|
|
|
+ left: 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ .set-time{
|
|
|
+ color: rgba(60, 242, 255);
|
|
|
+ }
|
|
|
+
|
|
|
img {
|
|
|
position: absolute;
|
|
|
right: 20px;
|