This commit is contained in:
parent
8a873a776a
commit
a0feaea59f
|
|
@ -45,7 +45,7 @@
|
|||
<uni-forms-item label="设备编码:" name="maCode">
|
||||
<text style="height: 100%;display: flex;align-items: center;">{{ codeData.maCode }}</text>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="设备状态:" name="maStatus" v-if="codeData.manageType!=1">
|
||||
<uni-forms-item label="设备状态:" name="maStatus" v-if="codeData.maStatus">
|
||||
<text style="height: 100%;display: flex;align-items: center;">{{ codeData.maStatus }}</text>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="本次检修时间:" name="thisCheckTime">
|
||||
|
|
@ -309,13 +309,14 @@ export default {
|
|||
|
||||
// 标签改变
|
||||
async changeTag() {
|
||||
const selectedOption = this.optionList.find(option => option.value === this.queryCodeParams.maId)
|
||||
const selectedOption = this.optionList.find(option => option.value == this.queryCodeParams.maId)
|
||||
console.log('🚀 ~ changeTag ~ selectedOption:', selectedOption)
|
||||
if (!this.queryCodeParams.maId) return;
|
||||
try {
|
||||
const response = await getDeviceListAPINew({'maId': this.queryCodeParams.maId, devType: selectedOption.devType})
|
||||
if (response.data && response.data.length !== 0) {
|
||||
this.codeData = response.data[0]
|
||||
this.codeData.devType = selectedOption.devType
|
||||
setTimeout(() => {
|
||||
this.handleIsOverToday()
|
||||
}, 500)
|
||||
|
|
|
|||
Loading…
Reference in New Issue