Fermé

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);

}

}

}

}

Compétences : Javascript, jQuery / Prototype, PHP, Vue.js

Concernant l'employeur :
( 14 commentaires ) Limeira, Brazil

Nº du projet : #19000589

9 freelance font une offre moyenne de $21 pour ce travail

gursukh

yes sure I can help you now.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(172 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(40 Commentaires)
4.8
bitterpotato

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(11 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(2 Commentaires)
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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0