diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs index 83ad28a..d19fc20 100644 --- a/electron.vite.config.mjs +++ b/electron.vite.config.mjs @@ -21,8 +21,8 @@ export default defineConfig({ server: { proxy: { '/dev-api': { - // target: 'http://27.128.240.72:7865', - target: 'http://192.168.2.52:7863', + target: 'http://27.128.240.72:7865', + // target: 'http://192.168.2.52:7863', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') }, diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index 5fcfe11..6f0ef3c 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 2794390 */ - src: url('iconfont.woff2?t=1720508953092') format('woff2'), - url('iconfont.woff?t=1720508953092') format('woff'), - url('iconfont.ttf?t=1720508953092') format('truetype'); + src: url('iconfont.woff2?t=1720613279441') format('woff2'), + url('iconfont.woff?t=1720613279441') format('woff'), + url('iconfont.ttf?t=1720613279441') format('truetype'); } .iconfont { @@ -13,6 +13,22 @@ -moz-osx-font-smoothing: grayscale; } +.icon-jiahao:before { + content: "\e602"; +} + +.icon-pdf:before { + content: "\e803"; +} + +.icon-ppt:before { + content: "\e806"; +} + +.icon-word:before { + content: "\e807"; +} + .icon-guanbi:before { content: "\e60f"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.js b/src/renderer/src/assets/iconfont/iconfont.js index 9dbac57..fa0c500 100644 --- a/src/renderer/src/assets/iconfont/iconfont.js +++ b/src/renderer/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_2794390='',function(e){var t=(t=document.getElementsByTagName("script"))[t.length-1],a=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var i,l,o,c,n,h=function(t,a){a.parentNode.insertBefore(t,a)};if(a&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(t){console&&console.log(t)}}i=function(){var t,a=document.createElement("div");a.innerHTML=e._iconfont_svg_string_2794390,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(t=document.body).firstChild?h(a,t.firstChild):t.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),i()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(o=i,c=e.document,n=!1,s(),c.onreadystatechange=function(){"complete"==c.readyState&&(c.onreadystatechange=null,d())})}function d(){n||(n=!0,o())}function s(){try{c.documentElement.doScroll("left")}catch(t){return void setTimeout(s,50)}d()}}(window); \ No newline at end of file +window._iconfont_svg_string_2794390='',function(a){var l=(l=document.getElementsByTagName("script"))[l.length-1],t=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var i,h,c,e,o,d=function(l,t){t.parentNode.insertBefore(l,t)};if(t&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}i=function(){var l,t=document.createElement("div");t.innerHTML=a._iconfont_svg_string_2794390,(t=t.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",t=t,(l=document.body).firstChild?d(t,l.firstChild):l.appendChild(t))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(h=function(){document.removeEventListener("DOMContentLoaded",h,!1),i()},document.addEventListener("DOMContentLoaded",h,!1)):document.attachEvent&&(c=i,e=a.document,o=!1,n(),e.onreadystatechange=function(){"complete"==e.readyState&&(e.onreadystatechange=null,p())})}function p(){o||(o=!0,c())}function n(){try{e.documentElement.doScroll("left")}catch(l){return void setTimeout(n,50)}p()}}(window); \ No newline at end of file diff --git a/src/renderer/src/assets/iconfont/iconfont.json b/src/renderer/src/assets/iconfont/iconfont.json index 53ddd7f..9bd97e3 100644 --- a/src/renderer/src/assets/iconfont/iconfont.json +++ b/src/renderer/src/assets/iconfont/iconfont.json @@ -5,6 +5,34 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "8721197", + "name": "加号", + "font_class": "jiahao", + "unicode": "e602", + "unicode_decimal": 58882 + }, + { + "icon_id": "11441567", + "name": "pdf", + "font_class": "pdf", + "unicode": "e803", + "unicode_decimal": 59395 + }, + { + "icon_id": "11447679", + "name": "ppt2", + "font_class": "ppt", + "unicode": "e806", + "unicode_decimal": 59398 + }, + { + "icon_id": "11447681", + "name": "word2", + "font_class": "word", + "unicode": "e807", + "unicode_decimal": 59399 + }, { "icon_id": "4736203", "name": "关闭", diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index 6962e80..770b133 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index 45f5b6d..5091a71 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 95d34d3..1c9cddc 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/views/resource/index.vue b/src/renderer/src/views/resource/index.vue index c88329e..5797c3e 100644 --- a/src/renderer/src/views/resource/index.vue +++ b/src/renderer/src/views/resource/index.vue @@ -4,8 +4,6 @@
- -
+ + +
+ +
+
+
@@ -113,6 +141,13 @@ const changeTab = (id) => { activeVal.value = id } + +const currentPage = ref(1) +const pageSize = ref(100) + +const handleSizeChange = ()=>{} +const handleCurrentChange = ()=>{} + // const { ipcRenderer } = window.electron // ipcRenderer.send('set-winsize',{x:1000,y: 700}) @@ -163,6 +198,59 @@ const nodeClick = (data) => { } } + + .resource-list { + .list-item { + padding: 10px 20px; + border-bottom: solid #f1f1f1 1px; + display: flex; + justify-content: space-between; + align-items: center; + + .item-left { + flex-direction: column; + + .name { + font-size: 14px; + color: #3b3b3b; + margin-bottom: 10px + } + + .line { + width: 1px; + height: 15px; + background-color: #d9dce2; + } + + .item-tags { + align-items: center; + } + + .mr-10 { + margin-right: 10px; + } + + .gray-text { + color: #909399; + font-size: 13px; + } + + } + + &:last-child{ + border-bottom: none; + } + .icon-jiahao{ + font-size: 12px; + margin-right: 5px; + } + } + } + .pagination-box{ + margin-top: 20px; + display: flex; + justify-content: center; + } } } \ No newline at end of file