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

kuaikuai 发布系统代码 [后台服务,演示应用]

上级 2e006310
......@@ -211,9 +211,9 @@ function getAppLocale(){
menuitem126: commonLogic.appcommonhandle("实体数据看板",null),
menuitem157: commonLogic.appcommonhandle("导航类",null),
menuitem122: commonLogic.appcommonhandle("数据关系栏",null),
menuitem116: commonLogic.appcommonhandle(" 数据关系栏",null),
menuitem117: commonLogic.appcommonhandle("编辑视图(上下关系)",null),
menuitem118: commonLogic.appcommonhandle("编辑视图(分页关系)",null),
menuitem116: commonLogic.appcommonhandle(" 数据关系栏(左右关系)",null),
menuitem117: commonLogic.appcommonhandle("数据关系栏(上下关系)",null),
menuitem118: commonLogic.appcommonhandle("数据关系栏(分页关系)",null),
menuitem120: commonLogic.appcommonhandle("分页导航",null),
menuitem128: commonLogic.appcommonhandle("表格导航",null),
menuitem136: commonLogic.appcommonhandle("树导航",null),
......
......@@ -211,9 +211,9 @@ function getAppLocale(){
menuitem126: commonLogic.appcommonhandle("实体数据看板",null),
menuitem157: commonLogic.appcommonhandle("导航类",null),
menuitem122: commonLogic.appcommonhandle("数据关系栏",null),
menuitem116: commonLogic.appcommonhandle(" 数据关系栏",null),
menuitem117: commonLogic.appcommonhandle("编辑视图(上下关系)",null),
menuitem118: commonLogic.appcommonhandle("编辑视图(分页关系)",null),
menuitem116: commonLogic.appcommonhandle(" 数据关系栏(左右关系)",null),
menuitem117: commonLogic.appcommonhandle("数据关系栏(上下关系)",null),
menuitem118: commonLogic.appcommonhandle("数据关系栏(分页关系)",null),
menuitem120: commonLogic.appcommonhandle("分页导航",null),
menuitem128: commonLogic.appcommonhandle("表格导航",null),
menuitem136: commonLogic.appcommonhandle("树导航",null),
......
......@@ -582,7 +582,6 @@ function getLocaleResourceBase(){
},
exporandimportgrid_grid: {
columns: {
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
author: commonLogic.appcommonhandle("图书作者",null),
type: commonLogic.appcommonhandle("图书类型",null),
......
......@@ -582,7 +582,6 @@ function getLocaleResourceBase(){
},
exporandimportgrid_grid: {
columns: {
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
author: commonLogic.appcommonhandle("图书作者",null),
type: commonLogic.appcommonhandle("图书类型",null),
......
......@@ -579,10 +579,10 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
{
id: 'DDD0927E-EA23-4D97-A8B6-7D9341A4A331',
name: 'menuitem116',
text: ' 数据关系栏',
text: ' 数据关系栏(左右关系)',
type: 'MENUITEM',
counterid: '',
tooltip: ' 数据关系栏',
tooltip: ' 数据关系栏(左右关系)',
expanded: false,
separator: false,
hidden: false,
......@@ -597,10 +597,10 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
{
id: '4A60A0B5-EDAB-4103-88C6-5713F98FBF96',
name: 'menuitem117',
text: '编辑视图(上下关系)',
text: '数据关系栏(上下关系)',
type: 'MENUITEM',
counterid: '',
tooltip: '编辑视图(上下关系)',
tooltip: '数据关系栏(上下关系)',
expanded: false,
separator: false,
hidden: false,
......@@ -615,10 +615,10 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
{
id: 'F3BDE046-F267-4AAF-A174-F1020066C4B5',
name: 'menuitem118',
text: '编辑视图(分页关系)',
text: '数据关系栏(分页关系)',
type: 'MENUITEM',
counterid: '',
tooltip: '编辑视图(分页关系)',
tooltip: '数据关系栏(分页关系)',
expanded: false,
separator: false,
hidden: false,
......
......@@ -614,10 +614,10 @@ export default class MainMenuModel {
{
id: 'DDD0927E-EA23-4D97-A8B6-7D9341A4A331',
name: 'menuitem116',
text: ' 数据关系栏',
text: ' 数据关系栏(左右关系)',
type: 'MENUITEM',
counterid: '',
tooltip: ' 数据关系栏',
tooltip: ' 数据关系栏(左右关系)',
expanded: false,
separator: false,
hidden: false,
......@@ -633,10 +633,10 @@ export default class MainMenuModel {
{
id: '4A60A0B5-EDAB-4103-88C6-5713F98FBF96',
name: 'menuitem117',
text: '编辑视图(上下关系)',
text: '数据关系栏(上下关系)',
type: 'MENUITEM',
counterid: '',
tooltip: '编辑视图(上下关系)',
tooltip: '数据关系栏(上下关系)',
expanded: false,
separator: false,
hidden: false,
......@@ -652,10 +652,10 @@ export default class MainMenuModel {
{
id: 'F3BDE046-F267-4AAF-A174-F1020066C4B5',
name: 'menuitem118',
text: '编辑视图(分页关系)',
text: '数据关系栏(分页关系)',
type: 'MENUITEM',
counterid: '',
tooltip: '编辑视图(分页关系)',
tooltip: '数据关系栏(分页关系)',
expanded: false,
separator: false,
hidden: false,
......
......@@ -21,18 +21,6 @@
<template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template>
<template v-if="getColumnState('ibizbookid')">
<el-table-column show-overflow-tooltip :prop="'ibizbookid'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookid')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookid')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.ibizbookid}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('ibizbookname')">
<el-table-column show-overflow-tooltip :prop="'ibizbookname'" :label="$t('entities.ibizbook.exporandimportgrid_grid.columns.ibizbookname')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
......@@ -716,15 +704,6 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
* @memberof ExporAndImportGridBase
*/
public allColumns: any[] = [
{
name: 'ibizbookid',
label: '图书标识',
langtag: 'entities.ibizbook.exporandimportgrid_grid.columns.ibizbookid',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'ibizbookname',
label: '图书名称',
......@@ -1549,7 +1528,7 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
* @memberof ExporAndImportGridBase
*/
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['ibizbookid','ibizbookname','author','type','press','price','subtext','booknumber','tag','borrowway','sailstate'];
let allColumns:Array<any> = ['ibizbookname','author','type','press','price','subtext','booknumber','tag','borrowway','sailstate'];
if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1];
......@@ -1629,7 +1608,6 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
const tree: any ={
groupById: Number((i+1)*100),
group: group.label,
ibizbookid:'',
ibizbookname:'',
author:'',
type:'',
......@@ -1666,7 +1644,6 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
const Tree: any = {
groupById: Number((allGroup.length+1)*100),
group: this.$t('app.gridpage.other'),
ibizbookid:'',
ibizbookname:'',
author:'',
type:'',
......@@ -1723,7 +1700,6 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
const tree: any ={
groupById: Number((groupIndex+1)*100),
group: group,
ibizbookid:'',
ibizbookname:'',
author:'',
type:'',
......@@ -2151,16 +2127,10 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
});
}
} else if(Object.is(errorMessage[index].data.errorKey, 'DuplicateKeyException')){
let name: string = this.service.getNameByProp("ibizbookid");
if(name){
let desc: any = this.allColumns.find((column: any) =>{
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) + '!',
});
}
this.$Notice.error({
title: (this.$t('app.commonWords.saveFailed') as string),
desc: errorMessage[index].data.message?errorMessage[index].data.message:(this.$t('app.commonWords.sysException') as string),
});
}else {
this.$Notice.error({
title: (this.$t('app.commonWords.saveFailed') as string),
......@@ -2269,7 +2239,6 @@ export default class ExporAndImportGridBase extends Vue implements ControlInterf
return;
}
let tempContext: any = this.$util.deepCopy(this.context);
Object.is(tempContext, { ibizbook: data.ibizbookid });
const arg: any = JSON.parse(JSON.stringify(data));
Object.assign(arg,{viewparams:this.viewparams});
const post: Promise<any> = this.service.frontLogic(mode,JSON.parse(JSON.stringify(tempContext)),arg, showloading);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册