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

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

上级 7066a88b
......@@ -247,6 +247,8 @@ export default {
menuitem118: "编辑视图(分页关系)",
menuitem125: "数据看板",
menuitem126: "实体数据看板",
menuitem127: "导航视图",
menuitem128: "表格导航",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -247,6 +247,8 @@ export default {
menuitem118: "编辑视图(分页关系)",
menuitem125: "数据看板",
menuitem126: "实体数据看板",
menuitem127: "导航视图",
menuitem128: "表格导航",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -689,6 +689,16 @@ export default {
ibizorder_delete: "删除",
},
},
main2_grid: {
columns: {
ibizordername: "订单名称",
ordertype: "订单类型",
ibizcustomername: "客户名称",
},
nodata:"",
uiactions: {
},
},
uipart_0017_grid: {
columns: {
orderuid: "订单编号",
......@@ -702,16 +712,6 @@ export default {
uiactions: {
},
},
main2_grid: {
columns: {
ibizordername: "订单名称",
ordertype: "订单类型",
ibizcustomername: "客户名称",
},
nodata:"",
uiactions: {
},
},
pie_chart: {
nodata:"",
},
......
......@@ -688,6 +688,16 @@ export default {
ibizorder_delete: "删除",
},
},
main2_grid: {
columns: {
ibizordername: "订单名称",
ordertype: "订单类型",
ibizcustomername: "客户名称",
},
nodata:"",
uiactions: {
},
},
uipart_0017_grid: {
columns: {
orderuid: "订单编号",
......@@ -701,16 +711,6 @@ export default {
uiactions: {
},
},
main2_grid: {
columns: {
ibizordername: "订单名称",
ordertype: "订单类型",
ibizcustomername: "客户名称",
},
nodata:"",
uiactions: {
},
},
pie_chart: {
nodata:"",
},
......
......@@ -1551,6 +1551,44 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: '30A2EB12-462E-4711-804B-449D6E81BA72',
name: 'menuitem127',
text: '导航视图',
type: 'MENUITEM',
counterid: '',
tooltip: '导航视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '9A8769A1-D56B-42D4-B98F-5FA531FFE6F4',
name: 'menuitem128',
text: '表格导航',
type: 'MENUITEM',
counterid: '',
tooltip: '表格导航',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc46',
resourcetag: '',
},
],
},
],
},
......
.ibizorder-detail-grid-view9{
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 IBIZOrderDetailGridView9Base from './ibizorder-detail-grid-view9-base.vue';
import view_grid from '@widgets/ibizorder-detail/main-grid/main-grid.vue';
@Component({
components: {
view_grid,
},
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 IBIZOrderDetailGridView9 extends IBIZOrderDetailGridView9Base {
}
</script>
\ No newline at end of file
.ibizorder-grid-exp-view{
position: relative;
}
.ibizorder-grid-exp-view{
display: block;
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZOrderGridExpViewBase from './ibizorder-grid-exp-view-base.vue';
import view_gridexpbar from '@widgets/ibizorder/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar.vue';
@Component({
components: {
view_gridexpbar,
},
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 IBIZOrderGridExpView extends IBIZOrderGridExpViewBase {
}
</script>
\ No newline at end of file
......@@ -43,6 +43,7 @@ export const PageComponents = {
Vue.component('ibizcustomer-edit-view', () => import('@pages/sample/ibizcustomer-edit-view/ibizcustomer-edit-view.vue'));
Vue.component('ibizbookgroup-by-codelist-kan-ban-view', () => import('@pages/sample/ibizbookgroup-by-codelist-kan-ban-view/ibizbookgroup-by-codelist-kan-ban-view.vue'));
Vue.component('ibizbookusr3-data-view', () => import('@pages/sample/ibizbookusr3-data-view/ibizbookusr3-data-view.vue'));
Vue.component('ibizorder-detail-grid-view9', () => import('@pages/sample/ibizorder-detail-grid-view9/ibizorder-detail-grid-view9.vue'));
Vue.component('ibizhardware-edit-view', () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue'));
Vue.component('ibizorder-sedit-view2', () => import('@pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.vue'));
Vue.component('ibizsample0017-edit-view', () => import('@pages/sample/ibizsample0017-edit-view/ibizsample0017-edit-view.vue'));
......@@ -52,6 +53,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-grid-exp-view', () => import('@pages/sample/ibizorder-grid-exp-view/ibizorder-grid-exp-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-edit-view', () => import('@pages/sample/ibizorder-edit-view/ibizorder-edit-view.vue'));
......
......@@ -712,6 +712,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookusr3-data-view/ibizbookusr3-data-view.vue'),
},
{
path: 'ibizorderdetails/:ibizorderdetail?/gridview9/:gridview9?',
meta: {
caption: 'entities.ibizorderdetail.views.gridview9.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'gridview9', parameterName: 'gridview9' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-grid-view9/ibizorder-detail-grid-view9.vue'),
},
{
path: 'ibizhardwares/:ibizhardware?/editview/:editview?',
meta: {
......@@ -838,6 +852,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0003-f2-tree-exp-view/ibizsample0003-f2-tree-exp-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/gridexpview/:gridexpview?',
meta: {
caption: 'entities.ibizorder.views.gridexpview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'gridexpview', parameterName: 'gridexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-grid-exp-view/ibizorder-grid-exp-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/sf3editview/:sf3editview?',
meta: {
......@@ -2589,6 +2617,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'),
},
{
path: '/ibizorderdetails/:ibizorderdetail?/gridview9/:gridview9?',
meta: {
caption: 'entities.ibizorderdetail.views.gridview9.caption',
info:'',
parameters: [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'gridview9', parameterName: 'gridview9' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-grid-view9/ibizorder-detail-grid-view9.vue'),
},
{
path: '/ibizorders/:ibizorder?/wfstartview/:wfstartview?',
meta: {
......@@ -3110,6 +3151,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/gridexpview/:gridexpview?',
meta: {
caption: 'entities.ibizorder.views.gridexpview.caption',
info:'',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'gridexpview', parameterName: 'gridexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-grid-exp-view/ibizorder-grid-exp-view.vue'),
},
{
path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?',
meta: {
......
......@@ -244,6 +244,7 @@ export const viewstate: any = {
'e14e0fa8f3def77ebbcf18f1f39c0225',
'd3255261c8522c660c1000cd0a61c3b0',
'5ccbd78fe47300a160915d6398b59604',
'5f21463b9d808170d4023d8402cc6e9e',
'51dc78a9ed0e9cd37d46bec7dbc7d172',
'd9f9f0dede285235e3d0ad5101188d1e',
'ffedffb9c57cb200c275ba15e9100da4',
......@@ -294,6 +295,15 @@ export const viewstate: any = {
'581e6727bc5983c238cc9990ba5fdcac',
],
},
{
viewtag: '2567fdd6130699509d22512564bbb650',
viewmodule: 'Sample',
viewname: 'IBIZOrderDetailGridView9',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '2640aa1ca02649c8831b43023d449945',
viewmodule: 'Sample',
......@@ -683,6 +693,16 @@ export const viewstate: any = {
'119bfcd8d598ef01a96ed25a6ea8e5c3',
],
},
{
viewtag: '5f21463b9d808170d4023d8402cc6e9e',
viewmodule: 'Sample',
viewname: 'IBIZOrderGridExpView',
viewaction: '',
viewdatachange: false,
refviews: [
'2567fdd6130699509d22512564bbb650',
],
},
{
viewtag: '658d519f1868979431e7e0da5d967e6b',
viewmodule: 'Sample',
......
......@@ -515,6 +515,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
navDataService.removeNavData(this.viewtag);
}
switch (item.appfunctag) {
case 'AppFunc46':
this.clickAppFunc46(item);
return;
case 'Auto308':
this.clickAuto308(item);
return;
......@@ -798,6 +801,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 订单实体表格导航视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc46(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'gridexpview', parameterName: 'gridexpview' },
];
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);
})
}
/**
* 工作流
*
......
......@@ -1639,6 +1639,46 @@ export default class MainMenuModel {
authtag:'Web-MainMenu-menuitem126',
},
],
},
{
id: '30A2EB12-462E-4711-804B-449D6E81BA72',
name: 'menuitem127',
text: '导航视图',
type: 'MENUITEM',
counterid: '',
tooltip: '导航视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
authtag:'Web-MainMenu-menuitem127',
items: [
{
id: '9A8769A1-D56B-42D4-B98F-5FA531FFE6F4',
name: 'menuitem128',
text: '表格导航',
type: 'MENUITEM',
counterid: '',
tooltip: '表格导航',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc46',
resourcetag: '',
authtag:'Web-MainMenu-menuitem128',
},
],
},
],
},
......
/**
* GridExpViewgridexpbar 部件模型
*
* @export
* @class GridExpViewgridexpbarModel
*/
export default class GridExpViewgridexpbarModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GridExpViewgridexpbarGridexpbarMode
*/
public getDataItems(): any[] {
return [
]
}
}
\ 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 GridExpViewgridexpbarModel from './grid-exp-viewgridexpbar-gridexpbar-model';
/**
* GridExpViewgridexpbar 部件服务对象
*
* @export
* @class GridExpViewgridexpbarService
*/
export default class GridExpViewgridexpbarService extends ControlService {
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof GridExpViewgridexpbarService
*/
public appEntityService: IBIZOrderService = new IBIZOrderService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof GridExpViewgridexpbarService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of GridExpViewgridexpbarService.
*
* @param {*} [opts={}]
* @memberof GridExpViewgridexpbarService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new GridExpViewgridexpbarModel();
}
}
\ No newline at end of file
.app-grid-exp-bar {
> .ivu-split-horizontal {
> .ivu-split-trigger-con {
height: 100%;
width: 1px;
}
> .ivu-split-pane {
> div {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
.grid-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
>div {
font-size: 18px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: space-between;
align-items: center;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
}
.grid-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
}
.grid-exp-bar-content2 {
height: calc(100% - 40px);
overflow: auto;
flex-grow: 1;
}
}
}
> .right-pane.ivu-split-pane {
> div {
padding-left: 10px;
}
}
> .left-pane.ivu-split-pane {
padding-right: 10px;
}
}
> .ivu-split-vertical{
> .ivu-split-pane {
> div {
height: 100%;
.grid-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
>div {
font-size: 18px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: flex-start;
align-items: center;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
}
.quick-group-container {
padding-right: 20px;
}
}
.grid-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
margin-bottom: 10px;
}
.grid-exp-bar-content2 {
height: calc(100% - 40px);
overflow: auto;
flex-grow: 1;
}
}
}
> .top-pane.ivu-split-pane {
> div {
padding-bottom: 10px;
}
}
> .bottom-pane.ivu-split-pane {
padding-top: 10px;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import GridExpViewgridexpbarBase from './grid-exp-viewgridexpbar-gridexpbar-base.vue';
import view_gridexpbar_grid from '@widgets/ibizorder/main2-grid/main2-grid.vue';
@Component({
components: {
view_gridexpbar_grid,
}
})
export default class GridExpViewgridexpbar extends GridExpViewgridexpbarBase {
}
</script>
\ No newline at end of file
/**
* Main2 部件模型
*
* @export
* @class Main2Model
*/
export default class Main2Model {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof Main2Gridexpbar_gridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Main2Gridexpbar_gridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
dataType: 'PICKUP',
},
{
name: 'orderstate',
prop: 'orderstate',
dataType: 'SSCODELIST',
},
{
name: 'ibizorderid',
prop: 'ibizorderid',
dataType: 'GUID',
},
{
name: 'ibizcustomername',
prop: 'ibizcustomername',
dataType: 'PICKUPTEXT',
},
{
name: 'wfstep',
prop: 'wfstep',
dataType: 'SSCODELIST',
},
{
name: 'ordertype',
prop: 'ordertype',
dataType: 'SSCODELIST',
},
{
name: 'ibizordername',
prop: 'ibizordername',
dataType: 'TEXT',
},
{
name: 'srfmstag',
},
{
name: 'srfmajortext',
prop: 'ibizordername',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'ibizorderid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'ibizorderid',
dataType: 'GUID',
isEditable:true
},
{
name: 'orderuid',
prop: 'orderuid',
dataType: 'TEXT',
},
{
name: 'ibizorder',
prop: 'ibizorderid',
},
{
name:'size',
prop:'size',
dataType: 'QUERYPARAM'
},
{
name:'query',
prop:'query',
dataType: 'QUERYPARAM'
},
{
name:'filter',
prop:'filter',
dataType: 'QUERYPARAM'
},
{
name:'page',
prop:'page',
dataType: 'QUERYPARAM'
},
{
name:'sort',
prop:'sort',
dataType: 'QUERYPARAM'
},
{
name:'srfparentdata',
prop:'srfparentdata',
dataType: 'QUERYPARAM'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
.grid {
flex-grow: 1;
height: 100%;
overflow: auto;
.el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width : 10px !important; /*高宽分别对应横竖滚动条的尺寸*/
height: 10px !important;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条颜色*/
border-radius : 10px !important;
background-color: #cecece !important;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background : #ededed !important;
border-radius: 10px !important;
}
/*表格文字过长省略*/
.el-table th>.cell, .el-table td>.cell{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.el-table-column--selection .cell {
padding-left: 0px;
padding-right: 0px;
}
.app-column-link, .app-format-data{
display: inline;
}
.el-table {
height: 100%;
display:flex;
flex-direction: column;
justify-content: flex-start;
.el-table__row{
.grid-uiaction-divider {
padding:0 10px 0 10px;
border-left: 1px #b3b3b3 solid;
}
.grid-first-uiaction {
padding:0 10px 0 10px;
}
}
.quick-toolbar{
display: inline-block;
button{
background: #ebf3fb;
color: #2575ca;
border: 0;
}
}
.el-tooltip{
.ivu-form-item{
margin-bottom: unset !important;
}
}
.el-table__body .edit-cell{
padding:0;
.app-form-item{
margin-top: 20px;
margin-bottom: 20px;
}
}
.el-table__header-wrapper{
min-height: 45px;
max-height: 100px;
height: auto;
}
.el-table__footer-wrapper{
min-height: 45px;
max-height: 100px;
height: auto;
}
}
.grid-pagination {
height: 50px;
padding: 6px 0px;
.page-button {
button {
padding: 0;
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
}
}
.page-column {
position: absolute;
left: 0;
}
.batch-toolbar{
position: absolute;
left: 105px;
>.toolbar-container{
button {
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
}
}
}
}
.ivu-modal-content{
.footer{
.ivu-row{
text-align: right;
}
}
}
.cell-indeterminate {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:before {
content: "";
position: absolute;
display: block;
background-color: #fff;
height: 2px;
transform: scale(.5);
left: 0;
right: 0;
top: 5px;
}
}
>span.is-checked {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
border: 0px;
}
}
}
}
.cell-select-all {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
box-sizing: content-box;
content: "";
border: 1px solid #fff;
border-left: 0;
border-top: 0;
height: 7px;
left: 4px;
position: absolute;
top: 1px;
transform: rotate(45deg) scaleY(1);
width: 3px;
transition: transform .15s ease-in .05s;
transform-origin: center;
}
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Main2Base from './main2-grid-base.vue';
@Component({
components: {
}
})
export default class Main2 extends Main2Base {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册