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

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

@ -11,7 +11,7 @@
</infor-card> </infor-card>
</Col> </Col>
</Row> </Row>
<!-- <Alert type="warning" show-icon>数据统计</Alert> <Alert type="warning" show-icon>数据统计</Alert>
<Row :gutter="10"> <Row :gutter="10">
<Spin size="large" fix v-if="loading"></Spin> <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;"> <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> <p>{{ infor.title }}</p>
</infor-card> </infor-card>
</Col> </Col>
</Row> --> </Row>
<Button :loading="loading" type="success" shape="circle" @click="getGateway" icon="md-refresh" style="margin-bottom: 10px"></Button> <Button :loading="loading" type="success" shape="circle" @click="getGateway" icon="md-refresh" style="margin-bottom: 10px"></Button>
<!-- <Row :gutter="20" style="margin-top: 10px;"> <!-- <Row :gutter="20" style="margin-top: 10px;">
<i-col :md="24" :lg="8" style="margin-bottom: 20px;"> <i-col :md="24" :lg="8" style="margin-bottom: 20px;">

Loading…
Cancel
Save