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

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

上级 907fa931
......@@ -721,7 +721,7 @@ export default {
uiactions: {
},
},
listexpbar_list_list: {
listexp_list: {
nodata:"",
uiactions: {
},
......
......@@ -720,7 +720,7 @@ export default {
uiactions: {
},
},
listexpbar_list_list: {
listexp_list: {
nodata:"",
uiactions: {
},
......
......@@ -969,6 +969,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'2567fdd6130699509d22512564bbb650',
],
},
{
......
/**
* ListExp 部件模型
*
* @export
* @class ListExpModel
*/
export default class ListExpModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ListExpListexpbar_listMode
*/
public getDataItems(): any[] {
return [
{
name: 'ibizorderid',
prop: 'ibizorderid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizordername',
dataType: 'TEXT',
},
{
name: 'srfdate',
prop: 'starttime',
dataType: 'DATETIME',
},
{
name: 'srfdescription',
prop: 'memo',
dataType: 'LONGTEXT_1000',
},
{
name: 'srfkey',
prop: 'ibizorderid',
dataType: 'GUID',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
dataType: 'PICKUP',
},
{
name: 'wfstep',
prop: 'wfstep',
dataType: 'SSCODELIST',
codelist:{tag:'ORDERSTEP',codelistType:'STATIC'},
},
{
name: 'orderstate',
prop: 'orderstate',
dataType: 'SSCODELIST',
codelist:{tag:'ORDERSTATE',codelistType:'STATIC'},
},
{
name: 'srfmstag',
},
{
name: 'ibizorder',
prop: 'ibizorderid',
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 IBIZOrderService from '@/service/ibizorder/ibizorder-service';
import ListExpModel from './list-exp-list-model';
/**
* ListExp 部件服务对象
*
* @export
* @class ListExpService
*/
export default class ListExpService extends ControlService {
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof ListExpService
*/
public appEntityService: IBIZOrderService = new IBIZOrderService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof ListExpService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of ListExpService.
*
* @param {*} [opts={}]
* @memberof ListExpService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new ListExpModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ListExpService
*/
@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 ListExpService
*/
@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 ListExpService
*/
@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 ListExpService
*/
@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;
.item-text {
font-size: 18px;
font-weight: bold;
}
.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 ListExpBase from './list-exp-list-base.vue';
@Component({
components: {
}
})
export default class ListExp extends ListExpBase {
}
</script>
\ No newline at end of file
......@@ -297,7 +297,7 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
* @type {string}
* @memberof ListExpViewlistexpbarBase
*/
public navViewName: string = "";
public navViewName: string = "ibizorder-detail-grid-view9";
/**
* 导航视图参数
......@@ -321,7 +321,7 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
* @type {string}
* @memberof ListExpViewlistexpbarBase
*/
public navPSDer: string = "";
public navPSDer: string = "n_ibizorderid_eq";
/**
* 导航上下文参数
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListExpViewlistexpbarBase from './list-exp-viewlistexpbar-listexpbar-base.vue';
import view_listexpbar_list from '@widgets/ibizorder/listexpbar-list-list/listexpbar-list-list.vue';
import view_listexpbar_list from '@widgets/ibizorder/list-exp-list/list-exp-list.vue';
@Component({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册