提交 91eb4c68db62c53f5673c70f49722bc07fe9b99b

作者 wangyu
1 个父辈 bce8e8c9

修改功能工资详情字段

@@ -196,10 +196,16 @@ Page({ @@ -196,10 +196,16 @@ Page({
196 196
197 handleDetailsData: function (data) { 197 handleDetailsData: function (data) {
198 198
199 - let titles = JSON.parse(data['slip_titles']) 199 + // let titles = JSON.parse(data['slip_titles'])
  200 + let titles = JSON.parse(data['salary_columns'])
200 let detail = JSON.parse(data['detail']) 201 let detail = JSON.parse(data['detail'])
201 let mapping_keys = data["mapping_keys"] ? data["mapping_keys"]:[] 202 let mapping_keys = data["mapping_keys"] ? data["mapping_keys"]:[]
202 - console.log(titles,detail,mapping_keys) 203 + console.log(titles,detail,mapping_keys)
  204 + // var obj = {}
  205 + // let titles = titles01.concat(titles02).reduce(function (item, next) {
  206 + // obj[next.key] ? '' : obj[next.key] = true && item.push(next);
  207 + // return item;
  208 + // }, []);
203 var details = [] 209 var details = []
204 for (var i = 0; i < titles.length; ++i) { 210 for (var i = 0; i < titles.length; ++i) {
205 var titleData = titles[i] 211 var titleData = titles[i]
注册登录 后发表评论