设备点检
This commit is contained in:
@@ -66,11 +66,17 @@
|
|||||||
/** 获取设备下拉框 */
|
/** 获取设备下拉框 */
|
||||||
async _deviceInfo () {
|
async _deviceInfo () {
|
||||||
let res = await deviceInfo()
|
let res = await deviceInfo()
|
||||||
|
res.map(el => {
|
||||||
|
this.$set(el, 'text', el.label)
|
||||||
|
})
|
||||||
this.options1 = [...res]
|
this.options1 = [...res]
|
||||||
},
|
},
|
||||||
/** 获取设备状态下拉框 */
|
/** 获取设备状态下拉框 */
|
||||||
async _deviceStatus () {
|
async _deviceStatus () {
|
||||||
let res = await deviceStatus()
|
let res = await deviceStatus()
|
||||||
|
res.map(el => {
|
||||||
|
this.$set(el, 'text', el.label)
|
||||||
|
})
|
||||||
this.options2 = [...res]
|
this.options2 = [...res]
|
||||||
},
|
},
|
||||||
/** 确定 */
|
/** 确定 */
|
||||||
|
|||||||
Reference in New Issue
Block a user