提交 54f8f1e9 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 f68b62d6
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
<i v-if=" item.iconcls && !Object.is(item.iconcls, '')" :class="item.iconcls"></i> <i v-if=" item.iconcls && !Object.is(item.iconcls, '')" :class="item.iconcls"></i>
<img v-else-if="item.icon && !Object.is(item.icon, '')" :src="item.icon" /> <img v-else-if="item.icon && !Object.is(item.icon, '')" :src="item.icon" />
<span class="app-quick-item-label">{{item.label}}</span> <span class="app-quick-item-label">{{item.label}}</span>
<span v-show="isSelectedItem(item)" class="app-quick-item-counter">0</span> <span v-show="isSelectedItem(item) && counterService && counterService.counterData && counterService.counterData[item.codename]" class="app-quick-item-counter">{{itemTag(item)}}</span>
</span> </span>
<el-dropdown v-if="item.children" style="outline: none !important;" trigger="click" @command="handleCommand($event,item)"> <el-dropdown v-if="item.children" style="outline: none !important;" trigger="click" @command="handleCommand($event,item)">
<span :style="{color:item.color}" :class="{'app-seleted-item':isSelectedItem(item)}"> <span :style="{color:item.color}" :class="{'app-seleted-item':isSelectedItem(item)}">
<i v-if=" item.iconcls && !Object.is(item.iconcls, '')" :class="item.iconcls"></i> <i v-if=" item.iconcls && !Object.is(item.iconcls, '')" :class="item.iconcls"></i>
<img v-else-if="item.icon && !Object.is(item.icon, '')" :src="item.icon" /> <img v-else-if="item.icon && !Object.is(item.icon, '')" :src="item.icon" />
<span class="app-quick-item-label">{{item.label}}</span> <span class="app-quick-item-label">{{item.label}}</span>
<span v-show="isSelectedItem(item)" class="app-quick-item-counter">0</span> <span v-show="isSelectedItem(item) && counterService && counterService.counterData && counterService.counterData[item.codename]" class="app-quick-item-counter">{{itemTag(item)}}</span>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="childitem in item.children" :command="childitem" :key="childitem.id"> <el-dropdown-item v-for="childitem in item.children" :command="childitem" :key="childitem.id">
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
<script lang="ts"> <script lang="ts">
import { Vue, Component, Prop, Model, Emit } from "vue-property-decorator"; import { Vue, Component, Prop, Model, Emit } from "vue-property-decorator";
import CounterService from "@/counter/counter-service";
@Component({}) @Component({})
export default class AppQuickGroup extends Vue { export default class AppQuickGroup extends Vue {
...@@ -48,23 +47,7 @@ export default class AppQuickGroup extends Vue { ...@@ -48,23 +47,7 @@ export default class AppQuickGroup extends Vue {
* @type {string} * @type {string}
* @memberof AppQuickGroup * @memberof AppQuickGroup
*/ */
@Prop() public counterName?:string; @Prop() public counterService?:any;
/**
* 计数器服务基类
*
* @type {any}
* @memberof AppQuickGroup
*/
public counterService:any = new CounterService();
/**
* 当前计数器服务
*
* @type {any}
* @memberof AppQuickGroup
*/
public curCounterService:any;
/** /**
* UI选中项 * UI选中项
...@@ -90,6 +73,14 @@ export default class AppQuickGroup extends Vue { ...@@ -90,6 +73,14 @@ export default class AppQuickGroup extends Vue {
} }
} }
public itemTag(item:any){
if(this.counterService && this.counterService.counterData && item.codename){
return this.counterService.counterData[item.codename];
}else{
return "";
}
}
/** /**
* 是否选中当前项 * 是否选中当前项
* *
...@@ -154,9 +145,7 @@ export default class AppQuickGroup extends Vue { ...@@ -154,9 +145,7 @@ export default class AppQuickGroup extends Vue {
* @memberof AppQuickGroup * @memberof AppQuickGroup
*/ */
public handleClick($event:any,isswitch:boolean = true){ public handleClick($event:any,isswitch:boolean = true){
if($event && $event.data){ this.$emit('valuechange',$event);
this.$emit('valuechange',$event.data);
}
if(isswitch){ if(isswitch){
this.selectedUiItem = $event; this.selectedUiItem = $event;
} }
...@@ -172,6 +161,7 @@ export default class AppQuickGroup extends Vue { ...@@ -172,6 +161,7 @@ export default class AppQuickGroup extends Vue {
*/ */
public handleCommand($event:any,item:any){ public handleCommand($event:any,item:any){
item.label = $event.label; item.label = $event.label;
item.codename = $event.codename;
this.handleClick($event,false); this.handleClick($event,false);
} }
......
...@@ -117,6 +117,9 @@ export default class MDViewEngine extends ViewEngine { ...@@ -117,6 +117,9 @@ export default class MDViewEngine extends ViewEngine {
if (Object.is(eventName, 'load')) { if (Object.is(eventName, 'load')) {
this.onSearchFormLoad(args); this.onSearchFormLoad(args);
} }
if (Object.is(eventName, 'search')) {
this.onSearchFormLoad(args);
}
} }
/** /**
...@@ -157,6 +160,20 @@ export default class MDViewEngine extends ViewEngine { ...@@ -157,6 +160,20 @@ export default class MDViewEngine extends ViewEngine {
this.isLoadDefault = true; this.isLoadDefault = true;
} }
/**
* 搜索表单搜索
*
* @param {*} [args={}]
* @memberof MDViewEngine
*/
public onSearchFormSearch(args: any = {}): void {
if (this.getMDCtrl() && this.isLoadDefault) {
const tag = this.getMDCtrl().name;
this.setViewState2({ tag: tag, action: 'load', viewdata: this.view.viewparams });
}
this.isLoadDefault = true;
}
/** /**
* 处理实体界面行为 * 处理实体界面行为
* *
......
...@@ -1270,6 +1270,7 @@ export default class SYS_PERMISSIONGridViewBase extends Vue { ...@@ -1270,6 +1270,7 @@ export default class SYS_PERMISSIONGridViewBase extends Vue {
*/ */
public isSingleSelect: boolean = false; public isSingleSelect: boolean = false;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
* *
......
...@@ -1298,6 +1298,7 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue { ...@@ -1298,6 +1298,7 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue {
*/ */
public isSingleSelect: boolean = false; public isSingleSelect: boolean = false;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
* *
......
...@@ -1270,6 +1270,7 @@ export default class SYS_ROLEGridViewBase extends Vue { ...@@ -1270,6 +1270,7 @@ export default class SYS_ROLEGridViewBase extends Vue {
*/ */
public isSingleSelect: boolean = false; public isSingleSelect: boolean = false;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
* *
......
...@@ -1298,6 +1298,7 @@ export default class SYS_USER_ROLEGridViewBase extends Vue { ...@@ -1298,6 +1298,7 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
*/ */
public isSingleSelect: boolean = false; public isSingleSelect: boolean = false;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
* *
......
...@@ -1270,6 +1270,7 @@ export default class SYS_USERGridViewBase extends Vue { ...@@ -1270,6 +1270,7 @@ export default class SYS_USERGridViewBase extends Vue {
*/ */
public isSingleSelect: boolean = false; public isSingleSelect: boolean = false;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
* *
......
...@@ -784,7 +784,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -784,7 +784,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
...@@ -796,7 +796,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -796,7 +796,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
......
...@@ -672,7 +672,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -672,7 +672,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
...@@ -684,7 +684,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -684,7 +684,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
......
...@@ -756,7 +756,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -756,7 +756,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
...@@ -768,7 +768,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -768,7 +768,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
......
...@@ -672,7 +672,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -672,7 +672,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
...@@ -684,7 +684,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -684,7 +684,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
......
...@@ -672,7 +672,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -672,7 +672,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
...@@ -684,7 +684,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -684,7 +684,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
this.$emit('load', this.data); this.$emit('search', this.data);
} }
/** /**
......
...@@ -27,6 +27,7 @@ import java.util.List; ...@@ -27,6 +27,7 @@ import java.util.List;
@MapperScan("cn.ibizlab.*.mapper") @MapperScan("cn.ibizlab.*.mapper")
@SpringBootApplication(exclude = { @SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
}) })
public class webApplication extends WebMvcConfigurerAdapter{ public class webApplication extends WebMvcConfigurerAdapter{
......
...@@ -32,9 +32,5 @@ zuul: ...@@ -32,9 +32,5 @@ zuul:
path: /sys_psdeopprivs/** path: /sys_psdeopprivs/**
serviceId: ibzuaa-api serviceId: ibzuaa-api
stripPrefix: false stripPrefix: false
wfcore:
path: /wfcore/**
serviceId: ibzwf-api
stripPrefix: true
sensitive-headers: sensitive-headers:
- Cookie,Set-Cookie,Authorization - Cookie,Set-Cookie,Authorization
...@@ -15,8 +15,10 @@ import java.util.List; ...@@ -15,8 +15,10 @@ import java.util.List;
@EnableDiscoveryClient @EnableDiscoveryClient
@Configuration @Configuration
@EnableTransactionManagement @EnableTransactionManagement
@SpringBootApplication
@EnableFeignClients(basePackages = {"cn.ibizlab" }) @EnableFeignClients(basePackages = {"cn.ibizlab" })
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
})
public class DevBootApplication extends WebMvcConfigurerAdapter{ public class DevBootApplication extends WebMvcConfigurerAdapter{
public static void main(String[] args) { public static void main(String[] args) {
......
server: server:
port: 8080 port: 8080
#zuul网关路由设置
zuul:
routes:
sensitive-headers:
- Cookie,Set-Cookie,Authorization
...@@ -23,6 +23,7 @@ import java.util.List; ...@@ -23,6 +23,7 @@ import java.util.List;
@MapperScan("cn.ibizlab.*.mapper") @MapperScan("cn.ibizlab.*.mapper")
@SpringBootApplication(exclude = { @SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
}) })
@EnableFeignClients(basePackages = {"cn.ibizlab" }) @EnableFeignClients(basePackages = {"cn.ibizlab" })
public class ibzuaaapiApplication extends WebMvcConfigurerAdapter{ public class ibzuaaapiApplication extends WebMvcConfigurerAdapter{
......
...@@ -12,6 +12,7 @@ import cn.ibizlab.util.filter.QueryBuildContext; ...@@ -12,6 +12,7 @@ import cn.ibizlab.util.filter.QueryBuildContext;
import cn.ibizlab.util.filter.QueryWrapperContext; import cn.ibizlab.util.filter.QueryWrapperContext;
import cn.ibizlab.util.helper.DEFieldCacheMap; import cn.ibizlab.util.helper.DEFieldCacheMap;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.BasicQuery; import org.springframework.data.mongodb.core.query.BasicQuery;
import org.springframework.data.mongodb.core.query.Query; import org.springframework.data.mongodb.core.query.Query;
...@@ -48,6 +49,7 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -48,6 +49,7 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
private String keyFieldTag="keyfield"; private String keyFieldTag="keyfield";
@Resource @Resource
@Lazy
private MongoTemplate mongoTemplate; private MongoTemplate mongoTemplate;
/** /**
......
...@@ -27,7 +27,7 @@ public class AuthorizationTokenFilter extends OncePerRequestFilter { ...@@ -27,7 +27,7 @@ public class AuthorizationTokenFilter extends OncePerRequestFilter {
private final AuthTokenUtil authTokenUtil; private final AuthTokenUtil authTokenUtil;
private final String tokenHeader; private final String tokenHeader;
public AuthorizationTokenFilter( AuthenticationUserService userDetailsService, AuthTokenUtil authTokenUtil, @Value("${ibiz.jwt.header:Authorization}") String tokenHeader) { public AuthorizationTokenFilter(AuthenticationUserService userDetailsService, AuthTokenUtil authTokenUtil, @Value("${ibiz.jwt.header:Authorization}") String tokenHeader) {
this.userDetailsService = userDetailsService; this.userDetailsService = userDetailsService;
this.authTokenUtil = authTokenUtil; this.authTokenUtil = authTokenUtil;
this.tokenHeader = tokenHeader; this.tokenHeader = tokenHeader;
......
...@@ -12,11 +12,13 @@ import org.springframework.context.annotation.Primary; ...@@ -12,11 +12,13 @@ import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils; import org.springframework.util.DigestUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
/** /**
* 实体[IBZUSER] 服务对象接口实现 * 实体[IBZUSER] 服务对象接口实现
*/ */
@Service("IBZUAAUserService") @Service("IBZUAAUserService")
@ConditionalOnExpression("${ibiz.enablePermissionValid:false}||'${ibiz.auth.service:SimpleUserService}'.equals('IBZUAAUserService')")
public class IBZUAAUserService implements AuthenticationUserService{ public class IBZUAAUserService implements AuthenticationUserService{
@Autowired @Autowired
......
...@@ -13,11 +13,13 @@ import cn.ibizlab.util.mapper.IBZUSERMapper; ...@@ -13,11 +13,13 @@ import cn.ibizlab.util.mapper.IBZUSERMapper;
import cn.ibizlab.util.domain.IBZUSER; import cn.ibizlab.util.domain.IBZUSER;
import org.springframework.util.DigestUtils; import org.springframework.util.DigestUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
/** /**
* 实体[IBZUSER] 服务对象接口实现 * 实体[IBZUSER] 服务对象接口实现
*/ */
@Service("IBZUSERService") @Service("IBZUSERService")
@ConditionalOnExpression("(!${ibiz.enablePermissionValid:false})&&'${ibiz.auth.service:SimpleUserService}'.equals('IBZUSERService')")
public class IBZUSERServiceImpl extends ServiceImpl<IBZUSERMapper, IBZUSER> implements IBZUSERService,AuthenticationUserService{ public class IBZUSERServiceImpl extends ServiceImpl<IBZUSERMapper, IBZUSER> implements IBZUSERService,AuthenticationUserService{
@Value("${ibiz.auth.pwencrymode:0}") @Value("${ibiz.auth.pwencrymode:0}")
......
...@@ -11,12 +11,14 @@ import org.springframework.util.StringUtils; ...@@ -11,12 +11,14 @@ import org.springframework.util.StringUtils;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
/** /**
* 实体[IBZUSER] 服务对象接口实现 * 实体[IBZUSER] 服务对象接口实现
*/ */
@Primary @Primary
@Service("SimpleUserService") @Service("SimpleUserService")
@ConditionalOnExpression("(!${ibiz.enablePermissionValid:false})&&'${ibiz.auth.service:SimpleUserService}'.equals('SimpleUserService')")
public class SimpleUserService implements AuthenticationUserService{ public class SimpleUserService implements AuthenticationUserService{
@Override @Override
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册