+
@@ -125,23 +125,35 @@
-
-
-
-
-
-
-
-
-
-
{{items.name}}
-
+
+
+
+
+
+
{{items.name}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{{items.name}}
+
+
+
+
+
+
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.ts b/src/app/ui/collection-tools-building/collection-tools.component.ts
index fe08f8b..8339bb4 100644
--- a/src/app/ui/collection-tools-building/collection-tools.component.ts
+++ b/src/app/ui/collection-tools-building/collection-tools.component.ts
@@ -692,7 +692,7 @@ export class CollectionToolsBuildingComponent implements OnInit {
let that = this
window.setTimeout(()=>{
- document.getElementById("functionalDomainContent").oncontextmenu = function (event) {
+ document.getElementById("functionalDomainContentTwo").oncontextmenu = function (event) {
// that.canvas.cancelPaint()
that.selectImageIndex = -1
event.preventDefault();
@@ -2039,6 +2039,23 @@ export class CollectionToolsBuildingComponent implements OnInit {
selectLibrary:any; //选中的素材库
selectImage:any; //选中的素材库图片
selectImageIndex:number; //选中的素材库图片index
+ searchSettimeout:any; //延时器
+ searchInput:string = null; //模糊搜索 input
+ searchLibrary:any = []; //模糊搜索 素材
+
+ //输入框 输入事件
+ libraryChange () {
+ window.clearTimeout(this.searchSettimeout)
+ this.searchSettimeout = window.setTimeout(()=>{
+ if (this.searchInput === "") {
+ this.searchLibrary = []
+ } else {
+ this.http.get(`/api/Assets?assetName=${this.searchInput}`).subscribe((data:any)=>{
+ this.searchLibrary = data
+ })
+ }
+ },500)
+ }
//获取素材库
getAllLibrary (type:string='input') {
diff --git a/src/app/ui/collection-tools-building/panel.scss b/src/app/ui/collection-tools-building/panel.scss
index fe2f0b7..2b1fed4 100644
--- a/src/app/ui/collection-tools-building/panel.scss
+++ b/src/app/ui/collection-tools-building/panel.scss
@@ -212,6 +212,18 @@
box-sizing: border-box;
margin-left: 10px;
}
+//模糊搜索 input
+.searchLibrary {
+ display: block;
+ border: 1px solid rgb(219, 212, 212);
+ border-radius: 5px;
+ outline: none;
+ box-sizing: border-box;
+ margin: 5px auto;
+ padding-left: 5px;
+ width: 95%;
+ height: 30px;
+}
.panelLibraryFlex {
display: flex;
flex-direction: row;
diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.html b/src/app/ui/collection-tools-plan/collection-tools.component.html
index 0fdc889..9cc69c0 100644
--- a/src/app/ui/collection-tools-plan/collection-tools.component.html
+++ b/src/app/ui/collection-tools-plan/collection-tools.component.html
@@ -103,23 +103,34 @@
diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.ts b/src/app/ui/collection-tools-plan/collection-tools.component.ts
index 5bd8a51..79f35e0 100644
--- a/src/app/ui/collection-tools-plan/collection-tools.component.ts
+++ b/src/app/ui/collection-tools-plan/collection-tools.component.ts
@@ -2043,6 +2043,23 @@ export class CollectionToolsPlanComponent implements OnInit {
selectLibrary:any; //选中的素材库
selectImage:any; //选中的素材库图片
selectImageIndex:number; //选中的素材库图片index
+ searchSettimeout:any; //延时器
+ searchInput:string = null; //模糊搜索 input
+ searchLibrary:any = []; //模糊搜索 素材
+
+ //输入框 输入事件
+ libraryChange () {
+ window.clearTimeout(this.searchSettimeout)
+ this.searchSettimeout = window.setTimeout(()=>{
+ if (this.searchInput === "") {
+ this.searchLibrary = []
+ } else {
+ this.http.get(`/api/Assets?assetName=${this.searchInput}`).subscribe((data:any)=>{
+ this.searchLibrary = data
+ })
+ }
+ },500)
+ }
//获取素材库
getAllLibrary (type:string='input') {
diff --git a/src/app/ui/collection-tools-plan/panel.scss b/src/app/ui/collection-tools-plan/panel.scss
index 822d0e6..09b8ceb 100644
--- a/src/app/ui/collection-tools-plan/panel.scss
+++ b/src/app/ui/collection-tools-plan/panel.scss
@@ -212,6 +212,18 @@
box-sizing: border-box;
margin-left: 10px;
}
+//模糊搜索 input
+.searchLibrary {
+ display: block;
+ border: 1px solid rgb(219, 212, 212);
+ border-radius: 5px;
+ outline: none;
+ box-sizing: border-box;
+ margin: 5px auto;
+ padding-left: 5px;
+ width: 95%;
+ height: 30px;
+}
.panelLibraryFlex {
display: flex;
flex-direction: row;
diff --git a/src/app/ui/collection-tools/collection-tools.component.html b/src/app/ui/collection-tools/collection-tools.component.html
index 921ba69..21f7a4b 100644
--- a/src/app/ui/collection-tools/collection-tools.component.html
+++ b/src/app/ui/collection-tools/collection-tools.component.html
@@ -202,23 +202,35 @@