提交 5fb7daa1 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码

上级 00cc1aa4
...@@ -2,6 +2,27 @@ ...@@ -2,6 +2,27 @@
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
<template slot="dataPanel">
<view_datapanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="datapanel"
ref='datapanel'
@closeview="closeView($event)">
</view_datapanel>
</template>
<template slot="toolbar"> <template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template> <view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_tabexppanel <view_tabexppanel
......
import AccountService from '@/service/account/account-service'; import ContactService from '@/service/contact/contact-service';
import { Verify } from '@/utils/verify/verify'; import { Verify } from '@/utils/verify/verify';
...@@ -98,7 +98,7 @@ export default class ActiveLogicBase { ...@@ -98,7 +98,7 @@ export default class ActiveLogicBase {
// 行为处理节点 // 行为处理节点
let result: any; let result: any;
let actionParam:any = this.paramsMap.get('Default'); let actionParam:any = this.paramsMap.get('Default');
const targetService:AccountService = new AccountService(); const targetService:ContactService = new ContactService();
if (targetService['Update'] && targetService['Update'] instanceof Function) { if (targetService['Update'] && targetService['Update'] instanceof Function) {
result = await targetService['Update'](actionParam.context,actionParam.data, false); result = await targetService['Update'](actionParam.context,actionParam.data, false);
} }
......
...@@ -56,7 +56,7 @@ export class StudioViewStyle2Base extends StudioViewBase { ...@@ -56,7 +56,7 @@ export class StudioViewStyle2Base extends StudioViewBase {
</div> : null, </div> : null,
this.isShowHeader ? <div class="view-header"> this.isShowHeader ? <div class="view-header">
{this.$slots.title ? <div class="title">{this.$slots.title}</div> : null} {this.$slots.title ? <div class="title">{this.$slots.title}</div> : null}
{this.$slots.quickSummary ? <div class="quickSummary">{this.$slots.quickSummary}</div> : null} {this.$slots.dataPanel ? <div class="data-panel">{this.$slots.dataPanel}</div> : null}
{this.$slots.quickGroupSearch ? <div class="quick-group-search"> {this.$slots.quickGroupSearch ? <div class="quick-group-search">
{this.$slots.quickGroupSearch} {this.$slots.quickGroupSearch}
</div> : null} </div> : null}
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
} }
} }
>.quickSummary { >.data-panel {
float: right; float: right;
} }
......
...@@ -9,6 +9,15 @@ import { ViewBase } from './ViewBase'; ...@@ -9,6 +9,15 @@ import { ViewBase } from './ViewBase';
*/ */
export class ExpViewBase extends ViewBase { export class ExpViewBase extends ViewBase {
/**
* 应用实体服务
*
* @protected
* @type {*}
* @memberof ExpViewBase
*/
protected appEntityService: any;
/** /**
* 加载模型 * 加载模型
* *
...@@ -16,7 +25,7 @@ export class ExpViewBase extends ViewBase { ...@@ -16,7 +25,7 @@ export class ExpViewBase extends ViewBase {
* @memberof AccountInfoBase * @memberof AccountInfoBase
*/ */
protected async loadModel(): Promise<any> { protected async loadModel(): Promise<any> {
if (this.context[this.appDeName]) { if (this.appEntityService && this.context[this.appDeName]) {
this.appEntityService.getDataInfo(this.context, {}, false).then((response: any) => { this.appEntityService.getDataInfo(this.context, {}, false).then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
return; return;
......
...@@ -45,6 +45,15 @@ export class ViewBase extends Vue { ...@@ -45,6 +45,15 @@ export class ViewBase extends Vue {
*/ */
protected appDeMajor: string = ''; protected appDeMajor: string = '';
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ViewBase
*/
protected model: any = {};
/** /**
* 数据变化 * 数据变化
* *
......
...@@ -27,10 +27,10 @@ public class ContactActiveLogicImpl implements IContactActiveLogic{ ...@@ -27,10 +27,10 @@ public class ContactActiveLogicImpl implements IContactActiveLogic{
private KieContainer kieContainer; private KieContainer kieContainer;
@Autowired @Autowired
private cn.ibizlab.businesscentral.core.base.service.IAccountService accountservice; private cn.ibizlab.businesscentral.core.base.service.IContactService contactservice;
public cn.ibizlab.businesscentral.core.base.service.IAccountService getAccountService() { public cn.ibizlab.businesscentral.core.base.service.IContactService getContactService() {
return this.accountservice; return this.contactservice;
} }
...@@ -48,7 +48,7 @@ public class ContactActiveLogicImpl implements IContactActiveLogic{ ...@@ -48,7 +48,7 @@ public class ContactActiveLogicImpl implements IContactActiveLogic{
kieSession=kieContainer.newKieSession(); kieSession=kieContainer.newKieSession();
kieSession.insert(et); kieSession.insert(et);
kieSession.setGlobal("contactactivedefault",et); kieSession.setGlobal("contactactivedefault",et);
kieSession.setGlobal("accountservice",accountservice); kieSession.setGlobal("contactservice",contactservice);
kieSession.setGlobal("iBzSysContactDefaultService",iBzSysDefaultService); kieSession.setGlobal("iBzSysContactDefaultService",iBzSysDefaultService);
kieSession.setGlobal("curuser", cn.ibizlab.businesscentral.util.security.AuthenticationUser.getAuthenticationUser()); kieSession.setGlobal("curuser", cn.ibizlab.businesscentral.util.security.AuthenticationUser.getAuthenticationUser());
kieSession.startProcess("cn.ibizlab.businesscentral.core.base.service.logic.contactactive"); kieSession.startProcess("cn.ibizlab.businesscentral.core.base.service.logic.contactactive");
......
...@@ -4,7 +4,7 @@ import java.util.Map; ...@@ -4,7 +4,7 @@ import java.util.Map;
import java.util.HashMap; import java.util.HashMap;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
global cn.ibizlab.businesscentral.core.base.domain.Contact contactactivedefault; global cn.ibizlab.businesscentral.core.base.domain.Contact contactactivedefault;
global cn.ibizlab.businesscentral.core.base.service.IAccountService accountservice; global cn.ibizlab.businesscentral.core.base.service.IContactService contactservice;
global cn.ibizlab.businesscentral.core.base.service.IContactService iBzSysContactDefaultService; global cn.ibizlab.businesscentral.core.base.service.IContactService iBzSysContactDefaultService;
global cn.ibizlab.businesscentral.util.security.AuthenticationUser curuser; global cn.ibizlab.businesscentral.util.security.AuthenticationUser curuser;
...@@ -15,7 +15,7 @@ rule "deaction1" ...@@ -15,7 +15,7 @@ rule "deaction1"
ruleflow-group "contactactivedeaction1" ruleflow-group "contactactivedeaction1"
when when
then then
accountservice.update(contactactivedefault); contactservice.update(contactactivedefault);
update(contactactivedefault);//更新fact中变量值 update(contactactivedefault);//更新fact中变量值
end end
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册