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

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

上级 8ce28f63
......@@ -1487,6 +1487,14 @@
"viewname": "IBIZOrderListView",
"viewtag": "c42bdbde88539ac8246ee9974bbde8eb"
},
"ibizbookusr10gridview": {
"title": "图书表格视图",
"caption": "图书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKUsr10GridView",
"viewtag": "c652e248d035fd9e53d91a283b2a3496"
},
"ibizsoftwaresuitsgridview": {
"title": "软件表格视图",
"caption": "软件",
......
......@@ -190,6 +190,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("Data Main State",null),
title: commonLogic.appcommonhandle("图书数据视图",null),
},
usr10gridview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书表格视图",null),
},
usr5calendarview: {
caption: commonLogic.appcommonhandle("Calendar Main State",null),
title: commonLogic.appcommonhandle("图书日历视图(主状态)",null),
......@@ -605,6 +609,21 @@ function getLocaleResourceBase(){
uiactions: {
},
},
internalfunc_2_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
author: commonLogic.appcommonhandle("图书作者",null),
type: commonLogic.appcommonhandle("图书类型",null),
press: commonLogic.appcommonhandle("图书出版社",null),
price: commonLogic.appcommonhandle("图书价格",null),
uagridcolumn1: commonLogic.appcommonhandle("操作",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
edit: commonLogic.appcommonhandle("Edit",null),
remove: commonLogic.appcommonhandle("Remove",null),
},
},
main7_grid: {
columns: {
author: commonLogic.appcommonhandle("图书作者",null),
......@@ -690,6 +709,11 @@ function getLocaleResourceBase(){
remove: commonLogic.appcommonhandle("Remove",null),
},
},
booklist_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
haspanellist_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
......@@ -1523,23 +1547,11 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null),
},
},
dashboardviewdashboard_sysportlet2_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
usr10gridviewtoolbar_toolbar: {
},
dashboardviewdashboard_sysportlet2_list_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
editview4toolbar_toolbar: {
},
internalfuncgridviewtoolbar_toolbar: {
usr9gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
......@@ -1597,9 +1609,41 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
editview4toolbar_toolbar: {
listviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
deuiaction3: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
deuiaction4: {
caption: commonLogic.appcommonhandle("Filter",null),
tip: commonLogic.appcommonhandle("Filter",null),
},
},
usr9gridviewtoolbar_toolbar: {
listviewlist_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
},
listviewlist_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
internalfuncgridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
......@@ -1657,40 +1701,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
listviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
deuiaction3: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
deuiaction4: {
caption: commonLogic.appcommonhandle("Filter",null),
tip: commonLogic.appcommonhandle("Filter",null),
},
},
listviewlist_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
},
listviewlist_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
usr5gridviewtoolbar_toolbar: {
},
valuerulesgridviewtoolbar_toolbar: {
......@@ -1827,22 +1837,6 @@ function getLocaleResourceBase(){
},
haspanellistviewtoolbar_toolbar: {
},
portlet_booklist_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
},
portlet_booklist_list_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
},
treemajorstate_treeview: {
nodata:commonLogic.appcommonhandle("",null),
nodes: {
......
......@@ -190,6 +190,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书数据视图",null),
},
usr10gridview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书表格视图",null),
},
usr5calendarview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书日历视图(主状态)",null),
......@@ -605,6 +609,21 @@ function getLocaleResourceBase(){
uiactions: {
},
},
internalfunc_2_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
author: commonLogic.appcommonhandle("图书作者",null),
type: commonLogic.appcommonhandle("图书类型",null),
press: commonLogic.appcommonhandle("图书出版社",null),
price: commonLogic.appcommonhandle("图书价格",null),
uagridcolumn1: commonLogic.appcommonhandle("操作",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
edit: commonLogic.appcommonhandle("编辑",null),
remove: commonLogic.appcommonhandle("删除",null),
},
},
main7_grid: {
columns: {
author: commonLogic.appcommonhandle("图书作者",null),
......@@ -690,6 +709,11 @@ function getLocaleResourceBase(){
remove: commonLogic.appcommonhandle("删除",null),
},
},
booklist_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
haspanellist_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
......@@ -1523,23 +1547,11 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("数据导出",null),
},
},
dashboardviewdashboard_sysportlet2_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
usr10gridviewtoolbar_toolbar: {
},
dashboardviewdashboard_sysportlet2_list_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
editview4toolbar_toolbar: {
},
internalfuncgridviewtoolbar_toolbar: {
usr9gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
......@@ -1597,9 +1609,41 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
editview4toolbar_toolbar: {
listviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
deuiaction3: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
deuiaction4: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
},
usr9gridviewtoolbar_toolbar: {
listviewlist_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
},
listviewlist_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
},
internalfuncgridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
......@@ -1657,40 +1701,6 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
listviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
deuiaction3: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
deuiaction4: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
},
listviewlist_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
},
listviewlist_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
},
usr5gridviewtoolbar_toolbar: {
},
valuerulesgridviewtoolbar_toolbar: {
......@@ -1827,22 +1837,6 @@ function getLocaleResourceBase(){
},
haspanellistviewtoolbar_toolbar: {
},
portlet_booklist_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
},
portlet_booklist_list_batchtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
},
treemajorstate_treeview: {
nodata:commonLogic.appcommonhandle("",null),
nodes: {
......
......@@ -1495,6 +1495,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderListView",
"viewtag": "c42bdbde88539ac8246ee9974bbde8eb"
},
"ibizbookusr10gridview": {
"title": "图书表格视图",
"caption": "图书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKUsr10GridView",
"viewtag": "c652e248d035fd9e53d91a283b2a3496"
},
"ibizsoftwaresuitsgridview": {
"title": "软件表格视图",
"caption": "软件",
......
.ibizbookusr10-grid-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
.portal-listview-noboxshadow{
box-shadow: 0px 0px 0px;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr10GridViewBase from './ibizbookusr10-grid-view-base.vue';
import view_grid from '@widgets/ibizbook/internal-func-2-grid/internal-func-2-grid.vue';
import view_searchform from '@widgets/ibizbook/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 IBIZBOOKUsr10GridView extends IBIZBOOKUsr10GridViewBase {
}
</script>
\ No newline at end of file
......@@ -45,6 +45,7 @@ export const PageComponents = {
Vue.component('ibizsample0021-edit-view', () => import('@pages/sample/ibizsample0021-edit-view/ibizsample0021-edit-view.vue'));
Vue.component('ibizappextendeditorgrid-view', () => import('@pages/sample/ibizappextendeditorgrid-view/ibizappextendeditorgrid-view.vue'));
Vue.component('ibizhardware-sgrid-view', () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'));
Vue.component('ibizbookusr10-grid-view', () => import('@pages/sample/ibizbookusr10-grid-view/ibizbookusr10-grid-view.vue'));
Vue.component('ibizbookwizard-iwith-state-view', () => import('@pages/sample/ibizbookwizard-iwith-state-view/ibizbookwizard-iwith-state-view.vue'));
Vue.component('ibizbookmedit-view9', () => import('@pages/sample/ibizbookmedit-view9/ibizbookmedit-view9.vue'));
Vue.component('ibizorder-sf5-grid-view', () => import('@pages/sample/ibizorder-sf5-grid-view/ibizorder-sf5-grid-view.vue'));
......
......@@ -754,6 +754,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr10gridview/:usr10gridview?',
meta: {
caption: 'entities.ibizbook.views.usr10gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr10gridview', parameterName: 'usr10gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr10-grid-view/ibizbookusr10-grid-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/wizardiwithstateview/:wizardiwithstateview?',
meta: {
......@@ -4419,6 +4433,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr10gridview/:usr10gridview?',
meta: {
caption: 'entities.ibizbook.views.usr10gridview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr10gridview', parameterName: 'usr10gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr10-grid-view/ibizbookusr10-grid-view.vue'),
},
{
path: '/ibizsoftwaresuits/:ibizsoftwaresuit?/sgridview/:sgridview?',
meta: {
......
......@@ -550,7 +550,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'f73da4cb47a88d3fe5b92716e0137741',
'c652e248d035fd9e53d91a283b2a3496',
],
},
{
......@@ -1376,6 +1376,16 @@ export const viewstate: any = {
'ec6cfd868c34a036250a813b24068519',
],
},
{
viewtag: 'c652e248d035fd9e53d91a283b2a3496',
viewmodule: 'Sample',
viewname: 'IBIZBOOKUsr10GridView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: 'c8845bb5ed3853ec394b9c80eeb0416e',
viewmodule: 'Sample',
......
......@@ -135,6 +135,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'roweditgridview',srfappde:'ibizbooks',component:'ibizbookrow-edit-grid-view'});
this.allViewMap.set(':',{viewname:'usr6gridview',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view'});
this.allViewMap.set(':',{viewname:'usr6dataview',srfappde:'ibizbooks',component:'ibizbookusr6-data-view'});
this.allViewMap.set(':',{viewname:'usr10gridview',srfappde:'ibizbooks',component:'ibizbookusr10-grid-view'});
this.allViewMap.set(':',{viewname:'usr5calendarview',srfappde:'ibizbooks',component:'ibizbookusr5-calendar-view'});
this.allViewMap.set(':',{viewname:'usr9gridview',srfappde:'ibizbooks',component:'ibizbookusr9-grid-view'});
this.allViewMap.set(':',{viewname:'usr4dataview',srfappde:'ibizbooks',component:'ibizbookusr4-data-view'});
......
/**
* Booklist 部件模型
*
* @export
* @class BooklistModel
*/
export default class BooklistModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof BooklistDashboard_sysportlet2_listMode
*/
public getDataItems(): any[] {
return [
{
name: 'srfdate',
prop: 'lendouttime',
dataType: 'DATE',
},
{
name: 'srficon',
prop: 'icon',
dataType: 'LONGTEXT',
},
{
name: 'srfdescription',
prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfmstag',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
dataType: 'FONTKEY',
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'sort',
prop:'sort'
},
{
name:'page',
prop:'page'
},
// 前端新增修改标识,新增为"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 BooklistModel from './booklist-list-model';
/**
* Booklist 部件服务对象
*
* @export
* @class BooklistService
*/
export default class BooklistService extends ControlService {
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof BooklistService
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof BooklistService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of BooklistService.
*
* @param {*} [opts={}]
* @memberof BooklistService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new BooklistModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof BooklistService
*/
@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(async (response) => {
await this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof BooklistService
*/
@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 BooklistService
*/
@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 BooklistService
*/
@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
// this is less
.app-list {
height:100%;
flex-grow: 1;
overflow-y: auto;
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.el-collapse{
.el-collapse-item{
.el-collapse-item__wrap{
.el-collapse-item__content{
padding: 10px 0 10px 0;
}
}
}
}
.app-list-item {
line-height: 34px;
padding: 12px 6px;
min-height: 24px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
.app-list-item-content {
width: 70%;
display: flex;
align-items: center;
.item-icon {
width: 40px;
height: 40px;
margin-right: 14px;
img {
width: 40px;
height: 40px;
border-radius: 50%;
}
}
.item-content-text {
display: flex;
flex-direction: column;
width: 80%;
.item-title {
font-size: 18px;
font-weight: bold;
}
.item-description{
height: 34px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.item-subtext {
color: #8c8c8c;
}
}
}
.app-list-item-date {
position: relative;
color: #8c8c8c;
}
}
.app-list-item.isSelect {
background: #ecf5ff;
border-radius: 2px;
border-color: rgb(197, 197, 197);
}
.app-list-item:hover {
background: #ecf5ff;
}
.loadmore {
text-align: center;
padding: 10px;
text-decoration: underline;
color: #82bff7;
cursor: default;
}
}
.app-list-empty {
height:100%;
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import BooklistBase from './booklist-list-base.vue';
@Component({
components: {
}
})
export default class Booklist extends BooklistBase {
}
</script>
\ No newline at end of file
/**
* InternalFunc_2 部件模型
*
* @export
* @class InternalFunc_2Model
*/
export default class InternalFunc_2Model {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof InternalFunc_2GridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InternalFunc_2GridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'author',
prop: 'author',
dataType: 'TEXT',
},
{
name: 'press',
prop: 'press',
dataType: 'TEXT',
},
{
name: 'ibizbookname',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'price',
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'type',
prop: 'type',
dataType: 'TEXT',
},
{
name: 'srfmstag',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
isEditable:true
},
{
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
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 InternalFunc_2Base from './internal-func-2-grid-base.vue';
@Component({
components: {
}
})
export default class InternalFunc_2 extends InternalFunc_2Base {
}
</script>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKPortalComponentsListBase from './portal-components-list-portlet-base.vue';
import view_dashboard_sysportlet2_list from '@widgets/ibizbook/lnternal-func-list-list/lnternal-func-list-list.vue';
import view_dashboard_sysportlet2_list from '@widgets/ibizbook/booklist-list/booklist-list.vue';
@Component({
......
......@@ -8,7 +8,7 @@
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<ibizbookinternal-func-grid-view :portletState="viewState" :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></ibizbookinternal-func-grid-view>
<ibizbookusr10-grid-view :portletState="viewState" :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></ibizbookusr10-grid-view>
</div>
</div>
</template>
......@@ -245,7 +245,7 @@ export default class IBIZBOOKPortalComponentsViewBase extends Vue implements Con
* @memberof PortalComponentsViewBase
*/
public refresh(args?: any) {
this.viewState.next({ tag: 'IBIZBOOKInternalFuncGridView', action: 'refresh', data: args });
this.viewState.next({ tag: 'IBIZBOOKUsr10GridView', action: 'refresh', data: args });
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册