質問するログイン新規登録

質問編集履歴

2

JavaScriptの修正

2017/12/04 01:52

投稿

m_yoko
m_yoko

スコア156

title CHANGED
File without changes
body CHANGED
@@ -93,11 +93,11 @@
93
93
  this.cosutomerInfomationList.push(response.data[i]);
94
94
  this.costomerNameList.push(response.data[i].name);
95
95
  }
96
- Vue.set(this,clickCostomerInfomation,'new message');
96
+ Vue.set(this,clickCostomerInfomation,'new message');//ここが反映されない
97
- this.clickCostomerInfomation = 'new message';
97
+ this.clickCostomerInfomation = 'new message';//ここが反映されない
98
- this.costomerInfomationCompted='a';
98
+ this.costomerInfomationCompted='a';//ここが反映されない
99
- this.$nextTick();
99
+ this.$nextTick();//ここが反映されない
100
- vue.$forceUpdate()
100
+ vue.$forceUpdate()//ここが反映されない
101
101
  })
102
102
  .catch(function (error) {
103
103
  console.log(error);

1

javascriptの修正

2017/12/04 01:52

投稿

m_yoko
m_yoko

スコア156

title CHANGED
File without changes
body CHANGED
@@ -94,8 +94,8 @@
94
94
  this.costomerNameList.push(response.data[i].name);
95
95
  }
96
96
  Vue.set(this,clickCostomerInfomation,'new message');
97
- this.clickCostomerInfomation = 'new message';//←ここのデータが再描画されない
97
+ this.clickCostomerInfomation = 'new message';
98
- this.costomerInfomationCompted='a';//←ここのデータが再描画されない
98
+ this.costomerInfomationCompted='a';
99
99
  this.$nextTick();
100
100
  vue.$forceUpdate()
101
101
  })
@@ -107,7 +107,7 @@
107
107
 
108
108
  consumerListClick: function (num) {
109
109
  // メソッド内の `this` は、 Vue インスタンスを参照します
110
- this.clickCostomerInfomation = 'test2';
110
+ thix.getCostomerInfomaitonAll(0);
111
111
  // `event` は、ネイティブ DOM イベントです
112
112
  },
113
113
  },