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

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

上级 f53f1a6d
......@@ -264,6 +264,8 @@ export default {
menuitem143: "数据选择视图",
menuitem130: "索引关系选择视图",
menuitem145: "选择视图",
menuitem147: "应用看板",
menuitem148: "应用看板视图",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -264,6 +264,8 @@ export default {
menuitem143: "数据选择视图",
menuitem130: "索引关系选择视图",
menuitem145: "选择视图",
menuitem147: "应用看板",
menuitem148: "应用看板视图",
menuitem5: "视图",
menuitem9: "列表视图",
menuitem19: "常规表格视图",
......
......@@ -379,8 +379,7 @@ export default {
formitem: "表格选择视图",
formitem1: "数据选择视图",
formitem2: "多选数据选择",
borrowerid: "借阅人ID",
ibizcustomername: "",
borrower: "借阅人",
},
uiactions: {
},
......
......@@ -378,8 +378,7 @@ export default {
formitem: "表格选择视图",
formitem1: "数据选择视图",
formitem2: "多选数据选择",
borrowerid: "借阅人ID",
ibizcustomername: "",
borrower: "借阅人",
},
uiactions: {
},
......
......@@ -1847,6 +1847,44 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: 'C7A24B10-0EC3-4052-8B6F-AC8719B19AF4',
name: 'menuitem147',
text: '应用看板',
type: 'MENUITEM',
counterid: '',
tooltip: '应用看板',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: 'FDA11689-BF44-4299-BC58-4F9EECEF2EE2',
name: 'menuitem148',
text: '应用看板视图',
type: 'MENUITEM',
counterid: '',
tooltip: '应用看板视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
],
},
],
},
......
......@@ -1951,6 +1951,46 @@ export default class MainMenuModel {
authtag:'Web-MainMenu-menuitem145',
},
],
},
{
id: 'C7A24B10-0EC3-4052-8B6F-AC8719B19AF4',
name: 'menuitem147',
text: '应用看板',
type: 'MENUITEM',
counterid: '',
tooltip: '应用看板',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
authtag:'Web-MainMenu-menuitem147',
items: [
{
id: 'FDA11689-BF44-4299-BC58-4F9EECEF2EE2',
name: 'menuitem148',
text: '应用看板视图',
type: 'MENUITEM',
counterid: '',
tooltip: '应用看板视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
authtag:'Web-MainMenu-menuitem148',
},
],
},
],
},
......
......@@ -40,9 +40,7 @@
:localParam ='{ }'
:disabled="detailsModel.formitem.disabled"
name='formitem'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='ibizcustomername'
valueitem='borrower'
:value="data.formitem"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-pickup-grid-view', title: $t('entities.ibizcustomer.views.pickupgridview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' } ], placement:'' }"
......@@ -65,9 +63,7 @@
:localParam ='{ }'
:disabled="detailsModel.formitem1.disabled"
name='formitem1'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='ibizcustomername'
valueitem='borrower'
:value="data.formitem1"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-pickup-view', title: $t('entities.ibizcustomer.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
......@@ -91,10 +87,8 @@
:localContext ='{ }'
:localParam ='{ }'
:service="service"
valueitem='ibizcustomername'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
:acParams="{ serviceName: 'IBIZCustomerService', interfaceName: 'FetchDefault'}"
valueitem='borrower'
:acParams="{ }"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
......@@ -103,13 +97,13 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.borrowerid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='borrowerid' :itemRules="this.rules().borrowerid" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.borrowerid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.borrowerid.error" :isEmptyCaption="false" labelPos="LEFT">
<i-col v-show="detailsModel.borrower.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='borrower' :itemRules="this.rules().borrower" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.borrower')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.borrower.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.borrowerid"
v-model="data.borrower"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.borrowerid.disabled"
:disabled="detailsModel.borrower.disabled"
type='text'
style="">
</input-box>
......@@ -522,8 +516,7 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
formitem: null,
formitem1: null,
formitem2: null,
borrowerid: null,
ibizcustomername: null,
borrower: null,
ibizbook:null,
};
......@@ -591,9 +584,9 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
{ required: this.detailsModel.formitem2.required, type: 'string', message: '多选数据选择 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '多选数据选择 值不能为空', trigger: 'blur' },
],
borrowerid: [
{ required: this.detailsModel.borrowerid.required, type: 'string', message: '借阅人ID 值不能为空', trigger: 'change' },
{ required: this.detailsModel.borrowerid.required, type: 'string', message: '借阅人ID 值不能为空', trigger: 'blur' },
borrower: [
{ required: this.detailsModel.borrower.required, type: 'string', message: '借阅人 值不能为空', trigger: 'change' },
{ required: this.detailsModel.borrower.required, type: 'string', message: '借阅人 值不能为空', trigger: 'blur' },
],
}
}
......@@ -730,9 +723,7 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
,
formitem2: new FormItemModel({ caption: '多选数据选择', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
borrowerid: new FormItemModel({ caption: '借阅人ID', detailType: 'FORMITEM', name: 'borrowerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizcustomername: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'ibizcustomername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
borrower: new FormItemModel({ caption: '借阅人', detailType: 'FORMITEM', name: 'borrower', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
};
......@@ -893,27 +884,15 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
}
/**
* 监控表单属性 borrowerid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof InterFuncForm_2Base
*/
@Watch('data.borrowerid')
onBorroweridChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'borrowerid', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizcustomername 值
* 监控表单属性 borrower 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof InterFuncForm_2Base
*/
@Watch('data.ibizcustomername')
onIbizcustomernameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizcustomername', newVal: newVal, oldVal: oldVal });
@Watch('data.borrower')
onBorrowerChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'borrower', newVal: newVal, oldVal: oldVal });
}
......@@ -986,7 +965,6 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
}
/**
......
......@@ -67,26 +67,23 @@ export default class InterFuncForm_2Model {
},
{
name: 'formitem',
prop: 'borrower',
prop: 'borrowerid',
dataType: 'TEXT',
},
{
name: 'formitem1',
prop: 'borrower',
prop: 'borrowerid',
dataType: 'TEXT',
},
{
name: 'formitem2',
prop: 'borrower',
dataType: 'TEXT',
},
{
name: 'borrowerid',
prop: 'borrowerid',
dataType: 'TEXT',
},
{
name: 'ibizcustomername',
name: 'borrower',
prop: 'borrower',
dataType: 'TEXT',
},
{
name: 'ibizbook',
......
......@@ -2,7 +2,6 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import InterFuncForm_2Model from './inter-func-form-2-form-model';
import IBIZCustomerService from '@/service/ibizcustomer/ibizcustomer-service';
/**
......@@ -42,14 +41,6 @@ export default class InterFuncForm_2Service extends ControlService {
this.model = new InterFuncForm_2Model();
}
/**
* 客户服务对象
*
* @type {IBIZCustomerService}
* @memberof InterFuncForm_2Service
*/
public ibizcustomerService: IBIZCustomerService = new IBIZCustomerService();
/**
* 远端数据
*
......@@ -99,9 +90,6 @@ export default class InterFuncForm_2Service extends ControlService {
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000;
if (Object.is(serviceName, 'IBIZCustomerService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibizcustomerService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'ibizcustomerid', 'ibizcustomer');
}
return Promise.reject([])
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册