ai-read-over-pro 0.0.9 → 0.0.11

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.
@@ -7,12 +7,13 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
7
7
 
8
8
  // 0.0.9 版本接口升级
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
  }
@@ -101,6 +101,10 @@ export default {
101
101
  autoApply: {
102
102
  type: Boolean,
103
103
  default: false,
104
+ },
105
+ businessSource: {
106
+ type: String,
107
+ default: ''
104
108
  }
105
109
  },
106
110
  data() {
@@ -156,7 +160,7 @@ export default {
156
160
  return this.$message.warning('未获取到登录信息,请重新登录');
157
161
  }
158
162
  this.messageList = [];
159
- getUserInfo(Cookies.get("token"));
163
+ getUserInfo(Cookies.get("token"), this.businessSource);
160
164
  },
161
165
  methods: {
162
166
  resizeFirstActive() {
@@ -233,7 +237,7 @@ export default {
233
237
  // 更新当前值
234
238
  this.analyzeData = this.replyCache[this.activeItem.id] || {};
235
239
  delete this.replayId[currentId];
236
- if (!this.replayedCache[id]) {
240
+ if (!this.replayedCache[id] && this.autoApply) {
237
241
  this.autoNotyApply(message, backData);
238
242
  this.replayedCache[id] = true;
239
243
  }
@@ -40,7 +40,7 @@ export const errorList = [
40
40
  // });
41
41
  // cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
42
42
  // }
43
- export const getUserInfo = async (token) => {
44
- await ssoAuth(token);
43
+ export const getUserInfo = async (token, businessSource) => {
44
+ await ssoAuth(token, businessSource);
45
45
  cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
46
46
  }
@@ -6530,7 +6530,7 @@ if (typeof window !== 'undefined') {
6530
6530
  // Indicate to webpack that this file can be concatenated
6531
6531
  /* harmony default export */ var setPublicPath = (null);
6532
6532
 
6533
- ;// 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=ed702f7c&scoped=true
6533
+ ;// 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=85c1fa22&scoped=true
6534
6534
  var render = function render() {
6535
6535
  var _vm = this,
6536
6536
  _c = _vm._self._c;
@@ -6671,7 +6671,7 @@ var staticRenderFns = [function () {
6671
6671
  }, [_vm._v("智能批阅")])]);
6672
6672
  }];
6673
6673
 
6674
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=ed702f7c&scoped=true
6674
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=85c1fa22&scoped=true
6675
6675
 
6676
6676
  ;// 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/read-over.vue?vue&type=template&id=6e49adbb&scoped=true
6677
6677
  var read_overvue_type_template_id_6e49adbb_scoped_true_render = function render() {
@@ -10798,12 +10798,13 @@ let prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants
10798
10798
 
10799
10799
  // 0.0.9 版本接口升级
10800
10800
  prefix += '/plugin/v2';
10801
- const ssoAuth = token => {
10801
+ const ssoAuth = (token, businessSource) => {
10802
10802
  return utils_request({
10803
10803
  url: prefix + '/sso/assistant',
10804
10804
  method: 'get',
10805
10805
  params: {
10806
- token: token
10806
+ token: token,
10807
+ businessSource
10807
10808
  }
10808
10809
  });
10809
10810
  };
@@ -10922,8 +10923,8 @@ const errorList = [{
10922
10923
  // });
10923
10924
  // cache.session.setJSON('SRKJ_TOKEN_CACHE', userRes);
10924
10925
  // }
10925
- const getUserInfo = async token => {
10926
- await ssoAuth(token);
10926
+ const getUserInfo = async (token, businessSource) => {
10927
+ await ssoAuth(token, businessSource);
10927
10928
  cache.session.setJSON('SRKJ_TOKEN_CACHE', token);
10928
10929
  };
10929
10930
  ;// 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/chat-tools.vue?vue&type=script&lang=js
@@ -11701,6 +11702,10 @@ var member_table_component = normalizeComponent(
11701
11702
  autoApply: {
11702
11703
  type: Boolean,
11703
11704
  default: false
11705
+ },
11706
+ businessSource: {
11707
+ type: String,
11708
+ default: ''
11704
11709
  }
11705
11710
  },
11706
11711
  data() {
@@ -11761,7 +11766,7 @@ var member_table_component = normalizeComponent(
11761
11766
  return this.$message.warning('未获取到登录信息,请重新登录');
11762
11767
  }
11763
11768
  this.messageList = [];
11764
- getUserInfo(api.get("token"));
11769
+ getUserInfo(api.get("token"), this.businessSource);
11765
11770
  },
11766
11771
  methods: {
11767
11772
  resizeFirstActive() {
@@ -11844,7 +11849,7 @@ var member_table_component = normalizeComponent(
11844
11849
  // 更新当前值
11845
11850
  this.analyzeData = this.replyCache[this.activeItem.id] || {};
11846
11851
  delete this.replayId[currentId];
11847
- if (!this.replayedCache[id]) {
11852
+ if (!this.replayedCache[id] && this.autoApply) {
11848
11853
  this.autoNotyApply(message, backData);
11849
11854
  this.replayedCache[id] = true;
11850
11855
  }
@@ -11920,10 +11925,10 @@ var member_table_component = normalizeComponent(
11920
11925
  });
11921
11926
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
11922
11927
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
11923
- ;// 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=ed702f7c&prod&lang=scss&scoped=true
11928
+ ;// 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=85c1fa22&prod&lang=scss&scoped=true
11924
11929
  // extracted by mini-css-extract-plugin
11925
11930
 
11926
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=ed702f7c&prod&lang=scss&scoped=true
11931
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=85c1fa22&prod&lang=scss&scoped=true
11927
11932
 
11928
11933
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue
11929
11934
 
@@ -11940,7 +11945,7 @@ var main_component = normalizeComponent(
11940
11945
  staticRenderFns,
11941
11946
  false,
11942
11947
  null,
11943
- "ed702f7c",
11948
+ "85c1fa22",
11944
11949
  null
11945
11950
 
11946
11951
  )