2f0d4e89 by tianhaohao@pashanhoo.com

修改页面展示问题

1 parent ad769bd9
...@@ -164,10 +164,14 @@ export default { ...@@ -164,10 +164,14 @@ export default {
164 async featchData() { 164 async featchData() {
165 let {result: res} = await business.diya(this.form); 165 let {result: res} = await business.diya(this.form);
166 res.list.forEach(it=> { 166 res.list.forEach(it=> {
167 if (it.MJDW !== undefined && typeof it.MJDW === 'string'){
167 let mjdws = this.dicData['A7'].filter(item => item.DCODE === it.MJDW.trim()); 168 let mjdws = this.dicData['A7'].filter(item => item.DCODE === it.MJDW.trim());
168 it.MJDWMC = mjdws.length > 0 ? mjdws[0].DNAME : ""; 169 it.MJDWMC = mjdws.length > 0 ? mjdws[0].DNAME : "";
170 }
171 if (it.JEDW !== undefined && typeof it.JEDW === 'string'){
169 let jedws = this.dicData['A57'].filter(item => item.DCODE === it.JEDW.trim()); 172 let jedws = this.dicData['A57'].filter(item => item.DCODE === it.JEDW.trim());
170 it.JEDWMC = jedws.length > 0 ? jedws[0].DNAME : ""; 173 it.JEDWMC = jedws.length > 0 ? jedws[0].DNAME : "";
174 }
171 }) 175 })
172 this.tableData.data = res.list 176 this.tableData.data = res.list
173 this.pageData.current = res.pageNum 177 this.pageData.current = res.pageNum
......