askbot-dragon 0.7.73 → 0.7.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "0.7.73",
3
+ "version": "0.7.75",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -104,8 +104,7 @@
104
104
  class="ig-types-tags"
105
105
  >
106
106
  <span
107
- v-for="(intentCell, intentCellIndex) in activeOtherObj
108
- .highFrequency.question"
107
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
109
108
  :key="`i_${intentCellIndex}`"
110
109
  @click="
111
110
  sendAiGuideInfo(
@@ -114,7 +113,7 @@
114
113
  )
115
114
  "
116
115
  class="ig-types-tags-cell"
117
- >{{ intentCell.name }}</span
116
+ >{{ intentCell.exampleQuestion }}</span
118
117
  >
119
118
  </div>
120
119
  <!-- 竖向排版 -->
@@ -126,8 +125,7 @@
126
125
  class="ig-types-list"
127
126
  >
128
127
  <span
129
- v-for="(intentCell, intentCellIndex) in activeOtherObj
130
- .highFrequency.question"
128
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
131
129
  :key="`i_${intentCellIndex}`"
132
130
  @click="
133
131
  sendAiGuideInfo(
@@ -137,7 +135,7 @@
137
135
  "
138
136
  class="ig-types-list-cell"
139
137
  >
140
- <span>{{ intentCell.name }}</span>
138
+ <span>{{ intentCell.exampleQuestion }}</span>
141
139
  <span><i class="el-icon-arrow-right"></i></span
142
140
  ></span>
143
141
  </div>
@@ -150,8 +148,7 @@
150
148
  class="ig-types-tags"
151
149
  >
152
150
  <span
153
- v-for="(intentCell, intentCellIndex) in activeOtherObj
154
- .intelligenceRecommend.question"
151
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
155
152
  :key="`i_${intentCellIndex}`"
156
153
  @click="
157
154
  sendAiGuideInfo(
@@ -160,7 +157,7 @@
160
157
  )
161
158
  "
162
159
  class="ig-types-tags-cell"
163
- >{{ intentCell.name }}</span
160
+ >{{ intentCell.exampleQuestion }}</span
164
161
  >
165
162
  </div>
166
163
  <!-- 竖向排版 -->
@@ -172,8 +169,7 @@
172
169
  class="ig-types-list"
173
170
  >
174
171
  <span
175
- v-for="(intentCell, intentCellIndex) in activeOtherObj
176
- .intelligenceRecommend.question"
172
+ v-for="(intentCell, intentCellIndex) in recommendIntentPageList(activeOtherObj)"
177
173
  :key="`i_${intentCellIndex}`"
178
174
  @click="
179
175
  sendAiGuideInfo(
@@ -183,7 +179,7 @@
183
179
  "
184
180
  class="ig-types-list-cell"
185
181
  >
186
- <span>{{ intentCell.name }}</span>
182
+ <span>{{ intentCell.exampleQuestion }}</span>
187
183
  <span><i class="el-icon-arrow-right"></i></span
188
184
  ></span>
189
185
  </div>
@@ -309,7 +305,7 @@ export default {
309
305
  return arr;
310
306
  },
311
307
  sendAiGuideInfo(recommendType, cell) {
312
- console.log("组件-312", recommendType, cell);
308
+ console.log("组件-312-2", recommendType, cell);
313
309
  this.$emit('sendAiGuide', recommendType, cell);
314
310
  },
315
311
  },
@@ -133,7 +133,7 @@ export default {
133
133
  types: [
134
134
  {
135
135
  name: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题",
136
- recommendType: 0, // 0 关联意图 1 高频推荐意图 2 智能推荐
136
+ recommendType: 1, // 0 关联意图 1 高频推荐意图 2 智能推荐
137
137
  recommendIntentList: [
138
138
  { questionName: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题", intentId: 11 },
139
139
  { questionName: "打印机2", intentId: 11 },
@@ -147,7 +147,15 @@ export default {
147
147
  highFrequency: { // recommendType = 1
148
148
  rang: [], // 推荐范围
149
149
  number: 20, // 最多推荐问题数
150
- question: [],
150
+ question: [
151
+ { exampleQuestion: "常见问题常见问题常见问题常见问题常见问题常见问题常见问题常见问题", intentId: 11 },
152
+ { exampleQuestion: "打印机2", intentId: 11 },
153
+ { exampleQuestion: "打印机3", intentId: 11 },
154
+ { exampleQuestion: "打印机4", intentId: 11 },
155
+ { exampleQuestion: "打印机5", intentId: 11 },
156
+ { exampleQuestion: "打印机6", intentId: 11 },
157
+ { exampleQuestion: "打印机7", intentId: 11 },
158
+ ],
151
159
  },
152
160
  intelligenceRecommend: { // recommendType = 2
153
161
  recommendStrategy: [0, 1], // 0 根据与当前用户咨询过相同意图的用户所问的意图进行推荐 1 根据当前用户部门的其他用户咨询过的意图进行推荐