file_group form element enhancement
This commit is contained in:
24
resources/assets/js/mixins/global.js
vendored
24
resources/assets/js/mixins/global.js
vendored
@@ -2,6 +2,11 @@ import Vue from 'vue';
|
||||
|
||||
import axios from 'axios';
|
||||
|
||||
import DropzoneFileUpload from './../components/Inputs/DropzoneFileUpload';
|
||||
import AkauntingContactCard from './../components/AkauntingContactCard';
|
||||
import AkauntingCompanyEdit from './../components/AkauntingCompanyEdit';
|
||||
import AkauntingEditItemColumns from './../components/AkauntingEditItemColumns';
|
||||
import AkauntingItemButton from './../components/AkauntingItemButton';
|
||||
import AkauntingSearch from './../components/AkauntingSearch';
|
||||
import AkauntingModal from './../components/AkauntingModal';
|
||||
import AkauntingMoney from './../components/AkauntingMoney';
|
||||
@@ -21,9 +26,15 @@ import NProgressAxios from './../plugins/nprogress-axios';
|
||||
import { Select, Option, Steps, Step, Button, Link, Tooltip, ColorPicker } from 'element-ui';
|
||||
|
||||
import Form from './../plugins/form';
|
||||
import { concat } from 'lodash';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
DropzoneFileUpload,
|
||||
AkauntingContactCard,
|
||||
AkauntingCompanyEdit,
|
||||
AkauntingEditItemColumns,
|
||||
AkauntingItemButton,
|
||||
AkauntingSearch,
|
||||
AkauntingRadioGroup,
|
||||
AkauntingSelect,
|
||||
@@ -49,6 +60,7 @@ export default {
|
||||
return {
|
||||
component: '',
|
||||
currency: null,
|
||||
fileSingle: []
|
||||
}
|
||||
},
|
||||
|
||||
@@ -388,5 +400,17 @@ export default {
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
// Change Contact Card set form fields..
|
||||
onChangeContactCard(contact) {
|
||||
this.form.contact_id = contact.id;
|
||||
this.form.contact_name = contact.name;
|
||||
this.form.contact_email = contact.email;
|
||||
this.form.contact_tax_number = contact.tax_number;
|
||||
this.form.contact_phone = contact.phone;
|
||||
this.form.contact_address = contact.address;
|
||||
|
||||
this.form.currency_code = contact.currency_code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
<link rel="stylesheet" href="{{ asset('public/css/custom.css?v=' . version('short')) }}" type="text/css">
|
||||
<link rel="stylesheet" href="{{ asset('public/css/element.css?v=' . version('short')) }}" type="text/css">
|
||||
|
||||
|
||||
@stack('css')
|
||||
|
||||
@stack('stylesheet')
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
|
||||
@stack('scripts_start')
|
||||
|
||||
<script src="{{ asset('public/0.js?v=' . version('short')) }}"></script>
|
||||
<script src="{{ asset('public/1.js?v=' . version('short')) }}"></script>
|
||||
|
||||
<script src="{{ asset('public/js/common/search.js?v=' . version('short')) }}"></script>
|
||||
|
||||
@stack('charts')
|
||||
|
||||
@@ -8,11 +8,7 @@
|
||||
@endif
|
||||
|
||||
<div class="custom-file">
|
||||
{!! Form::file($name, array_merge([
|
||||
'class' => 'custom-file-input cursor-pointer',
|
||||
'@input' => 'onHandleFileUpload("' . $name .'", $event)'
|
||||
], $attributes)) !!}
|
||||
{!! Form::label($name, $text, ['class' => 'custom-file-label']) !!}
|
||||
<dropzone-file-upload v-model="fileSingle"></dropzone-file-upload>
|
||||
</div>
|
||||
|
||||
<div class="invalid-feedback d-block"
|
||||
|
||||
Reference in New Issue
Block a user