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

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

上级 50886e5d
......@@ -1007,7 +1007,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
appfunctag: 'AppFunc35',
resourcetag: '',
},
],
......
.ibizorder-usr2-chart-view{
position: relative;
}
.ibizorder-usr2-chart-view{
display: block;
> .view-card > .ivu-card-body > .content-container > .app-data-chart {
overflow: auto;
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZOrderUsr2ChartViewBase from './ibizorder-usr2-chart-view-base.vue';
import view_chart from '@widgets/ibizorder/usr-chart/usr-chart.vue';
import view_searchform from '@widgets/ibizorder/default-searchform/default-searchform.vue';
@Component({
components: {
view_chart,
view_searchform,
},
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 IBIZOrderUsr2ChartView extends IBIZOrderUsr2ChartViewBase {
}
</script>
\ No newline at end of file
......@@ -49,6 +49,7 @@ export const PageComponents = {
Vue.component('ibizorder-pickup-grid-view', () => import('@pages/sample/ibizorder-pickup-grid-view/ibizorder-pickup-grid-view.vue'));
Vue.component('ibizsample0017-f30-edit-view', () => import('@pages/sample/ibizsample0017-f30-edit-view/ibizsample0017-f30-edit-view.vue'));
Vue.component('ibizsample0003-f2-tree-exp-view', () => import('@pages/sample/ibizsample0003-f2-tree-exp-view/ibizsample0003-f2-tree-exp-view.vue'));
Vue.component('ibizorder-usr2-chart-view', () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'));
Vue.component('ibizsample0003-sf3-edit-view', () => import('@pages/sample/ibizsample0003-sf3-edit-view/ibizsample0003-sf3-edit-view.vue'));
Vue.component('ibizorder-sf15-grid-view', () => import('@pages/sample/ibizorder-sf15-grid-view/ibizorder-sf15-grid-view.vue'));
Vue.component('ibizorder-line-chart-view', () => import('@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'));
......
......@@ -766,6 +766,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0003-f2-tree-exp-view/ibizsample0003-f2-tree-exp-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/usr2chartview/:usr2chartview?',
meta: {
caption: 'entities.ibizorder.views.usr2chartview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'usr2chartview', parameterName: 'usr2chartview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/sf3editview/:sf3editview?',
meta: {
......@@ -2660,6 +2674,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0017-edit-view/ibizsample0017-edit-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/usr2chartview/:usr2chartview?',
meta: {
caption: 'entities.ibizorder.views.usr2chartview.caption',
info:'',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'usr2chartview', parameterName: 'usr2chartview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'),
},
{
path: '/ibizsoftwaresuits/:ibizsoftwaresuit?/gridview9/:gridview9?',
meta: {
......
......@@ -222,6 +222,7 @@ export const viewstate: any = {
'd9f9f0dede285235e3d0ad5101188d1e',
'ffedffb9c57cb200c275ba15e9100da4',
'84904c93ceea3ab6551555ee20c41e27',
'502736ae9280400d7b8f74f057d363ab',
'6b3607e849c8517fd7ae1cab583f7393',
'41d3da0d37fb0135ace813f1ba06bd39',
'b1256beac1e95915b675893c61559b59',
......@@ -515,6 +516,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '502736ae9280400d7b8f74f057d363ab',
viewmodule: 'Sample',
viewname: 'IBIZOrderUsr2ChartView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '5147eb94c8aa1cf6ad57b360e0abde28',
viewmodule: 'Sample',
......
......@@ -647,6 +647,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc5':
this.clickAppFunc5(item);
return;
case 'AppFunc35':
this.clickAppFunc35(item);
return;
case 'AppFunc16':
this.clickAppFunc16(item);
return;
......@@ -1783,6 +1786,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图表视图(k线图)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc35(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'usr2chartview', parameterName: 'usr2chartview' },
];
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);
})
}
/**
* 功能名称
*
......
......@@ -1065,7 +1065,7 @@ export default class MainMenuModel {
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
appfunctag: 'AppFunc35',
resourcetag: '',
authtag:'Web-MainMenu-menuitem44',
},
......
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getPartCode(chartSeriese).code} [in template "TEMPLCODE_en_US" at line 508, column 14]
- Reached through: @ibizindent blank=8 [in template "TEMPLCODE_en_US" at line 506, column 13]
----
部件模板[@CONTROL/CHART]无法获取指定成员[SERIES_CANDLESTICK][CONTROL-BASE.vue]模板
\ No newline at end of file
/**
* Usr 部件模型
*
* @export
* @class UsrModel
*/
export default class UsrModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof UsrChartMode
*/
public getDataItems(): any[] {
return [
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'page',
prop:'page'
},
{
name:'sort',
prop:'sort'
}
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZOrderService from '@/service/ibizorder/ibizorder-service';
import UsrModel from './usr-chart-model';
/**
* Usr 部件服务对象
*
* @export
* @class UsrService
*/
export default class UsrService extends ControlService {
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof UsrService
*/
public appEntityService: IBIZOrderService = new IBIZOrderService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof UsrService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of UsrService.
*
* @param {*} [opts={}]
* @memberof UsrService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new UsrModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UsrService
*/
@Errorlog
public search(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.FetchDefault(Context,Data, isloading);
}
result.then((response) => {
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
// this is less
.app-data-chart {
width: 100%;
height: 100%;
.chart-no-data{
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
i{
margin-right: 5px;
}
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import UsrBase from './usr-chart-base.vue';
@Component({
components: {
}
})
export default class Usr extends UsrBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册