complete the admin setting navbar

This commit is contained in:
Mohd Arief
2018-06-25 16:57:18 +08:00
parent 620e496f0e
commit 069883deeb
8 changed files with 90 additions and 16 deletions
@@ -1,16 +1,24 @@
<template>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ locales[locale] }}
</a>
<div class="dropdown-menu">
<a v-for="(value, key) in locales" :key="key" class="dropdown-item" href="#"
@click.prevent="setLocale(key)">
{{ value }}
<div>
<ul class="nav navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ locales[locale] }}
</a>
</div>
</li>
<div class="dropdown-menu">
<a v-for="(value, key) in locales" :key="key" class="dropdown-item" href="#"
@click.prevent="setLocale(key)">
{{ value }}
</a>
</div>
</li>
<li><a class="nav-link" href="#" role="button">Update Rate</a></li>
<li><a class="nav-link" href="#" role="button">Complete Order</a></li>
<li><a class="nav-link" href="#" role="button">Transaction History</a></li>
<li><a class="nav-link" href="#" role="button">Upload Supplier Bank Slip to System</a></li>
</ul>
</div>
</template>
<script>
@@ -0,0 +1,40 @@
<template>
<el-table :data="tableData" border style="width: 100%">
<el-table-column prop="comp_name" label="Company Name" width="180"></el-table-column>
<el-table-column prop="reg_no" label="Registration No" width="180"></el-table-column>
<el-table-column prop="gst_no" label="GST No"></el-table-column>
<el-table-column prop="bank_name" label="Bank Name"></el-table-column>
<el-table-column prop="account_no" label="Account No"></el-table-column>
<el-table-column label="Action">
<template slot-scope="scope">
<el-button type="text" size="small">Edit</el-button>
<el-button type="text" size="small">Delete</el-button>
</template>
</el-table-column>
</el-table>
</template>
<script>
export default {
data() {
return {
tableData: [{
comp_name: 'CIEF',
reg_no: '2134241',
gst_no: '214',
bank_name: 'myabank',
account_no: '1242521',
}, {
comp_name: 'iPhone',
reg_no: '123214',
gst_no: '3532',
bank_name: 'adyabank',
account_no: '21421421',
}]
}
}
}
</script>
+21 -1
View File
@@ -37,7 +37,27 @@ export default {
icon: 'lock',
name: this.$t('password'),
route: 'settings.password'
}
},
{
icon: 'user',
name: this.$t('Supplier'),
route: 'settings.admin-supplier'
},
{
icon: 'cog',
name: this.$t('Credit Setting'),
route: 'settings.admin-credit-setting'
},
{
icon: 'flag',
name: this.$t('CIEF China Bank'),
route: 'settings.admin-china-bank'
},
{
icon: 'building',
name: this.$t('Bank Setting'),
route: 'settings.admin-bank-setting'
},
]
}
}
+2 -2
View File
@@ -5,7 +5,7 @@ import FontAwesomeIcon from '@fortawesome/vue-fontawesome'
// import { } from '@fortawesome/fontawesome-free-regular/shakable.es'
import {
faUser, faLock, faSignOutAlt, faCog
faUser, faLock, faSignOutAlt, faCog, faFlag, faBuilding
} from '@fortawesome/fontawesome-free-solid/shakable.es'
import {
@@ -13,7 +13,7 @@ import {
} from '@fortawesome/fontawesome-free-brands/shakable.es'
fontawesome.library.add(
faUser, faLock, faSignOutAlt, faCog, faGithub
faUser, faLock, faSignOutAlt, faCog, faFlag, faBuilding, faGithub
)
Vue.component('fa', FontAwesomeIcon)
+8 -2
View File
@@ -9,7 +9,10 @@ const Home = () => import('~/pages/home').then(m => m.default || m)
const Settings = () => import('~/pages/settings/index').then(m => m.default || m)
const SettingsProfile = () => import('~/pages/settings/profile').then(m => m.default || m)
const SettingsPassword = () => import('~/pages/settings/password').then(m => m.default || m)
const SettingsAdmin = () => import('~/pages/settings/admin').then(m => m.default || m)
const SettingsAdminSupplier = () => import('~/pages/settings/admin-supplier').then(m => m.default || m)
const SettingsAdminCreditSetting = () => import('~/pages/settings/admin-credit-setting').then(m => m.default || m)
const SettingsAdminChinaBank = () => import('~/pages/settings/admin-china-bank').then(m => m.default || m)
const SettingsAdminBankSetting = () => import('~/pages/settings/admin-bank-setting').then(m => m.default || m)
// const Admin = () => import('~/pages/admin/adminhome').then(m => m.default || m)
const Admin = () => import('~/pages/admin/index').then(m => m.default || m)
@@ -37,7 +40,10 @@ export default [
{ path: '', redirect: { name: 'settings.profile' } },
{ path: 'profile', name: 'settings.profile', component: SettingsProfile },
{ path: 'password', name: 'settings.password', component: SettingsPassword },
{ path: 'admin', name: 'settings.admin', component: SettingsAdmin }
{ path: 'admin-supplier', name: 'settings.admin-supplier', component: SettingsAdminSupplier },
{ path: 'admin-credit-setting', name: 'settings.admin-credit-setting', component: SettingsAdminCreditSetting },
{ path: 'admin-china-bank', name: 'settings.admin-china-bank', component: SettingsAdminChinaBank },
{ path: 'admin-bank-setting', name: 'settings.admin-bank-setting', component: SettingsAdminBankSetting }
] },
// Booking