提交 95d92ff9 编写于 作者: hudan's avatar hudan

部门指定单位

上级 d0a24ebf
.app-mob-department-select{ .app-mob-department-select{
width: 100%; width: 100%;
.checkField { .main{
position: relative; position: relative;
.checkField {
margin-right: 22px;
.has-value { .has-value {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -16,6 +18,7 @@ ...@@ -16,6 +18,7 @@
width: 18px; width: 18px;
height: 100%; height: 100%;
} }
}
.ivu-dropdown{ .ivu-dropdown{
.ivu-dropdown-rel{ .ivu-dropdown-rel{
.tree-input{ .tree-input{
......
<template> <template>
<div class="app-mob-department-select"> <div class="app-mob-department-select">
<div class="main">
<div class="checkField"> <div class="checkField">
<ion-input :disabled="disabled" :value="curValue" readonly @click="openModal"></ion-input> <ion-input :disabled="disabled" :value="curValue" readonly @click="openModal"></ion-input>
</div>
<div class="icon"> <div class="icon">
<ion-icon name="search-outline"></ion-icon> <ion-icon name="search-outline" v-show="!curValue" @click="openModal"></ion-icon>
<ion-icon v-show="curValue" class="delete-value " name="close-circle-outline" @click.stop="onClear"></ion-icon>
</div> </div>
</div> </div>
...@@ -218,6 +221,17 @@ export default class AppMobDepartmentSelect extends Vue { ...@@ -218,6 +221,17 @@ export default class AppMobDepartmentSelect extends Vue {
let _value = checkValue == []? null : checkValue.join(','); let _value = checkValue == []? null : checkValue.join(',');
this.$emit('select-change',{"name": this.fillMap.label, "value":_value }); this.$emit('select-change',{"name": this.fillMap.label, "value":_value });
} }
/**
* 清除
*
* @memberof AppMobDepartmentSelect
*/
public onClear(){
this.curValue = '';
this.selectTreeValue = '';
this.$emit('select-change',{ "name": this.fillMap.label, "value":'' })
}
} }
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册