记得上下班打卡 | git大法好,push需谨慎

Commit bf8dc9ea authored by dongchun's avatar dongchun

修改前端之前数据渲染bug

parent 44543e69
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
let filterData = []; let filterData = [];
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>`
}) })
......
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
let str = ''; let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>`
}) })
......
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
let str = ''; let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>`
}) })
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
let str = ''; let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>`
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment