diff --git a/src/views/index.vue b/src/views/index.vue
index f0e2681..0def8ca 100755
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1580,7 +1580,11 @@
item, index
) in scope.row.picturesMark2O1List.reduce(
(pre, cur) => {
- if (!pre.some(item => item.pestName === cur.pestName)) {
+ if (
+ !pre.some(
+ (item) => item.pestName === cur.pestName
+ )
+ ) {
pre.push({
pestName: cur.pestName,
bhName: cur.bhName,
@@ -2326,6 +2330,7 @@
width="35%"
:before-close="handleClose"
draggable
+ destroy-on-close
>
@@ -2422,7 +2427,7 @@
+
+
+
+
{
const onDetail = (row) => {
DetailVisible.value = true;
DetailArr.value = row;
+
+ console.log(row.picturePath, label3.value);
+
if (label3.value == "虫情监测仪") {
DetailArr["pestName"] = row.picturesMark2O1List[0].pestName;
+ } else if (label3.value == "智能孢子仪") {
+ const img = new Image();
+ img.src = row.picturePath;
+
+ console.log(row.picturePath);
+
+ img.onload = function () {
+ // 图片加载完成,获取图片的宽高
+ imgSize.width = img.naturalWidth;
+ imgSize.height = img.naturalHeight;
+ };
+
+ img.onerror = function () {
+ console.error("图片加载失败");
+ };
}
};
@@ -6590,6 +6652,13 @@ getList();