vue2-client 1.8.116 → 1.8.119

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/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.8.114 - 1.8.116 -2024-3-14 @张振宇**
5
- - 增加ql展示组件
4
+ **1.8.117 -2024-3-14 @张振宇**
5
+ - 如果是microapp环境 直接退出登录 由父应用进行提示
6
6
 
7
7
  **1.8.103-1.8.106 -2024-3-14 @张振宇**
8
8
  - 增加对话库功能
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.116",
3
+ "version": "1.8.119",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -80,7 +80,7 @@ const GetAppDataService = {
80
80
  }
81
81
  },
82
82
  // 新版获取配置中心字典推荐使用 服务名默认为当前服务
83
- getDictByKey (dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME, callback) {
83
+ getDictByKey (dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME, callback) {
84
84
  getConfigByName(dictKey, undefined, result => {
85
85
  callback(result.value)
86
86
  })
@@ -6,7 +6,7 @@
6
6
  <a-row>
7
7
  <ChartSelector :rawData="pane.content" v-if="pane?.content?.length"/>
8
8
  </a-row>
9
- <EvaluationArea :uuid="pane.key" v-if="pane.key && pane.content" @submitEvaluationLib="submitEvaluationLib"/>
9
+ <!-- <EvaluationArea :uuid="pane.key" v-if="pane.key && pane.content" @submitEvaluationLib="submitEvaluationLib"/>-->
10
10
  </a-row>
11
11
  </template>
12
12
 
@@ -10,6 +10,9 @@
10
10
  :rowKey="record => record.id">
11
11
  <template slot="footer">
12
12
  <a-space>
13
+ <span>
14
+ <strong>{{ `总行数 : ${tableData.length}` }}</strong>
15
+ </span>
13
16
  <span v-for="column in tableColumns" :key="column.key">
14
17
  <strong v-if="column.sum !== undefined">{{ `${column.key} : ${column.sum}` }}</strong>
15
18
  </span>
@@ -117,6 +117,13 @@
117
117
  </span>
118
118
  </a-list-item-meta>
119
119
  <a-space>
120
+ <a-tooltip title="查看元数据">
121
+ <a-icon
122
+ v-if="renderItem.data"
123
+ type="eye"
124
+ @click.stop="openMetaDataModal(renderItem)"/>
125
+ </a-tooltip>
126
+ <span>&emsp;</span>
120
127
  <a-tooltip :title="renderItem.isFavorite ? '取消收藏' : '收藏'" v-if="renderItem.sql">
121
128
  <a-icon
122
129
  type="star"
@@ -213,9 +220,9 @@ export default {
213
220
  color: '#FF4F53'
214
221
  },
215
222
  2: {
216
- icon: 'frown',
217
- text: '待改进',
218
- color: '#52c41a'
223
+ icon: 'dislike',
224
+ text: '不满意',
225
+ color: '#FF4F53'
219
226
  }
220
227
  }, // 对话库
221
228
  // 元数据窗口
@@ -130,6 +130,7 @@ export default {
130
130
  uuid: uuid,
131
131
  question: value,
132
132
  queryType: queryType,
133
+ evaluation: -1,
133
134
  filterTable: res.filter_table,
134
135
  prompt: res.prompt,
135
136
  relationTable: res.relation_table,
@@ -188,7 +188,13 @@ function loadInterceptors () {
188
188
  if (code === 401) {
189
189
  if (!isReloginShow) {
190
190
  isReloginShow = true
191
- notification.open({
191
+ if (window.__MICRO_APP_ENVIRONMENT__) {
192
+ logout().then(() => {
193
+ isReloginShow = false
194
+ location.href = '/login'
195
+ })
196
+ } else {
197
+ notification.open({
192
198
  message: '系统提示',
193
199
  description: '登录状态已过期,请重新登录',
194
200
  btn: h => {
@@ -216,6 +222,7 @@ function loadInterceptors () {
216
222
  isReloginShow = false
217
223
  }
218
224
  })
225
+ }
219
226
  }
220
227
  } else if (code === 500) {
221
228
  if (requestUrl !== '/login') {