|
|
@@ -63,9 +63,7 @@
|
|
|
@click="selectEquip(item.device_id, item.jktype, index)"
|
|
|
>
|
|
|
<p class="dot">
|
|
|
- <span
|
|
|
- :class="item.status == 1 ? 'onLine' : 'outLine'"
|
|
|
- ></span>
|
|
|
+ <span :class="item.status == 1 ? 'onLine' : 'outLine'"></span>
|
|
|
</p>
|
|
|
<!-- <span :title="item.device_id + (item.device_name !== '' ? item.device_name : '暂无设备名称')">{{ item | formatName }}</span> -->
|
|
|
<!-- <span
|
|
|
@@ -76,14 +74,10 @@
|
|
|
>{{ item | formatName }}</span
|
|
|
> -->
|
|
|
<div class="nameandid">
|
|
|
- <p>{{ item.device_name== ''?"暂无":item.device_name }}</p>
|
|
|
+ <p>{{ item.device_name == "" ? "暂无" : item.device_name }}</p>
|
|
|
<p>{{ item.device_id }}</p>
|
|
|
</div>
|
|
|
- <span
|
|
|
- @click.stop="monset(item)"
|
|
|
- class="viewPhoto"
|
|
|
- >设置</span
|
|
|
- >
|
|
|
+ <span @click.stop="monset(item)" class="viewPhoto">设置</span>
|
|
|
<span
|
|
|
@click.stop="viewPhoto(item.device_id)"
|
|
|
class="viewPhoto"
|
|
|
@@ -644,9 +638,9 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
- title="测报灯设置"
|
|
|
+ title="监控设置"
|
|
|
:visible.sync="operationDialogVisible"
|
|
|
- width="30%"
|
|
|
+ width="580px"
|
|
|
:close-on-click-modal="false"
|
|
|
:close-on-press-escape="false"
|
|
|
>
|
|
|
@@ -981,7 +975,7 @@ export default {
|
|
|
VideoList: [], // 视频直播列表
|
|
|
loading: false,
|
|
|
//监控设置属性
|
|
|
- operationDialogVisible:false,
|
|
|
+ operationDialogVisible: false,
|
|
|
versionsoptions: [], //组织
|
|
|
traponsoptions: [], //监测点
|
|
|
defaultParams: {
|
|
|
@@ -998,8 +992,8 @@ export default {
|
|
|
point_id: "",
|
|
|
lng: "",
|
|
|
lat: "",
|
|
|
- device_name:"",
|
|
|
- device_id:"",
|
|
|
+ device_name: "",
|
|
|
+ device_id: "",
|
|
|
},
|
|
|
rules: {
|
|
|
device_name: [
|
|
|
@@ -1067,7 +1061,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getmon()
|
|
|
+ this.getmon();
|
|
|
if (this.$route.query.id !== undefined) {
|
|
|
this.idName = this.$route.query.id;
|
|
|
}
|
|
|
@@ -1084,42 +1078,42 @@ export default {
|
|
|
viewPhoto(id) {
|
|
|
this.$router.push("/index/photoView/" + id);
|
|
|
},
|
|
|
- monset(e){
|
|
|
- console.log(e)
|
|
|
-
|
|
|
+ monset(e) {
|
|
|
+ console.log(e);
|
|
|
+
|
|
|
// this.ruleForm.device_id = item.device_id
|
|
|
// this.ruleForm.device_name = item.device_name
|
|
|
for (var key in this.ruleForm) {
|
|
|
this.ruleForm[key] = e[key];
|
|
|
}
|
|
|
this.ruleForm.org_id = [];
|
|
|
- for (var i = 0; i < e.temp_org_list.length; i++) {
|
|
|
- var arr = [e.temp_org_list[i].org_id];
|
|
|
- this.ruleForm.org_id.push(arr);
|
|
|
- }
|
|
|
- this.getmon3(e.d_id)
|
|
|
+ this.getmon3(e.d_id);
|
|
|
},
|
|
|
- getmon3(trap_id) {
|
|
|
+ getmon3(e) {
|
|
|
this.$axios({
|
|
|
method: "POST",
|
|
|
url: "/api/api_gateway?method=sysmenage.usermanager.get_parent_org_list;",
|
|
|
data: this.qs.stringify({
|
|
|
- device_id: trap_id,
|
|
|
+ device_id: e.d_id,
|
|
|
}),
|
|
|
}).then((res) => {
|
|
|
// console.log(res.data.data);
|
|
|
- var orgdatas = res.data.data
|
|
|
+ var orgdatas = res.data.data;
|
|
|
+ for (var i = 0; i < e.temp_org_list.length; i++) {
|
|
|
+ var arr = [e.temp_org_list[i].org_id];
|
|
|
+ this.ruleForm.org_id.push(arr);
|
|
|
+ }
|
|
|
if (orgdatas.length != 0) {
|
|
|
- for(var i=0;i<orgdatas.length;i++){
|
|
|
- if(orgdatas[i].lenngth!=0){
|
|
|
- for(var j=0;j<orgdatas[i].length;j++){
|
|
|
- this.ruleForm.org_id[i].unshift(orgdatas[i][j].org_id)
|
|
|
+ for (var i = 0; i < orgdatas.length; i++) {
|
|
|
+ if (orgdatas[i].lenngth != 0) {
|
|
|
+ for (var j = 0; j < orgdatas[i].length; j++) {
|
|
|
+ this.ruleForm.org_id[i].unshift(orgdatas[i][j].org_id);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.ruleForm.org_id)
|
|
|
- this.operationDialogVisible = true
|
|
|
+ console.log(this.ruleForm.org_id);
|
|
|
+ this.operationDialogVisible = true;
|
|
|
});
|
|
|
},
|
|
|
//获取视频列表
|
|
|
@@ -1199,7 +1193,7 @@ export default {
|
|
|
this.takePhotoDialogVisible = true;
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message.error(data.msg);
|
|
|
+ this.$message.error(data.msg);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -1237,11 +1231,11 @@ export default {
|
|
|
this.takePhotoDialogVisible = true;
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: res.data.message,
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: res.data.message,
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -1332,27 +1326,27 @@ export default {
|
|
|
addConfirm() {
|
|
|
if (this.equipmentID == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "设备ID不能为空",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "设备ID不能为空",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.equipmentNumber == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "通道号不能为空",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "通道号不能为空",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.FluoriteClouduserID == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "萤石云账号ID不能为空",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "萤石云账号ID不能为空",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.equipmentID !== "" && this.equipmentNumber !== "") {
|
|
|
this.$axios({
|
|
|
@@ -1368,11 +1362,11 @@ export default {
|
|
|
if (res.data.message == "") {
|
|
|
console.log(456);
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "添加成功",
|
|
|
- type: "success",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "添加成功",
|
|
|
+ type: "success",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
this.equipmentID = "";
|
|
|
this.equipmentNumber = "";
|
|
|
@@ -1419,19 +1413,19 @@ export default {
|
|
|
console.log(this.bangDsimoptions);
|
|
|
if (this.bangDsimId == null) {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "设备ID不能为空",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "设备ID不能为空",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.equipmentValue == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "iccid不能为空",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "iccid不能为空",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.bangDsimId !== "" && this.equipmentValue !== "") {
|
|
|
this.$axios({
|
|
|
@@ -1446,11 +1440,11 @@ export default {
|
|
|
console.log(res);
|
|
|
if (res.data.data == true) {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "sim卡绑定成功",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "sim卡绑定成功",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
this.bangDsimId = "";
|
|
|
this.equipmentValue = "";
|
|
|
@@ -1458,22 +1452,22 @@ export default {
|
|
|
this.addEquipmentA = false;
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "error",
|
|
|
- message: res.data.message,
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: res.data.message,
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "error",
|
|
|
- message: "sim卡绑定失败",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "sim卡绑定失败",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1487,10 +1481,10 @@ export default {
|
|
|
this.equipmentValue = "";
|
|
|
this.playback = false;
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "info",
|
|
|
- message: "取消添加",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "取消添加",
|
|
|
+ });
|
|
|
}
|
|
|
this.input3 = "";
|
|
|
},
|
|
|
@@ -1656,10 +1650,10 @@ export default {
|
|
|
addEquipmentBfirm() {
|
|
|
if (this.equipmentValue == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "info",
|
|
|
- message: "请输入正确的iccid",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "请输入正确的iccid",
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
var postData = this.qs.stringify({
|
|
|
@@ -1700,10 +1694,10 @@ export default {
|
|
|
this.sim.deviceStatus = a;
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "info",
|
|
|
- message: "查询失败",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "查询失败",
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
this.simCodeVisible = true;
|
|
|
@@ -1747,28 +1741,30 @@ export default {
|
|
|
};
|
|
|
console.log(this.sim);
|
|
|
} else {
|
|
|
- if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "info",
|
|
|
- message: "查询失败",
|
|
|
- });
|
|
|
+ if (
|
|
|
+ document.getElementsByClassName("el-message").length == 0
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "查询失败",
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "info",
|
|
|
- message: "查询失败",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "查询失败",
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
this.simCodeVisible = true;
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- type: "info",
|
|
|
- message: "暂无查询数据",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "暂无查询数据",
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1799,43 +1795,43 @@ export default {
|
|
|
FluoriteClouduserAdd() {
|
|
|
if (this.FluoriteClouduser == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "萤石云账号不能为空,请填写!",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "萤石云账号不能为空,请填写!",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.salesman == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "业务员不能为空,请填写!",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "业务员不能为空,请填写!",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.tokenData == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "token不能为空,请填写!",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "token不能为空,请填写!",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.secretKey == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "appkey不能为空,请填写!",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "appkey不能为空,请填写!",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else if (this.furtiveData == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "appSecret不能为空,请填写!",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "appSecret不能为空,请填写!",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
var postData = this.qs.stringify({
|
|
|
@@ -1854,31 +1850,31 @@ export default {
|
|
|
console.log(res);
|
|
|
if (res.data.data == true) {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "添加萤石云账号成功!",
|
|
|
- type: "success",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "添加萤石云账号成功!",
|
|
|
+ type: "success",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
this.addEquipment = false;
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "添加萤石云账号失败",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "添加萤石云账号失败",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "添加萤石云账号失败",
|
|
|
- type: "warning",
|
|
|
- duration: 1500,
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "添加萤石云账号失败",
|
|
|
+ type: "warning",
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1937,10 +1933,10 @@ export default {
|
|
|
this.equipmentValue = this.bangDsimoptions[e].iccid;
|
|
|
if (this.bangDsimoptions[e].iccid == "") {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "该设备尚未绑定sim卡!",
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "该设备尚未绑定sim卡!",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -1966,9 +1962,9 @@ export default {
|
|
|
org_id: org_id, // 非必传(num) 诱捕器id 修改项
|
|
|
point_id: this.ruleForm.point_id, // 必传(string) 设备编号
|
|
|
lat: this.ToDigital(this.ruleForm.lat), // 必传(string) 纬度
|
|
|
- lng: this.ToDigital(this.ruleForm.lng), //
|
|
|
- device_id:this.ruleForm.device_id,
|
|
|
- device_name:this.ruleForm.device_name,
|
|
|
+ lng: this.ToDigital(this.ruleForm.lng), //
|
|
|
+ device_id: this.ruleForm.device_id,
|
|
|
+ device_name: this.ruleForm.device_name,
|
|
|
}),
|
|
|
}).then((res) => {
|
|
|
console.log(res);
|
|
|
@@ -1981,30 +1977,30 @@ export default {
|
|
|
// message = "修改成功!";
|
|
|
// }
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- showClose: true,
|
|
|
- message: "设置成功",
|
|
|
- type: "success",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: "设置成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
}
|
|
|
this.operationDialogVisible = false;
|
|
|
this.getJkList();
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- showClose: true,
|
|
|
- message: "添加失败" + res.data.message,
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: "添加失败" + res.data.message,
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message({
|
|
|
- message: "请将信息填写完全",
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "请将信息填写完全",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -2022,9 +2018,9 @@ export default {
|
|
|
this.$axios({
|
|
|
method: "POST",
|
|
|
url: "/api/api_gateway?method=sysmenage.usermanager.org_list",
|
|
|
- data:this.qs.stringify({
|
|
|
+ data: this.qs.stringify({
|
|
|
page_item: "100000000",
|
|
|
- })
|
|
|
+ }),
|
|
|
}).then((res) => {
|
|
|
console.log(res.data.data);
|
|
|
this.versionsoptions = res.data.data.page_list; //组织
|
|
|
@@ -2072,7 +2068,7 @@ export default {
|
|
|
};
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message.error("根据地址查询位置失败");
|
|
|
+ this.$message.error("根据地址查询位置失败");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -2126,7 +2122,7 @@ export default {
|
|
|
marker.setMap(this.map);
|
|
|
} else {
|
|
|
if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
- this.$message.warning("请输入经纬度!");
|
|
|
+ this.$message.warning("请输入经纬度!");
|
|
|
}
|
|
|
// return fasle;
|
|
|
}
|
|
|
@@ -2148,7 +2144,7 @@ export default {
|
|
|
if (typeof val == "undefined" || val == "" || isNaN(val)) {
|
|
|
return val;
|
|
|
}
|
|
|
- val = val.toString()
|
|
|
+ val = val.toString();
|
|
|
var A = "";
|
|
|
if (type == "lng") {
|
|
|
A = val > 0 ? "E" : "W";
|
|
|
@@ -2180,15 +2176,15 @@ export default {
|
|
|
if (!isNaN(lnglat)) {
|
|
|
return lnglat;
|
|
|
}
|
|
|
- console.log(lnglat)
|
|
|
- lnglat = lnglat.toString()
|
|
|
- var strDu,strFen,strMiao;
|
|
|
- var duindex = lnglat.indexOf("°")//字符度的下标
|
|
|
- var fenindex = lnglat.indexOf("′")//字符分的下标
|
|
|
- var miaoindex = lnglat.indexOf("″")//字符秒的下标
|
|
|
- strDu = lnglat.slice(0,duindex)
|
|
|
- strFen = lnglat.slice(duindex+1,fenindex)
|
|
|
- strMiao = lnglat.slice(fenindex+1,miaoindex)
|
|
|
+ console.log(lnglat);
|
|
|
+ lnglat = lnglat.toString();
|
|
|
+ var strDu, strFen, strMiao;
|
|
|
+ var duindex = lnglat.indexOf("°"); //字符度的下标
|
|
|
+ var fenindex = lnglat.indexOf("′"); //字符分的下标
|
|
|
+ var miaoindex = lnglat.indexOf("″"); //字符秒的下标
|
|
|
+ strDu = lnglat.slice(0, duindex);
|
|
|
+ strFen = lnglat.slice(duindex + 1, fenindex);
|
|
|
+ strMiao = lnglat.slice(fenindex + 1, miaoindex);
|
|
|
// len = len > 6 || typeof len == "undefined" ? 6 : len; //精确到小数点后最多六位
|
|
|
strDu =
|
|
|
typeof strDu == "undefined" || strDu == "" ? 0 : parseFloat(strDu);
|
|
|
@@ -2548,7 +2544,7 @@ export default {
|
|
|
.buttonbox {
|
|
|
margin-bottom: 23px;
|
|
|
padding-left: 100px;
|
|
|
- /deep/.el-button{
|
|
|
+ /deep/.el-button {
|
|
|
background-color: #409eff;
|
|
|
border-color: #409eff;
|
|
|
}
|