Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzrt
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzrt
提交
27646c45
提交
27646c45
编写于
7月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
aef8d721
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
10 行删除
+31
-10
state.ts
app_Web/src/store/modules/view-action/state.ts
+1
-0
main-grid-base.vue
...b/src/widgets/ibzdept-member/main-grid/main-grid-base.vue
+18
-10
main-grid-service.ts
...src/widgets/ibzdept-member/main-grid/main-grid-service.ts
+12
-0
未找到文件。
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
27646c45
...
@@ -266,6 +266,7 @@ export const viewstate: any = {
...
@@ -266,6 +266,7 @@ export const viewstate: any = {
'd946240b09028ae684e1eb31281a4caf'
,
'd946240b09028ae684e1eb31281a4caf'
,
'9ffa35efe3d70cf4b9fa4e83dd1979c6'
,
'9ffa35efe3d70cf4b9fa4e83dd1979c6'
,
'bf5e850471bab461fbb6739578e510c5'
,
'bf5e850471bab461fbb6739578e510c5'
,
'10dd7f45f36233049c4af9ca417089f5'
,
'7e3fbce8277ad89674307e6a0d7ddd43'
,
'7e3fbce8277ad89674307e6a0d7ddd43'
,
'97224ac0397dbe38b4679b4060ee29e5'
,
'97224ac0397dbe38b4679b4060ee29e5'
,
],
],
...
...
app_Web/src/widgets/ibzdept-member/main-grid/main-grid-base.vue
浏览文件 @
27646c45
...
@@ -32,23 +32,31 @@
...
@@ -32,23 +32,31 @@
<template
v-if=
"actualIsOpenEdit"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<dropdown-list
<app-picker
v-model=
"row[column.property]"
:formState=
"viewState"
:disabled=
"row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
:data=
"row"
:data=
"row"
:context=
"context"
:context=
"context"
:viewparams=
"viewparams"
:viewparams=
"viewparams"
:localContext =
'
{ }'
:localContext =
'
{ }'
:localParam ='{ }'
:localParam ='{ }'
placeholder='请选择...'
:disabled="row.srfuf === 1 ? (3
&
2) !== 2 : (3
&
1) !== 1"
style=""
name='deptname'
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
deMajorField='deptname'
</dropdown-list>
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>
</app-form-item>
</
template
>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<
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
>
</template>
</template>
</el-table-column>
</el-table-column>
...
...
app_Web/src/widgets/ibzdept-member/main-grid/main-grid-service.ts
浏览文件 @
27646c45
...
@@ -4,6 +4,7 @@ import IBZDeptMemberService from '@/service/ibzdept-member/ibzdept-member-servic
...
@@ -4,6 +4,7 @@ import IBZDeptMemberService from '@/service/ibzdept-member/ibzdept-member-servic
import
MainModel
from
'./main-grid-model'
;
import
MainModel
from
'./main-grid-model'
;
import
IBZPostService
from
'@/service/ibzpost/ibzpost-service'
;
import
IBZPostService
from
'@/service/ibzpost/ibzpost-service'
;
import
IBZEmployeeService
from
'@/service/ibzemployee/ibzemployee-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 {
...
@@ -60,6 +61,14 @@ export default class MainService extends ControlService {
*/
*/
public
ibzemployeeService
:
IBZEmployeeService
=
new
IBZEmployeeService
();
public
ibzemployeeService
:
IBZEmployeeService
=
new
IBZEmployeeService
();
/**
* 部门服务对象
*
* @type {IBZDepartmentService}
* @memberof MainService
*/
public
ibzdepartmentService
:
IBZDepartmentService
=
new
IBZDepartmentService
();
/**
/**
* 处理数据
* 处理数据
*
*
...
@@ -107,6 +116,9 @@ export default class MainService extends ControlService {
...
@@ -107,6 +116,9 @@ export default class MainService extends ControlService {
if
(
Object
.
is
(
serviceName
,
'IBZEmployeeService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
if
(
Object
.
is
(
serviceName
,
'IBZEmployeeService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
ibzemployeeService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'userid'
,
'ibzemployee'
);
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
([])
return
Promise
.
reject
([])
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录