modify plugin.css and createTable function in pluign-new.js
This commit is contained in:
parent
a755c10d6c
commit
c58867cc5b
|
@ -48,7 +48,6 @@ table, th, td,thead,tbody
|
|||
#pluginArea{
|
||||
width:280px;
|
||||
height:340px;
|
||||
border:solid #A0D0EC thin ;
|
||||
margin-bottom:15px;
|
||||
outline-style: outset;
|
||||
|
||||
|
@ -57,7 +56,6 @@ table, th, td,thead,tbody
|
|||
#behaviorArea{
|
||||
width:280px;
|
||||
height:340px;
|
||||
border:solid #A0D0EC thin ;
|
||||
margin-bottom:15px;
|
||||
outline-style: inset;
|
||||
}
|
||||
|
|
|
@ -212,6 +212,7 @@ function loadMethodParams(behaviorData, behaviorIndex) {
|
|||
for (var i = 0; i < data.length; i++) {
|
||||
methodParams.push(data[i]);
|
||||
}
|
||||
alert(methodParams.length);
|
||||
for (var j = 0; j < methodParams.length; j++) {
|
||||
var methodParamModel = new MethodParamModel(
|
||||
methodParams[j].name,
|
||||
|
@ -220,6 +221,10 @@ function loadMethodParams(behaviorData, behaviorIndex) {
|
|||
methodParams[j].fieldSeperator,
|
||||
methodParams[j].paramType,
|
||||
methodParams[j].methodParamProperties);
|
||||
if(methodParamModel!=null){
|
||||
alert("load methodParam...");
|
||||
alert("name="+methodParamModel.name);
|
||||
}
|
||||
var methodParamProperties=new Array();
|
||||
for(var q=0;q<methodParamModel.methodParamProperties.length;q++){
|
||||
var methodParamPropertyModel=new MethodParamPropertyModel(methodParamModel.methodParamProperties[q].key,methodParamModel.methodParamProperties[q].value);
|
||||
|
@ -273,8 +278,12 @@ function loadMethodParams(behaviorData, behaviorIndex) {
|
|||
+ "<div class='box-content'>"
|
||||
+ fieldHTML
|
||||
+ "</div><div><button id='' type='submit' onClick='uploadBehavior(this);'>submit</button></div></div></div>";
|
||||
if(documentHtml==""){
|
||||
alert("documentHtml is null");
|
||||
}
|
||||
document.getElementById("showPluginMethod").innerHTML += documentHtml;
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
// 创建一个label加一个input的域
|
||||
|
@ -426,21 +435,21 @@ function createTable(methodParamModel, cols, behaviorIndex) {
|
|||
* document.createTextNode(name);
|
||||
*/
|
||||
|
||||
var th = document.createElement("th");
|
||||
var tr = document.createElement("tr");
|
||||
var tr_content = document.createElement("tr");
|
||||
for (var i = 0; i < table_content.length; i++) {
|
||||
var td = document.createElement("td");
|
||||
var th = document.createElement("th");
|
||||
var text = document.createTextNode(table_content[i]);
|
||||
var td_content = document.createElement("td");
|
||||
var text_content = document.createTextNode("");
|
||||
|
||||
td.appendChild(text);
|
||||
th.appendChild(td);
|
||||
th.appendChild(text);
|
||||
tr.appendChild(td);
|
||||
td_content.appendChild(text_content);
|
||||
tr_content.appendChild(td_content);
|
||||
}
|
||||
|
||||
var tableHead = th.innerHTML + tr_content.innerHTML;
|
||||
var tableHead = tr.innerHTML + tr_content.innerHTML;
|
||||
var tableHtml = "<div class='Table sample_frame'id="
|
||||
+ behaviorIndex
|
||||
+ "_"
|
||||
|
|
Loading…
Reference in New Issue