From 8d270834a630785732829f6cb8af6c1e30fd7f43 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 12 九月 2023 10:06:03 +0800
Subject: [PATCH] 应用中心 2023-9-12
---
src/pages/settings/components/LoraGateway.vue | 64 ++++++++++++++++++++++++--------
1 files changed, 48 insertions(+), 16 deletions(-)
diff --git a/src/pages/settings/components/LoraGateway.vue b/src/pages/settings/components/LoraGateway.vue
index f6720ed..3154749 100644
--- a/src/pages/settings/components/LoraGateway.vue
+++ b/src/pages/settings/components/LoraGateway.vue
@@ -38,24 +38,28 @@
</div>
</el-form-item>
- <div class="block">
+ <div class="block flexBlock">
<el-form-item class="form-item channel-sele">
<div class="item-title">棰戦亾</div>
- <el-select
- v-model="loraForm.channel"
- placeholder="璇烽�夋嫨"
- size="small"
- :popper-append-to-body="false"
- >
- <el-option
- v-for="item in channel_option"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- <div class="channel">
- 褰撳墠杩炴帴閫氶亾锛�<span class="channelCount">{{ channelCount }}</span>
+
+ <div class="right">
+ <el-select
+ v-model="loraForm.channel"
+ placeholder="璇烽�夋嫨"
+ size="small"
+ :popper-append-to-body="false"
+ style="width: 173px"
+ >
+ <el-option
+ v-for="item in channel_option"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ ></el-option>
+ </el-select>
+ <div class="channel">
+ 褰撳墠杩炴帴閫氶亾锛�<span class="channelCount">{{ channelCount }}</span>
+ </div>
</div>
</el-form-item>
@@ -135,8 +139,12 @@
async getList() {
const res = await getLora();
console.log(res);
+ this.loraForm = res.data;
},
async saveList() {
+ // this.loraForm.powerRate = `${this.loraForm.powerRate}`;
+ this.loraForm.hz = `${this.loraForm.hz}`;
+ // this.loraForm.workMode = `${this.loraForm.workMode}`;
const res = await saveLora(this.loraForm);
console.log(res);
},
@@ -149,8 +157,17 @@
.lora-gateway {
display: flex;
flex-direction: column;
+
.block {
margin-top: 16px;
+
+ .el-form-item__content {
+ justify-content: space-between;
+
+ .right {
+ display: flex;
+ }
+ }
}
.channel-sele {
.el-select {
@@ -158,5 +175,20 @@
margin-left: 88px;
}
}
+
+ .el-radio-group {
+ text-align: right;
+ }
+
+ .el-form-item ::v-deep .el-form-item__content::before {
+ display: none;
+ }
+
+ .el-form-item ::v-deep .el-form-item__content::after {
+ display: none;
+ }
}
+</style>
+
+<style>
</style>
\ No newline at end of file
--
Gitblit v1.8.0