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

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

上级 e70c76f3
......@@ -336,9 +336,10 @@ export default {
menuitem45: "数据打印",
menuitem67: "索引实体",
menuitem68: "继承实体",
menuitem70: "表格主状态",
menuitem71: "多表单",
menuitem70: "表格主状态",
menuitem148: "列表主状态",
menuitem183: "数据主状态",
menuitem92: "其他",
menuitem93: "示例实体02示例数据补充",
menuitem100: "订单示例数据补充",
......
......@@ -336,9 +336,10 @@ export default {
menuitem45: "数据打印",
menuitem67: "索引实体",
menuitem68: "继承实体",
menuitem70: "表格主状态",
menuitem71: "多表单",
menuitem70: "表格主状态",
menuitem148: "列表主状态",
menuitem183: "数据主状态",
menuitem92: "其他",
menuitem93: "示例实体02示例数据补充",
menuitem100: "订单示例数据补充",
......
......@@ -684,12 +684,14 @@ export default {
remove: "Remove",
},
},
usr4_dataview: {
majorstatedata_dataview: {
nodata:"",
uiactions: {
ibizbook_edit: "编辑",
ibizbook_delete: "删除",
},
},
majorstatedata_dataview: {
usr4_dataview: {
nodata:"",
uiactions: {
},
......@@ -1089,6 +1091,8 @@ export default {
tip: "Remove {0}",
},
},
usr6dataviewtoolbar_toolbar: {
},
usr2calendarviewcalendar_batchtoolbar_toolbar: {
deuiaction1: {
caption: "Save",
......@@ -1741,8 +1745,6 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
usr6dataviewtoolbar_toolbar: {
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -683,12 +683,14 @@ export default {
remove: "删除",
},
},
usr4_dataview: {
majorstatedata_dataview: {
nodata:"",
uiactions: {
ibizbook_edit: "编辑",
ibizbook_delete: "删除",
},
},
majorstatedata_dataview: {
usr4_dataview: {
nodata:"",
uiactions: {
},
......@@ -1088,6 +1090,8 @@ export default {
tip: "删除",
},
},
usr6dataviewtoolbar_toolbar: {
},
usr2calendarviewcalendar_batchtoolbar_toolbar: {
deuiaction1: {
caption: "保存",
......@@ -1740,8 +1744,6 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
usr6dataviewtoolbar_toolbar: {
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -3067,12 +3067,12 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag: '',
},
{
id: 'c931e0ff705c4be3c4199457a0ac5b75',
name: 'menuitem70',
text: '表格主状态',
id: '9026dcd0d3fc539fbe02d12cd15968f8',
name: 'menuitem71',
text: '多表单',
type: 'MENUITEM',
counterid: '',
tooltip: '表格主状态',
tooltip: '多表单',
expanded: false,
separator: false,
hidden: false,
......@@ -3081,16 +3081,16 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc79',
appfunctag: 'Auto116',
resourcetag: '',
},
{
id: '9026dcd0d3fc539fbe02d12cd15968f8',
name: 'menuitem71',
text: '多表单',
id: 'c931e0ff705c4be3c4199457a0ac5b75',
name: 'menuitem70',
text: '表格主状态',
type: 'MENUITEM',
counterid: '',
tooltip: '多表单',
tooltip: '表格主状态',
expanded: false,
separator: false,
hidden: false,
......@@ -3099,7 +3099,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'Auto116',
appfunctag: 'AppFunc79',
resourcetag: '',
},
{
......@@ -3119,6 +3119,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc80',
resourcetag: '',
},
{
id: '4A657CD0-5B9E-4701-A600-33E4A981F549',
name: 'menuitem183',
text: '数据主状态',
type: 'MENUITEM',
counterid: '',
tooltip: '数据主状态',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc81',
resourcetag: '',
},
],
},
......
.ibizbookusr6-data-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
.ibizbookusr6-data-view{
display: block;
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr6DataViewBase from './ibizbookusr6-data-view-base.vue';
import view_searchform from '@widgets/ibizbook/default-searchform/default-searchform.vue';
import view_dataview from '@widgets/ibizbook/major-state-data-dataview/major-state-data-dataview.vue';
@Component({
components: {
view_searchform,
view_dataview,
},
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 IBIZBOOKUsr6DataView extends IBIZBOOKUsr6DataViewBase {
}
</script>
\ No newline at end of file
......@@ -173,6 +173,7 @@ export const PageComponents = {
Vue.component('ibizorder-detail-f6-edit-view', () => import('@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue'));
Vue.component('ibizbookusr2-medit-view9', () => import('@pages/sample/ibizbookusr2-medit-view9/ibizbookusr2-medit-view9.vue'));
Vue.component('ibizsample0001-usr3-edit-view', () => import('@pages/sample/ibizsample0001-usr3-edit-view/ibizsample0001-usr3-edit-view.vue'));
Vue.component('ibizbookusr6-data-view', () => import('@pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue'));
Vue.component('ibizsample0003-sf2-edit-view', () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'));
Vue.component('ibizbookinternal-func-grid-view', () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'));
Vue.component('ibizorder-odsp-d10-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d10-wfgrid-view/ibizorder-odsp-d10-wfgrid-view.vue'));
......
......@@ -2711,6 +2711,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0001-usr3-edit-view/ibizsample0001-usr3-edit-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr6dataview/:usr6dataview?',
meta: {
caption: 'entities.ibizbook.views.usr6dataview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr6dataview', parameterName: 'usr6dataview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/sf2editview/:sf2editview?',
meta: {
......@@ -5106,6 +5120,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookusr6-grid-view/ibizbookusr6-grid-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr6dataview/:usr6dataview?',
meta: {
caption: 'entities.ibizbook.views.usr6dataview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr6dataview', parameterName: 'usr6dataview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/editview/:editview?',
meta: {
......
......@@ -306,6 +306,7 @@ export const viewstate: any = {
'06E447F9-1AF8-464F-8F47-39CFC64B9A21',
'3bbf72a3e5b59fed0dee362a9b1384a8',
'f00438ae4a3c6969dfccd271c2be65da',
'c0129c921be7d85a22907979d8120c64',
'f73da4cb47a88d3fe5b92716e0137741',
'fdb8ed39fbfea00f65416b9aaebd64e7',
'd99f9680b535dcf3ad0d0f853a8b89d9',
......@@ -1578,6 +1579,17 @@ export const viewstate: any = {
'efbe72fe207c5bb7ada28b278a9ea920',
],
},
{
viewtag: 'c0129c921be7d85a22907979d8120c64',
viewmodule: 'Sample',
viewname: 'IBIZBOOKUsr6DataView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
'0d9d3edf2d060a859fa7f2e206556730',
],
},
{
viewtag: 'c153da73d5d5b62475f4213de51a25e0',
viewmodule: 'Sample',
......
......@@ -791,6 +791,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc54':
this.clickAppFunc54(item);
return;
case 'AppFunc81':
this.clickAppFunc81(item);
return;
case 'AppFunc80':
this.clickAppFunc80(item);
return;
......@@ -3003,6 +3006,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 数据视图主状态
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc81(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr6dataview', parameterName: 'usr6dataview' },
];
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);
})
}
/**
* 列表主状态
*
......
......@@ -3237,12 +3237,12 @@ export default class MainMenuModel {
authtag:'Web-MainMenu-menuitem68',
},
{
id: 'c931e0ff705c4be3c4199457a0ac5b75',
name: 'menuitem70',
text: '表格主状态',
id: '9026dcd0d3fc539fbe02d12cd15968f8',
name: 'menuitem71',
text: '多表单',
type: 'MENUITEM',
counterid: '',
tooltip: '表格主状态',
tooltip: '多表单',
expanded: false,
separator: false,
hidden: false,
......@@ -3251,17 +3251,17 @@ export default class MainMenuModel {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc79',
appfunctag: 'Auto116',
resourcetag: '',
authtag:'Web-MainMenu-menuitem70',
authtag:'Web-MainMenu-menuitem71',
},
{
id: '9026dcd0d3fc539fbe02d12cd15968f8',
name: 'menuitem71',
text: '多表单',
id: 'c931e0ff705c4be3c4199457a0ac5b75',
name: 'menuitem70',
text: '表格主状态',
type: 'MENUITEM',
counterid: '',
tooltip: '多表单',
tooltip: '表格主状态',
expanded: false,
separator: false,
hidden: false,
......@@ -3270,9 +3270,9 @@ export default class MainMenuModel {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'Auto116',
appfunctag: 'AppFunc79',
resourcetag: '',
authtag:'Web-MainMenu-menuitem71',
authtag:'Web-MainMenu-menuitem70',
},
{
id: '49662DB0-CAB1-4131-A322-EF4EAA92F332',
......@@ -3292,6 +3292,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc80',
resourcetag: '',
authtag:'Web-MainMenu-menuitem148',
},
{
id: '4A657CD0-5B9E-4701-A600-33E4A981F549',
name: 'menuitem183',
text: '数据主状态',
type: 'MENUITEM',
counterid: '',
tooltip: '数据主状态',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc81',
resourcetag: '',
authtag:'Web-MainMenu-menuitem183',
},
],
},
......
/**
* MajorStateData 部件模型
*
* @export
* @class MajorStateDataModel
*/
export default class MajorStateDataModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MajorStateDataDataViewMode
*/
public getDataItems(): any[] {
return [
{
name: 'srfdescription',
prop: 'type',
dataType: 'TEXT',
},
{
name: 'srfmstag',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
dataType: 'FONTKEY',
},
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'sort',
prop:'sort'
},
{
name:'page',
prop:'page'
},
{
name:'srfparentdata',
prop:'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ 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 MajorStateDataModel from './major-state-data-dataview-model';
/**
* MajorStateData 部件服务对象
*
* @export
* @class MajorStateDataService
*/
export default class MajorStateDataService extends ControlService {
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof MajorStateDataService
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof MajorStateDataService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of MajorStateDataService.
*
* @param {*} [opts={}]
* @memberof MajorStateDataService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new MajorStateDataModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MajorStateDataService
*/
@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) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MajorStateDataService
*/
@Errorlog
public delete(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.remove(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 MajorStateDataService
*/
@Errorlog
public add(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.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 MajorStateDataService
*/
@Errorlog
public update(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.Update(Context,Data,isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
.app-data-view {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
position: relative;
// 排序栏样式
.bar-container{
padding: 6px 8px;
background-color: #F1F1F1;
.ivu-row-flex.page-sort-bar{
width: 100%;
height: 30px;
.ivu-col{
user-select: none;
text-align: center;
display: flex;
align-items: flex-end;
padding-bottom: 4px;
background-color: #FFF;
border: 1px solid #CCC;
margin-left: -1px;
.sort-field-text{
margin-left: 7px;
}
.caret-wrapper{
width: 15px;
display: inline-block;
padding-bottom: 2px;
.ivu-icon{
display: block;
line-height: 0.5;
color: #c5c8ce;
}
}
}
// 悬浮样式
.ivu-col:hover{
border:1px solid #82bff7;
position:relative;
z-index:2;
.sort-field-text{
color: #82bff7;
}
}
// 选中样式
.sort-ascending, .sort-descending{
border:1px solid #82bff7;
position:relative;
z-index:2;
.sort-field-text{
color:#82bff7;
font-weight: 800;
}
}
.sort-ascending .caret-wrapper .ivu-icon.ivu-icon-md-arrow-dropup,
.sort-descending .caret-wrapper .ivu-icon.ivu-icon-md-arrow-dropdown{
color: #82bff7;
}
}
}
.data-view-container {
height: calc(100% - 42px);
align-content: start;
.el-collapse{
width: 100%;
.el-collapse-item__content{
padding: 10px 0px 0px 0px;
display: flex;
.item-nodata {
padding-bottom: 10px;
width: 100%;
text-align: center;
}
}
}
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.ivu-col{
padding: 10px;
.el-card__body{
padding: 10px;
}
}
.el-card{
background-color: #f6f6f6;
color: #666666;
box-shadow: 0 2px 12px 0 #909399;
}
.single-card-data{
height: 100%;
width: 100%;
cursor: pointer;
border: 2px solid transparent;
.data-view-item{
.single-card-default {
.ivu-tooltip{
.ivu-tooltip-rel{
width: 150px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: left;
padding-left: 5px;
font-size: 18px;
font-weight: 800;
}
}
}
.single-card-img {
width: 150px;
height: calc(100% - 32px);
}
}
.data-view-item-action{
button{
margin: 0 3px;
cursor: pointer;
padding:3px;
}
button:hover{
color: #409eff;
}
}
}
.isselected{
border: 2px solid #82bff7;
box-shadow: 5px 5px 12px 0 #82bff7;
.ivu-tooltip{
color: #82bff7;
font-weight: 800;
}
}
.single-card-data:hover{
border: 2px solid #82bff7;
box-shadow: 5px 5px 12px 0 #82bff7;
.ivu-tooltip{
color: #82bff7;
font-weight: 800;
}
}
}
// 空值文本
.app-data-empty {
height: calc(100% - 42px);
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
.el-backtop {
position: absolute;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MajorStateDataBase from './major-state-data-dataview-base.vue';
@Component({
components: {
}
})
export default class MajorStateData extends MajorStateDataBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册