提交 d828901d authored 作者: wangjiahao's avatar wangjiahao

fix: bug fxt

上级 a5ebc48b
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<where> <where>
model_type = #{modelType} model_type = #{modelType}
<if test="createBy != null"> <if test="createBy != null">
and ( v_auth_model.type ='spine' OR ( v_auth_model.create_by = #{createBy} AND v_auth_model.type = 'leaf')) and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( (select GROUP_CONCAT(id) from v_auth_model where model_type = #{modelType} and create_by =#{createBy}) ,#{modelType}))
</if> </if>
<if test="pid !=null"> <if test="pid !=null">
and v_auth_model.pid = #{pid} and v_auth_model.pid = #{pid}
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<where> <where>
model_type = #{modelType} model_type = #{modelType}
<if test="createBy != null"> <if test="createBy != null">
and ( v_auth_model.type ='spine' OR ( v_auth_model.create_by = #{createBy} AND v_auth_model.type = 'leaf')) and FIND_IN_SET(v_auth_model.id,GET_V_AUTH_MODEL_WITH_PARENT ( (select GROUP_CONCAT(id) from v_auth_model where model_type = #{modelType} and create_by =#{createBy}) ,#{modelType}))
</if> </if>
</where> </where>
) authTemp ) authTemp
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
auth.id = authCount.pid auth.id = authCount.pid
<where> <where>
<if test="createBy != null"> <if test="createBy != null">
(chartcount.children_count>0 or chart.create_by = #{createBy}) (authCount.children_count>0 or auth.create_by = #{createBy})
</if> </if>
</where> </where>
......
...@@ -51,7 +51,7 @@ public class DatasourceService { ...@@ -51,7 +51,7 @@ public class DatasourceService {
datasource.setId(UUID.randomUUID().toString()); datasource.setId(UUID.randomUUID().toString());
datasource.setUpdateTime(currentTimeMillis); datasource.setUpdateTime(currentTimeMillis);
datasource.setCreateTime(currentTimeMillis); datasource.setCreateTime(currentTimeMillis);
datasource.setCreateBy(String.valueOf(AuthUtils.getUser().getUserId())); datasource.setCreateBy(String.valueOf(AuthUtils.getUser().getUsername()));
datasourceMapper.insertSelective(datasource); datasourceMapper.insertSelective(datasource);
return datasource; return datasource;
} }
......
...@@ -36,6 +36,7 @@ CREATE TABLE IF NOT EXISTS `user_role` ( ...@@ -36,6 +36,7 @@ CREATE TABLE IF NOT EXISTS `user_role` (
)ENGINE = InnoDB )ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4; DEFAULT CHARSET = utf8mb4;
DROP TABLE IF EXISTS `datasource`;
CREATE TABLE `datasource` ( CREATE TABLE `datasource` (
`id` varchar(50) NOT NULL DEFAULT '' COMMENT 'ID', `id` varchar(50) NOT NULL DEFAULT '' COMMENT 'ID',
`name` varchar(50) NOT NULL COMMENT '名称', `name` varchar(50) NOT NULL COMMENT '名称',
...@@ -467,4 +468,4 @@ CREATE TABLE `my_plugin` ( ...@@ -467,4 +468,4 @@ CREATE TABLE `my_plugin` (
`bean_name` varchar(40) DEFAULT NULL COMMENT 'bean名称', `bean_name` varchar(40) DEFAULT NULL COMMENT 'bean名称',
`icon` varchar(255) DEFAULT NULL COMMENT '图标', `icon` varchar(255) DEFAULT NULL COMMENT '图标',
PRIMARY KEY (`plugin_id`) PRIMARY KEY (`plugin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
\ No newline at end of file
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
}, },
created() { created() {
this.targetActiveName = this.targetInfoArray[0].authType this.targetActiveName = this.targetInfoArray[0].authType
this.sourceActiveName = this.sourceInfoArray[0].authType
}, },
methods: { methods: {
......
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
}) })
} }
} else { } else {
resolve([]) resolve(node.data.children)
} }
}, },
filterNode(index) { filterNode(index) {
...@@ -197,7 +197,6 @@ export default { ...@@ -197,7 +197,6 @@ export default {
// 高亮显示 // 高亮显示
this.highlights(res.data) this.highlights(res.data)
this.treeData = this.buildTree(res.data) this.treeData = this.buildTree(res.data)
// 恢复searchStatus 状态 可以允许继续展开父级 // 恢复searchStatus 状态 可以允许继续展开父级
this.$nextTick(() => (this.searchStatus = false)) this.$nextTick(() => (this.searchStatus = false))
}) })
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<span slot="label">{{$t('auth.authConfig')}}</span> <span slot="label">{{$t('auth.authConfig')}}</span>
<auth-config /> <auth-config />
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="authQuickConfig"> <!-- <el-tab-pane name="authQuickConfig">-->
<span slot="label">{{$t('auth.authQuickConfig')}}</span> <!-- <span slot="label">{{$t('auth.authQuickConfig')}}</span>-->
<auth-quick-config /> <!-- <auth-quick-config />-->
</el-tab-pane> <!-- </el-tab-pane>-->
</el-tabs> </el-tabs>
</de-main-container> </de-main-container>
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论