|
|
@@ -310,7 +310,7 @@
|
|
|
<!-- 查看大图 -->
|
|
|
|
|
|
<!-- 测试 -->
|
|
|
- <ul class="newImgOperation" style="display: flex" id="iconBox" v-show="iconShow">
|
|
|
+ <!-- <ul class="newImgOperation" style="display: flex;" id="iconBox" v-show="iconShow"> -->
|
|
|
<!-- <li @click="discernFun()" v-if="disable == 1">
|
|
|
<img src="../../../../static/images/cbdPicture/2.png" alt="" />
|
|
|
<span>识别统计</span>
|
|
|
@@ -319,23 +319,23 @@
|
|
|
<img src="../../../../static/images/cbdPicture/4.png" alt="" />
|
|
|
<span>手动标注</span>
|
|
|
</li> -->
|
|
|
- <li @click="handAddFun()">
|
|
|
+ <!-- <li @click="handAddFun()">
|
|
|
<img src="../../../../static/images/cbdPicture/6.png" alt="" />
|
|
|
<span>手动添加</span>
|
|
|
</li>
|
|
|
<li @click="handAddDataFun()">
|
|
|
<img src="../../../../static/images/cbdPicture/8.png" alt="" />
|
|
|
<span>手动统计</span>
|
|
|
- </li>
|
|
|
- <li v-if="iconIf" @click="openGridding()">
|
|
|
+ </li> -->
|
|
|
+ <!-- <li v-if="iconIf" @click="openGridding()">
|
|
|
<img id="iconDom" class="icon1" src="../../../../static/images/cbdPicture/10.png" alt="" />
|
|
|
<span>网格显示</span>
|
|
|
</li>
|
|
|
<li v-else @click="offGridding()">
|
|
|
<img id="iconDom" class="icon2" src="../../../../static/images/cbdPicture/10.png" alt="" />
|
|
|
<span>网格显示</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ </li> -->
|
|
|
+ <!-- </ul> -->
|
|
|
<!-- 测试 -->
|
|
|
|
|
|
<div id="reseau"></div>
|
|
|
@@ -1157,7 +1157,9 @@ export default {
|
|
|
if (flag == 1) {
|
|
|
this.$refs.timeCirculation.num = 1; // 改变子组件data中的num值,以免造成一直重复请求消耗内存
|
|
|
this.imgListData(); //图片列表数据请求
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.success("图片刷新成功");
|
|
|
+ }
|
|
|
}
|
|
|
if (flag == 2) {
|
|
|
//批量删除
|
|
|
@@ -1171,7 +1173,9 @@ export default {
|
|
|
if (flag == 3) {
|
|
|
//删除
|
|
|
if (this.idList.length == 0) {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.warning("请选择要删除的图片!");
|
|
|
+ }
|
|
|
} else {
|
|
|
this.delImgFun(this.idList);
|
|
|
}
|
|
|
@@ -1262,7 +1266,9 @@ export default {
|
|
|
}),
|
|
|
}).then((res) => {
|
|
|
if (res.data.message == "") {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.success("指令下发成功!");
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1385,29 +1391,35 @@ export default {
|
|
|
return num;
|
|
|
});
|
|
|
this.pictureDetailsFunDataObj = obj;
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: "识别成功!",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ }
|
|
|
} else {
|
|
|
// 识别失败
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: res.data.message,
|
|
|
type: "warning",
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
that.loading = false;
|
|
|
console.log(err);
|
|
|
// 识别失败
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: "识别失败!",
|
|
|
type: "warning",
|
|
|
});
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -1482,18 +1494,22 @@ export default {
|
|
|
this.pictureDetailsFunDataObj = {};
|
|
|
this.pictureDetailsFunDataObj = obj;
|
|
|
// console.log(this.pictureDetailsFunDataObj.indentify_photo);
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: "识别成功!",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ }
|
|
|
} else {
|
|
|
// 识别失败
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: res.data.message,
|
|
|
type: "warning",
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -1547,7 +1563,9 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error("获取数据失败!");
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 手动控制弹框
|
|
|
@@ -1602,30 +1620,38 @@ export default {
|
|
|
var data = res.data.data;
|
|
|
if (data == true && res.data.message == "") {
|
|
|
//成功
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
message: "删除成功",
|
|
|
type: "success",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
// that.resetField('ruleForm')
|
|
|
that.statisticsData(that.addFunData.ids);
|
|
|
} else if (data == null && res.data.message !== "") {
|
|
|
//失败
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error({
|
|
|
message: res.data.message,
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error(err);
|
|
|
+ }
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
that.$message({
|
|
|
type: "info",
|
|
|
message: "已取消删除",
|
|
|
});
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
//图片列表数据请求
|
|
|
@@ -1751,11 +1777,13 @@ export default {
|
|
|
let that = this;
|
|
|
console.log(that.addFunData);
|
|
|
if (!this.form.pest_name || !this.form.pest_num) {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
message: "请将数据填写完整",
|
|
|
type: "error",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
return false;
|
|
|
}
|
|
|
if (that.tltName == "编辑") {
|
|
|
@@ -1779,20 +1807,24 @@ export default {
|
|
|
var data = res.data.data;
|
|
|
if (data == true && res.data.message == "") {
|
|
|
//成功
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
message: "修改成功",
|
|
|
type: "success",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
that.handAddVisible = false;
|
|
|
// that.resetField('ruleForm')
|
|
|
that.statisticsData(that.addFunData.ids);
|
|
|
} else if (data == null && res.data.message !== "") {
|
|
|
//失败
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error({
|
|
|
message: res.data.message,
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -1818,19 +1850,23 @@ export default {
|
|
|
var data = res.data.data;
|
|
|
if (data == true && res.data.message == "") {
|
|
|
//成功
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
message: "添加成功",
|
|
|
type: "success",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
that.handAddVisible = false;
|
|
|
that.resetField("ruleForm");
|
|
|
} else if (data == null && res.data.message !== "") {
|
|
|
//失败
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error({
|
|
|
message: res.data.message,
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -1849,10 +1885,12 @@ export default {
|
|
|
let that = this;
|
|
|
//判断值是否为空
|
|
|
if (that.selectItem == "") {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error({
|
|
|
message: "害虫名称不能为空!!",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
} else if (that.selectItem !== "") {
|
|
|
let postData = that.qs.stringify({
|
|
|
ret: "add_pest",
|
|
|
@@ -1869,16 +1907,20 @@ export default {
|
|
|
var data = res.data.data;
|
|
|
if (data !== null && res.data.message == "") {
|
|
|
that.selectItem = "";
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
message: "添加成功",
|
|
|
type: "success",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
} else if (data == null && res.data.message !== "") {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error({
|
|
|
message: res.data.message,
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -1926,18 +1968,22 @@ export default {
|
|
|
.then((res) => {
|
|
|
var data = res.data.data;
|
|
|
if (data && res.data.message == "") {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
message: "删除成功",
|
|
|
type: "success",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
that.handAddState = 1;
|
|
|
that.getBack(); //重新请求害虫名称数据
|
|
|
} else if (data == null && res.data.message == "删除失败") {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error({
|
|
|
message: "删除失败",
|
|
|
duration: 1500,
|
|
|
});
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
@@ -1998,20 +2044,24 @@ export default {
|
|
|
}),
|
|
|
}).then((res) => {
|
|
|
if (res.data.message == "") {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
message: "删除成功!",
|
|
|
});
|
|
|
+ }
|
|
|
this.equipStatusCheck("4");
|
|
|
this.imgListData(); //图片列表数据请求
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message({
|
|
|
type: "info",
|
|
|
message: "已取消删除",
|
|
|
});
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
//返回上一页
|
|
|
@@ -2200,7 +2250,9 @@ export default {
|
|
|
console.log(this.imgDataList[0].name);
|
|
|
let that = this;
|
|
|
let id = that.$route.query.id;
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.success("图片下载中!");
|
|
|
+ }
|
|
|
var idList = JSON.stringify(id_list.length == 0 ? "" : id_list);
|
|
|
var timeList = JSON.stringify(time_list.length == 0 ? "" : time_list);
|
|
|
var file_path = "";
|
|
|
@@ -2295,7 +2347,9 @@ export default {
|
|
|
// this.renderData(JSON.parse(this.addFunData.mark));
|
|
|
});
|
|
|
} else {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.warning(res.data.message);
|
|
|
+ }
|
|
|
this.currentImage =
|
|
|
this.pictureDetailsFunDataObj.indentify_photo ||
|
|
|
this.pictureDetailsFunDataObj.addr;
|
|
|
@@ -2351,12 +2405,16 @@ export default {
|
|
|
}),
|
|
|
}).then((res) => {
|
|
|
if (res.data.data) {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.success("提交成功!");
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
this.renderData(JSON.parse(res.data.data));
|
|
|
});
|
|
|
} else {
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.warning(res.data.message);
|
|
|
+ }
|
|
|
}
|
|
|
this.pictureDetailsFunDataObj.indentify_photo = "";
|
|
|
this.pictureDetails = false
|
|
|
@@ -2390,7 +2448,9 @@ export default {
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err);
|
|
|
+ if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
this.$message.error("操作失败,请重试!");
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -3371,12 +3431,12 @@ table {
|
|
|
position: absolute;
|
|
|
bottom: 2.2%;
|
|
|
// right: 6.9rem;
|
|
|
- right: 28%;
|
|
|
- width: 42%;
|
|
|
+ left: 28%;
|
|
|
+ width: 10%;
|
|
|
color: #fff;
|
|
|
li {
|
|
|
border-right: 1px solid #fff;
|
|
|
- width: 15%;
|
|
|
+ width: 100%;
|
|
|
// border: 1px solid rgb(248, 123, 123);
|
|
|
img {
|
|
|
width: 20px;
|