Document item tax add new fixed..
This commit is contained in:
@ -87,7 +87,7 @@
|
||||
</el-option>
|
||||
</el-option-group>
|
||||
|
||||
<el-option v-if="!loading && addNew.status && options.length != 0" class="el-select__footer" :disabled="disabled" :value="add_new">
|
||||
<el-option v-if="!loading && addNew.status && options.length != 0" class="el-select__footer" :disabled="disabled" :value="''">
|
||||
<div @click="onAddItem">
|
||||
<i class="fas fa-plus"></i>
|
||||
<span>
|
||||
@ -425,11 +425,17 @@ export default {
|
||||
|
||||
methods: {
|
||||
change() {
|
||||
// This controll added add new changed..
|
||||
if (typeof(this.selected) === 'object' && typeof(this.selectedz.type) !== 'undefined') {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.$emit('interface', this.selected);
|
||||
|
||||
this.$emit('change', this.selected);
|
||||
|
||||
// Option changed sort_option data
|
||||
/*
|
||||
if (this.group) {
|
||||
this.sort_options.forEach(function (option_group, group_index) {
|
||||
this.option_group.value.forEach(function (option, index) {
|
||||
@ -493,6 +499,7 @@ export default {
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
visibleChange(event) {
|
||||
@ -520,11 +527,11 @@ export default {
|
||||
if (this.title) {
|
||||
var value = this.$children[0].$children[0].$children[0].$refs.input.value;
|
||||
} else {
|
||||
var value = this.$children[0].$children[0].$refs.input.value;
|
||||
var value = this.$children[0].$children[0].$children[0].$refs.input.value;
|
||||
}
|
||||
|
||||
if (value === '') {
|
||||
return false;
|
||||
//return false;
|
||||
}
|
||||
|
||||
if (this.add_new.type == 'inline') {
|
||||
|
Reference in New Issue
Block a user