@@ -121,6 +121,8 @@ export default {
return this.componentDataShow
},
...mapState([
+ 'isClickComponent',
+ 'curComponent',
'componentData',
'canvasStyleData'
])
@@ -204,6 +206,17 @@ export default {
},
exportExcel() {
this.$refs['userViewDialog'].exportExcel()
+ },
+ deselectCurComponent(e) {
+ debugger
+ if (!this.isClickComponent) {
+ this.$store.commit('setCurComponent', { component: null, index: null })
+ }
+ },
+ handleMouseDown() {
+ // console.log('handleMouseDown123')
+
+ this.$store.commit('setClickComponentStatus', false)
}
}
}
diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue
index 1b1efa03dc..00cf67d92c 100644
--- a/frontend/src/components/canvas/custom-component/UserView.vue
+++ b/frontend/src/components/canvas/custom-component/UserView.vue
@@ -8,7 +8,7 @@
'rect-shape'
]"
>
-
{{ message }},{{ $t('chart.chart_show_error') }}
@@ -66,6 +66,10 @@ export default {
type: Boolean,
required: false,
default: false
+ },
+ componentIndex: {
+ type: Number,
+ required: false
}
},
data() {
@@ -128,7 +132,6 @@ export default {
this.getData(this.element.propValue.viewId)
},
mounted() {
-
},
methods: {
mergeStyle() {
diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index 4483b3eb4c..f679a7883e 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -126,7 +126,8 @@ export default {
expires: 'Login token expired, please login again',
tokenError: 'Token error, please login again',
username_error: 'Please enter the correct ID',
- password_error: 'The password can not be less than 8 digits'
+ password_error: 'The password can not be less than 8 digits',
+ login_again: 'Login again'
},
commons: {
no_target_permission: 'No permission',
@@ -333,7 +334,9 @@ export default {
input_pwd: 'Please input password',
message_box: {
alert: 'Alert',
- confirm: 'Confirm'
+ confirm: 'Confirm',
+ ok: 'Confirm',
+ cancel: 'Cancel'
}
},
documentation: {
@@ -751,7 +754,6 @@ export default {
chart_funnel: 'Funnel',
chart_radar: 'Radar',
chart_gauge: 'Gauge',
- chart_map: 'Map',
dateStyle: 'Date Style',
datePattern: 'Date Format',
y: 'Year',
@@ -820,11 +822,6 @@ export default {
drag_block_funnel_split: 'Funnel Split',
drag_block_radar_length: 'Branch Length',
drag_block_radar_label: 'Branch Label',
- stack_item: 'Stack Item',
- map_range: 'Map range',
- select_map_range: 'Please select map range',
- area: 'Area',
- placeholder_field: 'Drag Field To Here',
axis_label_rotate: 'Label Rotate'
},
dataset: {
@@ -979,18 +976,7 @@ export default {
right_join: 'RIGHT JOIN',
inner_join: 'INNER JOIN',
full_join: 'FULL JOIN',
- can_not_union_diff_datasource: 'Union dataset must have same data source',
- operator: 'Operator',
- d_q_trans: 'Dimension/Quota Transform',
- add_calc_field: 'Create calc field',
- input_name: 'Please input name',
- field_exp: 'Field Expression',
- data_type: 'Data Type',
- click_ref_field: 'Click Quote Field',
- click_ref_function: 'Click Quote Function',
- field_manage: 'Field Manage',
- edit_calc_field: 'Edit calc field',
- calc_field: 'Calc Field'
+ can_not_union_diff_datasource: 'Union dataset must have same data source'
},
datasource: {
datasource: 'Data Source',
@@ -1304,54 +1290,5 @@ export default {
i18n_msg_type_dataset_sync_faild: 'Dataset synchronization failed',
i18n_msg_type_all: 'All type',
channel_inner_msg: 'On site news'
- },
- denumberrange: {
- label: 'Number range',
- split_placeholder: 'To',
- please_key_min: 'Please key min value',
- please_key_max: 'Please key max value',
- out_of_min: 'The min value cannot be less than the min integer -2³²',
- out_of_max: 'The max value cannot be more than the max integer 2³²-1',
- must_int: 'Please key interger',
- min_out_max: 'The min value must be less than the max value',
- max_out_min: 'The max value must be more than the min value'
- },
- denumberselect: {
- label: 'Number selector',
- placeholder: 'Please select'
- },
- deinputsearch: {
- label: 'Text search',
- placeholder: 'Please key keyword'
- },
- detextselect: {
- label: 'Text selector',
- placeholder: 'Please select'
- },
- detextgridselect: {
- label: 'Text list',
- placeholder: 'Please select'
- },
- denumbergridselect: {
- label: 'Number list',
- placeholder: 'Please select'
- },
- dedaterange: {
- label: 'Date range',
- to_placeholder: 'End date',
- from_placeholder: 'Start date',
- split_placeholder: 'To'
- },
- dedate: {
- label: 'Date',
- placeholder: 'Please select date'
- },
- deyearmonth: {
- label: 'Month',
- placeholder: 'Please select month'
- },
- deyear: {
- label: 'Year',
- placeholder: 'Please select year'
}
}
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index 962a8561d9..3c57b6c6b2 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -109,24 +109,25 @@ export default {
navbar: {
dashboard: '首頁',
github: '項目地址',
- logOut: '退出登陸',
+ logOut: '退出登錄',
profile: '個人中心',
theme: '換膚',
size: '佈局大小'
},
login: {
- title: '系統登陸',
+ title: '系統登錄',
welcome: '歡迎使用',
- logIn: '登陸',
+ logIn: '登錄',
username: '帳號',
password: '密碼',
any: '任意字符',
- thirdparty: '第三方登陸',
+ thirdparty: '第三方登錄',
thirdpartyTips: '本地不能模擬,請結合自己業務進行模擬!!!',
- expires: '登陸信息過期,請重新登陸',
- tokenError: '信息錯誤,請重新登陸',
+ expires: '登錄信息過期,請重新登錄',
+ tokenError: '信息錯誤,請重新登錄',
username_error: '請輸入正確的 ID',
- password_error: '密碼不小於 8 位'
+ password_error: '密碼不小於 8 位',
+ login_again: '重新登錄'
},
commons: {
no_target_permission: '沒有權限',
@@ -183,7 +184,7 @@ export default {
prompt: '提示',
operating: '操作',
input_limit: '長度在 {0} 到 {1} 個字符',
- login: '登陸',
+ login: '登錄',
welcome: '一站式開源數據分析平臺',
username: '姓名',
password: '密碼',
@@ -255,7 +256,7 @@ export default {
remove: '移除',
remove_cancel: '移除取消',
remove_success: '移除成功',
- tips: '認證信息已過期,請重新登陸',
+ tips: '認證信息已過期,請重新登錄',
not_performed_yet: '尚未執行',
incorrect_input: '輸入內容不正確',
delete_confirm: '請輸入以下內容,確認刪除:',
@@ -333,7 +334,9 @@ export default {
input_pwd: '請輸入密碼',
message_box: {
alert: '警告',
- confirm: '確認'
+ confirm: '確認',
+ ok: '確認',
+ cancel: '取消'
}
},
documentation: {
@@ -751,7 +754,6 @@ export default {
chart_funnel: '漏鬥圖',
chart_radar: '雷達圖',
chart_gauge: '儀表盤',
- chart_map: '地圖',
dateStyle: '日期顯示',
datePattern: '日期格式',
y: '年',
@@ -820,11 +822,6 @@ export default {
drag_block_funnel_split: '漏鬥分層',
drag_block_radar_length: '分支長度',
drag_block_radar_label: '分支標簽',
- map_range: '地圖範圍',
- select_map_range: '請選擇地圖範圍',
- area: '地區',
- stack_item: '堆疊項',
- placeholder_field: '拖動字段至此處',
axis_label_rotate: '標簽角度'
},
dataset: {
@@ -979,18 +976,7 @@ export default {
right_join: '右連接',
inner_join: '內連接',
full_join: '全連接',
- can_not_union_diff_datasource: '被關聯數據集必須與當前數據集的數據源一致',
- operator: '操作',
- d_q_trans: '維度/指標轉換',
- add_calc_field: '新建计算字段',
- input_name: '請輸入名稱',
- field_exp: '字段表達式',
- data_type: '數據類型',
- click_ref_field: '點擊引用字段',
- click_ref_function: '點擊引用函數',
- field_manage: '字段管理',
- edit_calc_field: '編輯計算字段',
- calc_field: '計算字段'
+ can_not_union_diff_datasource: '被關聯數據集必須與當前數據集的數據源一致'
},
datasource: {
datasource: '數據源',
@@ -1143,7 +1129,7 @@ export default {
lineHeight: '行高',
letterSpacing: '字間距',
textAlign: '左右對齊',
- opacity: '不透明度',
+ opacity: '透明度',
verticalAlign: '上下對齊',
text_align_left: '左對齊',
text_align_center: '左右居中',
@@ -1182,9 +1168,9 @@ export default {
},
display: {
logo: '頭部系統 Logo',
- loginLogo: '登陸頁面頭部 Logo',
- loginImage: '登陸頁面右側圖片',
- loginTitle: '登陸頁面標題',
+ loginLogo: '登錄頁面頭部 Logo',
+ loginImage: '登錄頁面右側圖片',
+ loginTitle: '登錄頁面標題',
title: '系統名稱',
advice_size: '建議圖片大小'
},
@@ -1304,54 +1290,5 @@ export default {
i18n_msg_type_dataset_sync_faild: '數據集同步失敗',
i18n_msg_type_all: '全部類型',
channel_inner_msg: '站內消息'
- },
- denumberrange: {
- label: '數值區間',
- split_placeholder: '至',
- please_key_min: '請輸入最小值',
- please_key_max: '請輸入最大值',
- out_of_min: '最小值不能小于最小整數-2³²',
- out_of_max: '最大值不能大于最大整數2³²-1',
- must_int: '請輸入整數',
- min_out_max: '最小值必須小于最大值',
- max_out_min: '最大值必須大于最小值'
- },
- denumberselect: {
- label: '數字下拉',
- placeholder: '請選擇'
- },
- deinputsearch: {
- label: '文本搜索',
- placeholder: '請輸入關鍵字'
- },
- detextselect: {
- label: '文本下拉',
- placeholder: '請選擇'
- },
- detextgridselect: {
- label: '文本列表',
- placeholder: '請選擇'
- },
- denumbergridselect: {
- label: '數字列表',
- placeholder: '請選擇'
- },
- dedaterange: {
- label: '日期範圍',
- to_placeholder: '結束日期',
- from_placeholder: '開始日期',
- split_placeholder: '至'
- },
- dedate: {
- label: '日期',
- placeholder: '請選擇日期'
- },
- deyearmonth: {
- label: '年月',
- placeholder: '請選擇年月'
- },
- deyear: {
- label: '年份',
- placeholder: '請選擇年份'
}
}
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index 742fdcc74f..6d94326ab0 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -126,7 +126,8 @@ export default {
expires: '登录信息过期,请重新登录',
tokenError: '登陆信息错误,请重新登录',
username_error: '请输入正确的 ID',
- password_error: '密码不小于 8 位'
+ password_error: '密码不小于 8 位',
+ login_again: '重新登录'
},
commons: {
no_target_permission: '没有权限',
@@ -333,7 +334,9 @@ export default {
input_pwd: '请输入密码',
message_box: {
alert: '警告',
- confirm: '确认'
+ confirm: '确认',
+ ok: '确认',
+ cancel: '取消'
}
},
documentation: {
@@ -751,7 +754,6 @@ export default {
chart_funnel: '漏斗图',
chart_radar: '雷达图',
chart_gauge: '仪表盘',
- chart_map: '地图',
dateStyle: '日期显示',
datePattern: '日期格式',
y: '年',
@@ -820,11 +822,6 @@ export default {
drag_block_funnel_split: '漏斗分层',
drag_block_radar_length: '分支长度',
drag_block_radar_label: '分支标签',
- map_range: '地图范围',
- select_map_range: '请选择地图范围',
- area: '地区',
- stack_item: '堆叠项',
- placeholder_field: '拖动字段至此处',
axis_label_rotate: '标签角度'
},
dataset: {
@@ -979,18 +976,7 @@ export default {
right_join: '右连接',
inner_join: '内连接',
full_join: '全连接',
- can_not_union_diff_datasource: '被关联数据集必须与当前数据集的数据源一致',
- operator: '操作',
- d_q_trans: '维度/指标转换',
- add_calc_field: '新建计算字段',
- input_name: '请输入名称',
- field_exp: '字段表达式',
- data_type: '数据类型',
- click_ref_field: '点击引用字段',
- click_ref_function: '点击引用函数',
- field_manage: '字段管理',
- edit_calc_field: '编辑计算字段',
- calc_field: '计算字段'
+ can_not_union_diff_datasource: '被关联数据集必须与当前数据集的数据源一致'
},
datasource: {
datasource: '数据源',
@@ -1023,7 +1009,8 @@ export default {
oracle_service_name: '服务名',
get_schema: '获取 Schema',
schema: '数据库 Schema',
- please_choose_schema: '请选择数据库 Schema'
+ please_choose_schema: '请选择数据库 Schema',
+ edit_datasource_msg: '修改数据源信息,可能会导致改数据源下的数据集不可用,确认修改?'
},
pblink: {
key_pwd: '请输入密码打开链接',
@@ -1144,7 +1131,7 @@ export default {
lineHeight: '行高',
letterSpacing: '字间距',
textAlign: '左右对齐',
- opacity: '不透明度',
+ opacity: '透明度',
verticalAlign: '上下对齐',
text_align_left: '左对齐',
text_align_center: '左右居中',
@@ -1306,54 +1293,5 @@ export default {
i18n_msg_type_dataset_sync_faild: '数据集同步失败',
i18n_msg_type_all: '全部类型',
channel_inner_msg: '站内消息'
- },
- denumberrange: {
- label: '数值区间',
- split_placeholder: '至',
- please_key_min: '请输入最小值',
- please_key_max: '请输入最大值',
- out_of_min: '最小值不能小于最小整数-2³²',
- out_of_max: '最大值不能大于最大整数2³²-1',
- must_int: '请输入整数',
- min_out_max: '最小值必须小于最大值',
- max_out_min: '最大值必须大于最小值'
- },
- denumberselect: {
- label: '数字下拉',
- placeholder: '请选择'
- },
- deinputsearch: {
- label: '文本搜索',
- placeholder: '请输入关键字'
- },
- detextselect: {
- label: '文本下拉',
- placeholder: '请选择'
- },
- detextgridselect: {
- label: '文本列表',
- placeholder: '请选择'
- },
- denumbergridselect: {
- label: '数字列表',
- placeholder: '请选择'
- },
- dedaterange: {
- label: '日期范围',
- to_placeholder: '结束日期',
- from_placeholder: '开始日期',
- split_placeholder: '至'
- },
- dedate: {
- label: '日期',
- placeholder: '请选择日期'
- },
- deyearmonth: {
- label: '年月',
- placeholder: '请选择年月'
- },
- deyear: {
- label: '年份',
- placeholder: '请选择年份'
}
}
diff --git a/frontend/src/utils/message.js b/frontend/src/utils/message.js
index fd72e88a30..74f3daa4de 100644
--- a/frontend/src/utils/message.js
+++ b/frontend/src/utils/message.js
@@ -9,8 +9,8 @@ export const $alert = (message, callback, options) => {
export const $confirm = (message, callback, options = {}) => {
const defaultOptions = {
- confirmButtonText: i18n.t('common.button.ok'),
- cancelButtonText: i18n.t('common.button.cancel'),
+ confirmButtonText: i18n.t('commons.message_box.ok'),
+ cancelButtonText: i18n.t('commons.message_box.cancel'),
type: 'warning',
...options
}
diff --git a/frontend/src/utils/request.js b/frontend/src/utils/request.js
index 6a048824f6..23b2a1f7dd 100644
--- a/frontend/src/utils/request.js
+++ b/frontend/src/utils/request.js
@@ -16,7 +16,7 @@ const LinkTokenKey = Config.LinkTokenKey
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
- timeout: 10000 // request timeout
+ timeout: 20000 // request timeout
})
// request interceptor
@@ -62,6 +62,9 @@ const checkAuth = response => {
store.dispatch('user/logout').then(() => {
location.reload()
})
+ }, {
+ confirmButtonText: i18n.t('login.login_again'),
+ showClose: false
})
}
@@ -71,6 +74,9 @@ const checkAuth = response => {
store.dispatch('user/logout').then(() => {
location.reload()
})
+ }, {
+ confirmButtonText: i18n.t('login.login_again'),
+ showClose: false
})
}
// token到期后自动续命 刷新token
diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js
index aec2f2a89d..e01892261c 100644
--- a/frontend/src/views/chart/chart/chart.js
+++ b/frontend/src/views/chart/chart/chart.js
@@ -508,11 +508,7 @@ export const BASE_RADAR = {
},
indicator: []
},
- series: [{
- type: 'radar',
- // areaStyle: {normal: {}},
- data: []
- }]
+ series: []
}
export const BASE_GAUGE = {
diff --git a/frontend/src/views/chart/chart/radar/radar.js b/frontend/src/views/chart/chart/radar/radar.js
index 113984ee5e..cf1e9b37a1 100644
--- a/frontend/src/views/chart/chart/radar/radar.js
+++ b/frontend/src/views/chart/chart/radar/radar.js
@@ -36,8 +36,20 @@ export function baseRadarOption(chart_option, chart) {
y.label = customAttr.label
}
chart_option.legend.data.push(y.name)
+
+ const d = {
+ name: y.name,
+ type: 'radar',
+ data: [
+ {
+ value: y.data,
+ name: y.name,
+ label: y.label
+ }
+ ]
+ }
y.value = JSON.parse(JSON.stringify(y.data))
- chart_option.series[0].data.push(y)
+ chart_option.series.push(d)
maxValues.push(Math.max.apply(null, y.value))
}
diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue
index 6fae053c64..3f0e5c76e7 100644
--- a/frontend/src/views/chart/group/Group.vue
+++ b/frontend/src/views/chart/group/Group.vue
@@ -315,7 +315,6 @@