Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
3d05666d
提交
3d05666d
编写于
7月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
de319d14
变更
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
浏览文件 @
3d05666d
...
@@ -259,6 +259,7 @@ export const viewstate: any = {
...
@@ -259,6 +259,7 @@ export const viewstate: any = {
'95a44e1851d28a16a90965f60d6ff4ae'
,
'95a44e1851d28a16a90965f60d6ff4ae'
,
'bf9108c85aaa6f3d2498f87b2439b9df'
,
'bf9108c85aaa6f3d2498f87b2439b9df'
,
'd1ec542e553e00c6455ca776efc61882'
,
'd1ec542e553e00c6455ca776efc61882'
,
'b59db4df07430a34645566a64d59244c'
,
],
],
},
},
{
{
...
...
app_web/src/widgets/ibzdept-member/main-grid/main-grid-base.vue
浏览文件 @
3d05666d
...
@@ -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"
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=""
style=""
@
change="($event)=>{gridEditItemChange(row, column.property, $event,
$index)}">
@
formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,
$index)}">
</dropdown-list
>
</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
浏览文件 @
3d05666d
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录