Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r15662 -r15698 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 15662) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 15698) @@ -2418,4 +2418,23 @@ if (isUndefinedOrNullOrEmpty(this[maskName]) || this[maskName].isDestroyed){ this[maskName] = new Ext4.LoadMask({msg:msg,target:target}); } +} + +/** + * 将表单所选中的行的某个属性用分隔号拼接起来并返回 + * @param rows 表单选中的行 + * @param property 需要获取的行的属性 + * @param separator 分隔符(可选,默认用逗号) + * @returns {string} + */ +function getRowsPropertiesWithComma(rows,property,separator) { + var properties = ""; + separator = separator || ','; + for (i = 0, length = rows.length;i < length ; i++){ + properties += rows[i].get(property); + if (i != length - 1){ + properties += separator; + } + } + return properties; } \ No newline at end of file