huqi 5 лет назад
Родитель
Сommit
6fa802cc91

+ 1 - 0
o2web/gulpapps.js

@@ -31,6 +31,7 @@ var apps = [
     { "folder": "x_component_ExeManager", "tasks": ["move", "min"] },
     { "folder": "x_component_FaceSet", "tasks": ["move", "min"] },
     { "folder": "x_component_File", "tasks": ["move", "min"] },
+    { "folder": "x_component_FindDesigner", "tasks": ["move", "min"] },
     { "folder": "x_component_Forum", "tasks": ["move", "min"] },
     { "folder": "x_component_ForumCategory", "tasks": ["move", "min"] },
     { "folder": "x_component_ForumDocument", "tasks": ["move", "min"] },

BIN
o2web/source/x_component_FindDesigner/$Main/appicon.png


BIN
o2web/source/x_component_FindDesigner/$Main/default/icon.png


+ 21 - 0
o2web/source/x_component_FindDesigner/$Main/default/style.css

@@ -0,0 +1,21 @@
+.o2_findDesigner_content{
+    height: 100%;
+}
+.o2_findDesigner_filterNode {
+    height: 30px;
+}
+.o2_findDesigner_keywordNode {
+    height: 30px;
+}
+.o2_findDesigner_rangeNode {
+    height: 30px;
+}
+.o2_findDesigner_resultNode {
+    overflow: hidden;
+}
+.o2_findDesigner_listNode {
+    min-height: 300px;
+}
+.o2_findDesigner_previewNode {
+    min-height: 300px;
+}

+ 10 - 0
o2web/source/x_component_FindDesigner/$Main/default/view.html

@@ -0,0 +1,10 @@
+<div class="o2_findDesigner_content" data-o2-element="contentNode">
+    <div class="o2_findDesigner_filterNode" data-o2-element="filterNode" data-o2-events=""></div>
+    <div class="o2_findDesigner_keywordNode" data-o2-element="keywordNode" data-o2-events=""></div>
+    <div class="o2_findDesigner_rangeNode" data-o2-element="rangeNode" data-o2-events=""></div>
+    <div class="o2_findDesigner_resultNode" data-o2-element="resultNode" data-o2-events="">
+        <div class="o2_findDesigner_listNode" data-o2-element="listNode" data-o2-events=""></div>
+        <div class="o2_findDesigner_previewNode" data-o2-element="previewNode" data-o2-events=""></div>
+    </div>
+
+</div>

+ 47 - 0
o2web/source/x_component_FindDesigner/Main.js

@@ -0,0 +1,47 @@
+MWF.xApplication.FindDesigner.options.multitask = false;
+MWF.xApplication.FindDesigner.Main = new Class({
+	Extends: MWF.xApplication.Common.Main,
+	Implements: [Options, Events],
+
+	options: {
+		"style": "default",
+		"name": "FindDesigner",
+		"mvcStyle": "style.css",
+		"icon": "icon.png",
+		"width": "1200",
+		"height": "800",
+		"isResize": true,
+		"isMax": false,
+		"title": MWF.xApplication.FindDesigner.LP.title
+	},
+	onQueryLoad: function(){
+		this.lp = MWF.xApplication.FindDesigner.LP;
+	},
+	loadApplication: function(callback){
+		//1var url = "../x_component_Empty/$Main/default/view.html";
+		var url = this.path+this.options.style+"/view.html";
+
+		this.content.loadHtml(url, {"bind": {"lp": this.lp}, "module": this}, function(){
+			this.doSomething();
+
+			if (callback) callback();
+		}.bind(this));
+	},
+	doSomething: function(){
+
+	},
+	loadTask: function(){
+		alert("loadTask");
+	},
+	tabover: function(){
+		//alert("tabover");
+		this.myNode.addClass("mainColor_bg");
+	},
+	tabout: function(){
+		//alert("tabout")
+		this.myNode.removeClass("mainColor_bg");
+	},
+	clickNode: function(e, data){
+		alert(data.title);
+	}
+});

+ 3 - 0
o2web/source/x_component_FindDesigner/lp/zh-cn.js

@@ -0,0 +1,3 @@
+MWF.xApplication.FindDesigner.LP = {
+	"title": "在设计中查找"
+};

+ 10 - 8
o2web/source/x_component_process_ProcessManager/DictionaryExplorer.js

@@ -23,15 +23,17 @@ MWF.xApplication.process.ProcessManager.DictionaryExplorer = new Class({
         this.initData();
     },
     setContentSize: function(){
-        var toolbarSize = this.toolbarNode.getSize();
-        var nodeSize = this.node.getSize();
-        var pt = this.elementContentNode.getStyle("padding-top").toFloat();
-        var pb = this.elementContentNode.getStyle("padding-bottom").toFloat();
-
-        var height = nodeSize.y-toolbarSize.y-pt-pb;
-        this.elementContentNode.setStyle("height", ""+height+"px");
+	    if (this.toolbarNode){
+            var toolbarSize = this.toolbarNode.getSize();
+            var nodeSize = this.node.getSize();
+            var pt = this.elementContentNode.getStyle("padding-top").toFloat();
+            var pb = this.elementContentNode.getStyle("padding-bottom").toFloat();
+
+            var height = nodeSize.y-toolbarSize.y-pt-pb;
+            this.elementContentNode.setStyle("height", ""+height+"px");
+        }
 
-        if (this.options.noCreate) this.createElementNode.destroy();
+        if (this.options.noCreate) if (this.createElementNode) this.createElementNode.destroy();
     },
     showDeleteAction: function(){
         if (!this.deleteItemsAction){