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

zoo457790531 发布系统代码 [ibz-lite,应用]

上级 67cca046
...@@ -43,10 +43,9 @@ function getLocaleResourceBase(){ ...@@ -43,10 +43,9 @@ function getLocaleResourceBase(){
}, },
main_grid: { main_grid: {
columns: { columns: {
configid: commonLogic.appcommonhandle("ID",null), dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
configname: commonLogic.appcommonhandle("名称",null), configname: commonLogic.appcommonhandle("名称",null),
systemid: commonLogic.appcommonhandle("系统标识",null), systemid: commonLogic.appcommonhandle("系统标识",null),
dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
status: commonLogic.appcommonhandle("状态",null), status: commonLogic.appcommonhandle("状态",null),
}, },
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
......
...@@ -43,10 +43,9 @@ function getLocaleResourceBase(){ ...@@ -43,10 +43,9 @@ function getLocaleResourceBase(){
}, },
main_grid: { main_grid: {
columns: { columns: {
configid: commonLogic.appcommonhandle("ID",null), dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
configname: commonLogic.appcommonhandle("名称",null), configname: commonLogic.appcommonhandle("名称",null),
systemid: commonLogic.appcommonhandle("系统标识",null), systemid: commonLogic.appcommonhandle("系统标识",null),
dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
status: commonLogic.appcommonhandle("状态",null), status: commonLogic.appcommonhandle("状态",null),
}, },
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
......
...@@ -43,10 +43,9 @@ function getLocaleResourceBase(){ ...@@ -43,10 +43,9 @@ function getLocaleResourceBase(){
}, },
main_grid: { main_grid: {
columns: { columns: {
configid: commonLogic.appcommonhandle("ID",null), dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
configname: commonLogic.appcommonhandle("名称",null), configname: commonLogic.appcommonhandle("名称",null),
systemid: commonLogic.appcommonhandle("系统标识",null), systemid: commonLogic.appcommonhandle("系统标识",null),
dynainstid: commonLogic.appcommonhandle("动态实例标识",null),
status: commonLogic.appcommonhandle("状态",null), status: commonLogic.appcommonhandle("状态",null),
}, },
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
......
...@@ -22,20 +22,20 @@ ...@@ -22,20 +22,20 @@
<template v-if="!isSingleSelect"> <template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column> <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template> </template>
<template v-if="getColumnState('configid')"> <template v-if="getColumnState('dynainstid')">
<el-table-column show-overflow-tooltip :prop="'configid'" :label="$t('entities.metadynamicmodel.main_grid.columns.configid')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'dynainstid'" :label="$t('entities.metadynamicmodel.main_grid.columns.dynainstid')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.metadynamicmodel.main_grid.columns.configid')}} {{$t('entities.metadynamicmodel.main_grid.columns.dynainstid')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.configid}}</span> <span>{{row.dynainstid}}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('configname')"> <template v-if="getColumnState('configname')">
<el-table-column show-overflow-tooltip :prop="'configname'" :label="$t('entities.metadynamicmodel.main_grid.columns.configname')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'configname'" :label="$t('entities.metadynamicmodel.main_grid.columns.configname')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.metadynamicmodel.main_grid.columns.configname')}} {{$t('entities.metadynamicmodel.main_grid.columns.configname')}}
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('systemid')"> <template v-if="getColumnState('systemid')">
<el-table-column show-overflow-tooltip :prop="'systemid'" :label="$t('entities.metadynamicmodel.main_grid.columns.systemid')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'systemid'" :label="$t('entities.metadynamicmodel.main_grid.columns.systemid')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.metadynamicmodel.main_grid.columns.systemid')}} {{$t('entities.metadynamicmodel.main_grid.columns.systemid')}}
...@@ -58,20 +58,8 @@ ...@@ -58,20 +58,8 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('dynainstid')">
<el-table-column show-overflow-tooltip :prop="'dynainstid'" :label="$t('entities.metadynamicmodel.main_grid.columns.dynainstid')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.metadynamicmodel.main_grid.columns.dynainstid')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.dynainstid}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('status')"> <template v-if="getColumnState('status')">
<el-table-column show-overflow-tooltip :prop="'status'" :label="$t('entities.metadynamicmodel.main_grid.columns.status')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'status'" :label="$t('entities.metadynamicmodel.main_grid.columns.status')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.metadynamicmodel.main_grid.columns.status')}} {{$t('entities.metadynamicmodel.main_grid.columns.status')}}
...@@ -642,9 +630,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -642,9 +630,9 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public allColumns: any[] = [ public allColumns: any[] = [
{ {
name: 'configid', name: 'dynainstid',
label: 'ID', label: '动态实例标识',
langtag: 'entities.metadynamicmodel.main_grid.columns.configid', langtag: 'entities.metadynamicmodel.main_grid.columns.dynainstid',
show: true, show: true,
unit: 'PX', unit: 'PX',
isEnableRowEdit: false, isEnableRowEdit: false,
...@@ -668,15 +656,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -668,15 +656,6 @@ export default class MainBase extends Vue implements ControlInterface {
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
{
name: 'dynainstid',
label: '动态实例标识',
langtag: 'entities.metadynamicmodel.main_grid.columns.dynainstid',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{ {
name: 'status', name: 'status',
label: '状态', label: '状态',
...@@ -1390,7 +1369,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1390,7 +1369,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase * @memberof MainBase
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['configid','configname','systemid','dynainstid','status']; let allColumns:Array<any> = ['dynainstid','configname','systemid','status'];
if(row && row.children) { if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1470,10 +1449,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1470,10 +1449,9 @@ export default class MainBase extends Vue implements ControlInterface {
const tree: any ={ const tree: any ={
groupById: Number((i+1)*100), groupById: Number((i+1)*100),
group: group.label, group: group.label,
configid:'', dynainstid:'',
configname:'', configname:'',
systemid:'', systemid:'',
dynainstid:'',
status:'', status:'',
children: children children: children
} }
...@@ -1501,10 +1479,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1501,10 +1479,9 @@ export default class MainBase extends Vue implements ControlInterface {
const Tree: any = { const Tree: any = {
groupById: Number((allGroup.length+1)*100), groupById: Number((allGroup.length+1)*100),
group: this.$t('app.gridpage.other'), group: this.$t('app.gridpage.other'),
configid:'', dynainstid:'',
configname:'', configname:'',
systemid:'', systemid:'',
dynainstid:'',
status:'', status:'',
children: child children: child
} }
...@@ -1552,10 +1529,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1552,10 +1529,9 @@ export default class MainBase extends Vue implements ControlInterface {
const tree: any ={ const tree: any ={
groupById: Number((groupIndex+1)*100), groupById: Number((groupIndex+1)*100),
group: group, group: group,
configid:'', dynainstid:'',
configname:'', configname:'',
systemid:'', systemid:'',
dynainstid:'',
status:'', status:'',
children: children, children: children,
} }
...@@ -1986,16 +1962,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1986,16 +1962,10 @@ export default class MainBase extends Vue implements ControlInterface {
}); });
} }
} else if(Object.is(errorMessage[index].data.errorKey, 'DuplicateKeyException')){ } else if(Object.is(errorMessage[index].data.errorKey, 'DuplicateKeyException')){
let name: string = this.service.getNameByProp("configid"); this.$Notice.error({
if(name){ title: (this.$t('app.commonWords.saveFailed') as string),
let desc: any = this.allColumns.find((column: any) =>{ desc: errorMessage[index].data.message?errorMessage[index].data.message:(this.$t('app.commonWords.sysException') as string),
return Object.is(column.name, name); });
});
this.$Notice.error({
title: (this.$t('app.commonWords.createFailed') as string),
desc: (desc ? desc.label : '') + " : " + item[name] + (this.$t('app.commonWords.isExist') as string) + '!',
});
}
}else { }else {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.saveFailed') as string), title: (this.$t('app.commonWords.saveFailed') as string),
...@@ -2104,7 +2074,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2104,7 +2074,6 @@ export default class MainBase extends Vue implements ControlInterface {
return; return;
} }
let tempContext: any = this.$util.deepCopy(this.context); let tempContext: any = this.$util.deepCopy(this.context);
Object.is(tempContext, { metadynamicmodel: data.configid });
const arg: any = JSON.parse(JSON.stringify(data)); const arg: any = JSON.parse(JSON.stringify(data));
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
const post: Promise<any> = this.service.frontLogic(mode,JSON.parse(JSON.stringify(tempContext)),arg, showloading); const post: Promise<any> = this.service.frontLogic(mode,JSON.parse(JSON.stringify(tempContext)),arg, showloading);
......
...@@ -41,11 +41,6 @@ export default class MainModel { ...@@ -41,11 +41,6 @@ export default class MainModel {
prop: 'status', prop: 'status',
dataType: 'SSCODELIST', dataType: 'SSCODELIST',
}, },
{
name: 'configid',
prop: 'configid',
dataType: 'TEXT',
},
{ {
name: 'configname', name: 'configname',
prop: 'configname', prop: 'configname',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册