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

ibiz4j 发布系统代码

上级 de319d14
......@@ -259,6 +259,7 @@ export const viewstate: any = {
'95a44e1851d28a16a90965f60d6ff4ae',
'bf9108c85aaa6f3d2498f87b2439b9df',
'd1ec542e553e00c6455ca776efc61882',
'b59db4df07430a34645566a64d59244c',
],
},
{
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册