ai-error-assistant-pro 0.0.8 → 0.0.10
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/components/demo/api/index.js +12 -1
- package/components/demo/src/chat.vue +9 -2
- package/components/demo/src/error-chat.vue +6 -4
- package/components/demo/src/main.vue +13 -3
- package/components/demo/utils/config.js +2 -2
- package/dist/ai-error-assistant-pro.common.js +66 -34
- package/dist/ai-error-assistant-pro.common.js.map +1 -1
- package/dist/ai-error-assistant-pro.css +1 -1
- package/dist/ai-error-assistant-pro.umd.js +66 -34
- package/dist/ai-error-assistant-pro.umd.js.map +1 -1
- package/dist/ai-error-assistant-pro.umd.min.js +2 -2
- package/dist/ai-error-assistant-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,12 +7,13 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
|
|
|
7
7
|
|
|
8
8
|
// 0.0.7 版本接口升级
|
|
9
9
|
prefix += '/plugin/v2';
|
|
10
|
-
export const ssoAuth = (token) => {
|
|
10
|
+
export const ssoAuth = (token, businessSource) => {
|
|
11
11
|
return request({
|
|
12
12
|
url: prefix + '/sso/assistant',
|
|
13
13
|
method: 'get',
|
|
14
14
|
params: {
|
|
15
15
|
token: token,
|
|
16
|
+
businessSource
|
|
16
17
|
},
|
|
17
18
|
});
|
|
18
19
|
}
|
|
@@ -93,6 +94,16 @@ export async function getAutoQuestioning(iaId, message) {
|
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
/**
|
|
98
|
+
* 开场白及提示词查询
|
|
99
|
+
* */
|
|
100
|
+
export const queryCallWord = (resId) => {
|
|
101
|
+
return request({
|
|
102
|
+
url: prefix + `/ia/byCourseId?courseId=${resId}`,
|
|
103
|
+
method: 'get',
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
96
107
|
export async function sendMessageEventSource(params, signal, onmessage) {
|
|
97
108
|
return fetchEventSource(`${baseURL}${prefix}/assistant/conversation?token=${cache.session.getJSON('SRKJ_TOKEN_CACHE')}`, {
|
|
98
109
|
method: 'POST',
|
|
@@ -89,6 +89,10 @@ export default {
|
|
|
89
89
|
type: String,
|
|
90
90
|
default: '',
|
|
91
91
|
},
|
|
92
|
+
showMoreQA: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
},
|
|
92
96
|
},
|
|
93
97
|
data() {
|
|
94
98
|
return {
|
|
@@ -193,7 +197,9 @@ export default {
|
|
|
193
197
|
content: current.message || '正在思考中。',
|
|
194
198
|
});
|
|
195
199
|
}
|
|
196
|
-
this.
|
|
200
|
+
if (this.showMoreQA) {
|
|
201
|
+
this.makeAutoQuestioning(cacheMessage);
|
|
202
|
+
}
|
|
197
203
|
},
|
|
198
204
|
makeMessageLine(res, list) {
|
|
199
205
|
const { content, status, chatId, msgId, parentMsgId, reference, commonKey, connectUrl } = JSON.parse(res.data);
|
|
@@ -246,6 +252,7 @@ export default {
|
|
|
246
252
|
content: { followUps },
|
|
247
253
|
},
|
|
248
254
|
} = autoRes;
|
|
255
|
+
this.messageData[this.messageData.length - 1].followUps = [];
|
|
249
256
|
this.messageData[this.messageData.length - 1].followUps =
|
|
250
257
|
followUps.length > 3 ? followUps.splice(0, 3) : followUps;
|
|
251
258
|
},
|
|
@@ -408,7 +415,7 @@ export default {
|
|
|
408
415
|
|
|
409
416
|
.links {
|
|
410
417
|
position: relative;
|
|
411
|
-
height: 22px;
|
|
418
|
+
min-height: 22px;
|
|
412
419
|
line-height: 22px;
|
|
413
420
|
margin: 8px 0;
|
|
414
421
|
margin-left: 10px;
|
|
@@ -139,13 +139,15 @@ export default {
|
|
|
139
139
|
cai: type === 2
|
|
140
140
|
}
|
|
141
141
|
this.$emit('on-init', xhModelDetailVoList, chatId);
|
|
142
|
+
|
|
142
143
|
try {
|
|
143
144
|
this.analysisData = JSON.parse(content);
|
|
144
145
|
this.detailData.errId = errId;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
if (this.analysisData.recommend && this.analysisData.recommend.length > 0) {
|
|
147
|
+
for (let item of this.analysisData.recommend) {
|
|
148
|
+
if (!item.title.startsWith(this.chatMajorId)) {
|
|
149
|
+
this.allIdWithStart = false;
|
|
150
|
+
}
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
} catch (e) {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
<chat ref="chatRef"
|
|
19
19
|
:resId="resId"
|
|
20
20
|
:xtId="xtId"
|
|
21
|
+
:show-more-q-a="showMoreQA"
|
|
21
22
|
:key-word="aiMessageKeyWord"
|
|
22
23
|
:analy-exercise="analyExercise"
|
|
23
24
|
@on-reanser="reanserMethod"
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
import Chat from './chat.vue';
|
|
46
47
|
import Cookies from "js-cookie";
|
|
47
48
|
import { getUserInfo } from '../utils/config';
|
|
48
|
-
import {
|
|
49
|
+
import {checkCourseIdIsExist, queryCallWord} from '../api/index';
|
|
49
50
|
export default {
|
|
50
51
|
name: 'AiErrorAssistant',
|
|
51
52
|
components: {
|
|
@@ -54,6 +55,10 @@ export default {
|
|
|
54
55
|
props: {
|
|
55
56
|
visible: true,
|
|
56
57
|
analyExercise: {},
|
|
58
|
+
businessSource: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ''
|
|
61
|
+
}
|
|
57
62
|
},
|
|
58
63
|
computed: {
|
|
59
64
|
resId() {
|
|
@@ -84,13 +89,18 @@ export default {
|
|
|
84
89
|
stop: false,
|
|
85
90
|
courseFlag: false,
|
|
86
91
|
message:'',
|
|
92
|
+
showMoreQA: false,
|
|
87
93
|
}
|
|
88
94
|
},
|
|
89
|
-
mounted() {
|
|
95
|
+
async mounted() {
|
|
90
96
|
if (!Cookies.get("token")) {
|
|
91
97
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
92
98
|
}
|
|
93
|
-
getUserInfo(Cookies.get("token"));
|
|
99
|
+
getUserInfo(Cookies.get("token"), this.businessSource);
|
|
100
|
+
const wordRes = await queryCallWord(this.resId);
|
|
101
|
+
if (!wordRes) return;
|
|
102
|
+
const { showMoreQA } = wordRes;
|
|
103
|
+
this.showMoreQA = showMoreQA;
|
|
94
104
|
},
|
|
95
105
|
methods: {
|
|
96
106
|
closeMessage() {
|
|
@@ -86,7 +86,7 @@ export const cacheMessageList = [
|
|
|
86
86
|
// });
|
|
87
87
|
// cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
|
|
88
88
|
// }
|
|
89
|
-
export const getUserInfo = async (token) => {
|
|
90
|
-
await ssoAuth(token);
|
|
89
|
+
export const getUserInfo = async (token, businessSource) => {
|
|
90
|
+
await ssoAuth(token, businessSource);
|
|
91
91
|
cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
|
|
92
92
|
}
|
|
@@ -6546,7 +6546,7 @@ if (typeof window !== 'undefined') {
|
|
|
6546
6546
|
// Indicate to webpack that this file can be concatenated
|
|
6547
6547
|
/* harmony default export */ var setPublicPath = (null);
|
|
6548
6548
|
|
|
6549
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=
|
|
6549
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=30b5baca&scoped=true
|
|
6550
6550
|
var render = function render() {
|
|
6551
6551
|
var _vm = this,
|
|
6552
6552
|
_c = _vm._self._c;
|
|
@@ -6574,6 +6574,7 @@ var render = function render() {
|
|
|
6574
6574
|
attrs: {
|
|
6575
6575
|
"resId": _vm.resId,
|
|
6576
6576
|
"xtId": _vm.xtId,
|
|
6577
|
+
"show-more-q-a": _vm.showMoreQA,
|
|
6577
6578
|
"key-word": _vm.aiMessageKeyWord,
|
|
6578
6579
|
"analy-exercise": _vm.analyExercise
|
|
6579
6580
|
},
|
|
@@ -6643,10 +6644,10 @@ var staticRenderFns = [function () {
|
|
|
6643
6644
|
}, [_vm._v("智能解析")])]);
|
|
6644
6645
|
}];
|
|
6645
6646
|
|
|
6646
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
6647
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=30b5baca&scoped=true
|
|
6647
6648
|
|
|
6648
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=template&id=
|
|
6649
|
-
var
|
|
6649
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=template&id=87eb3e4e&scoped=true
|
|
6650
|
+
var chatvue_type_template_id_87eb3e4e_scoped_true_render = function render() {
|
|
6650
6651
|
var _vm = this,
|
|
6651
6652
|
_c = _vm._self._c;
|
|
6652
6653
|
return _c('div', {
|
|
@@ -6741,7 +6742,7 @@ var chatvue_type_template_id_d21026be_scoped_true_render = function render() {
|
|
|
6741
6742
|
}) : _vm._e()], 1)]);
|
|
6742
6743
|
})], 2);
|
|
6743
6744
|
};
|
|
6744
|
-
var
|
|
6745
|
+
var chatvue_type_template_id_87eb3e4e_scoped_true_staticRenderFns = [];
|
|
6745
6746
|
|
|
6746
6747
|
;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
|
|
6747
6748
|
|
|
@@ -10883,12 +10884,13 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
|
|
|
10883
10884
|
|
|
10884
10885
|
// 0.0.7 版本接口升级
|
|
10885
10886
|
prefix += '/plugin/v2';
|
|
10886
|
-
const ssoAuth = token => {
|
|
10887
|
+
const ssoAuth = (token, businessSource) => {
|
|
10887
10888
|
return utils_request({
|
|
10888
10889
|
url: prefix + '/sso/assistant',
|
|
10889
10890
|
method: 'get',
|
|
10890
10891
|
params: {
|
|
10891
|
-
token: token
|
|
10892
|
+
token: token,
|
|
10893
|
+
businessSource
|
|
10892
10894
|
}
|
|
10893
10895
|
});
|
|
10894
10896
|
};
|
|
@@ -10960,6 +10962,16 @@ async function getAutoQuestioning(iaId, message) {
|
|
|
10960
10962
|
messages: message
|
|
10961
10963
|
});
|
|
10962
10964
|
}
|
|
10965
|
+
|
|
10966
|
+
/**
|
|
10967
|
+
* 开场白及提示词查询
|
|
10968
|
+
* */
|
|
10969
|
+
const queryCallWord = resId => {
|
|
10970
|
+
return utils_request({
|
|
10971
|
+
url: prefix + `/ia/byCourseId?courseId=${resId}`,
|
|
10972
|
+
method: 'get'
|
|
10973
|
+
});
|
|
10974
|
+
};
|
|
10963
10975
|
async function sendMessageEventSource(params, signal, onmessage) {
|
|
10964
10976
|
return fetchEventSource(`${baseURL}${prefix}/assistant/conversation?token=${cache.session.getJSON('SRKJ_TOKEN_CACHE')}`, {
|
|
10965
10977
|
method: 'POST',
|
|
@@ -11047,8 +11059,8 @@ const cacheMessageList = [{
|
|
|
11047
11059
|
// });
|
|
11048
11060
|
// cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
|
|
11049
11061
|
// }
|
|
11050
|
-
const getUserInfo = async token => {
|
|
11051
|
-
await ssoAuth(token);
|
|
11062
|
+
const getUserInfo = async (token, businessSource) => {
|
|
11063
|
+
await ssoAuth(token, businessSource);
|
|
11052
11064
|
cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
|
|
11053
11065
|
};
|
|
11054
11066
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat-tools.vue?vue&type=template&id=a40a67cc&scoped=true
|
|
@@ -11441,8 +11453,8 @@ var component = normalizeComponent(
|
|
|
11441
11453
|
)
|
|
11442
11454
|
|
|
11443
11455
|
/* harmony default export */ var chat_tools = (component.exports);
|
|
11444
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=template&id=
|
|
11445
|
-
var
|
|
11456
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=template&id=98b221ca&scoped=true
|
|
11457
|
+
var error_chatvue_type_template_id_98b221ca_scoped_true_render = function render() {
|
|
11446
11458
|
var _vm = this,
|
|
11447
11459
|
_c = _vm._self._c;
|
|
11448
11460
|
return _c('div', {
|
|
@@ -11585,7 +11597,7 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_render = function render
|
|
|
11585
11597
|
}
|
|
11586
11598
|
})], 1)]);
|
|
11587
11599
|
};
|
|
11588
|
-
var
|
|
11600
|
+
var error_chatvue_type_template_id_98b221ca_scoped_true_staticRenderFns = [function () {
|
|
11589
11601
|
var _vm = this,
|
|
11590
11602
|
_c = _vm._self._c;
|
|
11591
11603
|
return _c('div', {
|
|
@@ -11604,7 +11616,7 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11604
11616
|
})]);
|
|
11605
11617
|
}];
|
|
11606
11618
|
|
|
11607
|
-
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=
|
|
11619
|
+
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=template&id=98b221ca&scoped=true
|
|
11608
11620
|
|
|
11609
11621
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=script&lang=js
|
|
11610
11622
|
|
|
@@ -11673,9 +11685,11 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11673
11685
|
try {
|
|
11674
11686
|
this.analysisData = JSON.parse(content);
|
|
11675
11687
|
this.detailData.errId = errId;
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
this.
|
|
11688
|
+
if (this.analysisData.recommend && this.analysisData.recommend.length > 0) {
|
|
11689
|
+
for (let item of this.analysisData.recommend) {
|
|
11690
|
+
if (!item.title.startsWith(this.chatMajorId)) {
|
|
11691
|
+
this.allIdWithStart = false;
|
|
11692
|
+
}
|
|
11679
11693
|
}
|
|
11680
11694
|
}
|
|
11681
11695
|
} catch (e) {
|
|
@@ -11729,10 +11743,10 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11729
11743
|
});
|
|
11730
11744
|
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=script&lang=js
|
|
11731
11745
|
/* harmony default export */ var src_error_chatvue_type_script_lang_js = (error_chatvue_type_script_lang_js);
|
|
11732
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=style&index=0&id=
|
|
11746
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/error-chat.vue?vue&type=style&index=0&id=98b221ca&prod&lang=scss&scoped=true
|
|
11733
11747
|
// extracted by mini-css-extract-plugin
|
|
11734
11748
|
|
|
11735
|
-
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=
|
|
11749
|
+
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=style&index=0&id=98b221ca&prod&lang=scss&scoped=true
|
|
11736
11750
|
|
|
11737
11751
|
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue
|
|
11738
11752
|
|
|
@@ -11745,11 +11759,11 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11745
11759
|
|
|
11746
11760
|
var error_chat_component = normalizeComponent(
|
|
11747
11761
|
src_error_chatvue_type_script_lang_js,
|
|
11748
|
-
|
|
11749
|
-
|
|
11762
|
+
error_chatvue_type_template_id_98b221ca_scoped_true_render,
|
|
11763
|
+
error_chatvue_type_template_id_98b221ca_scoped_true_staticRenderFns,
|
|
11750
11764
|
false,
|
|
11751
11765
|
null,
|
|
11752
|
-
"
|
|
11766
|
+
"98b221ca",
|
|
11753
11767
|
null
|
|
11754
11768
|
|
|
11755
11769
|
)
|
|
@@ -14270,6 +14284,10 @@ const signal = controller.signal;
|
|
|
14270
14284
|
xtId: {
|
|
14271
14285
|
type: String,
|
|
14272
14286
|
default: ''
|
|
14287
|
+
},
|
|
14288
|
+
showMoreQA: {
|
|
14289
|
+
type: Boolean,
|
|
14290
|
+
default: false
|
|
14273
14291
|
}
|
|
14274
14292
|
},
|
|
14275
14293
|
data() {
|
|
@@ -14376,7 +14394,9 @@ const signal = controller.signal;
|
|
|
14376
14394
|
content: current.message || '正在思考中。'
|
|
14377
14395
|
});
|
|
14378
14396
|
}
|
|
14379
|
-
this.
|
|
14397
|
+
if (this.showMoreQA) {
|
|
14398
|
+
this.makeAutoQuestioning(cacheMessage);
|
|
14399
|
+
}
|
|
14380
14400
|
},
|
|
14381
14401
|
makeMessageLine(res, list) {
|
|
14382
14402
|
const {
|
|
@@ -14439,6 +14459,7 @@ const signal = controller.signal;
|
|
|
14439
14459
|
}
|
|
14440
14460
|
}
|
|
14441
14461
|
} = autoRes;
|
|
14462
|
+
this.messageData[this.messageData.length - 1].followUps = [];
|
|
14442
14463
|
this.messageData[this.messageData.length - 1].followUps = followUps.length > 3 ? followUps.splice(0, 3) : followUps;
|
|
14443
14464
|
},
|
|
14444
14465
|
onStopChat(list) {
|
|
@@ -14508,10 +14529,10 @@ const signal = controller.signal;
|
|
|
14508
14529
|
});
|
|
14509
14530
|
;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=script&lang=js
|
|
14510
14531
|
/* harmony default export */ var src_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
|
|
14511
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=
|
|
14532
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/chat.vue?vue&type=style&index=0&id=87eb3e4e&prod&lang=scss&scoped=true
|
|
14512
14533
|
// extracted by mini-css-extract-plugin
|
|
14513
14534
|
|
|
14514
|
-
;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=
|
|
14535
|
+
;// CONCATENATED MODULE: ./components/demo/src/chat.vue?vue&type=style&index=0&id=87eb3e4e&prod&lang=scss&scoped=true
|
|
14515
14536
|
|
|
14516
14537
|
;// CONCATENATED MODULE: ./components/demo/src/chat.vue
|
|
14517
14538
|
|
|
@@ -14524,11 +14545,11 @@ const signal = controller.signal;
|
|
|
14524
14545
|
|
|
14525
14546
|
var chat_component = normalizeComponent(
|
|
14526
14547
|
src_chatvue_type_script_lang_js,
|
|
14527
|
-
|
|
14528
|
-
|
|
14548
|
+
chatvue_type_template_id_87eb3e4e_scoped_true_render,
|
|
14549
|
+
chatvue_type_template_id_87eb3e4e_scoped_true_staticRenderFns,
|
|
14529
14550
|
false,
|
|
14530
14551
|
null,
|
|
14531
|
-
"
|
|
14552
|
+
"87eb3e4e",
|
|
14532
14553
|
null
|
|
14533
14554
|
|
|
14534
14555
|
)
|
|
@@ -14682,7 +14703,11 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14682
14703
|
},
|
|
14683
14704
|
props: {
|
|
14684
14705
|
visible: true,
|
|
14685
|
-
analyExercise: {}
|
|
14706
|
+
analyExercise: {},
|
|
14707
|
+
businessSource: {
|
|
14708
|
+
type: String,
|
|
14709
|
+
default: ''
|
|
14710
|
+
}
|
|
14686
14711
|
},
|
|
14687
14712
|
computed: {
|
|
14688
14713
|
resId() {
|
|
@@ -14714,14 +14739,21 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14714
14739
|
// 传入组件值
|
|
14715
14740
|
stop: false,
|
|
14716
14741
|
courseFlag: false,
|
|
14717
|
-
message: ''
|
|
14742
|
+
message: '',
|
|
14743
|
+
showMoreQA: false
|
|
14718
14744
|
};
|
|
14719
14745
|
},
|
|
14720
|
-
mounted() {
|
|
14746
|
+
async mounted() {
|
|
14721
14747
|
if (!api.get("token")) {
|
|
14722
14748
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
14723
14749
|
}
|
|
14724
|
-
getUserInfo(api.get("token"));
|
|
14750
|
+
getUserInfo(api.get("token"), this.businessSource);
|
|
14751
|
+
const wordRes = await queryCallWord(this.resId);
|
|
14752
|
+
if (!wordRes) return;
|
|
14753
|
+
const {
|
|
14754
|
+
showMoreQA
|
|
14755
|
+
} = wordRes;
|
|
14756
|
+
this.showMoreQA = showMoreQA;
|
|
14725
14757
|
},
|
|
14726
14758
|
methods: {
|
|
14727
14759
|
closeMessage() {
|
|
@@ -14774,10 +14806,10 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14774
14806
|
});
|
|
14775
14807
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
14776
14808
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
14777
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
14809
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=30b5baca&prod&lang=scss&scoped=true
|
|
14778
14810
|
// extracted by mini-css-extract-plugin
|
|
14779
14811
|
|
|
14780
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
14812
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=30b5baca&prod&lang=scss&scoped=true
|
|
14781
14813
|
|
|
14782
14814
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
14783
14815
|
|
|
@@ -14794,7 +14826,7 @@ var main_component = normalizeComponent(
|
|
|
14794
14826
|
staticRenderFns,
|
|
14795
14827
|
false,
|
|
14796
14828
|
null,
|
|
14797
|
-
"
|
|
14829
|
+
"30b5baca",
|
|
14798
14830
|
null
|
|
14799
14831
|
|
|
14800
14832
|
)
|