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

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

上级 47fae236
......@@ -219,6 +219,7 @@ export default {
menuitem89: "自动分组",
menuitem90: "代码表分组",
menuitem94: "项布局面板",
menuitem152: "自定义插件",
menuitem17: "向导面板",
menuitem134: "基础用法",
menuitem135: "状态属性",
......
......@@ -219,6 +219,7 @@ export default {
menuitem89: "自动分组",
menuitem90: "代码表分组",
menuitem94: "项布局面板",
menuitem152: "自定义插件",
menuitem17: "向导面板",
menuitem134: "基础用法",
menuitem135: "状态属性",
......
......@@ -567,6 +567,11 @@ export default {
uiactions: {
},
},
groupbycodelistkanban_dataview: {
nodata:"",
uiactions: {
},
},
usr2_dataview: {
nodata:"",
uiactions: {
......@@ -590,11 +595,6 @@ export default {
uiactions: {
},
},
groupbycodelistkanban_dataview: {
nodata:"",
uiactions: {
},
},
groupbycodelistkanban_kanban: {
nodata:"",
uiactions: {
......@@ -702,6 +702,8 @@ export default {
},
treegridexviewtoolbar_toolbar: {
},
usr5dataviewtoolbar_toolbar: {
},
roweditgridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
......@@ -1532,8 +1534,6 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
usr5dataviewtoolbar_toolbar: {
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -566,6 +566,11 @@ export default {
uiactions: {
},
},
groupbycodelistkanban_dataview: {
nodata:"",
uiactions: {
},
},
usr2_dataview: {
nodata:"",
uiactions: {
......@@ -589,11 +594,6 @@ export default {
uiactions: {
},
},
groupbycodelistkanban_dataview: {
nodata:"",
uiactions: {
},
},
groupbycodelistkanban_kanban: {
nodata:"",
uiactions: {
......@@ -701,6 +701,8 @@ export default {
},
treegridexviewtoolbar_toolbar: {
},
usr5dataviewtoolbar_toolbar: {
},
roweditgridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
......@@ -1531,8 +1533,6 @@ export default {
},
haspanellistviewtoolbar_toolbar: {
},
usr5dataviewtoolbar_toolbar: {
},
tree_treeview: {
nodata:"",
nodes: {
......
......@@ -899,6 +899,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc19',
resourcetag: '',
},
{
id: '6E8D1669-FA60-46AC-BC55-C61EB0010CB1',
name: 'menuitem152',
text: '自定义插件',
type: 'MENUITEM',
counterid: '',
tooltip: '自定义插件',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc71',
resourcetag: '',
},
],
},
......
.ibizbookusr5-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
.ibizbookusr5-data-view{
display: block;
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr5DataViewBase from './ibizbookusr5-data-view-base.vue';
import view_searchform from '@widgets/ibizbook/default-searchform/default-searchform.vue';
import view_dataview from '@widgets/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-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 IBIZBOOKUsr5DataView extends IBIZBOOKUsr5DataViewBase {
}
</script>
\ No newline at end of file
......@@ -23,6 +23,7 @@ export const PageComponents = {
Vue.component('ibizbookoption-view', () => import('@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'));
Vue.component('ibizsample0001-sf2-edit-view', () => import('@pages/sample/ibizsample0001-sf2-edit-view/ibizsample0001-sf2-edit-view.vue'));
Vue.component('ibizorder-detail-sf2-edit-view', () => import('@pages/sample/ibizorder-detail-sf2-edit-view/ibizorder-detail-sf2-edit-view.vue'));
Vue.component('ibizbookusr5-data-view', () => import('@pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue'));
Vue.component('ibizorder-list-exp-view', () => import('@pages/sample/ibizorder-list-exp-view/ibizorder-list-exp-view.vue'));
Vue.component('ibizbooknew-default-value-grid-view', () => import('@pages/sample/ibizbooknew-default-value-grid-view/ibizbooknew-default-value-grid-view.vue'));
Vue.component('ibizbookcalendar-view', () => import('@pages/sample/ibizbookcalendar-view/ibizbookcalendar-view.vue'));
......
......@@ -447,6 +447,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-detail-sf2-edit-view/ibizorder-detail-sf2-edit-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr5dataview/:usr5dataview?',
meta: {
caption: 'entities.ibizbook.views.usr5dataview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr5dataview', parameterName: 'usr5dataview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/listexpview/:listexpview?',
meta: {
......@@ -3395,6 +3409,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookgroup-by-codelist-kan-ban-view/ibizbookgroup-by-codelist-kan-ban-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr5dataview/:usr5dataview?',
meta: {
caption: 'entities.ibizbook.views.usr5dataview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr5dataview', parameterName: 'usr5dataview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/odsp_d20_wfgridview/:odsp_d20_wfgridview?',
meta: {
......
......@@ -196,6 +196,7 @@ export const viewstate: any = {
'39e841c85d9bbfc7ecf009c4202dbf0c',
'658d519f1868979431e7e0da5d967e6b',
'8a3f2cc88421d9f07cbb53dd78e11495',
'323ab2f980880093a8f5fbaf3e0965a0',
'9127e2414d8e646fd2b473695d17c485',
'fdb297cd4b12374534413c3053aec1b8',
'f4c5c766fd5755b694e0401dddc4d1ad',
......@@ -218,8 +219,8 @@ export const viewstate: any = {
'5ccbd78fe47300a160915d6398b59604',
'd9f9f0dede285235e3d0ad5101188d1e',
'5f21463b9d808170d4023d8402cc6e9e',
'84904c93ceea3ab6551555ee20c41e27',
'ffedffb9c57cb200c275ba15e9100da4',
'84904c93ceea3ab6551555ee20c41e27',
'41d3da0d37fb0135ace813f1ba06bd39',
'1ee924c4a616343b6b4cd42150b799fa',
'b8ae19200ec9d4e8e588bc31e3f9bcb4',
......@@ -468,6 +469,16 @@ export const viewstate: any = {
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '323ab2f980880093a8f5fbaf3e0965a0',
viewmodule: 'Sample',
viewname: 'IBIZBOOKUsr5DataView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '3561860a1fae5554621b47824d1d3abc',
viewmodule: 'Sample',
......
......@@ -680,15 +680,15 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto3':
this.clickAuto3(item);
return;
case 'AppFunc22':
this.clickAppFunc22(item);
return;
case 'Auto279':
this.clickAuto279(item);
return;
case 'AppFunc31':
this.clickAppFunc31(item);
return;
case 'AppFunc22':
this.clickAppFunc22(item);
return;
case 'AppFunc46':
this.clickAppFunc46(item);
return;
......@@ -743,6 +743,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc8':
this.clickAppFunc8(item);
return;
case 'AppFunc71':
this.clickAppFunc71(item);
return;
case 'Auto173':
this.clickAuto173(item);
return;
......@@ -2121,18 +2124,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 表单项输入提示
* 自定义视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto279(item: any = {}) {
public clickAppFunc22(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'customview', parameterName: 'customview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -2144,18 +2147,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 图书实体表单(内置功能)
* 表单项输入提示
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc31(item: any = {}) {
public clickAuto279(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'interfunceditview', parameterName: 'interfunceditview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -2167,18 +2170,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 自定义视图
* 图书实体表单(内置功能)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc22(item: any = {}) {
public clickAppFunc31(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'customview', parameterName: 'customview' },
{ pathName: 'interfunceditview', parameterName: 'interfunceditview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -2603,6 +2606,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图书实体数据视图(自定义插件)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc71(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr5dataview', parameterName: 'usr5dataview' },
];
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);
})
}
/**
* 搜索表单
*
......
......@@ -952,6 +952,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc19',
resourcetag: '',
authtag:'Web-MainMenu-menuitem94',
},
{
id: '6E8D1669-FA60-46AC-BC55-C61EB0010CB1',
name: 'menuitem152',
text: '自定义插件',
type: 'MENUITEM',
counterid: '',
tooltip: '自定义插件',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc71',
resourcetag: '',
authtag:'Web-MainMenu-menuitem152',
},
],
},
......
/**
* GroupByCodelistKanBan 部件模型
*
* @export
* @class GroupByCodelistKanBanModel
*/
export default class GroupByCodelistKanBanModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GroupByCodelistKanBanDataViewMode
*/
public getDataItems(): any[] {
return [
{
name: 'author',
prop: 'author',
dataType: 'TEXT',
},
{
name: 'srfsubtext',
prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'press',
prop: 'press',
dataType: 'TEXT',
},
{
name: 'price',
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'srficon',
prop: 'icon',
dataType: 'TEXT',
},
{
name: 'booknumber',
prop: 'booknumber',
dataType: 'INT',
},
{
name: 'type',
prop: 'type',
dataType: 'TEXT',
},
{
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 GroupByCodelistKanBanModel from './group-by-codelist-kan-ban-dataview-model';
/**
* GroupByCodelistKanBan 部件服务对象
*
* @export
* @class GroupByCodelistKanBanService
*/
export default class GroupByCodelistKanBanService extends ControlService {
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof GroupByCodelistKanBanService
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof GroupByCodelistKanBanService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of GroupByCodelistKanBanService.
*
* @param {*} [opts={}]
* @memberof GroupByCodelistKanBanService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new GroupByCodelistKanBanModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GroupByCodelistKanBanService
*/
@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 GroupByCodelistKanBanService
*/
@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 GroupByCodelistKanBanService
*/
@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 GroupByCodelistKanBanService
*/
@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 GroupByCodelistKanBanBase from './group-by-codelist-kan-ban-dataview-base.vue';
@Component({
components: {
}
})
export default class GroupByCodelistKanBan extends GroupByCodelistKanBanBase {
}
</script>
\ No newline at end of file
......@@ -19,6 +19,11 @@ export default class GroupByCodelistKanBanModel {
prop: 'author',
dataType: 'TEXT',
},
{
name: 'srfsubtext',
prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'press',
prop: 'press',
......@@ -29,6 +34,11 @@ export default class GroupByCodelistKanBanModel {
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'srficon',
prop: 'icon',
dataType: 'TEXT',
},
{
name: 'booknumber',
prop: 'booknumber',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册