| | |
| | | )" |
| | | :key="lix" |
| | | > |
| | | <div class="icon-box"> |
| | | <div class="icon-box" @click="clickHref(v)"> |
| | | <div> |
| | | <img :src="getIconByExtension(v.doc_name)" alt="" /> |
| | | </div> |
| | |
| | | data.forEach((item) => { |
| | | if (Object.keys(item).length !== 0 && item?.doc_aggs.length > 0) { |
| | | dataItem = item.doc_aggs; |
| | | console.log(dataItem, 999); |
| | | } |
| | | }); |
| | | } |
| | |
| | | } |
| | | |
| | | return dataItem; |
| | | }; |
| | | |
| | | const clickHref = (item) => { |
| | | return Message.warning('暂无法查看'); |
| | | window.open(`/api/v1/document/get/${item.doc_id}`, '_blank'); |
| | | }; |
| | | |
| | | const getIconByExtension = computed(() => (extension) => { |
| | |
| | | padding: 10px; |
| | | border-radius: 14px; |
| | | min-width: 200px; |
| | | cursor: pointer; |
| | | .icon-text { |
| | | margin-left: 10px; |
| | | } |