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

laizhilong 发布系统代码

上级 d3974eba
import { Store } from 'vuex'; import { Store } from 'vuex';
import EntityService from '@/service/entity-service';
/** /**
* 计数器服务基类 * 计数器服务基类
...@@ -16,6 +18,51 @@ export default class CounterService { ...@@ -16,6 +18,51 @@ export default class CounterService {
* @memberof CounterService * @memberof CounterService
*/ */
private $store: Store<any> | null = null; private $store: Store<any> | null = null;
/**
* 当前计数器数据
*
* @protected
* @type {*}
* @memberof CounterService
*/
protected counterData:any ={};
/**
* 应用实体数据服务
*
* @protected
* @type {EntityService}
* @memberof CounterService
*/
protected appEntityService:EntityService = new EntityService();
/**
* 当前计数器导航上下文
*
* @protected
* @type {*}
* @memberof CounterService
*/
protected context:any ={};
/**
* 当前计数器导航参数
*
* @protected
* @type {*}
* @memberof CounterService
*/
protected viewparams:any ={};
/**
* 当前计数器定时器对象
*
* @protected
* @type {*}
* @memberof CounterService
*/
protected timer:any;
/** /**
* Creates an instance of CounterService. * Creates an instance of CounterService.
...@@ -25,6 +72,8 @@ export default class CounterService { ...@@ -25,6 +72,8 @@ export default class CounterService {
*/ */
constructor(opts: any = {}) { constructor(opts: any = {}) {
this.$store = opts.$store; this.$store = opts.$store;
this.context = opts.context?opts.context:{};
this.viewparams = opts.viewparams?opts.viewparams:{};
} }
/** /**
...@@ -49,5 +98,13 @@ export default class CounterService { ...@@ -49,5 +98,13 @@ export default class CounterService {
return (window as any)['counterServiceRegister'].getService(name); return (window as any)['counterServiceRegister'].getService(name);
} }
/**
* 销毁计数器
*
* @memberof ActionCounterCounterServiceBase
*/
public destroyCounter(){
if(this.timer) clearInterval(this.timer);
}
} }
\ No newline at end of file
...@@ -116,6 +116,12 @@ ...@@ -116,6 +116,12 @@
:data="data" :data="data"
folder=ibizutil folder=ibizutil
ownertype=sys_open_access ownertype=sys_open_access
ownerid={}
:show-ocrview=true
:show-preview=true
:show-edit=true
:show-drag=true
:persistence=true
@formitemvaluechange="onFormItemValueChange"></ibiz-file-upload> @formitemvaluechange="onFormItemValueChange"></ibiz-file-upload>
</app-form-item> </app-form-item>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册