pull/143/head
parent
43b8d2b507
commit
0e40f6be62
|
@ -51,7 +51,7 @@
|
||||||
<input type="text" v-model="nowData.deviceId" placeholder="请输入设备code码">
|
<input type="text" v-model="nowData.deviceId" placeholder="请输入设备code码">
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="manage-input-sel">
|
<div class="manage-input-sel">
|
||||||
<div class="input-title">关联气象站设备code码</div>
|
<div class="input-title">设备code码</div>
|
||||||
<el-dropdown @command="handleCommand">
|
<el-dropdown @command="handleCommand">
|
||||||
<div class="el-dropdown-link">
|
<div class="el-dropdown-link">
|
||||||
<input v-model="nowData.deviceId" type="text" class="input-input" placeholder="请选择气象站设备code码">
|
<input v-model="nowData.deviceId" type="text" class="input-input" placeholder="请选择气象站设备code码">
|
||||||
|
@ -113,9 +113,10 @@ export default {
|
||||||
dataInit() {
|
dataInit() {
|
||||||
var user = JSON.parse(localStorage.getItem('userInfo'))
|
var user = JSON.parse(localStorage.getItem('userInfo'))
|
||||||
this.api.selUserbyid(user.userid).then(res => {
|
this.api.selUserbyid(user.userid).then(res => {
|
||||||
|
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
this.tableData = res.data.data.bigDataControls
|
this.tableData = res.data.data.bigDataControls
|
||||||
|
this.typeSelList=[]
|
||||||
res.data.data.devices.forEach((el, index) => {
|
res.data.data.devices.forEach((el, index) => {
|
||||||
if (el.deviceName == 10) {
|
if (el.deviceName == 10) {
|
||||||
this.typeSelList.push(el)
|
this.typeSelList.push(el)
|
||||||
|
|
|
@ -94,9 +94,10 @@ export default {
|
||||||
|
|
||||||
var user = JSON.parse(localStorage.getItem('userInfo'))
|
var user = JSON.parse(localStorage.getItem('userInfo'))
|
||||||
this.api.selUserbyid(user.userid).then(res => {
|
this.api.selUserbyid(user.userid).then(res => {
|
||||||
this.typeSelList=[]
|
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
this.tableData = res.data.data.equipments
|
this.tableData = res.data.data.equipments
|
||||||
|
this.typeSelList=[]
|
||||||
res.data.data.devices.forEach((el,index)=>{
|
res.data.data.devices.forEach((el,index)=>{
|
||||||
if(el.deviceName==10){
|
if(el.deviceName==10){
|
||||||
this.typeSelList.push(el)
|
this.typeSelList.push(el)
|
||||||
|
|
Loading…
Reference in New Issue