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

ibiz4j 发布系统代码

上级 aef8d721
......@@ -266,6 +266,7 @@ export const viewstate: any = {
'd946240b09028ae684e1eb31281a4caf',
'9ffa35efe3d70cf4b9fa4e83dd1979c6',
'bf5e850471bab461fbb6739578e510c5',
'10dd7f45f36233049c4af9ca417089f5',
'7e3fbce8277ad89674307e6a0d7ddd43',
'97224ac0397dbe38b4679b4060ee29e5',
],
......
......@@ -32,23 +32,31 @@
<template v-if="actualIsOpenEdit">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<dropdown-list
v-model="row[column.property]"
:disabled="row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
:data="row"
<app-picker
:formState="viewState"
:data="row"
:context="context"
:viewparams="viewparams"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
placeholder='请选择...'
style=""
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</dropdown-list>
:disabled="row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
name='deptname'
deMajorField='deptname'
deKeyField='ibzdepartment'
:service="service"
:acParams="{ serviceName: 'IBZDepartmentService', interfaceName: 'FetchDefault'}"
valueitem='deptid'
:value="row[column.property]"
editortype=""
:pickupView="{ viewname: 'ibzdepartment-pickup-view', title: $t('entities.ibzdepartment.views.pickupview.title'), deResParameters: [{ pathName: 'ibzorganizations', parameterName: 'ibzorganization' }, ], parameters: [{ pathName: 'ibzdepartments', parameterName: 'ibzdepartment' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}">
</app-picker>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='deptname' editorType="DROPDOWNLIST" :value="row.deptname"></app-span>
<app-span name='deptname' editorType="PICKER" :value="row.deptname"></app-span>
</template>
</template>
</el-table-column>
......
......@@ -4,6 +4,7 @@ import IBZDeptMemberService from '@/service/ibzdept-member/ibzdept-member-servic
import MainModel from './main-grid-model';
import IBZPostService from '@/service/ibzpost/ibzpost-service';
import IBZEmployeeService from '@/service/ibzemployee/ibzemployee-service';
import IBZDepartmentService from '@/service/ibzdepartment/ibzdepartment-service';
/**
......@@ -60,6 +61,14 @@ export default class MainService extends ControlService {
*/
public ibzemployeeService: IBZEmployeeService = new IBZEmployeeService();
/**
* 部门服务对象
*
* @type {IBZDepartmentService}
* @memberof MainService
*/
public ibzdepartmentService: IBZDepartmentService = new IBZDepartmentService();
/**
* 处理数据
*
......@@ -107,6 +116,9 @@ export default class MainService extends ControlService {
if (Object.is(serviceName, 'IBZEmployeeService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibzemployeeService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'userid', 'ibzemployee');
}
if (Object.is(serviceName, 'IBZDepartmentService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibzdepartmentService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'deptid', 'ibzdepartment');
}
return Promise.reject([])
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册