提交 f36060de authored 作者: taojinlong's avatar taojinlong

Merge branch 'v1.8' of github.com:dataease/dataease into v1.8

package io.dataease.auth.entity; package io.dataease.auth.entity;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -39,4 +38,7 @@ public class SysUserEntity implements Serializable { ...@@ -39,4 +38,7 @@ public class SysUserEntity implements Serializable {
@ApiModelProperty(hidden = true) @ApiModelProperty(hidden = true)
private Boolean isAdmin; private Boolean isAdmin;
@ApiModelProperty(hidden = true)
private Integer from;
} }
...@@ -141,7 +141,7 @@ public class AuthServer implements AuthApi { ...@@ -141,7 +141,7 @@ public class AuthServer implements AuthApi {
@Override @Override
public Boolean useInitPwd() { public Boolean useInitPwd() {
CurrentUserDto user = AuthUtils.getUser(); CurrentUserDto user = AuthUtils.getUser();
if (null == user) { if (null == user || 0 != user.getFrom()) {
return false; return false;
} }
String md5 = CodingUtil.md5(DEFAULT_PWD); String md5 = CodingUtil.md5(DEFAULT_PWD);
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<result column="phone" jdbcType="VARCHAR" property="phone"/> <result column="phone" jdbcType="VARCHAR" property="phone"/>
<result column="enabled" property="enabled"/> <result column="enabled" property="enabled"/>
<result column="is_admin" jdbcType="BIT" property="isAdmin"/> <result column="is_admin" jdbcType="BIT" property="isAdmin"/>
<result column="from" property="from"/>
</resultMap> </resultMap>
<resultMap id="roleMap" type="io.dataease.auth.api.dto.CurrentRoleDto"> <resultMap id="roleMap" type="io.dataease.auth.api.dto.CurrentRoleDto">
...@@ -21,19 +22,19 @@ ...@@ -21,19 +22,19 @@
<select id="findUser" resultMap="baseMap"> <select id="findUser" resultMap="baseMap">
select user_id, username,nick_name, dept_id, password, enabled,email, phone, language,is_admin from sys_user where user_id = #{userId} select user_id, username,nick_name, dept_id, password, enabled,email, phone, language,is_admin, `from` from sys_user where user_id = #{userId}
</select> </select>
<select id="findUserByName" resultMap="baseMap"> <select id="findUserByName" resultMap="baseMap">
select user_id, username,nick_name, dept_id, password, enabled,email, phone, language ,is_admin from sys_user where username = #{username} select user_id, username,nick_name, dept_id, password, enabled,email, phone, language ,is_admin, `from` from sys_user where username = #{username}
</select> </select>
<select id="findLdapUserByName" resultMap="baseMap"> <select id="findLdapUserByName" resultMap="baseMap">
select user_id, username,nick_name, dept_id, password, enabled,email, phone, language ,is_admin from sys_user a where username = #{username} and a.from = 1 select user_id, username,nick_name, dept_id, password, enabled,email, phone, language ,is_admin, `from` from sys_user a where username = #{username} and a.from = 1
</select> </select>
<select id="findUserBySub" resultMap="baseMap"> <select id="findUserBySub" resultMap="baseMap">
select user_id, username,nick_name, dept_id, password, enabled,email, phone, language ,is_admin from sys_user where sub = #{sub} select user_id, username,nick_name, dept_id, password, enabled,email, phone, language ,is_admin, `from` from sys_user where sub = #{sub}
</select> </select>
<select id="roleCodes" resultType="String"> <select id="roleCodes" resultType="String">
......
<template> <template>
<div class="de-tabs-div"> <div class="de-tabs-div">
<el-tabs v-model="activeTabName" type="card" class="de-tabs"> <el-tabs v-model="activeTabName" type="card" class="de-tabs" @tab-click="handleClick">
<el-tab-pane <el-tab-pane
v-for="(item, index) in element.options.tabList" v-for="(item, index) in element.options.tabList"
:key="item.name+index" :key="item.name+index"
...@@ -295,6 +295,15 @@ export default { ...@@ -295,6 +295,15 @@ export default {
}, },
chartResize() { chartResize() {
// this.$refs[this.activeTabName] // this.$refs[this.activeTabName]
},
handleClick(tab) {
const name = tab.name
this.element.options.tabList.forEach(item => {
if (item && item.name === name && item.content && item.content.propValue && item.content.propValue.viewId) {
this.filterMap[item.content.propValue.viewId] = item.content.filters
}
})
// console.log(tab)
} }
} }
......
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论