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

ibiz4j 发布系统代码 [ibz-dst,应用]

上级 8862f88a
......@@ -142,6 +142,14 @@ function getLocaleResourceBase(){
},
},
editviewtoolbar_toolbar: {
tbitem1_testrule: {
caption: commonLogic.appcommonhandle("调试指标",null),
tip: commonLogic.appcommonhandle("调试指标",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
......
......@@ -142,6 +142,14 @@ function getLocaleResourceBase(){
},
},
editviewtoolbar_toolbar: {
tbitem1_testrule: {
caption: commonLogic.appcommonhandle("调试指标",null),
tip: commonLogic.appcommonhandle("调试指标",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("Save",null),
tip: commonLogic.appcommonhandle("Save",null),
......
......@@ -142,6 +142,14 @@ function getLocaleResourceBase(){
},
},
editviewtoolbar_toolbar: {
tbitem1_testrule: {
caption: commonLogic.appcommonhandle("调试指标",null),
tip: commonLogic.appcommonhandle("调试指标",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
......
......@@ -6,6 +6,14 @@
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem1_testrule.visabled" :disabled="toolBarModels.tbitem1_testrule.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem1_testrule' }, $event)">
<i class=''></i>
<span class='caption'>{{$t('entities.dametric.editviewtoolbar_toolbar.tbitem1_testrule.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.dametric.editviewtoolbar_toolbar.tbitem1_testrule.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-save'></i>
......@@ -378,6 +386,9 @@ export default class DAMetricEditViewBase extends Vue {
* @memberof DAMetricEditView
*/
public toolBarModels: any = {
tbitem1_testrule: { name: 'tbitem1_testrule', actiontarget: 'NONE', caption: '调试指标', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'TestRule', target: 'SINGLEDATA' } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -738,6 +749,9 @@ export default class DAMetricEditViewBase extends Vue {
* @memberof DAMetricEditViewBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem1_testrule')) {
this.toolbar_tbitem1_testrule_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
......@@ -820,6 +834,35 @@ export default class DAMetricEditViewBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_testrule_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:DAMetricUIService = new DAMetricUIService();
curUIService.DAMetric_TestRule(datas,contextJO, paramJO, $event, xData,this,"DAMetric");
}
/**
* 逻辑事件
*
......
......@@ -116,6 +116,22 @@ export default class DAMetricUIServiceBase extends UIService {
public initDeMainStateOPPrivsMap(){
}
/**
* 调试指标
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async DAMetric_TestRule(args: any[],context:any = {}, params:any = {}, $event?: any, xData?: any,actionContext?: any,srfParentDeName?:string){
actionContext.$Notice.error({ title: '错误', desc: '不支持单项数据' });
}
/**
* 获取指定数据的重定向页面
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册