Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-Mob-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-Mob-R7-Res
提交
52863844
提交
52863844
编写于
12月 22, 2020
作者:
hudan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
部门抛值、样式调整
上级
0158293b
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
9 行删除
+30
-9
app-mob-department-select.less
.../app-mob-department-select/app-mob-department-select.less
+2
-0
app-mob-department-select.vue
...s/app-mob-department-select/app-mob-department-select.vue
+23
-9
layout.less
src/styles/layout/layout.less
+5
-0
未找到文件。
src/components/app-mob-department-select/app-mob-department-select.less
浏览文件 @
52863844
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
position: relative;
position: relative;
.checkField {
.checkField {
margin-right: 22px;
margin-right: 22px;
// --padding-end: 5px !important;
.has-value {
.has-value {
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
...
...
src/components/app-mob-department-select/app-mob-department-select.vue
浏览文件 @
52863844
...
@@ -178,7 +178,6 @@ export default class AppMobDepartmentSelect extends Vue {
...
@@ -178,7 +178,6 @@ export default class AppMobDepartmentSelect extends Vue {
@
Watch
(
'data'
,{
immediate
:
true
,
deep
:
true
})
@
Watch
(
'data'
,{
immediate
:
true
,
deep
:
true
})
public
onValueChange
(
newVal
:
any
,
oldVal
:
any
)
{
public
onValueChange
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
if
(
newVal
){
// this.computedSelectedData();
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
searchNodesData
();
this
.
searchNodesData
();
});
});
...
@@ -202,8 +201,8 @@ export default class AppMobDepartmentSelect extends Vue {
...
@@ -202,8 +201,8 @@ export default class AppMobDepartmentSelect extends Vue {
multiple
:
this
.
multiple
,
multiple
:
this
.
multiple
,
nodesData
:
this
.
Nodesdata
nodesData
:
this
.
Nodesdata
});
});
let
container
:
any
=
await
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
let
result
:
any
=
await
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
this
.
closeModal
(
container
);
this
.
closeModal
(
result
.
datas
);
}
}
/**
/**
...
@@ -211,15 +210,23 @@ export default class AppMobDepartmentSelect extends Vue {
...
@@ -211,15 +210,23 @@ export default class AppMobDepartmentSelect extends Vue {
*
*
* @memberof AppMobDepartmentSelect
* @memberof AppMobDepartmentSelect
*/
*/
public
closeModal
(
result
:
any
)
{
public
closeModal
(
datas
:
any
)
{
let
checkValue
:
any
[]
=
[];
let
checkValue
:
any
[]
=
[];
result
.
datas
.
forEach
((
item
:
any
)
=>
{
datas
.
forEach
((
item
:
any
)
=>
{
checkValue
.
push
(
item
.
label
);
checkValue
.
push
(
item
.
label
);
})
})
this
.
selectTreeValue
=
JSON
.
stringify
(
result
.
datas
);
this
.
selectTreeValue
=
JSON
.
stringify
(
datas
);
this
.
curValue
=
checkValue
==
[]?
''
:
checkValue
.
join
(
','
);
this
.
curValue
=
checkValue
==
[]?
''
:
checkValue
.
join
(
','
);
let
_value
=
checkValue
==
[]?
null
:
checkValue
.
join
(
','
);
if
(
this
.
fillMap
&&
Object
.
keys
(
this
.
fillMap
).
length
>
0
){
this
.
$emit
(
'select-change'
,{
"name"
:
this
.
fillMap
.
label
,
"value"
:
_value
});
Object
.
keys
(
this
.
fillMap
).
forEach
((
attribute
:
string
)
=>
{
let
_name
=
this
.
fillMap
[
attribute
];
let
values
=
datas
.
map
((
item
:
any
)
=>
item
[
attribute
]);
let
_value
=
datas
===
"[]"
?
null
:
values
.
join
(
","
);
setTimeout
(()
=>
{
this
.
$emit
(
'select-change'
,{
name
:
this
.
fillMap
[
attribute
],
value
:
_value
});
},
0
);
});
}
}
}
/**
/**
...
@@ -230,7 +237,14 @@ export default class AppMobDepartmentSelect extends Vue {
...
@@ -230,7 +237,14 @@ export default class AppMobDepartmentSelect extends Vue {
public
onClear
(){
public
onClear
(){
this
.
curValue
=
''
;
this
.
curValue
=
''
;
this
.
selectTreeValue
=
''
;
this
.
selectTreeValue
=
''
;
this
.
$emit
(
'select-change'
,{
"name"
:
this
.
fillMap
.
label
,
"value"
:
''
})
if
(
this
.
fillMap
&&
Object
.
keys
(
this
.
fillMap
).
length
>
0
){
Object
.
keys
(
this
.
fillMap
).
forEach
((
attribute
:
string
)
=>
{
let
_name
=
this
.
fillMap
[
attribute
];
setTimeout
(()
=>
{
this
.
$emit
(
'select-change'
,{
name
:
this
.
fillMap
[
attribute
],
value
:
null
});
},
0
);
});
}
}
}
}
}
</
script
>
</
script
>
...
...
src/styles/layout/layout.less
浏览文件 @
52863844
...
@@ -54,4 +54,9 @@
...
@@ -54,4 +54,9 @@
.app-mob-check-list-search{
.app-mob-check-list-search{
text-align: @form-text-align;
text-align: @form-text-align;
}
}
.app-mob-department-select{
.checkField{
text-align: @form-text-align;
}
}
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录