Эх сурвалжийг харах

新增修改相關資源美術

manto07m 3 жил өмнө
parent
commit
dd18691f5c

+ 7 - 0
assets/vendor/font-awesome/css/font-awesome.css

@@ -541,9 +541,11 @@
 }
 .fa-folder:before {
   content: "\f07b";
+  color:#ffe792;
 }
 .fa-folder-open:before {
   content: "\f07c";
+  color:#ffe792;
 }
 .fa-arrows-v:before {
   content: "\f07d";
@@ -1457,15 +1459,19 @@
 }
 .fa-file-pdf-o:before {
   content: "\f1c1";
+  color:red;
 }
 .fa-file-word-o:before {
   content: "\f1c2";
+  color:#0d8fdf;
 }
 .fa-file-excel-o:before {
   content: "\f1c3";
+  color:#6db33f;
 }
 .fa-file-powerpoint-o:before {
   content: "\f1c4";
+  color:#f48122;
 }
 .fa-file-photo-o:before,
 .fa-file-picture-o:before,
@@ -1475,6 +1481,7 @@
 .fa-file-zip-o:before,
 .fa-file-archive-o:before {
   content: "\f1c6";
+  color:#fff200;
 }
 .fa-file-sound-o:before,
 .fa-file-audio-o:before {

+ 16 - 1
other-list.php

@@ -204,7 +204,7 @@ if (!isset($_SESSION['loggedin'])) {
 						'icon': 'fa fa-folder'
 					},
 					'file': {
-						'icon': 'fa fa-file'
+						'icon': 'fa fa-file-o'
 					},
 					'pdf': {
 						'icon': 'fa fa-file-pdf-o'
@@ -212,8 +212,17 @@ if (!isset($_SESSION['loggedin'])) {
 					'word': {
 						'icon': 'fa fa-file-word-o'
 					},
+					'excel': {
+						'icon': 'fa fa-file-excel-o'
+					},
 					'ppt': {
 						'icon': 'fa fa-file-powerpoint-o'
+					},
+					'f-open': {
+						'icon': 'fa fa-folder-open'
+					},
+					'f-closed': {
+						'icon': 'fa fa-folder'
 					}
 				},
 				'plugins': ['types']
@@ -252,6 +261,12 @@ if (!isset($_SESSION['loggedin'])) {
 					}
 				}*/
 			});
+			$("#treeAjaxHTML").on('open_node.jstree', function(event, data) {
+				data.instance.set_type(data.node, 'f-open');
+			});
+			$("#treeAjaxHTML").on('close_node.jstree', function(event, data) {
+				data.instance.set_type(data.node, 'f-closed');
+			});
 		});
 	</script>
 	<script src="assets/vendor/jstree/jstree.js"></script>

+ 20 - 4
script/js/global.js

@@ -195,8 +195,24 @@ vm.component('inner-menu', {
 
 vm.component('inner-menu-li', {
     template: `<li>
-                  <a v-bind:href="href" class="menu-item"><i class="fa fa-gears"></i>{{name}}</a>            
+                  <a v-bind:href="href" v-bind:class = "GetLocation?'menu-item active':'menu-item'"><i class="fa fa-gears"></i>{{name}}</a>            
                </li>`,
+    computed: {
+        GetLocation() {
+            var url_href = window.location.href;
+            var url = new URL(url_href);
+            var type = url.searchParams.get("type");
+            if (type != null) {
+                if (this.href.includes(type)) {
+                    return true;
+                } else {
+                    return false;
+                }
+            }
+d
+
+        }
+    },
     props: {
         href: String,
         name: String,
@@ -317,8 +333,8 @@ vm.component('side-bar-list', {
 </li>`,
     computed: {
         GetLocation() {
-            var pathname = window.location.pathname.split('/');            
-            var type = pathname[pathname.length-1]
+            var pathname = window.location.pathname.split('/');
+            var type = pathname[pathname.length - 1]
             if (this.href.includes(type)) {
                 return true;
             } else {
@@ -618,4 +634,4 @@ vm.component('isotope-item', {
         <div class="mg-description"><small style="display:none;">{{detail}}</small><small class="operate" style="display:none;">{{operate}}</small><small class="source" style="display:none;">{{source}}</small><small class="pull-right text-muted software" >{{software}}</small></div>
     </div>
 </div>`,
-});
+});