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

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

上级 ff21ecb5
...@@ -364,14 +364,6 @@ ...@@ -364,14 +364,6 @@
} }
] ]
}, },
{
"srfkey": "ORDERENTITYDATA",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"IBIZOrder",
"appdedataset":"FetchDefault",
"items": []
},
{ {
"srfkey": "ORDERTYPE", "srfkey": "ORDERTYPE",
"emptytext": "未定义", "emptytext": "未定义",
......
...@@ -40,7 +40,6 @@ export class CodeListRegister { ...@@ -40,7 +40,6 @@ export class CodeListRegister {
*/ */
protected init(): void { protected init(): void {
this.allCodeList.set('SysOperator', () => import('@/codelist/sys-operator')); this.allCodeList.set('SysOperator', () => import('@/codelist/sys-operator'));
this.allCodeList.set('ORDERENTITYDATA', () => import('@/codelist/orderentitydata'));
this.allCodeList.set('ORDERTYPE', () => import('@/codelist/ordertype')); this.allCodeList.set('ORDERTYPE', () => import('@/codelist/ordertype'));
} }
......
...@@ -51,9 +51,6 @@ export default { ...@@ -51,9 +51,6 @@ export default {
"40": "未通过", "40": "未通过",
"empty": "" "empty": ""
}, },
ORDERENTITYDATA: {
"empty": "",
},
ORDERTYPE: { ORDERTYPE: {
"empty": "", "empty": "",
}, },
......
...@@ -51,9 +51,6 @@ export default { ...@@ -51,9 +51,6 @@ export default {
"40": "未通过", "40": "未通过",
"empty": "", "empty": "",
}, },
ORDERENTITYDATA: {
"empty": "",
},
ORDERTYPE: { ORDERTYPE: {
"empty": "", "empty": "",
}, },
......
...@@ -1988,7 +1988,6 @@ export default { ...@@ -1988,7 +1988,6 @@ export default {
nodata:"", nodata:"",
nodes: { nodes: {
root: "默认根节点", root: "默认根节点",
top1: "订单实体数据",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -1987,7 +1987,6 @@ export default { ...@@ -1987,7 +1987,6 @@ export default {
nodata:"", nodata:"",
nodes: { nodes: {
root: "默认根节点", root: "默认根节点",
top1: "订单实体数据",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -372,14 +372,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -372,14 +372,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
}, },
] ]
}, },
{
"srfkey": "ORDERENTITYDATA",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"IBIZOrder",
"appdedataset":"FetchDefault",
"items": []
},
{ {
"srfkey": "ORDERTYPE", "srfkey": "ORDERTYPE",
"emptytext": "未定义", "emptytext": "未定义",
......
...@@ -739,7 +739,6 @@ export const viewstate: any = { ...@@ -739,7 +739,6 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'2567fdd6130699509d22512564bbb650',
], ],
}, },
{ {
......
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
<template slot="empty"> <template slot="empty">
{{$t('entities.ibizbook.treetable_treegridex.nodata')}} {{$t('entities.ibizbook.treetable_treegridex.nodata')}}
</template> </template>
<el-table-column show-overflow-tooltip prop="author" label="作者" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''"> <el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''">
<template v-slot="{ row }"> <template v-slot="{ row }">
<span>{{ getColumnValue(row, 'subtext') }}</span> <span>{{ getColumnValue(row, 'subtext') }}</span>
...@@ -25,11 +30,6 @@ ...@@ -25,11 +30,6 @@
<span>{{ getColumnValue(row, 'ibizbookname') }}</span> <span>{{ getColumnValue(row, 'ibizbookname') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip prop="author" label="作者" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</template> </template>
......
...@@ -238,42 +238,42 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -238,42 +238,42 @@ export default class UsrBase extends Vue implements ControlInterface {
labelField: 'text', labelField: 'text',
columns: [ columns: [
{ {
label: '作者', label: '图书名称',
value: 'author', value: 'ibizbookname',
render: (task: any) => { render: (task: any) => {
return this.getColumnValue(task, 'author') return this.getColumnValue(task, 'ibizbookname')
}, },
width: 200, width: 200,
}, },
{ {
label: '借出日期', label: '出版社',
value: 'lendouttime', value: 'press',
render: (task: any) => { render: (task: any) => {
return this.getColumnValue(task, 'lendouttime') return this.getColumnValue(task, 'press')
}, },
width: 200, width: 200,
}, },
{ {
label: '归还日期', label: '作者',
value: 'returntime', value: 'author',
render: (task: any) => { render: (task: any) => {
return this.getColumnValue(task, 'returntime') return this.getColumnValue(task, 'author')
}, },
width: 200, width: 200,
}, },
{ {
label: '图书名称', label: '借出日期',
value: 'ibizbookname', value: 'lendouttime',
render: (task: any) => { render: (task: any) => {
return this.getColumnValue(task, 'ibizbookname') return this.getColumnValue(task, 'lendouttime')
}, },
width: 200, width: 200,
}, },
{ {
label: '出版社', label: '归还日期',
value: 'press', value: 'returntime',
render: (task: any) => { render: (task: any) => {
return this.getColumnValue(task, 'press') return this.getColumnValue(task, 'returntime')
}, },
width: 200, width: 200,
}, },
......
...@@ -147,8 +147,8 @@ ...@@ -147,8 +147,8 @@
]" ]"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:localContext ='{}' :localContext ='{CONTEXTPARAM1:"%orderstate%"}'
:localParam ='{}' :localParam ='{param2:"%orderstate%"}'
parameterName='ibizorder' parameterName='ibizorder'
parentName="IBIZOrder" parentName="IBIZOrder"
refviewtype='DEGRIDVIEW' refviewtype='DEGRIDVIEW'
......
...@@ -162,8 +162,8 @@ ...@@ -162,8 +162,8 @@
]" ]"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:localContext ='{CONTEXTPARAM1:"%orderstate%"}' :localContext ='{}'
:localParam ='{param2:"%orderstate%"}' :localParam ='{}'
parameterName='ibizorder' parameterName='ibizorder'
parentName="IBIZOrder" parentName="IBIZOrder"
refviewtype='DEGRIDVIEW9' refviewtype='DEGRIDVIEW9'
......
...@@ -62,15 +62,6 @@ export default class TreeExpService extends ControlService { ...@@ -62,15 +62,6 @@ export default class TreeExpService extends ControlService {
*/ */
public TREENODE_SEPARATOR: string = ';'; public TREENODE_SEPARATOR: string = ';';
/**
* 订单名称节点分隔符号
*
* @public
* @type {string}
* @memberof TreeExpService
*/
public TREENODE_ORDERENTITY: string = 'orderentity';
/** /**
* 默认根节点节点分隔符号 * 默认根节点节点分隔符号
* *
...@@ -80,15 +71,6 @@ export default class TreeExpService extends ControlService { ...@@ -80,15 +71,6 @@ export default class TreeExpService extends ControlService {
*/ */
public TREENODE_ROOT: string = 'ROOT'; public TREENODE_ROOT: string = 'ROOT';
/**
* 订单实体数据节点分隔符号
*
* @public
* @type {string}
* @memberof TreeExpService
*/
public TREENODE_TOP1: string = 'top1';
/** /**
* 获取节点数据 * 获取节点数据
* *
...@@ -163,101 +145,13 @@ export default class TreeExpService extends ControlService { ...@@ -163,101 +145,13 @@ export default class TreeExpService extends ControlService {
} }
} }
if (Object.is(strNodeType, this.TREENODE_ORDERENTITY)) {
await this.fillOrderentityNodeChilds(context,filter, list);
return Promise.resolve({ status: 200, data: list });
}
if (Object.is(strNodeType, this.TREENODE_ROOT)) { if (Object.is(strNodeType, this.TREENODE_ROOT)) {
await this.fillRootNodeChilds(context,filter, list); await this.fillRootNodeChilds(context,filter, list);
return Promise.resolve({ status: 200, data: list }); return Promise.resolve({ status: 200, data: list });
} }
if (Object.is(strNodeType, this.TREENODE_TOP1)) {
await this.fillTop1NodeChilds(context,filter, list);
return Promise.resolve({ status: 200, data: list });
}
return Promise.resolve({ status: 500, data: { title: '失败', message: `树节点${strTreeNodeId}标识无效` } }); return Promise.resolve({ status: 500, data: { title: '失败', message: `树节点${strTreeNodeId}标识无效` } });
} }
/**
* 填充 树视图节点[订单名称]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TreeExpService
*/
@Errorlog
public fillOrderentityNodes(context:any={},filter: any, list: any[],rsNavContext?:any,rsNavParams?:any,rsParams?:any): Promise<any> {
context = this.handleResNavContext(context,filter,rsNavContext);
filter = this.handleResNavParams(context,filter,rsNavParams,rsParams);
return new Promise((resolve:any,reject:any) =>{
this.codeListService.getItems('ORDERENTITYDATA',context).then((codeListIems:any)=>{
if(codeListIems && codeListIems.length >0){
const handleChildData = (context:any,item:any,) =>{
Object.assign(item,{srfappctx:context});
Object.assign(item, { text: item.text });
Object.assign(item, { srfmajortext: item.text });
let strNodeId: string = "orderentity";
Object.assign(item, { srfkey: item.value });
strNodeId += this.TREENODE_SEPARATOR;
strNodeId += item.value;
Object.assign(item, { id: strNodeId });
Object.assign(item, { expanded: filter.isautoexpand });
Object.assign(item, { nodeid: item.srfkey });
Object.assign(item, { nodeid2: item.pvalue });
Object.assign(item, { nodeType: "CODELIST",appEntityName:"ibizorder" });
}
codeListIems = this.handleDataSet(JSON.parse(JSON.stringify(codeListIems)),context,handleChildData);
codeListIems.forEach((item:any) => {
let treeNode: any = {};
Object.assign(treeNode,{srfappctx:context});
Object.assign(treeNode, { text: item.text });
Object.assign(treeNode, { srfmajortext: treeNode.text });
let strNodeId: string = "orderentity";
Object.assign(treeNode, { srfkey: item.value });
strNodeId += this.TREENODE_SEPARATOR;
strNodeId += item.value;
Object.assign(treeNode, { id: strNodeId });
Object.assign(treeNode, { expanded: filter.isautoexpand });
Object.assign(treeNode, { leaf: true });
if(item.children && item.children.length >0){
Object.assign(treeNode, { children: item.children });
}
Object.assign(treeNode, { nodeid: treeNode.srfkey });
Object.assign(treeNode, { nodeid2: filter.strRealNodeId });
Object.assign(treeNode, { nodeType: "CODELIST",appEntityName:"ibizorder" });
list.push(treeNode);
resolve(list);
})
}else{
resolve(list);
}
});
});
}
/**
* 填充 树视图节点[订单名称]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TreeExpService
*/
@Errorlog
public async fillOrderentityNodeChilds(context:any={}, filter: any, list: any[]): Promise<any> {
if (filter.srfnodefilter && !Object.is(filter.srfnodefilter,"")) {
} else {
}
}
/** /**
* 填充 树视图节点[默认根节点] * 填充 树视图节点[默认根节点]
* *
...@@ -290,7 +184,7 @@ export default class TreeExpService extends ControlService { ...@@ -290,7 +184,7 @@ export default class TreeExpService extends ControlService {
Object.assign(treeNode, { id: strNodeId }); Object.assign(treeNode, { id: strNodeId });
Object.assign(treeNode, { expanded: filter.isAutoexpand }); Object.assign(treeNode, { expanded: filter.isAutoexpand });
Object.assign(treeNode, { leaf: false }); Object.assign(treeNode, { leaf: true });
Object.assign(treeNode, { nodeid: treeNode.srfkey }); Object.assign(treeNode, { nodeid: treeNode.srfkey });
Object.assign(treeNode, { nodeid2: filter.strRealNodeId }); Object.assign(treeNode, { nodeid2: filter.strRealNodeId });
Object.assign(treeNode, { nodeType: "STATIC" }); Object.assign(treeNode, { nodeType: "STATIC" });
...@@ -312,86 +206,7 @@ export default class TreeExpService extends ControlService { ...@@ -312,86 +206,7 @@ export default class TreeExpService extends ControlService {
@Errorlog @Errorlog
public async fillRootNodeChilds(context:any={}, filter: any, list: any[]): Promise<any> { public async fillRootNodeChilds(context:any={}, filter: any, list: any[]): Promise<any> {
if (filter.srfnodefilter && !Object.is(filter.srfnodefilter,"")) { if (filter.srfnodefilter && !Object.is(filter.srfnodefilter,"")) {
// 填充订单实体数据
let Top1RsNavContext:any = {};
let Top1RsNavParams:any = {};
let Top1RsParams:any = {};
await this.fillTop1Nodes(context, filter, list ,Top1RsNavContext,Top1RsNavParams,Top1RsParams);
} else {
// 填充订单实体数据
let Top1RsNavContext:any = {};
let Top1RsNavParams:any = {};
let Top1RsParams:any = {};
await this.fillTop1Nodes(context, filter, list ,Top1RsNavContext,Top1RsNavParams,Top1RsParams);
}
}
/**
* 填充 树视图节点[订单实体数据]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TreeExpService
*/
@Errorlog
public fillTop1Nodes(context:any={},filter: any, list: any[],rsNavContext?:any,rsNavParams?:any,rsParams?:any): Promise<any> {
context = this.handleResNavContext(context,filter,rsNavContext);
filter = this.handleResNavParams(context,filter,rsNavParams,rsParams);
return new Promise((resolve:any,reject:any) =>{
let treeNode: any = {};
Object.assign(treeNode, { text: i18n.t('entities.ibizorder.treeexp_treeview.nodes.top1') });
Object.assign(treeNode, { isUseLangRes: true });
Object.assign(treeNode,{srfappctx:context});
Object.assign(treeNode, { srfmajortext: treeNode.text });
let strNodeId: string = 'top1';
// 没有指定节点值,直接使用父节点值
Object.assign(treeNode, { srfkey: filter.strRealNodeId });
strNodeId += this.TREENODE_SEPARATOR;
strNodeId += filter.strRealNodeId;
Object.assign(treeNode, { id: strNodeId });
Object.assign(treeNode, { expanded: filter.isAutoexpand });
Object.assign(treeNode, { leaf: false });
Object.assign(treeNode, { nodeid: treeNode.srfkey });
Object.assign(treeNode, { nodeid2: filter.strRealNodeId });
Object.assign(treeNode, { nodeType: "STATIC" });
list.push(treeNode);
resolve(list);
});
}
/**
* 填充 树视图节点[订单实体数据]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TreeExpService
*/
@Errorlog
public async fillTop1NodeChilds(context:any={}, filter: any, list: any[]): Promise<any> {
if (filter.srfnodefilter && !Object.is(filter.srfnodefilter,"")) {
// 填充订单名称
let OrderentityRsNavContext:any = {};
let OrderentityRsNavParams:any = {};
let OrderentityRsParams:any = {};
await this.fillOrderentityNodes(context, filter, list ,OrderentityRsNavContext,OrderentityRsNavParams,OrderentityRsParams);
} else { } else {
// 填充订单名称
let OrderentityRsNavContext:any = {};
let OrderentityRsNavParams:any = {};
let OrderentityRsParams:any = {};
await this.fillOrderentityNodes(context, filter, list ,OrderentityRsNavContext,OrderentityRsNavParams,OrderentityRsParams);
} }
} }
......
...@@ -330,13 +330,6 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt ...@@ -330,13 +330,6 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
if (!expmode) { if (!expmode) {
expmode = ''; expmode = '';
} }
if (Object.is(expmode, 'ORDERENTITY')) {
return {
viewname: 'ibizorder-detail-grid-view9',
parentdata: {"srfparentdefname":"IBIZORDERID","srfparentdename":"IBIZORDER","srfparentmode":"DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID"},
deKeyField:'ibizorderdetail'
};
}
return null; return null;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册