提交 7190cf2d 编写于 作者: sq3536's avatar sq3536

提交

上级 13868f3d
...@@ -19,6 +19,20 @@ import AppFormJson from './app-form-json.vue'; ...@@ -19,6 +19,20 @@ import AppFormJson from './app-form-json.vue';
export default class AppFormJsonDaChart extends AppFormJson { export default class AppFormJsonDaChart extends AppFormJson {
public codeListService:CodeListService = new CodeListService({ $store: this.$store }); public codeListService:CodeListService = new CodeListService({ $store: this.$store });
public showdetail(path:any,arg:any)
{
const view: any = {
viewname: path,
height: 0,
width: 0,
title: '查看',
};
alert(arg.dametric);
this.$appmodal.openModal(view, arg, {});
}
public async getSchema(): Promise<any>{ public async getSchema(): Promise<any>{
let _schema = { let _schema = {
"title": "表头配置", "title": "表头配置",
...@@ -76,7 +90,7 @@ export default class AppFormJsonDaChart extends AppFormJson { ...@@ -76,7 +90,7 @@ export default class AppFormJsonDaChart extends AppFormJson {
}, },
"links": [ "links": [
{ {
"rel": "查看", "rel": "查看 {{self}}",
"href": "javascript:window.showdetail('dametric-edit-view',{'dametric':'{{self}}'})" "href": "javascript:window.showdetail('dametric-edit-view',{'dametric':'{{self}}'})"
} }
], ],
...@@ -91,6 +105,51 @@ export default class AppFormJsonDaChart extends AppFormJson { ...@@ -91,6 +105,51 @@ export default class AppFormJsonDaChart extends AppFormJson {
"p0":"entity12" ,"url":'/dabuilds/${p0}/dametrics/fetchdefault', "p0":"entity12" ,"url":'/dabuilds/${p0}/dametrics/fetchdefault',
"title": "{{item.metric_name}}", "value": "{{item.metric_id}}"}] "title": "{{item.metric_name}}", "value": "{{item.metric_id}}"}]
}, },
"hide": {
"type": "boolean",
"title": "隐藏",
"default": false,
options: {
grid_columns: 3,
input_width: 250
},
},
"valueGetter": {
"type": "string",
"title": "计算表达式",
"default": "",
options: {
grid_columns: 12,
input_width: 1000
},
},
"valueSetter": {
"type": "string",
"title": "valueSetter",
"default": "",
options: {
grid_columns: 12,
input_width: 1000
},
},
"valueFormatter": {
"type": "string",
"title": "",
"default": "格式化",
options: {
grid_columns: 12,
input_width: 1000
},
},
"valueParser": {
"type": "string",
"title": "",
"default": "valueParser",
options: {
grid_columns: 12,
input_width: 1000
},
},
"children": { "children": {
"type": "array", "type": "array",
"format": "tabs", "format": "tabs",
......
...@@ -39,6 +39,10 @@ public class VMConfig { ...@@ -39,6 +39,10 @@ public class VMConfig {
private String field; private String field;
private String pinned; private String pinned;
private Boolean hide; private Boolean hide;
private String valueGetter;
private String valueSetter;
private String valueFormatter;
private String valueParser;
private List<VMConfig> children; private List<VMConfig> children;
@JsonIgnore @JsonIgnore
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册