|
@@ -82,11 +82,11 @@ $(document).ready(function() {
|
|
|
//使用id选择器;例如:tab对象->tr->td对象.
|
|
|
$("#materialInventoryTable tr td").each(function(i){
|
|
|
//获取td当前对象的文本,如果长度大于25;
|
|
|
- if($(this).text().length>23){
|
|
|
+ if($(this).text().length>20){
|
|
|
//给td设置title属性,并且设置td的完整值.给title属性.
|
|
|
$(this).attr("title",$(this).text());
|
|
|
//获取td的值,进行截取。赋值给text变量保存.
|
|
|
- var text=$(this).text().substring(0,23)+"...";
|
|
|
+ var text=$(this).text().substring(0,20)+"...";
|
|
|
//重新为td赋值;
|
|
|
$(this).text(text);
|
|
|
}
|
|
@@ -126,7 +126,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
,{
|
|
|
field: 'materialDetail',
|
|
|
- width:210,
|
|
|
+ width:220,
|
|
|
title: '物料描述'
|
|
|
}
|
|
|
,{
|