Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
e8933f3a
提交
e8933f3a
编写于
5月 27, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
de9fa3ce
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
66 行增加
和
4 行删除
+66
-4
state.ts
app_web/src/store/modules/view-action/state.ts
+2
-0
edit-grid-grid-base.vue
...gets/ibzdepartment/edit-grid-grid/edit-grid-grid-base.vue
+55
-4
edit-grid-grid-service.ts
...ts/ibzdepartment/edit-grid-grid/edit-grid-grid-service.ts
+9
-0
未找到文件。
app_web/src/store/modules/view-action/state.ts
浏览文件 @
e8933f3a
...
...
@@ -78,6 +78,8 @@ export const viewstate: any = {
viewdatachange
:
false
,
refviews
:
[
'21259e2d03645750f1d3d71839f1223b'
,
'9e25d15d43ff644fa008c9cf7d063ac3'
,
'b59db4df07430a34645566a64d59244c'
,
],
},
{
...
...
app_web/src/widgets/ibzdepartment/edit-grid-grid/edit-grid-grid-base.vue
浏览文件 @
e8933f3a
...
...
@@ -84,7 +84,14 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
orgname
}}
</span>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<span>
单位选择
</span>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'orgname'
editorType=
"PICKER"
:value=
"row.orgname"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -96,7 +103,14 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
pdeptname
}}
</span>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<span>
部门选择
</span>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'pdeptname'
editorType=
"PICKER"
:value=
"row.pdeptname"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -182,14 +196,21 @@
</el-table-column>
</template>
<
template
v-if=
"getColumnState('leadername')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'leadername'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.leadername')"
:width=
"
10
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'leadername'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.leadername')"
:width=
"
25
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.leadername'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
leadername
}}
</span>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'leadername'
editorType=
"PICKER"
:value=
"row.leadername"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -873,13 +894,19 @@ export default class EditGridBase extends Vue implements ControlInterface {
*/
public
getGridRowModel
(){
return
{
pdeptid
:
new
FormItemModel
(),
leaderid
:
new
FormItemModel
(),
orgid
:
new
FormItemModel
(),
bcode
:
new
FormItemModel
(),
orgname
:
new
FormItemModel
(),
deptcode
:
new
FormItemModel
(),
showorder
:
new
FormItemModel
(),
shortname
:
new
FormItemModel
(),
pdeptname
:
new
FormItemModel
(),
deptlevel
:
new
FormItemModel
(),
deptname
:
new
FormItemModel
(),
srfkey
:
new
FormItemModel
(),
leadername
:
new
FormItemModel
(),
}
}
...
...
@@ -890,10 +917,26 @@ export default class EditGridBase extends Vue implements ControlInterface {
* @memberof EditGrid
*/
public
rules
:
any
=
{
pdeptid
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'blur'
},
],
leaderid
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'blur'
},
],
orgid
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'值不能为空'
,
trigger
:
'blur'
},
],
bcode
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'业务编码 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'业务编码 值不能为空'
,
trigger
:
'blur'
},
],
orgname
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'单位 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'单位 值不能为空'
,
trigger
:
'blur'
},
],
deptcode
:
[
{
required
:
true
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门代码 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门代码 值不能为空'
,
trigger
:
'blur'
},
...
...
@@ -906,6 +949,10 @@ export default class EditGridBase extends Vue implements ControlInterface {
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门简称 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门简称 值不能为空'
,
trigger
:
'blur'
},
],
pdeptname
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'上级部门 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'上级部门 值不能为空'
,
trigger
:
'blur'
},
],
deptlevel
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门级别 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门级别 值不能为空'
,
trigger
:
'blur'
},
...
...
@@ -918,6 +965,10 @@ export default class EditGridBase extends Vue implements ControlInterface {
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门标识 值不能为空'
,
trigger
:
'blur'
},
],
leadername
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'分管领导 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'分管领导 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
app_web/src/widgets/ibzdepartment/edit-grid-grid/edit-grid-grid-service.ts
浏览文件 @
e8933f3a
...
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
IBZDepartmentService
from
'@/service/ibzdepartment/ibzdepartment-service'
;
import
EditGridModel
from
'./edit-grid-grid-model'
;
import
IBZOrganizationService
from
'@/service/ibzorganization/ibzorganization-service'
;
/**
...
...
@@ -42,6 +43,14 @@ export default class EditGridService extends ControlService {
}
/**
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof EditGridService
*/
public
ibzorganizationService
:
IBZOrganizationService
=
new
IBZOrganizationService
();
/**
* 处理数据
*
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录