Showing
1 changed file
with
5 additions
and
1 deletions
@@ -325,10 +325,14 @@ var g = new common.grid({ | @@ -325,10 +325,14 @@ var g = new common.grid({ | ||
325 | hidden: false, | 325 | hidden: false, |
326 | render: function (item) { | 326 | render: function (item) { |
327 | var searchAndLabel = item.searchAndLabel ? item.searchAndLabel : '', | 327 | var searchAndLabel = item.searchAndLabel ? item.searchAndLabel : '', |
328 | + searchKeys = item.searchKeys ? item.searchKeys : '', | ||
328 | style = item.style ? item.style : '', | 329 | style = item.style ? item.style : '', |
329 | pattern = item.pattern ? item.pattern : '', | 330 | pattern = item.pattern ? item.pattern : '', |
330 | makeCrafts = item.makeCrafts ? item.makeCrafts : ''; | 331 | makeCrafts = item.makeCrafts ? item.makeCrafts : ''; |
331 | - return '关键词:' + searchAndLabel + '<br>' + | 332 | + if(searchKeys.length>15){ |
333 | + searchKeys=searchKeys.substr(0,15)+"..."; | ||
334 | + } | ||
335 | + return '关键词:' + searchKeys + '<br>' + | ||
332 | '风格:' + style + '<br>' + | 336 | '风格:' + style + '<br>' + |
333 | '纹理:' + pattern + '<br>' + | 337 | '纹理:' + pattern + '<br>' + |
334 | '工艺:' + makeCrafts + '<br>'; | 338 | '工艺:' + makeCrafts + '<br>'; |
-
Please register or login to post a comment