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

部门指定单位

上级 d0a24ebf
.app-mob-department-select{
width: 100%;
.checkField {
.main{
position: relative;
.has-value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-word;
.checkField {
margin-right: 22px;
.has-value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-word;
}
}
.icon {
position:absolute;
top: 12px;
right: 0px;
width: 18px;
height: 100%;
}
}
.icon {
position:absolute;
top: 12px;
right: 0px;
width: 18px;
height: 100%;
}
.ivu-dropdown{
.ivu-dropdown-rel{
......
<template>
<div class="app-mob-department-select">
<div class="checkField">
<ion-input :disabled="disabled" :value="curValue" readonly @click="openModal"></ion-input>
<div class="main">
<div class="checkField">
<ion-input :disabled="disabled" :value="curValue" readonly @click="openModal"></ion-input>
</div>
<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>
......@@ -218,6 +221,17 @@ export default class AppMobDepartmentSelect extends Vue {
let _value = checkValue == []? null : checkValue.join(',');
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>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册