Select vue component update..

This commit is contained in:
Cüneyt Şentürk 2020-02-18 17:17:28 +03:00
parent 996038b2f6
commit 55c96a0347
2 changed files with 7 additions and 0 deletions

View File

@ -610,6 +610,7 @@ export default {
// update options // update options
this.selectOptions = options; this.selectOptions = options;
}, },
value: function (value) { value: function (value) {
if (this.multiple) { if (this.multiple) {
this.real_model = value; this.real_model = value;
@ -617,6 +618,7 @@ export default {
this.real_model = value.toString(); this.real_model = value.toString();
} }
}, },
model: function (value) { model: function (value) {
if (this.multiple) { if (this.multiple) {
this.real_model = value; this.real_model = value;

View File

@ -368,6 +368,8 @@
</template> </template>
<script> <script>
import Vue from 'vue';
import { Select, Option, OptionGroup, ColorPicker } from 'element-ui'; import { Select, Option, OptionGroup, ColorPicker } from 'element-ui';
import AkauntingModalAddNew from './AkauntingModalAddNew'; import AkauntingModalAddNew from './AkauntingModalAddNew';
@ -542,6 +544,7 @@ export default {
this.selectOptions = this.list; this.selectOptions = this.list;
*/ */
if (!this.remoteAction) { if (!this.remoteAction) {
this.remoteAction = url + '/common/items/autocomplete'; this.remoteAction = url + '/common/items/autocomplete';
} }
@ -706,6 +709,7 @@ export default {
// update options // update options
//this.selectOptions = options; //this.selectOptions = options;
}, },
value: function (value) { value: function (value) {
if (this.multiple) { if (this.multiple) {
this.real_model = value; this.real_model = value;
@ -714,6 +718,7 @@ export default {
this.real_model = value; this.real_model = value;
} }
}, },
model: function (value) { model: function (value) {
if (this.multiple) { if (this.multiple) {
this.real_model = value; this.real_model = value;