| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | :visible.sync="visible" |
| | | width="900px" |
| | | width="1000px" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | |
| | | :filter-method="filterMethod" |
| | | filter-placeholder="请输入门禁点或区域名称" |
| | | v-model="form.doorIds" |
| | | class="transfer" |
| | | :data="device"> |
| | | </el-transfer> |
| | | </el-form-item> |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | }, |
| | | // 获取设备 |
| | | getLists () { |
| | | getList({}) |
| | | getList({type:0, isdeleted:0 }) |
| | | .then(res => { |
| | | this.device = res.map(item => { |
| | | return { |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .el-transfer-panel { |
| | | width: 350px !important; |
| | | } |
| | | <style lang="scss" scoped> |
| | | .transfer { |
| | | height: 600px; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | ::v-deep .el-transfer-panel { |
| | | flex: 1; |
| | | height: 100%; |
| | | } |
| | | |
| | | ::v-deep .el-transfer-panel__body { |
| | | height: 500px; |
| | | } |
| | | |
| | | ::v-deep .el-transfer-panel__list.is-filterable { |
| | | height: 480px; |
| | | } |
| | | } |
| | | </style> |