Commit b3a2b420 by 张杰

修复bug

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