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

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

上级 248091a3
......@@ -168,7 +168,7 @@ export default {
uiactions: {
},
},
interfuncform_form: {
rulesform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
......@@ -201,7 +201,7 @@ export default {
uiactions: {
},
},
rulesform_form: {
interfuncform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
......@@ -843,6 +843,16 @@ export default {
},
usr2gridviewtoolbar_toolbar: {
},
ruleseditviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
},
listviewtoolbar_toolbar: {
deuiaction1: {
caption: "New",
......@@ -1087,16 +1097,6 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
ruleseditviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -167,7 +167,7 @@ export default {
uiactions: {
},
},
interfuncform_form: {
rulesform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
......@@ -200,7 +200,7 @@ export default {
uiactions: {
},
},
rulesform_form: {
interfuncform_form: {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
......@@ -842,6 +842,16 @@ export default {
},
usr2gridviewtoolbar_toolbar: {
},
ruleseditviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
},
listviewtoolbar_toolbar: {
deuiaction1: {
caption: "新建",
......@@ -1086,16 +1096,6 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
ruleseditviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -387,7 +387,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
appfunctag: 'AppFunc32',
resourcetag: '',
},
],
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizbookrules-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
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKRulesEditViewBase from './ibizbookrules-edit-view-base.vue';
import view_form from '@widgets/ibizbook/rules-form-form/rules-form-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 IBIZBOOKRulesEditView extends IBIZBOOKRulesEditViewBase {
}
</script>
\ No newline at end of file
......@@ -89,6 +89,7 @@ export const PageComponents = {
Vue.component('ibizorder-odsp-w10-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-w10-wfgrid-view/ibizorder-odsp-w10-wfgrid-view.vue'));
Vue.component('ibizsample0003-spickup-tree-view', () => import('@pages/sample/ibizsample0003-spickup-tree-view/ibizsample0003-spickup-tree-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('ibizorder-detail-f6-grid-view', () => import('@pages/sample/ibizorder-detail-f6-grid-view/ibizorder-detail-f6-grid-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'));
......
......@@ -1326,6 +1326,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-f9-edit-view/ibizorder-f9-edit-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/ruleseditview/:ruleseditview?',
meta: {
caption: 'entities.ibizbook.views.ruleseditview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'ruleseditview', parameterName: 'ruleseditview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'),
},
{
path: 'ibizorderdetails/:ibizorderdetail?/f6gridview/:f6gridview?',
meta: {
......@@ -2318,6 +2332,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookauto-group-list-view/ibizbookauto-group-list-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/ruleseditview/:ruleseditview?',
meta: {
caption: 'entities.ibizbook.views.ruleseditview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'ruleseditview', parameterName: 'ruleseditview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/treegridexview/:treegridexview?',
meta: {
......
......@@ -170,6 +170,7 @@ export const viewstate: any = {
'ac9add3724d90fba46e7298ac051fa5f',
'39e841c85d9bbfc7ecf009c4202dbf0c',
'703686dd4e6aa6f55aca5d92c00d9ee3',
'2bf74d5d66fa6d8d38b21b090586529b',
'16b68282950fb352dfe27e94bda47304',
'658d519f1868979431e7e0da5d967e6b',
'59c5d311d09a7f68f8b6962ca652374a',
......@@ -220,9 +221,9 @@ export const viewstate: any = {
'a6cb9804bfd40d2542ae2c44e0cc3331',
'd3321077dfab8bc6b92c649e5b69daf3',
'491c2bc6eab0ad313d4b6f06f6a396f5',
'e53fed4d0b4dd614057f426b02115b41',
'836bdb4063978b55fedd6a180d60c323',
'e54ae8e27a53b3425ac78a229a163bd5',
'e53fed4d0b4dd614057f426b02115b41',
'369a14f21cbff0d0fe23831aecfca7ba',
'794fbfb192285c60dc9ce640270d79c0',
'00a0716a2029a7fe79fe03b6f74c7c90',
......@@ -293,6 +294,15 @@ export const viewstate: any = {
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '2bf74d5d66fa6d8d38b21b090586529b',
viewmodule: 'Sample',
viewname: 'IBIZBOOKRulesEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '2ccd29eeaeded3ea5a713a19cd67a83e',
viewmodule: 'Sample',
......
......@@ -644,12 +644,12 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc5':
this.clickAppFunc5(item);
return;
case 'Auto393':
this.clickAuto393(item);
return;
case 'AppFunc16':
this.clickAppFunc16(item);
return;
case 'Auto393':
this.clickAuto393(item);
return;
case 'Auto319':
this.clickAuto319(item);
return;
......@@ -689,6 +689,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto145':
this.clickAuto145(item);
return;
case 'AppFunc32':
this.clickAppFunc32(item);
return;
case 'AppFunc12':
this.clickAppFunc12(item);
return;
......@@ -1752,18 +1755,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 基础表单项
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto393(item: any = {}) {
public clickAppFunc16(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3dataview', parameterName: 'usr3dataview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -1775,18 +1778,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 功能名称
* 基础表单项
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc16(item: any = {}) {
public clickAuto393(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3dataview', parameterName: 'usr3dataview' },
{ pathName: 'ibizsample0001s', parameterName: 'ibizsample0001' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -2096,6 +2099,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图书实体(表单值规则)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc32(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'ruleseditview', parameterName: 'ruleseditview' },
];
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);
})
}
/**
* 图书列表(自动分组)
*
......
......@@ -411,7 +411,7 @@ export default class MainMenuModel {
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
appfunctag: 'AppFunc32',
resourcetag: '',
authtag:'Web-MainMenu-menuitem108',
},
......
/**
* RulesForm 部件模型
*
* @export
* @class RulesFormModel
*/
export default class RulesFormModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof RulesFormModel
*/
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: 'subtext',
prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'icon',
prop: 'icon',
dataType: 'TEXT',
},
{
name: 'returntime',
prop: 'returntime',
dataType: 'DATE',
},
{
name: 'lendouttime',
prop: 'lendouttime',
dataType: 'DATE',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
},
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
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 RulesFormBase from './rules-form-form-base.vue';
@Component({
components: {
}
})
export default class RulesForm extends RulesFormBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册