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

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

上级 927c1392
......@@ -1423,6 +1423,14 @@
"viewname": "IBIZHardwareEditView",
"viewtag": "e30db3af513fb7b7bf44a8744ed5f7a4"
},
"ibizappviewgridview": {
"title": "应用视图数据信息表格视图",
"caption": "应用视图数据信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPVIEWGridView",
"viewtag": "e3e4e02474933cacc98d320049dc1646"
},
"ibizbookupdatedefaultgridview": {
"title": "表格更新默认值",
"caption": "表格更新默认值",
......
......@@ -314,6 +314,7 @@ export default {
menuitem124: "示例实体01数据补充",
menuitem144: "客户实体示例数据补充",
menuitem146: "应用视图数据补充",
menuitem149: "应用视图表格数据",
},
},
formpage:{
......
......@@ -314,6 +314,7 @@ export default {
menuitem124: "示例实体01数据补充",
menuitem144: "客户实体示例数据补充",
menuitem146: "应用视图数据补充",
menuitem149: "应用视图表格数据",
},
},
formpage:{
......
......@@ -16,6 +16,10 @@ export default {
caption: "应用视图数据信息",
title: "应用视图数据信息编辑视图",
},
gridview: {
caption: "应用视图数据信息",
title: "应用视图数据信息表格视图",
},
},
main_form: {
details: {
......@@ -44,6 +48,74 @@ export default {
uiactions: {
},
},
main_grid: {
columns: {
ibizappviewname: "应用视图名称",
ibizappviewtype: "应用视图类型",
ibizinstanceaddress: "实例地址",
ibizyuqueaddress: "文档地址",
},
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
deuiaction1: {
caption: "刷新",
tip: "刷新",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
......
......@@ -15,6 +15,10 @@ export default {
caption: "应用视图数据信息",
title: "应用视图数据信息编辑视图",
},
gridview: {
caption: "应用视图数据信息",
title: "应用视图数据信息表格视图",
},
},
main_form: {
details: {
......@@ -43,6 +47,74 @@ export default {
uiactions: {
},
},
main_grid: {
columns: {
ibizappviewname: "应用视图名称",
ibizappviewtype: "应用视图类型",
ibizinstanceaddress: "实例地址",
ibizyuqueaddress: "文档地址",
},
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
deuiaction1: {
caption: "刷新",
tip: "刷新",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
......
......@@ -2693,6 +2693,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc65',
resourcetag: '',
},
{
id: '6AB23794-4648-44B7-AF26-86D14FD1E029',
name: 'menuitem149',
text: '应用视图表格数据',
type: 'MENUITEM',
counterid: '',
tooltip: '应用视图表格数据',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc67',
resourcetag: '',
},
],
},
......
......@@ -1431,6 +1431,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZHardwareEditView",
"viewtag": "e30db3af513fb7b7bf44a8744ed5f7a4"
},
"ibizappviewgridview": {
"title": "应用视图数据信息表格视图",
"caption": "应用视图数据信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPVIEWGridView",
"viewtag": "e3e4e02474933cacc98d320049dc1646"
},
"ibizbookupdatedefaultgridview": {
"title": "表格更新默认值",
"caption": "表格更新默认值",
......
.ibizappviewgrid-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 IBIZAPPVIEWGridViewBase from './ibizappviewgrid-view-base.vue';
import view_grid from '@widgets/ibizappview/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibizappview/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
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 IBIZAPPVIEWGridView extends IBIZAPPVIEWGridViewBase {
}
</script>
\ No newline at end of file
......@@ -6,6 +6,7 @@ export const PageComponents = {
Vue.component('ibizsample0003-smpickup-view2', () => import('@pages/sample/ibizsample0003-smpickup-view2/ibizsample0003-smpickup-view2.vue'));
Vue.component('ibizorder-detail-sedit-view9', () => import('@pages/sample/ibizorder-detail-sedit-view9/ibizorder-detail-sedit-view9.vue'));
Vue.component('ibizorder-detail-smedit-view9', () => import('@pages/sample/ibizorder-detail-smedit-view9/ibizorder-detail-smedit-view9.vue'));
Vue.component('ibizappviewgrid-view', () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'));
Vue.component('ibizsample0003-edit-view', () => import('@pages/sample/ibizsample0003-edit-view/ibizsample0003-edit-view.vue'));
Vue.component('ibizuniproduct-pickup-view', () => import('@pages/sample/ibizuniproduct-pickup-view/ibizuniproduct-pickup-view.vue'));
Vue.component('ibizorder-sgrid-view', () => import('@pages/sample/ibizorder-sgrid-view/ibizorder-sgrid-view.vue'));
......
......@@ -164,6 +164,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-detail-smedit-view9/ibizorder-detail-smedit-view9.vue'),
},
{
path: 'ibizappviews/:ibizappview?/gridview/:gridview?',
meta: {
caption: 'entities.ibizappview.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizappviews', parameterName: 'ibizappview' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/editview/:editview?',
meta: {
......@@ -4996,6 +5010,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue'),
},
{
path: '/ibizappviews/:ibizappview?/gridview/:gridview?',
meta: {
caption: 'entities.ibizappview.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'ibizappviews', parameterName: 'ibizappview' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/updatedefaultgridview/:updatedefaultgridview?',
meta: {
......
......@@ -195,6 +195,7 @@ export const viewstate: any = {
'b09ceb3081717c0ed4fe19f9986598a0',
'38e135842f7fa4fb952758a785d5f421',
'e6b66fea4568c66355729271ffc9d59f',
'e3e4e02474933cacc98d320049dc1646',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'0c1093afa96df2832f707495afec541e',
'7d37165f2f535b4a6d2116188fe83d18',
......@@ -1678,6 +1679,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'e3e4e02474933cacc98d320049dc1646',
viewmodule: 'Sample',
viewname: 'IBIZAPPVIEWGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'27425bd0f023912440422d4ee90bb370',
],
},
{
viewtag: 'e53fed4d0b4dd614057f426b02115b41',
viewmodule: 'Sample',
......
......@@ -97,6 +97,7 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappviews',component:'ibizappviewedit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappviews',component:'ibizappviewgrid-view'});
}
/**
......
......@@ -581,6 +581,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto29':
this.clickAuto29(item);
return;
case 'AppFunc67':
this.clickAppFunc67(item);
return;
case 'AppFunc20':
this.clickAppFunc20(item);
return;
......@@ -1352,6 +1355,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 应用视图表格数据
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc67(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizappviews', parameterName: 'ibizappview' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
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);
})
}
/**
* 功能名称
*
......
......@@ -2843,6 +2843,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc65',
resourcetag: '',
authtag:'Web-MainMenu-menuitem146',
},
{
id: '6AB23794-4648-44B7-AF26-86D14FD1E029',
name: 'menuitem149',
text: '应用视图表格数据',
type: 'MENUITEM',
counterid: '',
tooltip: '应用视图表格数据',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc67',
resourcetag: '',
authtag:'Web-MainMenu-menuitem149',
},
],
},
......
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .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%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export default class MainModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'ibizappviewid',
prop: 'ibizappviewid',
dataType: 'GUID',
},
{
name: 'ibizappviewtype',
prop: 'ibizappviewtype',
dataType: 'TEXT',
},
{
name: 'ibizinstanceaddress',
prop: 'ibizinstanceaddress',
dataType: 'TEXT',
},
{
name: 'ibizappviewname',
prop: 'ibizappviewname',
dataType: 'TEXT',
},
{
name: 'srfmajortext',
prop: 'ibizappviewname',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'ibizappviewid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'ibizappviewid',
dataType: 'GUID',
isEditable:true
},
{
name: 'ibizyuqueaddress',
prop: 'ibizyuqueaddress',
dataType: 'TEXT',
},
{
name: 'ibizappview',
prop: 'ibizappviewid',
},
{
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 MainBase from './main-grid-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册