Commit b3a2b420 by 张杰

修复bug

1 parent 2af2a121
......@@ -86,7 +86,7 @@
</el-form-item>
<template v-if="type == 4 || type == 3">
<span class="device_tips" :class="!item.checkResult?'cred':''" v-if="item.sn">{{item.checkResult?'验证通过':'验证不通过'}}</span>
<el-button type="primary" size="mini" class="el_btn" @click="lookLocation(item,index)">查看定位</el-button>
<el-button type="primary" size="mini" class="el_btn" :loading="gpsloading" @click="lookLocation(item,index)">查看定位</el-button>
</template>
</div>
<div class="map_wrapper" :key="`map_${index}`" v-if="item.showMap">
......@@ -241,7 +241,9 @@ export default {
devices: [{ sn: value }],
workOrderId: _this.editForm.id,
};
_this.gpsloading = true
VERIFY_WORKORDER_INFO(oParams).then((res) => {
_this.gpsloading = false
if (res.code == 200) {
console.log(res);
let m = _this.editForm.snList;
......@@ -262,6 +264,7 @@ export default {
// });
cb();
} else {
_this.gpsloading = false
cb(new Error(res.message));
}
});
......@@ -387,6 +390,7 @@ export default {
formRules: {},
logList: [],
isDisabled: false,
gpsloading:false
};
},
watch: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!