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

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

上级 f19bf1ae
......@@ -220,6 +220,7 @@ export default {
menuitem41: "区域图",
menuitem42: "雷达图",
menuitem17: "向导",
menuitem134: "向导视图",
menuitem18: "界面行为",
menuitem65: "前端界面行为",
menuitem66: "后台界面行为",
......
......@@ -220,6 +220,7 @@ export default {
menuitem41: "区域图",
menuitem42: "雷达图",
menuitem17: "向导",
menuitem134: "向导视图",
menuitem18: "界面行为",
menuitem65: "前端界面行为",
menuitem66: "后台界面行为",
......
......@@ -331,6 +331,7 @@ export default {
longitude: "longitude",
updatedate: "updatedate",
updateman: "updateman",
formitem: "picture",
},
uiactions: {
},
......
......@@ -330,6 +330,7 @@ export default {
longitude: "longitude",
updatedate: "updatedate",
updateman: "updateman",
formitem: "picture",
},
uiactions: {
},
......
......@@ -1047,6 +1047,26 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: 'B32F8304-CD3D-4C70-A5D7-C879C00BE231',
name: 'menuitem134',
text: '向导视图',
type: 'MENUITEM',
counterid: '',
tooltip: '向导视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc49',
resourcetag: '',
},
],
},
{
id: 'dfbbee9261314cb01cd8fe5c49da37e7',
......
.ibizbookwizard-view{
position: relative;
}
.ibizbookwizard-view{
> .view-card > .ivu-card-body > .content-container > .app-wizard {
overflow: auto;
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKWizardViewBase from './ibizbookwizard-view-base.vue';
import view_wizardpanel from '@widgets/ibizbook/guide-wizardpanel/guide-wizardpanel.vue';
@Component({
components: {
view_wizardpanel,
},
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 IBIZBOOKWizardView extends IBIZBOOKWizardViewBase {
}
</script>
\ No newline at end of file
......@@ -13,6 +13,7 @@ export const PageComponents = {
Vue.component('ibizsample0002-edit-view', () => import('@pages/sample/ibizsample0002-edit-view/ibizsample0002-edit-view.vue'));
Vue.component('ibizorder-bar-chart-view', () => import('@pages/sample/ibizorder-bar-chart-view/ibizorder-bar-chart-view.vue'));
Vue.component('ibizsample0003-stree-exp-view2', () => import('@pages/sample/ibizsample0003-stree-exp-view2/ibizsample0003-stree-exp-view2.vue'));
Vue.component('ibizbookwizard-view', () => import('@pages/sample/ibizbookwizard-view/ibizbookwizard-view.vue'));
Vue.component('ibizbookusr5-grid-view', () => import('@pages/sample/ibizbookusr5-grid-view/ibizbookusr5-grid-view.vue'));
Vue.component('ibizbookusr2-grid-view', () => import('@pages/sample/ibizbookusr2-grid-view/ibizbookusr2-grid-view.vue'));
Vue.component('ibizbookoption-view', () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'));
......
......@@ -262,6 +262,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0003-stree-exp-view2/ibizsample0003-stree-exp-view2.vue'),
},
{
path: 'ibizbooks/:ibizbook?/wizardview/:wizardview?',
meta: {
caption: 'entities.ibizbook.views.wizardview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'wizardview', parameterName: 'wizardview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookwizard-view/ibizbookwizard-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr5gridview/:usr5gridview?',
meta: {
......@@ -3636,6 +3650,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0017-form-pickup-data-view/ibizsample0017-form-pickup-data-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/wizardview/:wizardview?',
meta: {
caption: 'entities.ibizbook.views.wizardview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'wizardview', parameterName: 'wizardview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookwizard-view/ibizbookwizard-view.vue'),
},
{
path: '/ibizsample0003s/:ibizsample0003?/spickuptreeview/:spickuptreeview?',
meta: {
......
......@@ -200,6 +200,7 @@ export const viewstate: any = {
'7d37165f2f535b4a6d2116188fe83d18',
'f94df735642ce85ebb2fe3816c4dc77b',
'ac9add3724d90fba46e7298ac051fa5f',
'a3e8c166f876e0dd8eb09be4f9f907ab',
'39e841c85d9bbfc7ecf009c4202dbf0c',
'703686dd4e6aa6f55aca5d92c00d9ee3',
'efbe72fe207c5bb7ada28b278a9ea920',
......@@ -1025,6 +1026,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'a3e8c166f876e0dd8eb09be4f9f907ab',
viewmodule: 'Sample',
viewname: 'IBIZBOOKWizardView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'a4333795f033ac3e573ec567d40ab208',
viewmodule: 'Sample',
......
......@@ -737,6 +737,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto129':
this.clickAuto129(item);
return;
case 'AppFunc49':
this.clickAppFunc49(item);
return;
case 'AppFunc23':
this.clickAppFunc23(item);
return;
......@@ -2511,6 +2514,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图书实体向导视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc49(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'wizardview', parameterName: 'wizardview' },
];
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);
})
}
/**
* 更新默认值
*
......
......@@ -1108,6 +1108,27 @@ export default class MainMenuModel {
appfunctag: '',
resourcetag: '',
authtag:'Web-MainMenu-menuitem17',
items: [
{
id: 'B32F8304-CD3D-4C70-A5D7-C879C00BE231',
name: 'menuitem134',
text: '向导视图',
type: 'MENUITEM',
counterid: '',
tooltip: '向导视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc49',
resourcetag: '',
authtag:'Web-MainMenu-menuitem134',
},
],
},
{
id: 'dfbbee9261314cb01cd8fe5c49da37e7',
......
/**
* Guide 部件模型
*
* @export
* @class GuideModel
*/
export default class GuideModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GuideModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
prop: 'createman',
},
{
name: 'ibizbookname',
prop: 'ibizbookname',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name: 'createdate',
prop: 'createdate',
},
{
name: 'updateman',
prop: 'updateman',
},
{
name: 'updatedate',
prop: 'updatedate',
},
{
name: 'author',
prop: 'author',
},
{
name: 'price',
prop: 'price',
},
{
name: 'press',
prop: 'press',
},
{
name: 'type',
prop: 'type',
},
{
name: 'booknumber',
prop: 'booknumber',
},
{
name: 'subtext',
prop: 'subtext',
},
{
name: 'lendouttime',
prop: 'lendouttime',
},
{
name: 'returntime',
prop: 'returntime',
},
{
name: 'icon',
prop: 'icon',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import GuideModel from './guide-wizardpanel-model';
/**
* Guide 部件服务对象
*
* @export
* @class GuideService
*/
export default class GuideService extends ControlService {
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof GuideService
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof GuideService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of GuideService.
*
* @param {*} [opts={}]
* @memberof GuideService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new GuideModel();
}
/**
* 初始化向导
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GuideService
*/
@Errorlog
public init(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 向导结束
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GuideService
*/
@Errorlog
public finish(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
// 忽略版本检查
Object.assign(Data,{ignoreversioncheck:1});
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Update(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
.app-wizard {
background: #fff;
height: 100%;
.wizard-steps{
padding: 10px 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
.el-step__head.is-process{
border-color: #7e8187;
color: #7e8187;
}
.el-step__title.is-process{
color: #7e8187;
}
.el-step__head.is-success{
border-color: #1890ff;
color: #1890ff;
}
.el-step__title.is-success{
color: #1890ff;
}
}
.app-wizard-content{
height: 100%;
overflow-y: auto;
}
.app-wizard-footer {
padding: 10px;
text-align: right;
.ivu-btn {
margin: 0 5px;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import GuideBase from './guide-wizardpanel-base.vue';
@Component({
components: {
}
})
export default class Guide extends GuideBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册