| | |
| | | <div class="ok" @click="saveWire">保存</div>
|
| | | </div>
|
| | | </div>
|
| | | <WifiGateway v-if="activePage == 3"></WifiGateway>
|
| | | <LoraGateway v-if="activePage == 4"></LoraGateway>
|
| | | <MqttGateway v-if="activePage == 5"></MqttGateway>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | import ipInput from "../components/IPInput";
|
| | | import switchBar from "../components/switchBar";
|
| | |
|
| | | import WifiGateway from '../components/WifiGateway'
|
| | | import LoraGateway from '../components/LoraGateway'
|
| | | import MqttGateway from '../components/MqttGateway'
|
| | |
|
| | | export default {
|
| | | components: {
|
| | | ipInput,
|
| | | switchBar,
|
| | | WifiGateway,
|
| | | LoraGateway,
|
| | | MqttGateway
|
| | | },
|
| | | data() {
|
| | | const checkPwd = (rule, value, callback) => {
|
| | |
| | | { name: "网络设置", icon: "\ue6dd" },
|
| | | { name: "无线网络", icon: "\uea13" },
|
| | | { name: "有线网络", icon: "\ue73b" },
|
| | | { name: "WiFi网关", icon: "\ue73b" },
|
| | | { name: "LORA网关", icon: "\ue73b" },
|
| | | { name: "MQTT网关", icon: "\ue73b" },
|
| | | ],
|
| | | ipv6FormRules: {},
|
| | | options: [
|
| | |
| | | IPV4_hid: false,
|
| | | IPV6_hid: false
|
| | | };
|
| | | },
|
| | | components: {
|
| | | ipInput,
|
| | | switchBar,
|
| | | },
|
| | | mounted() {
|
| | | this.getCurServer();
|
| | |
| | | width: 100%;
|
| | | }
|
| | | .wire{
|
| | | width: 460px;
|
| | | width: 456px;
|
| | | margin: 0 auto;
|
| | | }
|
| | | .wire-detail {
|
| | | width: 460px;
|
| | | width: 456px;
|
| | | margin: 0 auto;
|
| | | .title {
|
| | | font-size: 16px;
|
| | |
| | | }
|
| | | }
|
| | | .net-set {
|
| | | max-width: 600px;
|
| | | max-width: 456px;
|
| | | margin: 0 auto;
|
| | | .title {
|
| | | font-size: 16px;
|
| | |
| | | padding: 10px;
|
| | | padding-top: 6px;
|
| | | border-top: 4px solid #f2f2f7;
|
| | | overflow-y: overlay;
|
| | |
|
| | | .title {
|
| | | height: 48px;
|
| | | font-size: 16px;
|
| | |
| | | color: #4F4F4F;
|
| | | font-weight: bold; background: #F2F2F7;
|
| | | border-radius: 8px;
|
| | | margin-bottom: 10px;
|
| | | margin-bottom: 4px;
|
| | | }
|
| | | .el-form-item.is-required:not(.is-no-asterisk)
|
| | | > .el-form-item__label:before,
|
| | |
| | | width: 100%;
|
| | | }
|
| | | .el-form-item {
|
| | | margin-bottom: 16px;
|
| | | margin-bottom: 4px;
|
| | | }
|
| | | .el-form-item__content {
|
| | | line-height: 48px;
|
| | |
| | | max-width: none !important;
|
| | | }
|
| | | .wifi-set {
|
| | | max-width: 600px;
|
| | | max-width: 456px;
|
| | | margin: 0 auto;
|
| | | .switch-bar {
|
| | | background: #f2f2f7;
|
| | |
| | | align-items: center;
|
| | | box-sizing: border-box;
|
| | | padding: 0 20px;
|
| | | margin-bottom: 10px;
|
| | | margin-bottom: 4px;
|
| | | background: #f2f2f7;
|
| | | border-radius: 8px;
|
| | | .name {
|
| | |
| | | align-items: center;
|
| | | box-sizing: border-box;
|
| | | padding: 0 20px;
|
| | | margin-bottom: 10px;
|
| | | margin-bottom: 4px;
|
| | | border-radius: 8px;
|
| | | .name {
|
| | | font-size: 15px;
|