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 +2 -2
- package/package.json +1 -1
- package/src/base-client/plugins/AppData.js +1 -1
- package/src/pages/DynamicStatistics/DataTabs.vue +1 -1
- package/src/pages/DynamicStatistics/DynamicTable.vue +3 -0
- package/src/pages/DynamicStatistics/QuestionHistoryAndFavorites.vue +10 -3
- package/src/pages/DynamicStatistics/index.vue +1 -0
- package/src/utils/request.js +8 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ const GetAppDataService = {
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
// 新版获取配置中心字典推荐使用 服务名默认为当前服务
|
|
83
|
-
getDictByKey (dictKey, serviceName = process.env.VUE_APP_SYSTEM_NAME,
|
|
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> </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: '
|
|
217
|
-
text: '
|
|
218
|
-
color: '#
|
|
223
|
+
icon: 'dislike',
|
|
224
|
+
text: '不满意',
|
|
225
|
+
color: '#FF4F53'
|
|
219
226
|
}
|
|
220
227
|
}, // 对话库
|
|
221
228
|
// 元数据窗口
|
package/src/utils/request.js
CHANGED
|
@@ -188,7 +188,13 @@ function loadInterceptors () {
|
|
|
188
188
|
if (code === 401) {
|
|
189
189
|
if (!isReloginShow) {
|
|
190
190
|
isReloginShow = true
|
|
191
|
-
|
|
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') {
|