ai-error-assistant-pro 0.0.9 → 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 +2 -1
- package/components/demo/src/error-chat.vue +6 -4
- package/components/demo/src/main.vue +5 -1
- package/components/demo/utils/config.js +2 -2
- package/dist/ai-error-assistant-pro.common.js +30 -23
- 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 +30 -23
- 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
|
}
|
|
@@ -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) {
|
|
@@ -55,6 +55,10 @@ export default {
|
|
|
55
55
|
props: {
|
|
56
56
|
visible: true,
|
|
57
57
|
analyExercise: {},
|
|
58
|
+
businessSource: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ''
|
|
61
|
+
}
|
|
58
62
|
},
|
|
59
63
|
computed: {
|
|
60
64
|
resId() {
|
|
@@ -92,7 +96,7 @@ export default {
|
|
|
92
96
|
if (!Cookies.get("token")) {
|
|
93
97
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
94
98
|
}
|
|
95
|
-
getUserInfo(Cookies.get("token"));
|
|
99
|
+
getUserInfo(Cookies.get("token"), this.businessSource);
|
|
96
100
|
const wordRes = await queryCallWord(this.resId);
|
|
97
101
|
if (!wordRes) return;
|
|
98
102
|
const { showMoreQA } = wordRes;
|
|
@@ -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;
|
|
@@ -6644,7 +6644,7 @@ var staticRenderFns = [function () {
|
|
|
6644
6644
|
}, [_vm._v("智能解析")])]);
|
|
6645
6645
|
}];
|
|
6646
6646
|
|
|
6647
|
-
;// 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
|
|
6648
6648
|
|
|
6649
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
6650
|
var chatvue_type_template_id_87eb3e4e_scoped_true_render = function render() {
|
|
@@ -10884,12 +10884,13 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
|
|
|
10884
10884
|
|
|
10885
10885
|
// 0.0.7 版本接口升级
|
|
10886
10886
|
prefix += '/plugin/v2';
|
|
10887
|
-
const ssoAuth = token => {
|
|
10887
|
+
const ssoAuth = (token, businessSource) => {
|
|
10888
10888
|
return utils_request({
|
|
10889
10889
|
url: prefix + '/sso/assistant',
|
|
10890
10890
|
method: 'get',
|
|
10891
10891
|
params: {
|
|
10892
|
-
token: token
|
|
10892
|
+
token: token,
|
|
10893
|
+
businessSource
|
|
10893
10894
|
}
|
|
10894
10895
|
});
|
|
10895
10896
|
};
|
|
@@ -11058,8 +11059,8 @@ const cacheMessageList = [{
|
|
|
11058
11059
|
// });
|
|
11059
11060
|
// cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
|
|
11060
11061
|
// }
|
|
11061
|
-
const getUserInfo = async token => {
|
|
11062
|
-
await ssoAuth(token);
|
|
11062
|
+
const getUserInfo = async (token, businessSource) => {
|
|
11063
|
+
await ssoAuth(token, businessSource);
|
|
11063
11064
|
cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
|
|
11064
11065
|
};
|
|
11065
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
|
|
@@ -11452,8 +11453,8 @@ var component = normalizeComponent(
|
|
|
11452
11453
|
)
|
|
11453
11454
|
|
|
11454
11455
|
/* harmony default export */ var chat_tools = (component.exports);
|
|
11455
|
-
;// 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=
|
|
11456
|
-
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() {
|
|
11457
11458
|
var _vm = this,
|
|
11458
11459
|
_c = _vm._self._c;
|
|
11459
11460
|
return _c('div', {
|
|
@@ -11596,7 +11597,7 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_render = function render
|
|
|
11596
11597
|
}
|
|
11597
11598
|
})], 1)]);
|
|
11598
11599
|
};
|
|
11599
|
-
var
|
|
11600
|
+
var error_chatvue_type_template_id_98b221ca_scoped_true_staticRenderFns = [function () {
|
|
11600
11601
|
var _vm = this,
|
|
11601
11602
|
_c = _vm._self._c;
|
|
11602
11603
|
return _c('div', {
|
|
@@ -11615,7 +11616,7 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11615
11616
|
})]);
|
|
11616
11617
|
}];
|
|
11617
11618
|
|
|
11618
|
-
;// 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
|
|
11619
11620
|
|
|
11620
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
|
|
11621
11622
|
|
|
@@ -11684,9 +11685,11 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11684
11685
|
try {
|
|
11685
11686
|
this.analysisData = JSON.parse(content);
|
|
11686
11687
|
this.detailData.errId = errId;
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
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
|
+
}
|
|
11690
11693
|
}
|
|
11691
11694
|
}
|
|
11692
11695
|
} catch (e) {
|
|
@@ -11740,10 +11743,10 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11740
11743
|
});
|
|
11741
11744
|
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue?vue&type=script&lang=js
|
|
11742
11745
|
/* harmony default export */ var src_error_chatvue_type_script_lang_js = (error_chatvue_type_script_lang_js);
|
|
11743
|
-
;// 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
|
|
11744
11747
|
// extracted by mini-css-extract-plugin
|
|
11745
11748
|
|
|
11746
|
-
;// 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
|
|
11747
11750
|
|
|
11748
11751
|
;// CONCATENATED MODULE: ./components/demo/src/error-chat.vue
|
|
11749
11752
|
|
|
@@ -11756,11 +11759,11 @@ var error_chatvue_type_template_id_72bccb65_scoped_true_staticRenderFns = [funct
|
|
|
11756
11759
|
|
|
11757
11760
|
var error_chat_component = normalizeComponent(
|
|
11758
11761
|
src_error_chatvue_type_script_lang_js,
|
|
11759
|
-
|
|
11760
|
-
|
|
11762
|
+
error_chatvue_type_template_id_98b221ca_scoped_true_render,
|
|
11763
|
+
error_chatvue_type_template_id_98b221ca_scoped_true_staticRenderFns,
|
|
11761
11764
|
false,
|
|
11762
11765
|
null,
|
|
11763
|
-
"
|
|
11766
|
+
"98b221ca",
|
|
11764
11767
|
null
|
|
11765
11768
|
|
|
11766
11769
|
)
|
|
@@ -14700,7 +14703,11 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14700
14703
|
},
|
|
14701
14704
|
props: {
|
|
14702
14705
|
visible: true,
|
|
14703
|
-
analyExercise: {}
|
|
14706
|
+
analyExercise: {},
|
|
14707
|
+
businessSource: {
|
|
14708
|
+
type: String,
|
|
14709
|
+
default: ''
|
|
14710
|
+
}
|
|
14704
14711
|
},
|
|
14705
14712
|
computed: {
|
|
14706
14713
|
resId() {
|
|
@@ -14740,7 +14747,7 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14740
14747
|
if (!api.get("token")) {
|
|
14741
14748
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
14742
14749
|
}
|
|
14743
|
-
getUserInfo(api.get("token"));
|
|
14750
|
+
getUserInfo(api.get("token"), this.businessSource);
|
|
14744
14751
|
const wordRes = await queryCallWord(this.resId);
|
|
14745
14752
|
if (!wordRes) return;
|
|
14746
14753
|
const {
|
|
@@ -14799,10 +14806,10 @@ var api = init(defaultConverter, { path: '/' });
|
|
|
14799
14806
|
});
|
|
14800
14807
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
14801
14808
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
14802
|
-
;// 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
|
|
14803
14810
|
// extracted by mini-css-extract-plugin
|
|
14804
14811
|
|
|
14805
|
-
;// 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
|
|
14806
14813
|
|
|
14807
14814
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
14808
14815
|
|
|
@@ -14819,7 +14826,7 @@ var main_component = normalizeComponent(
|
|
|
14819
14826
|
staticRenderFns,
|
|
14820
14827
|
false,
|
|
14821
14828
|
null,
|
|
14822
|
-
"
|
|
14829
|
+
"30b5baca",
|
|
14823
14830
|
null
|
|
14824
14831
|
|
|
14825
14832
|
)
|