Browse Source

增加4G

master
lihua 5 years ago
parent
commit
0903e37ef3
  1. 17
      src/view/gateway-config/index.vue
  2. 4
      src/view/single-page/home/home.vue

17
src/view/gateway-config/index.vue

@ -50,16 +50,17 @@
</Select>
</div>
</Col>
<!-- <Col span="8">
</Row>
<Row>
<Col span="8" v-if="info.lte_enable !== undefined">
<div class="switch-4g">
<div class="switch-4g-label">GPS</div>
true-value="1" true-false="0"
<i-switch size="large" v-model="info.gps_enable" :true-value="1" :true-false="0">
<div class="switch-4g-label">4G使能</div>
<i-switch size="large" v-model="info.lte_enable" :true-value="true" :true-false="false">
<span slot="open">开启</span>
<span slot="close">关闭</span>
</i-switch>
</div>
</Col> -->
</Col>
</Row>
<!-- <Row :gutter="10">
<Col span="8">
@ -71,12 +72,12 @@
</i-switch>
</div>
</Col>
</Row> -->
</Row>
<Row :gutter="10" v-show="info.wifi">
<Col span="8">
<div class="switch-4g">
<div class="switch-4g-label">WIFI是否使能</div>
<!-- true-value="1" true-false="0" -->
true-value="1" true-false="0"
<i-switch size="large" v-model="info.wifi_enable" :true-value="1" :true-false="0">
<span slot="open">开启</span>
<span slot="close">关闭</span>
@ -96,7 +97,7 @@
<p slot="prepend" style="width: 120px">wifi密码</p>
</Input>
</Col>
</Row>
</Row>-->
</Card>
<!-- 通信配置 -->
<Card>

4
src/view/single-page/home/home.vue

@ -11,7 +11,7 @@
</infor-card>
</Col>
</Row>
<!-- <Alert type="warning" show-icon>数据统计</Alert>
<Alert type="warning" show-icon>数据统计</Alert>
<Row :gutter="10">
<Spin size="large" fix v-if="loading"></Spin>
<Col :span="8" v-for="(infor, i) in inforCardData.slice(3, inforCardData.length)" :key="`infor-${i}`" style="height: 120px;padding-bottom: 10px;">
@ -20,7 +20,7 @@
<p>{{ infor.title }}</p>
</infor-card>
</Col>
</Row> -->
</Row>
<Button :loading="loading" type="success" shape="circle" @click="getGateway" icon="md-refresh" style="margin-bottom: 10px"></Button>
<!-- <Row :gutter="20" style="margin-top: 10px;">
<i-col :md="24" :lg="8" style="margin-bottom: 20px;">

Loading…
Cancel
Save