|
@@ -142,11 +142,24 @@ let subObj = {
|
|
|
let tabID = "";
|
|
|
if($('#qdzy').is(':visible')) tabID = "qdzy";
|
|
|
if($('#qdjl').is(':visible')) tabID = "qdjl";
|
|
|
+ if($('#tzjnrCon').is(':visible')) tabID = "tznr";
|
|
|
if(tabID == "") return;
|
|
|
//总宽度
|
|
|
let totalWidth = $('#subItems').width();
|
|
|
//人材机和项目特征文本比例
|
|
|
const openWidth = 30;//打开项目特征工具条
|
|
|
+ if (tabID === 'tznr') {
|
|
|
+ if (this.showQDSubTab) {
|
|
|
+ $('#tzjnrCon').css('width', '66%');
|
|
|
+ $('#xmtzTextDiv').css('width', '34%');
|
|
|
+ $('#tzSubDiv').css('width', 'calc(100% - 38px)');
|
|
|
+ } else {
|
|
|
+ const tznrWidthRate = (totalWidth - openWidth) / totalWidth;
|
|
|
+ $('#xmtzTextDiv').css('width', '');
|
|
|
+ $('#tzjnrCon').css('width', `${tznrWidthRate * 100}%`);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
const tab_tem = (305+openWidth+10)/totalWidth;//tab显示框默认宽度:305(表格宽度) + 30(工具条宽度)+10(resize div 宽度)
|
|
|
//默认比例
|
|
|
let textPercent = tab_tem * 100 + '%',//'15%',
|
|
@@ -185,8 +198,7 @@ let subObj = {
|
|
|
return jl_sideResizeEles;
|
|
|
},
|
|
|
initQDSubTab:function () {
|
|
|
-
|
|
|
- if(!($('#linkQDJL').hasClass('active') || $('#linkQDZY').hasClass('active'))) return;
|
|
|
+ if(!($('#linkQDJL').hasClass('active') || $('#linkQDZY').hasClass('active') || $('#linkTZJNR').hasClass('active'))) return;
|
|
|
if(this.showQDSubTab == true){
|
|
|
$("#tzSubDiv").show();
|
|
|
$("#tzrgResize").show();
|
|
@@ -194,7 +206,7 @@ let subObj = {
|
|
|
$("#tzSubDiv").hide();
|
|
|
$("#tzrgResize").hide();
|
|
|
}
|
|
|
- this.initTZItemWidth();
|
|
|
+ this.initTZItemWidth();
|
|
|
},
|
|
|
showGljSubTabData:function () {
|
|
|
this.initGljSubTab();
|
|
@@ -209,7 +221,7 @@ let subObj = {
|
|
|
},
|
|
|
showQDSubTabData:function () {
|
|
|
this.initQDSubTab();
|
|
|
- MaterialController.showItemCharacterText(null,"tzCharacterText");
|
|
|
+ MaterialController.showItemCharacterText(null,"#tzCharacterText");
|
|
|
if (gljOprObj.activeTab !== gljOprObj.preActiveTab) { //提供焦点变换性能 2019年4月12日
|
|
|
refreshSubSpread();
|
|
|
}
|
|
@@ -404,6 +416,8 @@ $("#linkTZJNR").click(function () {
|
|
|
gljOprObj.activeTab='#linkTZJNR';
|
|
|
$("#subItems").children().hide();
|
|
|
$("#tzjnrCon").show();
|
|
|
+ $("#xmtzTextDiv").show();
|
|
|
+ subObj.showQDSubTabData();
|
|
|
$("#add-rule p").not(":first").css('margin-bottom', 4);
|
|
|
pageCCOprObj.active = true;
|
|
|
adaptiveTzjnrWidth();
|