岗位显示部署
This commit is contained in:
parent
b0fbe89df9
commit
849792df42
@ -367,6 +367,7 @@ var Designer = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
debugger;
|
||||||
b.attr("class", "shape_box");
|
b.attr("class", "shape_box");
|
||||||
Designer.events.push("created", g);
|
Designer.events.push("created", g);
|
||||||
Model.add(g);
|
Model.add(g);
|
||||||
@ -4058,6 +4059,7 @@ var Designer = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderShape: function(q) {
|
renderShape: function(q) {
|
||||||
|
debugger;
|
||||||
if (q.name == "linker") {
|
if (q.name == "linker") {
|
||||||
this.renderLinker(q);
|
this.renderLinker(q);
|
||||||
return
|
return
|
||||||
@ -4505,6 +4507,7 @@ var Designer = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderDataAttributes: function(i, k) {
|
renderDataAttributes: function(i, k) {
|
||||||
|
debugger;
|
||||||
$("#" + i.id).children(".attr_canvas").remove();
|
$("#" + i.id).children(".attr_canvas").remove();
|
||||||
if (!i.dataAttributes || i.dataAttributes.length == 0) {
|
if (!i.dataAttributes || i.dataAttributes.length == 0) {
|
||||||
return
|
return
|
||||||
@ -4529,7 +4532,17 @@ var Designer = {
|
|||||||
l = j.name + ": "
|
l = j.name + ": "
|
||||||
}
|
}
|
||||||
if (jjj.showType == "text" || jjj.showType == "attr") {
|
if (jjj.showType == "text" || jjj.showType == "attr") {
|
||||||
l += jjj.value
|
|
||||||
|
//判断如果岗位多个数据,...显示 by zhaolei
|
||||||
|
var lenth=jjj.value.match(/,/g).length;
|
||||||
|
if(lenth>=2){
|
||||||
|
var index1=jjj.value.indexOf(",");
|
||||||
|
var index2=jjj.value.indexOf(",",index1+1);
|
||||||
|
l+=jjj.value.substr(0,index2)+"...";
|
||||||
|
}else{
|
||||||
|
l += jjj.value
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (jjj.showType == "icon") {
|
if (jjj.showType == "icon") {
|
||||||
o = jjj.icon
|
o = jjj.icon
|
||||||
@ -4563,6 +4576,7 @@ var Designer = {
|
|||||||
m(j, l, o)*/
|
m(j, l, o)*/
|
||||||
}
|
}
|
||||||
function m(c, y, x) {
|
function m(c, y, x) {
|
||||||
|
debugger;
|
||||||
var h = c.horizontal;
|
var h = c.horizontal;
|
||||||
var I = c.vertical;
|
var I = c.vertical;
|
||||||
var H = $("<canvas id='attr_canvas_" + c.id + "' class='attr_canvas'></canvas>").appendTo($("#" + i.id));
|
var H = $("<canvas id='attr_canvas_" + c.id + "' class='attr_canvas'></canvas>").appendTo($("#" + i.id));
|
||||||
@ -4680,6 +4694,7 @@ var Designer = {
|
|||||||
b.fillStyle = "#6666FF";
|
b.fillStyle = "#6666FF";
|
||||||
}
|
}
|
||||||
var tempY = a / 2 + v * 12;
|
var tempY = a / 2 + v * 12;
|
||||||
|
debugger;
|
||||||
if (tempL < D) {
|
if (tempL < D) {
|
||||||
b.fillText(y.substring(v * tempShapeWidth / (D / y.length), tempL / (D / y.length)), tempX, tempY);
|
b.fillText(y.substring(v * tempShapeWidth / (D / y.length), tempL / (D / y.length)), tempX, tempY);
|
||||||
} else {
|
} else {
|
||||||
@ -6173,6 +6188,7 @@ var Utils = {
|
|||||||
for (var au = 0; au < am.dataAttributes.length; au++) {
|
for (var au = 0; au < am.dataAttributes.length; au++) {
|
||||||
var ap = am.dataAttributes[au];
|
var ap = am.dataAttributes[au];
|
||||||
if (ap.type == "link" && ap.showType && ap.showType != "none") {
|
if (ap.type == "link" && ap.showType && ap.showType != "none") {
|
||||||
|
debugger;
|
||||||
var af = i.children("#attr_canvas_" + ap.id);
|
var af = i.children("#attr_canvas_" + ap.id);
|
||||||
if (af.length > 0) {
|
if (af.length > 0) {
|
||||||
var ai = af.position();
|
var ai = af.position();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user