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

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

上级 748af039
......@@ -254,6 +254,7 @@ export default {
menuitem128: "表格导航",
menuitem114: "列表导航",
menuitem136: "树导航",
menuitem137: "卡片导航",
menuitem129: "选项操作",
menuitem130: "选项操作视图",
menuitem131: "表格选项操作",
......
......@@ -254,6 +254,7 @@ export default {
menuitem128: "表格导航",
menuitem114: "列表导航",
menuitem136: "树导航",
menuitem137: "卡片导航",
menuitem129: "选项操作",
menuitem130: "选项操作视图",
menuitem131: "表格选项操作",
......
......@@ -1679,6 +1679,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc57',
resourcetag: '',
},
{
id: '65A6BA78-DAD9-4E7D-A442-BB083365EA47',
name: 'menuitem137',
text: '卡片导航',
type: 'MENUITEM',
counterid: '',
tooltip: '卡片导航',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc58',
resourcetag: '',
},
],
},
......
.ibizorder-data-view-exp-view{
position: relative;
}
.ibizorder-data-view-exp-view{
display: block;
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZOrderDataViewExpViewBase from './ibizorder-data-view-exp-view-base.vue';
import view_dataviewexpbar from '@widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.vue';
@Component({
components: {
view_dataviewexpbar,
},
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 IBIZOrderDataViewExpView extends IBIZOrderDataViewExpViewBase {
}
</script>
\ No newline at end of file
......@@ -30,8 +30,8 @@ export const PageComponents = {
Vue.component('ibizsample0002-pickup-grid-view', () => import('@pages/sample/ibizsample0002-pickup-grid-view/ibizsample0002-pickup-grid-view.vue'));
Vue.component('ibizsoftware-suit-edit-view', () => import('@pages/sample/ibizsoftware-suit-edit-view/ibizsoftware-suit-edit-view.vue'));
Vue.component('ibizorder-pickup-view', () => import('@pages/sample/ibizorder-pickup-view/ibizorder-pickup-view.vue'));
Vue.component('ibizorder-sf4-grid-view', () => import('@pages/sample/ibizorder-sf4-grid-view/ibizorder-sf4-grid-view.vue'));
Vue.component('ibizsample0003-grid-view', () => import('@pages/sample/ibizsample0003-grid-view/ibizsample0003-grid-view.vue'));
Vue.component('ibizorder-sf4-grid-view', () => import('@pages/sample/ibizorder-sf4-grid-view/ibizorder-sf4-grid-view.vue'));
Vue.component('ibizbookcustom-view', () => import('@pages/sample/ibizbookcustom-view/ibizbookcustom-view.vue'));
Vue.component('ibizsample0003-sf4-edit-view', () => import('@pages/sample/ibizsample0003-sf4-edit-view/ibizsample0003-sf4-edit-view.vue'));
Vue.component('ibizorder-sf1-grid-view', () => import('@pages/sample/ibizorder-sf1-grid-view/ibizorder-sf1-grid-view.vue'));
......@@ -61,6 +61,7 @@ export const PageComponents = {
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'));
Vue.component('ibizorder-line-chart-view', () => import('@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'));
Vue.component('ibizorder-data-view-exp-view', () => import('@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'));
Vue.component('ibizorder-odsp-d-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d-wfgrid-view/ibizorder-odsp-d-wfgrid-view.vue'));
Vue.component('ibizorder-detail-grid-view', () => import('@pages/sample/ibizorder-detail-grid-view/ibizorder-detail-grid-view.vue'));
Vue.component('ibizorder-sf2-edit-view', () => import('@pages/sample/ibizorder-sf2-edit-view/ibizorder-sf2-edit-view.vue'));
......
......@@ -561,32 +561,32 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-pickup-view/ibizorder-pickup-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/sf4gridview/:sf4gridview?',
path: 'ibizsample0003s/:ibizsample0003?/gridview/:gridview?',
meta: {
caption: 'entities.ibizorder.views.sf4gridview.caption',
caption: 'entities.ibizsample0003.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf4gridview', parameterName: 'sf4gridview' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-sf4-grid-view/ibizorder-sf4-grid-view.vue'),
component: () => import('@pages/sample/ibizsample0003-grid-view/ibizsample0003-grid-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/gridview/:gridview?',
path: 'ibizorders/:ibizorder?/sf4gridview/:sf4gridview?',
meta: {
caption: 'entities.ibizsample0003.views.gridview.caption',
caption: 'entities.ibizorder.views.sf4gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf4gridview', parameterName: 'sf4gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0003-grid-view/ibizsample0003-grid-view.vue'),
component: () => import('@pages/sample/ibizorder-sf4-grid-view/ibizorder-sf4-grid-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/customview/:customview?',
......@@ -1024,6 +1024,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/dataviewexpview/:dataviewexpview?',
meta: {
caption: 'entities.ibizorder.views.dataviewexpview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'dataviewexpview', parameterName: 'dataviewexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/odsp_d_wfgridview/:odsp_d_wfgridview?',
meta: {
......@@ -2879,6 +2893,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/dataviewexpview/:dataviewexpview?',
meta: {
caption: 'entities.ibizorder.views.dataviewexpview.caption',
info:'',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'dataviewexpview', parameterName: 'dataviewexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/gridview9/:gridview9?',
meta: {
......
......@@ -183,103 +183,104 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'dddefe276053bb9682b51318e96b45d6',
'b09ceb3081717c0ed4fe19f9986598a0',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'0c1093afa96df2832f707495afec541e',
'7d37165f2f535b4a6d2116188fe83d18',
'53269c1ea73ad6fae5d2ac4eced7f9d1',
'a3e8c166f876e0dd8eb09be4f9f907ab',
'703686dd4e6aa6f55aca5d92c00d9ee3',
'39e841c85d9bbfc7ecf009c4202dbf0c',
'efbe72fe207c5bb7ada28b278a9ea920',
'658d519f1868979431e7e0da5d967e6b',
'8a3f2cc88421d9f07cbb53dd78e11495',
'9127e2414d8e646fd2b473695d17c485',
'fdb297cd4b12374534413c3053aec1b8',
'f4c5c766fd5755b694e0401dddc4d1ad',
'e7441fa67d425df343d996c745fb5d6b',
'2ccd29eeaeded3ea5a713a19cd67a83e',
'aa68a83577209ff0ec3864aec4e194f2',
'd69d223e4d3aeb8d947ac9b9ddc60a7e',
'692ede21641dfdb7075ede69d7c4ad33',
'b1591dc4d651536bceb32b60310fd2a5',
'19d36909f837de28880553dc9a190922',
'3ebf0cd640e39a4e7efe30ec1cf32b43',
'8a4ccafa81445d49488874a8c7575932',
'0b8c0a8b7a5b8b73595b23fc502652fc',
'b7c0a73eb248d41eb750bbf095fa5505',
'59500fe075fdae44c35c88b95e64d9c8',
'3041238537beef69c0f3410a1ba04c84',
'e14e0fa8f3def77ebbcf18f1f39c0225',
'd3255261c8522c660c1000cd0a61c3b0',
'5ccbd78fe47300a160915d6398b59604',
'd9f9f0dede285235e3d0ad5101188d1e',
'5f21463b9d808170d4023d8402cc6e9e',
'84904c93ceea3ab6551555ee20c41e27',
'ffedffb9c57cb200c275ba15e9100da4',
'41d3da0d37fb0135ace813f1ba06bd39',
'1ee924c4a616343b6b4cd42150b799fa',
'b8ae19200ec9d4e8e588bc31e3f9bcb4',
'b1256beac1e95915b675893c61559b59',
'e2a1c9cb077cd2c74f2f2b914fb1db84',
'd3321077dfab8bc6b92c649e5b69daf3',
'e54ae8e27a53b3425ac78a229a163bd5',
'836bdb4063978b55fedd6a180d60c323',
'794fbfb192285c60dc9ce640270d79c0',
'369a14f21cbff0d0fe23831aecfca7ba',
'a894de140705ecab2f39797d2922a3ce',
'ea604a66caf499c70c9002a917dd1694',
'4981c4ae8facb75582f8dcbc51850318',
'dddefe276053bb9682b51318e96b45d6',
'875222727b7ab7dcaccc45808fd38b09',
'de9166f936946237e2d0e5367db078c2',
'9db924c804154be5b442a9737514a6f9',
'b29d930f430c127162f83753d85dd40c',
'36763886cbec62729dca4d4b8dad8161',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'10e721a882036c8c012f35d2a6b00237',
'd8a6379b9ddbd161045a288aba0890b6',
'0c1093afa96df2832f707495afec541e',
'd1f311d51e800e95e9b10c49a8b49b5a',
'53269c1ea73ad6fae5d2ac4eced7f9d1',
'7d37165f2f535b4a6d2116188fe83d18',
'f94df735642ce85ebb2fe3816c4dc77b',
'ac9add3724d90fba46e7298ac051fa5f',
'a3e8c166f876e0dd8eb09be4f9f907ab',
'39e841c85d9bbfc7ecf009c4202dbf0c',
'703686dd4e6aa6f55aca5d92c00d9ee3',
'efbe72fe207c5bb7ada28b278a9ea920',
'2bf74d5d66fa6d8d38b21b090586529b',
'16b68282950fb352dfe27e94bda47304',
'2bf74d5d66fa6d8d38b21b090586529b',
'8d1205a914564cbd528cadc3963c2905',
'658d519f1868979431e7e0da5d967e6b',
'59c5d311d09a7f68f8b6962ca652374a',
'8a3f2cc88421d9f07cbb53dd78e11495',
'464b1dbf722c8dcaaa7f2cc90b8d0d8d',
'ad37d44e57c18e4431a609968203c646',
'9127e2414d8e646fd2b473695d17c485',
'fdb297cd4b12374534413c3053aec1b8',
'f4c5c766fd5755b694e0401dddc4d1ad',
'464b1dbf722c8dcaaa7f2cc90b8d0d8d',
'7f65e6161c444d29e1f53f1cb76e92de',
'e7441fa67d425df343d996c745fb5d6b',
'756fecec409c3a955f0cd737259d27c7',
'2ccd29eeaeded3ea5a713a19cd67a83e',
'490f607f17e7cc8ceccc77f2d0b9a70d',
'13ed6c02918e612bac45715a6f300f2f',
'aa68a83577209ff0ec3864aec4e194f2',
'9c8e1b12e5e55164c2ec0e5617e1574b',
'e9b54ef29b192ecd2da05ff9570eb4d5',
'692ede21641dfdb7075ede69d7c4ad33',
'd69d223e4d3aeb8d947ac9b9ddc60a7e',
'b038c48269316664e5b48380a879fd99',
'd9bd3192a20de0815bed3fd3d79d0cb1',
'98865bf786ea85b14932dd5e48a74983',
'b1591dc4d651536bceb32b60310fd2a5',
'19d36909f837de28880553dc9a190922',
'e92ac401e96f4e17763322eca8355c30',
'bc76c982dd2264463427eb57e9ed3fba',
'3ebf0cd640e39a4e7efe30ec1cf32b43',
'e92ac401e96f4e17763322eca8355c30',
'9f80ed66360fbbb9bc57c575fdd8814f',
'94e6694a65d9cacb171b6e0b581216ba',
'8a4ccafa81445d49488874a8c7575932',
'5686558064d641b7ff599746970461cd',
'3bbf72a3e5b59fed0dee362a9b1384a8',
'fdb8ed39fbfea00f65416b9aaebd64e7',
'f73da4cb47a88d3fe5b92716e0137741',
'0b8c0a8b7a5b8b73595b23fc502652fc',
'59500fe075fdae44c35c88b95e64d9c8',
'b7c0a73eb248d41eb750bbf095fa5505',
'fdb8ed39fbfea00f65416b9aaebd64e7',
'd99f9680b535dcf3ad0d0f853a8b89d9',
'3041238537beef69c0f3410a1ba04c84',
'dd8d7ffe00cabb07784f30f66a5b34da',
'e14e0fa8f3def77ebbcf18f1f39c0225',
'd3255261c8522c660c1000cd0a61c3b0',
'6625a5fb33580f05512d6ba60d17b55f',
'5ccbd78fe47300a160915d6398b59604',
'bdb15578e295954bc2ecd16771c3e200',
'5f21463b9d808170d4023d8402cc6e9e',
'51dc78a9ed0e9cd37d46bec7dbc7d172',
'd9f9f0dede285235e3d0ad5101188d1e',
'ffedffb9c57cb200c275ba15e9100da4',
'84904c93ceea3ab6551555ee20c41e27',
'bdb15578e295954bc2ecd16771c3e200',
'6b3607e849c8517fd7ae1cab583f7393',
'41d3da0d37fb0135ace813f1ba06bd39',
'b1256beac1e95915b675893c61559b59',
'b8ae19200ec9d4e8e588bc31e3f9bcb4',
'09663b7a4e3dce70524d1b64e02b5e2d',
'edca8ee67304eb78c02bbfb9e4cb11bb',
'e2a1c9cb077cd2c74f2f2b914fb1db84',
'a6cb9804bfd40d2542ae2c44e0cc3331',
'd3321077dfab8bc6b92c649e5b69daf3',
'491c2bc6eab0ad313d4b6f06f6a396f5',
'836bdb4063978b55fedd6a180d60c323',
'e54ae8e27a53b3425ac78a229a163bd5',
'e53fed4d0b4dd614057f426b02115b41',
'369a14f21cbff0d0fe23831aecfca7ba',
'794fbfb192285c60dc9ce640270d79c0',
'00a0716a2029a7fe79fe03b6f74c7c90',
'302c48740ebb26191bba93f1795af44e',
'2b42718d8fb3b4c9a01651222304445a',
'a894de140705ecab2f39797d2922a3ce',
'e57dd501c75c6933363fa245edcadbbd',
'ea604a66caf499c70c9002a917dd1694',
'14eddc6d2c858a72c796b017959cc4ef',
'1247febf206e1e0dbb4f384b4cfa565c',
'4981c4ae8facb75582f8dcbc51850318',
],
},
{
......@@ -302,6 +303,16 @@ export const viewstate: any = {
'581e6727bc5983c238cc9990ba5fdcac',
],
},
{
viewtag: '1ee924c4a616343b6b4cd42150b799fa',
viewmodule: 'Sample',
viewname: 'IBIZOrderDataViewExpView',
viewaction: '',
viewdatachange: false,
refviews: [
'b4db5cb272d2da535285852bc436e9de',
],
},
{
viewtag: '2567fdd6130699509d22512564bbb650',
viewmodule: 'Sample',
......
......@@ -623,6 +623,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto222':
this.clickAuto222(item);
return;
case 'AppFunc58':
this.clickAppFunc58(item);
return;
case 'Auto145':
this.clickAuto145(item);
return;
......@@ -1650,6 +1653,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc58(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'dataviewexpview', parameterName: 'dataviewexpview' },
];
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);
})
}
/**
* 常规表格视图
*
......
......@@ -1774,6 +1774,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc57',
resourcetag: '',
authtag:'Web-MainMenu-menuitem136',
},
{
id: '65A6BA78-DAD9-4E7D-A442-BB083365EA47',
name: 'menuitem137',
text: '卡片导航',
type: 'MENUITEM',
counterid: '',
tooltip: '卡片导航',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc58',
resourcetag: '',
authtag:'Web-MainMenu-menuitem137',
},
],
},
......
/**
* CardNavigation 部件模型
*
* @export
* @class CardNavigationModel
*/
export default class CardNavigationModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof CardNavigationDataviewexpbar_dataviewMode
*/
public getDataItems(): any[] {
return [
{
name: 'amount',
prop: 'amount',
dataType: 'FLOAT',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
dataType: 'PICKUP',
},
{
name: 'memo',
prop: 'memo',
dataType: 'LONGTEXT_1000',
},
{
name: 'orderstate',
prop: 'orderstate',
dataType: 'SSCODELIST',
},
{
name: 'detailnum',
prop: 'detailnum',
dataType: 'INT',
},
{
name: 'ibizorderid',
prop: 'ibizorderid',
dataType: 'GUID',
},
{
name: 'ibizcustomername',
prop: 'ibizcustomername',
dataType: 'PICKUPTEXT',
},
{
name: 'wfstep',
prop: 'wfstep',
dataType: 'SSCODELIST',
},
{
name: 'ibizordername',
prop: 'ibizordername',
dataType: 'TEXT',
},
{
name: 'srfmstag',
},
{
name: 'srfmajortext',
prop: 'ibizordername',
dataType: 'TEXT',
},
{
name: 'srfkey',
prop: 'ibizorderid',
dataType: 'GUID',
},
{
name: 'ibizorder',
prop: 'ibizorderid',
dataType: 'FONTKEY',
},
{
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 IBIZOrderService from '@/service/ibizorder/ibizorder-service';
import CardNavigationModel from './card-navigation-dataview-model';
/**
* CardNavigation 部件服务对象
*
* @export
* @class CardNavigationService
*/
export default class CardNavigationService extends ControlService {
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof CardNavigationService
*/
public appEntityService: IBIZOrderService = new IBIZOrderService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof CardNavigationService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of CardNavigationService.
*
* @param {*} [opts={}]
* @memberof CardNavigationService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new CardNavigationModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CardNavigationService
*/
@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 CardNavigationService
*/
@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 CardNavigationService
*/
@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 CardNavigationService
*/
@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 CardNavigationBase from './card-navigation-dataview-base.vue';
@Component({
components: {
}
})
export default class CardNavigation extends CardNavigationBase {
}
</script>
\ No newline at end of file
/**
* DataViewExpViewdataviewexpbar 部件模型
*
* @export
* @class DataViewExpViewdataviewexpbarModel
*/
export default class DataViewExpViewdataviewexpbarModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DataViewExpViewdataviewexpbarDataviewexpbarMode
*/
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 DataViewExpViewdataviewexpbarModel from './data-view-exp-viewdataviewexpbar-dataviewexpbar-model';
/**
* DataViewExpViewdataviewexpbar 部件服务对象
*
* @export
* @class DataViewExpViewdataviewexpbarService
*/
export default class DataViewExpViewdataviewexpbarService extends ControlService {
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof DataViewExpViewdataviewexpbarService
*/
public appEntityService: IBIZOrderService = new IBIZOrderService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof DataViewExpViewdataviewexpbarService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of DataViewExpViewdataviewexpbarService.
*
* @param {*} [opts={}]
* @memberof DataViewExpViewdataviewexpbarService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new DataViewExpViewdataviewexpbarModel();
}
}
\ No newline at end of file
.app-dataview-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;
.dataview-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;
}
}
.dataview-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
}
.dataview-exp-bar-content2 {
height: 100%;
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%;
.dataview-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;
}
}
.dataview-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
margin-bottom: 10px;
}
.dataview-exp-bar-content2 {
height: 100%;
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 DataViewExpViewdataviewexpbarBase from './data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue';
import view_dataviewexpbar_dataview from '@widgets/ibizorder/card-navigation-dataview/card-navigation-dataview.vue';
@Component({
components: {
view_dataviewexpbar_dataview,
}
})
export default class DataViewExpViewdataviewexpbar extends DataViewExpViewdataviewexpbarBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册