Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
08d9e95f
提交
08d9e95f
编写于
5年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_qyk 发布系统代码
上级
a12bb2e3
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
2 行删除
+28
-2
state.ts
app_web/src/store/modules/view-action/state.ts
+2
-0
main-form-base.vue
app_web/src/widgets/ibzemployee/main-form/main-form-base.vue
+2
-2
main-form-service.ts
...eb/src/widgets/ibzemployee/main-form/main-form-service.ts
+24
-0
未找到文件。
app_web/src/store/modules/view-action/state.ts
浏览文件 @
08d9e95f
...
@@ -33,6 +33,8 @@ export const viewstate: any = {
...
@@ -33,6 +33,8 @@ export const viewstate: any = {
viewdatachange
:
false
,
viewdatachange
:
false
,
refviews
:
[
refviews
:
[
'c9aa00ee38b42ea5ba1d2deb5959ac2b'
,
'c9aa00ee38b42ea5ba1d2deb5959ac2b'
,
'9e25d15d43ff644fa008c9cf7d063ac3'
,
'b59db4df07430a34645566a64d59244c'
,
],
],
},
},
{
{
...
...
This diff is collapsed.
Click to expand it.
app_web/src/widgets/ibzemployee/main-form/main-form-base.vue
浏览文件 @
08d9e95f
...
@@ -29,13 +29,13 @@
...
@@ -29,13 +29,13 @@
<row>
<row>
<i-col
v-show=
"detailsModel.orgname.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.orgname.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'orgname'
:itemRules=
"this.rules.orgname"
class=
''
:caption=
"$t('entities.ibzemployee.main_form.details.orgname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orgname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'orgname'
:itemRules=
"this.rules.orgname"
class=
''
:caption=
"$t('entities.ibzemployee.main_form.details.orgname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orgname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.orgname"
:data=
"data"
:itemParam=
"
{}" :disabled="detailsModel.orgname.disabled" placeholder='请选择...' style="">
</dropdown-lis
t>
<app-org-select
:data=
"data"
:context=
"JSON.parse(JSON.stringify(context))"
:fillMap=
"
{id:'orgid','label':'orgname','code':'orgcode'}" filter="'srforgid'" :multiple="false" style="" @select-change="onFormItemValueChange">
</app-org-selec
t>
</app-form-item>
</app-form-item>
</i-col>
</i-col>
<i-col
v-show=
"detailsModel.mdeptname.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.mdeptname.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'mdeptname'
:itemRules=
"this.rules.mdeptname"
class=
''
:caption=
"$t('entities.ibzemployee.main_form.details.mdeptname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.mdeptname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'mdeptname'
:itemRules=
"this.rules.mdeptname"
class=
''
:caption=
"$t('entities.ibzemployee.main_form.details.mdeptname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.mdeptname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.mdeptname"
:data=
"data"
:itemParam=
"
{}" :disabled="detailsModel.mdeptname.disabled" placeholder='请选择...' style="">
</dropdown-lis
t>
<app-department-select
:data=
"data"
:context=
"JSON.parse(JSON.stringify(context))"
:fillMap=
"
{id:'mdeptid','label':'mdeptname','code':'mdeptcode','bcode':'bcode'}" filter="orgid" :multiple="false" style="" @select-change="onFormItemValueChange">
</app-department-selec
t>
</app-form-item>
</app-form-item>
</i-col>
</i-col>
...
...
This diff is collapsed.
Click to expand it.
app_web/src/widgets/ibzemployee/main-form/main-form-service.ts
浏览文件 @
08d9e95f
...
@@ -2,6 +2,8 @@ import { Http,Util,Errorlog } from '@/utils';
...
@@ -2,6 +2,8 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBZEmployeeService
from
'@/service/ibzemployee/ibzemployee-service'
;
import
IBZEmployeeService
from
'@/service/ibzemployee/ibzemployee-service'
;
import
MainModel
from
'./main-form-model'
;
import
MainModel
from
'./main-form-model'
;
import
IBZOrganizationService
from
'@/service/ibzorganization/ibzorganization-service'
;
import
IBZDepartmentService
from
'@/service/ibzdepartment/ibzdepartment-service'
;
/**
/**
...
@@ -41,6 +43,22 @@ export default class MainService extends ControlService {
...
@@ -41,6 +43,22 @@ export default class MainService extends ControlService {
this
.
model
=
new
MainModel
();
this
.
model
=
new
MainModel
();
}
}
/**
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof MainService
*/
public
ibzorganizationService
:
IBZOrganizationService
=
new
IBZOrganizationService
();
/**
* 部门服务对象
*
* @type {IBZDepartmentService}
* @memberof MainService
*/
public
ibzdepartmentService
:
IBZDepartmentService
=
new
IBZDepartmentService
();
/**
/**
* 处理数据
* 处理数据
*
*
...
@@ -80,6 +98,12 @@ export default class MainService extends ControlService {
...
@@ -80,6 +98,12 @@ export default class MainService extends ControlService {
*/
*/
@
Errorlog
@
Errorlog
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
if
(
Object
.
is
(
serviceName
,
'IBZOrganizationService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
ibzorganizationService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'orgid'
,
'ibzorganization'
);
}
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
([])
}
}
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录