D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore
2019-01-16 a2cb03002bc7b9ed76e9586947fec73ebc223215
Merge branch 'dev_lxw' of https://whyccjj@gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
1个文件已修改
13 ■■■■■ 已修改文件
gx_tieta/WebRoot/mobil/js/tbl.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/mobil/js/tbl.js
@@ -353,6 +353,19 @@
        // 返回结果
        return tbody;
    }
    ,updateAll: function(field, data) {
        // 遍历data的值
        for(let i=0; i<data.length; i++) {
            let _data = data[i];
            if(field in _data) {
                let fVal = _data[field];
                this.update(field, fVal, _data);        // 更新表格
            }else {
                console.log('该条数据不存在标识位'+field);
                console.log(_data);
            }
        }
    }
    ,update: function(field, fVal, data) {
        let rowsInfo = this._getRows(field, fVal);
        // 如果获取到了行号