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

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

上级 38accbc9
...@@ -167,6 +167,17 @@ ...@@ -167,6 +167,17 @@
"codename":"Min", "codename":"Min",
"value": "MIN", "value": "MIN",
"disabled": false
}
, {
"id": "COUNT_DISTINCT_EXT1",
"label": "COUNT_DISTINCT_EXT1",
"text": "COUNT_DISTINCT_EXT1",
"class":"",
"data":"",
"codename":"Count_distinct_ext1",
"value": "COUNT_DISTINCT_EXT1",
"disabled": false "disabled": false
} }
] ]
......
...@@ -25,6 +25,7 @@ function getLocaleResourceBase(){ ...@@ -25,6 +25,7 @@ function getLocaleResourceBase(){
"AVG": commonLogic.appcommonhandle("AVG",null), "AVG": commonLogic.appcommonhandle("AVG",null),
"MAX": commonLogic.appcommonhandle("MAX",null), "MAX": commonLogic.appcommonhandle("MAX",null),
"MIN": commonLogic.appcommonhandle("MIN",null), "MIN": commonLogic.appcommonhandle("MIN",null),
"COUNT_DISTINCT_EXT1": commonLogic.appcommonhandle("COUNT_DISTINCT_EXT1",null),
"empty": commonLogic.appcommonhandle("",null) "empty": commonLogic.appcommonhandle("",null)
}, },
CLModel: { CLModel: {
......
...@@ -25,6 +25,7 @@ function getLocaleResourceBase(){ ...@@ -25,6 +25,7 @@ function getLocaleResourceBase(){
"AVG": commonLogic.appcommonhandle("AVG",null), "AVG": commonLogic.appcommonhandle("AVG",null),
"MAX": commonLogic.appcommonhandle("MAX",null), "MAX": commonLogic.appcommonhandle("MAX",null),
"MIN": commonLogic.appcommonhandle("MIN",null), "MIN": commonLogic.appcommonhandle("MIN",null),
"COUNT_DISTINCT_EXT1": commonLogic.appcommonhandle("COUNT_DISTINCT_EXT1",null),
"empty": commonLogic.appcommonhandle("",null) "empty": commonLogic.appcommonhandle("",null)
}, },
CLModel: { CLModel: {
......
...@@ -25,6 +25,7 @@ function getLocaleResourceBase(){ ...@@ -25,6 +25,7 @@ function getLocaleResourceBase(){
"AVG": commonLogic.appcommonhandle("AVG",null), "AVG": commonLogic.appcommonhandle("AVG",null),
"MAX": commonLogic.appcommonhandle("MAX",null), "MAX": commonLogic.appcommonhandle("MAX",null),
"MIN": commonLogic.appcommonhandle("MIN",null), "MIN": commonLogic.appcommonhandle("MIN",null),
"COUNT_DISTINCT_EXT1": commonLogic.appcommonhandle("COUNT_DISTINCT_EXT1",null),
"empty": commonLogic.appcommonhandle("",null), "empty": commonLogic.appcommonhandle("",null),
}, },
CLModel: { CLModel: {
......
...@@ -175,6 +175,17 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -175,6 +175,17 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"codename":"Min", "codename":"Min",
value: "MIN", value: "MIN",
disabled: false,
},
{
id: "COUNT_DISTINCT_EXT1",
label: "COUNT_DISTINCT_EXT1",
text: "COUNT_DISTINCT_EXT1",
"class":"",
"data":"",
"codename":"Count_distinct_ext1",
value: "COUNT_DISTINCT_EXT1",
disabled: false, disabled: false,
}, },
] ]
......
...@@ -331,20 +331,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -331,20 +331,6 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0]; return this.selections[0];
} }
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
...@@ -867,7 +853,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -867,7 +853,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(pageReset){ if(pageReset){
...@@ -962,7 +948,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -962,7 +948,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogPickupGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -1068,7 +1054,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1068,7 +1054,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -1861,7 +1847,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1861,7 +1847,7 @@ export default class MainBase extends Vue implements ControlInterface {
public setColState() { public setColState() {
this.resetColModel = Util.deepCopy(this.allColumns); this.resetColModel = Util.deepCopy(this.allColumns);
const viewParams: any = Util.deepCopy(this.viewparams); const viewParams: any = Util.deepCopy(this.viewparams);
Object.assign(viewParams,{utilServiceName: 'grid_dynaconfig', modelid: 'ibzdst_web_dictcataloggridview_grid_main'}); Object.assign(viewParams,{utilServiceName: 'grid_dynaconfig', modelid: 'ibzdst_web_dictcatalogpickupgridview_grid_main'});
const post = this.service.loadModel('grid_dynaconfig', this.context, viewParams); const post = this.service.loadModel('grid_dynaconfig', this.context, viewParams);
post.then((response: any) => { post.then((response: any) => {
if(response.status == 200 && response.data) { if(response.status == 200 && response.data) {
...@@ -1928,7 +1914,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1928,7 +1914,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public saveDynaConfig() { public saveDynaConfig() {
const viewParams: any = Util.deepCopy(this.viewparams); const viewParams: any = Util.deepCopy(this.viewparams);
Object.assign(viewParams,{utilServiceName: 'grid_dynaconfig', modelid: 'ibzdst_web_dictcataloggridview_grid_main', model: this.allColumns}); Object.assign(viewParams,{utilServiceName: 'grid_dynaconfig', modelid: 'ibzdst_web_dictcatalogpickupgridview_grid_main', model: this.allColumns});
const post = this.service.saveModel('grid_dynaconfig', this.context, viewParams); const post = this.service.saveModel('grid_dynaconfig', this.context, viewParams);
post.then((response: any) => { post.then((response: any) => {
if (response.status == 200) { if (response.status == 200) {
...@@ -1999,7 +1985,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1999,7 +1985,7 @@ export default class MainBase extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogPickupGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -2007,7 +1993,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2007,7 +1993,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogPickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.dictcatalog){ if(item.dictcatalog){
...@@ -2074,7 +2060,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2074,7 +2060,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public newRow(args: any[], params?: any, $event?: any, xData?: any): void { public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'DictCatalogPickupGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return; return;
} }
let _this = this; let _this = this;
......
...@@ -795,7 +795,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -795,7 +795,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaEntityGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaEntityPickupGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -831,7 +831,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -831,7 +831,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaEntityGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'MetaEntityPickupGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -2476,7 +2476,8 @@ public class StaticDict { ...@@ -2476,7 +2476,8 @@ public class StaticDict {
SUM("SUM","SUM"), SUM("SUM","SUM"),
AVG("AVG","AVG"), AVG("AVG","AVG"),
MAX("MAX","MAX"), MAX("MAX","MAX"),
MIN("MIN","MIN"); MIN("MIN","MIN"),
COUNT_DISTINCT_EXT1("COUNT_DISTINCT_EXT1","COUNT_DISTINCT_EXT1");
private String value; private String value;
private String text; private String text;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册