|
|
@@ -8,7 +8,8 @@
|
|
|
custom-class="ele-dialog-form"
|
|
|
title="门禁"
|
|
|
@update:visible="updateVisible"
|
|
|
- :maxable="true"
|
|
|
+ :maxable="false"
|
|
|
+ :fullscreen="true"
|
|
|
>
|
|
|
<el-form
|
|
|
ref="form"
|
|
|
@@ -17,8 +18,8 @@
|
|
|
:rules="rules"
|
|
|
label-width="100px"
|
|
|
>
|
|
|
- <el-row>
|
|
|
- <el-col :span="24" style="margin-bottom: 20px;">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12" style="margin-bottom: 20px;">
|
|
|
<!-- <el-form-item label="设备:" prop="deviceId">
|
|
|
<el-select
|
|
|
v-model="form.deviceId"
|
|
|
@@ -51,15 +52,27 @@
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select> -->
|
|
|
- <el-button type="primary" @click="handleBindDevice">添加设备</el-button>
|
|
|
+ <!-- <el-button type="primary" @click="handleBindDevice">添加设备</el-button> -->
|
|
|
+ <!-- 绑定 -->
|
|
|
+ <doorBind ref="doorBindRef" :current="current" :list="datasource" :visible.sync="showBind" @success="getData"></doorBind>
|
|
|
<!-- </el-form-item> -->
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :autoComplete="false"
|
|
|
+ :model="form1"
|
|
|
+ label-width="0"
|
|
|
+ >
|
|
|
+ <el-form-item label="" prop="deviceName">
|
|
|
+ 已绑定设备
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
|
- height="calc(100vh - 405px)"
|
|
|
+ height="calc(100vh - 330px)"
|
|
|
style="margin-bottom: 10px"
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
@@ -108,15 +121,14 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<template v-slot:footer>
|
|
|
- <el-button @click="updateVisible(false)">取消</el-button>
|
|
|
- <el-button type="primary" :loading="loading" @click="updateVisible(false)">
|
|
|
+ <el-button @click="updateVisible(false)">关闭</el-button>
|
|
|
+ <!-- <el-button type="primary" :loading="loading" @click="updateVisible(false)">
|
|
|
确定
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
|
<!-- 授权 -->
|
|
|
<doorAuthorize ref="doorAuthorizeRef" :current="current" :deviceInfo="deviceInfo" :list="datasource" :visible.sync="showAuthorize" @success="getData"></doorAuthorize>
|
|
|
- <!-- 绑定 -->
|
|
|
- <doorBind ref="doorBindRef" :current="current" :list="datasource" :visible.sync="showBind" @success="getData"></doorBind>
|
|
|
+
|
|
|
</ele-modal>
|
|
|
</template>
|
|
|
|
|
|
@@ -141,6 +153,7 @@
|
|
|
deviceId: '',
|
|
|
};
|
|
|
return {
|
|
|
+ form1: {},
|
|
|
showAuthorize: false,
|
|
|
deviceInfo: {},
|
|
|
cacheKeyUrl: 'eos-64acd1e7-202605271646-user-door',
|