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

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

上级 37a5c28f
......@@ -887,6 +887,14 @@
"viewname": "IBIZOrderBarChartView",
"viewtag": "7d37165f2f535b4a6d2116188fe83d18"
},
"ibizbookusr4editview": {
"title": "图书编辑视图",
"caption": "图书",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKUsr4EditView",
"viewtag": "7eef252621c038fbd358c8450c669e31"
},
"ibizorderdashboardview": {
"title": "数据看板",
"caption": "数据看板",
......
......@@ -340,6 +340,7 @@ function getAppLocale(){
menuitem29: commonLogic.appcommonhandle("Tree Main State",null),
menuitem22: commonLogic.appcommonhandle("测试",null),
menuitem23: commonLogic.appcommonhandle("卡片导航",null),
menuitem24: commonLogic.appcommonhandle("表单嵌入卡片视图",null),
},
},
formpage:{
......
......@@ -340,6 +340,7 @@ function getAppLocale(){
menuitem29: commonLogic.appcommonhandle("树主状态",null),
menuitem22: commonLogic.appcommonhandle("测试",null),
menuitem23: commonLogic.appcommonhandle("卡片导航",null),
menuitem24: commonLogic.appcommonhandle("表单嵌入卡片视图",null),
},
},
formpage:{
......
......@@ -138,6 +138,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("Custom Plug In",null),
title: commonLogic.appcommonhandle("图书列表视图",null),
},
usr4editview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书编辑视图",null),
},
usr4gridview: {
caption: commonLogic.appcommonhandle("Current Page Aggregation",null),
title: commonLogic.appcommonhandle("表格当前页本地聚合",null),
......@@ -431,6 +435,34 @@ function getLocaleResourceBase(){
uiactions: {
},
},
main_2_form: {
details: {
druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("图书基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("图书标识",null),
srfmajortext: commonLogic.appcommonhandle("图书名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
author: commonLogic.appcommonhandle("图书作者",null),
press: commonLogic.appcommonhandle("图书出版社",null),
price: commonLogic.appcommonhandle("图书价格",null),
type: commonLogic.appcommonhandle("图书类型",null),
booknumber: commonLogic.appcommonhandle("图书数量",null),
sailstate: commonLogic.appcommonhandle("图书销售状态",null),
lendouttime: commonLogic.appcommonhandle("借出日期",null),
returntime: commonLogic.appcommonhandle("归还日期",null),
tag: commonLogic.appcommonhandle("标签",null),
},
uiactions: {
},
},
rulesform_form: {
details: {
group1: commonLogic.appcommonhandle("系统值规则",null),
......@@ -1007,6 +1039,18 @@ function getLocaleResourceBase(){
},
groupbycodelistlistviewtoolbar_toolbar: {
},
usr4editviewtoolbar_toolbar: {
},
dataviewexpviewdataviewexpbar_dataview_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
haspanelkanbanviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
......@@ -1057,16 +1101,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
},
dataviewexpviewdataviewexpbar_dataview_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
usr2dataviewtoolbar_toolbar: {
},
usr2dataviewdataview_batchtoolbar_toolbar: {
......
......@@ -138,6 +138,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书列表视图",null),
},
usr4editview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书编辑视图",null),
},
usr4gridview: {
caption: commonLogic.appcommonhandle("表格当前页本地聚合",null),
title: commonLogic.appcommonhandle("表格当前页本地聚合",null),
......@@ -431,6 +435,34 @@ function getLocaleResourceBase(){
uiactions: {
},
},
main_2_form: {
details: {
druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("图书基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("图书标识",null),
srfmajortext: commonLogic.appcommonhandle("图书名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizbookid: commonLogic.appcommonhandle("图书标识",null),
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
author: commonLogic.appcommonhandle("图书作者",null),
press: commonLogic.appcommonhandle("图书出版社",null),
price: commonLogic.appcommonhandle("图书价格",null),
type: commonLogic.appcommonhandle("图书类型",null),
booknumber: commonLogic.appcommonhandle("图书数量",null),
sailstate: commonLogic.appcommonhandle("图书销售状态",null),
lendouttime: commonLogic.appcommonhandle("借出日期",null),
returntime: commonLogic.appcommonhandle("归还日期",null),
tag: commonLogic.appcommonhandle("标签",null),
},
uiactions: {
},
},
rulesform_form: {
details: {
group1: commonLogic.appcommonhandle("系统值规则",null),
......@@ -1007,6 +1039,18 @@ function getLocaleResourceBase(){
},
groupbycodelistlistviewtoolbar_toolbar: {
},
usr4editviewtoolbar_toolbar: {
},
dataviewexpviewdataviewexpbar_dataview_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
},
haspanelkanbanviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
......@@ -1057,16 +1101,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
},
dataviewexpviewdataviewexpbar_dataview_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
},
usr2dataviewtoolbar_toolbar: {
},
usr2dataviewdataview_batchtoolbar_toolbar: {
......
......@@ -2841,6 +2841,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc96',
resourcetag: '',
},
{
id: '72C8DF3E-C84A-44DD-A280-96781A839498',
name: 'menuitem24',
text: '表单嵌入卡片视图',
type: 'MENUITEM',
counterid: '',
tooltip: '表单嵌入卡片视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc97',
resourcetag: '',
},
],
},
......
......@@ -895,6 +895,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderBarChartView",
"viewtag": "7d37165f2f535b4a6d2116188fe83d18"
},
"ibizbookusr4editview": {
"title": "图书编辑视图",
"caption": "图书",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKUsr4EditView",
"viewtag": "7eef252621c038fbd358c8450c669e31"
},
"ibizorderdashboardview": {
"title": "数据看板",
"caption": "数据看板",
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizbookusr4-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr4EditViewBase from './ibizbookusr4-edit-view-base.vue';
import view_form from '@widgets/ibizbook/main-2-form/main-2-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZBOOKUsr4EditView extends IBIZBOOKUsr4EditViewBase {
}
</script>
\ No newline at end of file
......@@ -101,6 +101,7 @@ export const PageComponents = {
Vue.component('ibizbookusr2-list-view', () => import('@pages/sample/ibizbookusr2-list-view/ibizbookusr2-list-view.vue'));
Vue.component('ibizorder-f9-edit-view', () => import('@pages/sample/ibizorder-f9-edit-view/ibizorder-f9-edit-view.vue'));
Vue.component('ibizbookrules-edit-view', () => import('@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'));
Vue.component('ibizbookusr4-edit-view', () => import('@pages/sample/ibizbookusr4-edit-view/ibizbookusr4-edit-view.vue'));
Vue.component('ibizbookusr2-tree-view', () => import('@pages/sample/ibizbookusr2-tree-view/ibizbookusr2-tree-view.vue'));
Vue.component('ibizorder-wfstart-view', () => import('@pages/sample/ibizorder-wfstart-view/ibizorder-wfstart-view.vue'));
Vue.component('ibizsample0003-f4-tree-exp-view', () => import('@pages/sample/ibizsample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp-view.vue'));
......
......@@ -1628,6 +1628,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr4editview/:usr4editview?',
meta: {
caption: 'entities.ibizbook.views.usr4editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr4editview', parameterName: 'usr4editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr4-edit-view/ibizbookusr4-edit-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr2treeview/:usr2treeview?',
meta: {
......@@ -3729,6 +3743,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-bar-chart-view/ibizorder-bar-chart-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr4editview/:usr4editview?',
meta: {
caption: 'entities.ibizbook.views.usr4editview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr4editview', parameterName: 'usr4editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr4-edit-view/ibizbookusr4-edit-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/dashboardview/:dashboardview?',
meta: {
......
......@@ -241,6 +241,7 @@ export const viewstate: any = {
'7a96f3c6b2f7269043c9637ff1f3e747',
'16b68282950fb352dfe27e94bda47304',
'2bf74d5d66fa6d8d38b21b090586529b',
'7eef252621c038fbd358c8450c669e31',
'e240a385ba3c1e752f1a3aed838e9b58',
'59c5d311d09a7f68f8b6962ca652374a',
'ad37d44e57c18e4431a609968203c646',
......@@ -860,6 +861,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '7eef252621c038fbd358c8450c669e31',
viewmodule: 'Sample',
viewname: 'IBIZBOOKUsr4EditView',
viewaction: '',
viewdatachange: false,
refviews: [
'e3d4bd39b571ecb83a1ef7b37b6c6ac0',
],
},
{
viewtag: '7f65e6161c444d29e1f53f1cb76e92de',
viewmodule: 'Sample',
......
......@@ -122,6 +122,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'usr5gridview',srfappde:'ibizbooks',component:'ibizbookusr5-grid-view'});
this.allViewMap.set(':',{viewname:'usr3calendarview',srfappde:'ibizbooks',component:'ibizbookusr3-calendar-view'});
this.allViewMap.set(':',{viewname:'usr2listview',srfappde:'ibizbooks',component:'ibizbookusr2-list-view'});
this.allViewMap.set(':',{viewname:'usr4editview',srfappde:'ibizbooks',component:'ibizbookusr4-edit-view'});
this.allViewMap.set(':',{viewname:'usr4gridview',srfappde:'ibizbooks',component:'ibizbookusr4-grid-view'});
this.allViewMap.set(':',{viewname:'usr4calendarview',srfappde:'ibizbooks',component:'ibizbookusr4-calendar-view'});
this.allViewMap.set(':',{viewname:'interfunckanbanview',srfappde:'ibizbooks',component:'ibizbookinter-func-kan-ban-view'});
......
......@@ -824,6 +824,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto39':
this.clickAuto39(item);
return;
case 'AppFunc97':
this.clickAppFunc97(item);
return;
case 'AppFunc66':
this.clickAppFunc66(item);
return;
......@@ -2684,6 +2687,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图书实体表单嵌入卡片视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc97(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr4editview', parameterName: 'usr4editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 应用门户视图
*
......
......@@ -2999,6 +2999,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc96',
resourcetag: '',
authtag:'Web-MainMenu-menuitem23',
},
{
id: '72C8DF3E-C84A-44DD-A280-96781A839498',
name: 'menuitem24',
text: '表单嵌入卡片视图',
type: 'MENUITEM',
counterid: '',
tooltip: '表单嵌入卡片视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc97',
resourcetag: '',
authtag:'Web-MainMenu-menuitem24',
},
],
},
......@@ -3935,6 +3954,18 @@ export default class MainMenuModel {
{ pathName: 'sf6gridview', parameterName: 'sf6gridview' },
],
},
{
appfunctag: 'AppFunc97',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibizbookusr4editview',
deResParameters: [],
routepath: '/index/:index?/ibizbooks/:ibizbook?/usr4editview/:usr4editview?',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr4editview', parameterName: 'usr4editview' },
],
},
{
appfunctag: 'AppFunc66',
appfuncyype: 'APPVIEW',
......
/**
* Main_2 部件模型
*
* @export
* @class Main_2Model
*/
export default class Main_2Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Main_2Model
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'ibizbookname',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'author',
prop: 'author',
dataType: 'TEXT',
},
{
name: 'press',
prop: 'press',
dataType: 'TEXT',
},
{
name: 'price',
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'type',
prop: 'type',
dataType: 'TEXT',
},
{
name: 'booknumber',
prop: 'booknumber',
dataType: 'INT',
},
{
name: 'sailstate',
prop: 'sailstate',
dataType: 'TEXT',
},
{
name: 'lendouttime',
prop: 'lendouttime',
dataType: 'DATE',
},
{
name: 'returntime',
prop: 'returntime',
dataType: 'DATE',
},
{
name: 'tag',
prop: 'tag',
dataType: 'LONGTEXT',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
padding: 6px;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
.app-form{
// 表单行间距
.app-form-item{
margin-bottom: 20px;
}
// 表单按钮margin
.app-form-button{
margin:0 6px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Main_2Base from './main-2-form-base.vue';
@Component({
components: {
}
})
export default class Main_2 extends Main_2Base {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册