import{r,w as l}from"./framework.e8f655c8.js";import{g as c}from"./vite.9cbfda8c.js";import{T as v}from"./index.cbb1fad3.js";import{c as p}from"./cloneDeep.65307636.js";import{p as u}from"./provMinxin.8373dd4a.js";import{n as _}from"./index.8c202964.js";const g={name:"baseImgList",props:["tableData"],mixins:[u],components:{ToolTip:v},setup(n){let t=r([]);l(()=>n.tableData,e=>{t.value=p(e).map(o=>(o.hover=!1,o))},{immediate:!0});function s(e){e.hover=!0}function a(e){e.hover=!1}function i(e){let o={identifier:e.identifier,sourceId:e.sourceId};this.$router.push({path:"/home/chart-detail",query:o})}return{data:t,imgMoveIn:s,imgMoveOut:a,getImgUrl:c,goMoreUrl:i}}};var m=function(){var t=this,s=t._self._c;return s("div",{staticClass:"imgList"},[t.tableData&&t.tableData.length?s("ul",{staticClass:"imgListUl"},t._l(t.data,function(a){return s("li",{staticClass:"imgListLi",on:{click:function(i){return t.goMoreUrl(a)},mouseenter:function(i){return t.imgMoveIn(a)},mouseleave:function(i){return t.imgMoveOut(a)}}},[a.hover?s("div",{staticClass:"imgBoxMoveOut"},[s("div",{staticClass:"imgBoxMoveItem"},[s("span",{staticClass:"label"},[t._v("\u56FE\u8868\u51FA\u5904")]),s("span",{staticClass:"provenance value",on:{click:function(i){return i.stopPropagation(),t.provUrl(a.sourceId)}}},[t._v(t._s(a.sourceName))])]),s("div",{staticClass:"imgBoxMoveItem"},[s("span",{staticClass:"label"},[t._v("\u5206\xA0\u7C7B\xA0\u53F7")]),s("span",{staticClass:"value"},[t._v(t._s(a.classification))])]),s("div",{staticClass:"imgBoxMoveItem"},[s("span",{staticClass:"label"},[t._v("\u5173\xA0\u952E\xA0\u8BCD")]),s("span",{staticClass:"value",domProps:{innerHTML:t._s(a.keyword_highlight?a.keyword_highlight:a.keyword?a.keyword:"\u4E0D\u8BE6")}})])]):s("div",{staticClass:"imgBox"},[a.filePath?s("img",{staticClass:"img",attrs:{src:t.getImgUrl(a.filePath+"/"+a.endFileName),alt:""}}):t._e()]),s("div",{staticClass:"imgType"},[s("span",[t._v("\u7C7B\u578B")]),s("span",{domProps:{innerHTML:t._s(a.type_highlight?a.type_highlight:a.type?a.type:"\u4E0D\u8BE6")}})]),s("div",{staticClass:"imgName"},[s("tool-tip",{attrs:{value:a.title,length:"18"}})],1)])}),0):s("div",{staticClass:"noData",staticStyle:{"padding-left":"30px"}},[t._v("\u6682\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u4FE1\u606F")])])},d=[],f=_(g,m,d,!1,null,"a9be77ae",null,null);const x=f.exports;export{x as B};
