Kapalı

Help with Vue.js

I get a list from server, and when i change some propertie inside the index 0 the same propertie change on all position from array.

I attach a image

line 1: consulting position 0 = result 0

line 2: consulting position 1 = result 0

line 3: consulting position 4 = result 0

after change value on position 0 to value = 1

all positon get the same value

my Code:

for (var i = 0; i < [login to view URL]; i++){

if([login to view URL][i].day_id == day.day_id){

for (var j = 0; j < [login to view URL][i].[login to view URL]; j++){

if([login to view URL][i].hours[j].id <= day.hour_id){

[login to view URL][i].hours[j].using = 1;

// [login to view URL]("Day: " + [login to view URL][i].day_id);

// [login to view URL]("Hour: " + [login to view URL][i].hours[j].hour);

// [login to view URL]("Using: " + [login to view URL][i].hours[j].using);

}

}

}

}

Beceriler: Javascript, jQuery / Prototype, PHP, Vue.js

İşveren Hakkında:
( 14 değerlendirme ) Limeira, Brazil

Proje NO: #19000589

Bu iş için 9 freelancer ortalamada $21 teklif veriyor

gursukh

yes sure I can help you now.

$30 USD in 0 gün içinde
(172 Değerlendirme)
6.6
workandlive123

Hello, After reading this job description, I am convinced that I would be a perfect fit for this role. That is because of - I am a javascript expert who has 5+ years of experience with Vue.js. - I have a firm gr Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(40 Değerlendirme)
4.8
bitterpotato

Hi. I have more than 2 years experience with vue.js. I can help you get this done quickly and efficiently.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(11 Değerlendirme)
3.1
MarketwebGuy

Hi. I always work to get trust from clients. Trust is more important than money for the future. So I work very hard and honestly. As super web expert, my skill is.... Html/css/Javascript/Jquery/AngularJS/ReactJS/V Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
2.3
asadalhassanat

Hi there, Can you send a screenshot for listHourWeekDay? I want to preserve the data format. I am waiting for your answer.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
2.0
utkarshdubeyg

Hi, Hope you are doing well. From your description unable to understand your problem, therefore, want to discuss more regarding your issue. Looking forward to hearing from you. Thanks and Regards

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
bgdmhl

Hi, i need you to give me some of the contents of the list and what you need to accomplish because the code is a little hard to read, maybe make a codesandbox or jsfiddle and i will resolve the problem for you. Thank Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
alexvergara

Hi, this is not an issue with the posted code, is a common mistake when we use variables for assigning the initial values, the values aren't passed directly but as a reference, so, when you try to change the value in o Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
arushijain016

I ahve 2 years of experience in vuejs and i ahve come across the same problem before. I can solve this problem for you.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0