提交 36a327f8 authored 作者: wangjiahao's avatar wangjiahao

fix: UI 调整

上级 fac1cdf5
...@@ -15,6 +15,7 @@ import io.dataease.controller.request.SysAuthRequest; ...@@ -15,6 +15,7 @@ import io.dataease.controller.request.SysAuthRequest;
import io.dataease.dto.SysAuthDTO; import io.dataease.dto.SysAuthDTO;
import io.dataease.dto.SysDeptDTO; import io.dataease.dto.SysDeptDTO;
import io.dataease.dto.VAuthModelDTO; import io.dataease.dto.VAuthModelDTO;
import io.dataease.i18n.Translator;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -80,7 +81,9 @@ public class SysAuthService { ...@@ -80,7 +81,9 @@ public class SysAuthService {
SysAuthDetail sysAuthDetail = request.getAuthDetail(); SysAuthDetail sysAuthDetail = request.getAuthDetail();
//TODO 获取需要授权的资源id(当前节点和所有权限的下级节点) //TODO 获取需要授权的资源id(当前节点和所有权限的下级节点)
List<String> authSources = getAuthModels(request.getAuthSource(), request.getAuthSourceType()); List<String> authSources = getAuthModels(request.getAuthSource(), request.getAuthSourceType());
if(CollectionUtils.isEmpty(authSources)){
throw new RuntimeException(Translator.get("i18n_auth_source_be_canceled"));
}
//TODO 获取需要被授权的目标id(部门当前节点和所有权限的下级节点) //TODO 获取需要被授权的目标id(部门当前节点和所有权限的下级节点)
List<String> authTargets =getAuthModels(request.getAuthTarget(), request.getAuthTargetType()); List<String> authTargets =getAuthModels(request.getAuthTarget(), request.getAuthTargetType());
......
/*
Navicat Premium Data Transfer
Source Server : A-LOCAL-本机数据库
Source Server Type : MySQL
Source Server Version : 50726
Source Host : localhost:3306
Source Schema : data_ease
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 27/05/2021 14:59:53
*/
SET NAMES utf8mb4; SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0; SET FOREIGN_KEY_CHECKS = 0;
...@@ -429,8 +444,6 @@ delimiter ; ...@@ -429,8 +444,6 @@ delimiter ;
SET FOREIGN_KEY_CHECKS = 1; SET FOREIGN_KEY_CHECKS = 1;
SET NAMES utf8mb4; SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0; SET FOREIGN_KEY_CHECKS = 0;
......
...@@ -239,3 +239,5 @@ i18n_processing_data=Processing data now, Refresh later ...@@ -239,3 +239,5 @@ i18n_processing_data=Processing data now, Refresh later
i18n_union_already_exists=Union relation already exists i18n_union_already_exists=Union relation already exists
i18n_union_field_exists=The same field can't in two dataset i18n_union_field_exists=The same field can't in two dataset
i18n_cron_time_error=Start time can't greater then end time i18n_cron_time_error=Start time can't greater then end time
i18n_auth_source_be_canceled=This Auth Resource Already Be Canceled
...@@ -241,3 +241,4 @@ i18n_processing_data=正在处理数据,稍后刷新 ...@@ -241,3 +241,4 @@ i18n_processing_data=正在处理数据,稍后刷新
i18n_union_already_exists=关联关系已存在 i18n_union_already_exists=关联关系已存在
i18n_union_field_exists=两个数据集之间关联不能出现多次相同字段 i18n_union_field_exists=两个数据集之间关联不能出现多次相同字段
i18n_cron_time_error=开始时间不能大于结束时间 i18n_cron_time_error=开始时间不能大于结束时间
i18n_auth_source_be_canceled=当前资源授权权限已经被取消
...@@ -240,4 +240,5 @@ i18n_panel_list=仪表盘 ...@@ -240,4 +240,5 @@ i18n_panel_list=仪表盘
i18n_processing_data=正在處理數據,稍後刷新 i18n_processing_data=正在處理數據,稍後刷新
i18n_union_already_exists=關聯關系已存在 i18n_union_already_exists=關聯關系已存在
i18n_union_field_exists=兩個數據集之間關聯不能出現多次相同字段 i18n_union_field_exists=兩個數據集之間關聯不能出現多次相同字段
i18n_cron_time_error=開始時間不能大於結束時間 i18n_cron_time_error=開始時間不能大於結束時間
\ No newline at end of file i18n_auth_source_be_canceled=当前资源授权权限已经被取消
...@@ -30,7 +30,7 @@ export function querySubjectWithGroup(data) { ...@@ -30,7 +30,7 @@ export function querySubjectWithGroup(data) {
return request({ return request({
url: '/panel/subject/querySubjectWithGroup', url: '/panel/subject/querySubjectWithGroup',
method: 'post', method: 'post',
loading: false, loading: true,
data data
}) })
} }
......
...@@ -6,18 +6,18 @@ export default { ...@@ -6,18 +6,18 @@ export default {
snapshotData: [], // 编辑器快照数据 snapshotData: [], // 编辑器快照数据
snapshotStyleData: [], // 样式改变也记录快照 snapshotStyleData: [], // 样式改变也记录快照
snapshotIndex: -1 // 快照索引 snapshotIndex: -1 // 快照索引
}, },
mutations: { mutations: {
undo(state) { undo(state) {
state.snapshotIndex-- if (state.snapshotIndex > 0) {
if (state.snapshotIndex >= 0) { state.snapshotIndex--
store.commit('setComponentData', deepCopy(state.snapshotData[state.snapshotIndex])) store.commit('setComponentData', deepCopy(state.snapshotData[state.snapshotIndex]))
store.commit('setCanvasStyle', deepCopy(state.snapshotStyleData[state.snapshotIndex])) store.commit('setCanvasStyle', deepCopy(state.snapshotStyleData[state.snapshotIndex]))
} }
}, },
redo(state) { redo(state) {
debugger
if (state.snapshotIndex < state.snapshotData.length - 1) { if (state.snapshotIndex < state.snapshotData.length - 1) {
state.snapshotIndex++ state.snapshotIndex++
store.commit('setComponentData', deepCopy(state.snapshotData[state.snapshotIndex])) store.commit('setComponentData', deepCopy(state.snapshotData[state.snapshotIndex]))
...@@ -35,7 +35,6 @@ export default { ...@@ -35,7 +35,6 @@ export default {
state.snapshotStyleData = state.snapshotStyleData.slice(0, state.snapshotIndex + 1) state.snapshotStyleData = state.snapshotStyleData.slice(0, state.snapshotIndex + 1)
} }
}, },
refreshSnapshot(state) { refreshSnapshot(state) {
// 刷新快照 // 刷新快照
state.snapshotData = [] state.snapshotData = []
......
...@@ -234,3 +234,6 @@ div:focus { ...@@ -234,3 +234,6 @@ div:focus {
color: #23beef; color: #23beef;
margin: 0 2px 0 0; margin: 0 2px 0 0;
} }
.el-popper{
position: fixed!important;
}
...@@ -341,6 +341,12 @@ export default { ...@@ -341,6 +341,12 @@ export default {
} }
}, },
watch: { watch: {
// 切换展示页面后 重新点击一下当前节点
'$store.state.panel.mainActiveName': function(newVal, oldVal) {
if (newVal === 'PanelMain' && this.lastActiveNode && this.lastActiveNodeData) {
this.activeNodeAndClickOnly(this.lastActiveNodeData)
}
}
}, },
mounted() { mounted() {
this.$store.commit('setComponentData', []) this.$store.commit('setComponentData', [])
...@@ -634,6 +640,18 @@ export default { ...@@ -634,6 +640,18 @@ export default {
}) })
}) })
} }
},
// 激活当前节点
activeNodeAndClickOnly(panelInfo) {
if (panelInfo) {
this.$nextTick(() => {
// 延迟设置CurrentKey
this.$refs.panel_list_tree.setCurrentKey(panelInfo.id)
this.$nextTick(() => {
document.querySelector('.is-current').firstChild.click()
})
})
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论