fix dashboard year tahun and fix bug skit tunai dan console.log delete
This commit is contained in:
@@ -22,8 +22,11 @@ class AliranTunaiController extends Controller
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$alirantunai = Http::get($request->hostname . '/admin/GetTunaiByTarikh/' . $request->kodcaw,['kodlaluan' => $request->teller, 'tarikh' => $request->tarikh])->json(); //
|
||||
// dd($alirantunai);
|
||||
$alirantunaisebelum = Http::get($request->hostname . '/admin/GetTunaiByTarikhSebelum/' . $request->kodcaw,['kodlaluan' => $request->teller, 'tarikh' => $request->tarikh])->json();
|
||||
$alirantunai = Http::get($request->hostname . '/admin/GetTunaiByTarikh/' . $request->kodcaw,['kodlaluan' => $request->teller, 'tarikh' => $request->tarikh])->json();
|
||||
|
||||
$sebelumbakiakhir = (sizeof($alirantunaisebelum) > 0) ? $alirantunaisebelum['baki'] : 0;
|
||||
|
||||
$keluar = $alirantunai['keluar'];
|
||||
$baki = $alirantunai['baki'];
|
||||
$masuk = $alirantunai['masuk'];
|
||||
@@ -135,9 +138,9 @@ class AliranTunaiController extends Controller
|
||||
|
||||
if(strtoupper($request->teller) === 'LELONG'){
|
||||
$penebusanbarcodescanned = floatval($lelongan);
|
||||
$bakisemasa = floatval($bakiawal) + floatval($lelongan) - floatval($totalserahan);
|
||||
$bakisemasa = floatval($sebelumbakiakhir) + floatval($lelongan) - floatval($totalserahan);
|
||||
}else{
|
||||
$bakisemasa = floatval($bakiawal) + floatval($totalpendahuluan) + floatval($penebusan) - (floatval($gadaian) + floatval($totalserahan)) - floatval($totaltuntutbaki);
|
||||
$bakisemasa = floatval($sebelumbakiakhir) + floatval($totalpendahuluan) + floatval($penebusan) - (floatval($gadaian) + floatval($totalserahan)) - floatval($totaltuntutbaki);
|
||||
}
|
||||
|
||||
$errorpendahuluan = false; $errorserahan = false; $errorpenebusan = false; $errorgadaian = false; $errorbaki = false;
|
||||
@@ -161,7 +164,7 @@ class AliranTunaiController extends Controller
|
||||
{
|
||||
return response('sama');
|
||||
}else{
|
||||
$arraykemaskini = ['pendahuluan' => round($totalpendahuluan,2),'serahan' => round($totalserahan,2), 'penebusan' => round($penebusanbarcodescanned,2), 'gadaian' => round($totalgadaibarcodescanned,2), 'bakisemasa' => round($bakisemasa,2),'bakiawal' => round($bakiawal,2)];
|
||||
$arraykemaskini = ['pendahuluan' => round($totalpendahuluan,2),'serahan' => round($totalserahan,2), 'penebusan' => round($penebusanbarcodescanned,2), 'gadaian' => round($totalgadaibarcodescanned,2), 'bakisemasa' => round($bakisemasa,2),'bakiawal' => round($sebelumbakiakhir,2)];
|
||||
return response()->json($arraykemaskini);
|
||||
}
|
||||
}
|
||||
@@ -170,16 +173,8 @@ class AliranTunaiController extends Controller
|
||||
{
|
||||
$auth_user = Auth::user();
|
||||
|
||||
$alirantunai = Http::get($request->hostname . '/admin/GetTunaiByTarikh/' . $request->kodcaw,['kodlaluan' => $request->teller, 'tarikh' => $request->tarikh])->json();
|
||||
|
||||
$keluar = $alirantunai['keluar'];
|
||||
$baki = $alirantunai['baki'];
|
||||
$masuk = $alirantunai['masuk'];
|
||||
$bakiawal = $alirantunai['bakiawal'];
|
||||
$pendahuluan = $alirantunai['tambah'];
|
||||
$serahan = $alirantunai['kurang'];
|
||||
|
||||
$updateTunai = Http::post( $request->hostname.'/admin/updateTunaiGTByTarikh/'.$request->kodcaw, [
|
||||
'bakiawal' => $request->bakiawal,
|
||||
'kodlaluan' => $request->teller,
|
||||
'tarikh' => $request->tarikh,
|
||||
'keluar'=> $request->gadaian,
|
||||
|
||||
@@ -99,7 +99,6 @@ export default {
|
||||
}).then( response => {
|
||||
this.arrayBajet = response.data
|
||||
this.showLoader = false;
|
||||
console.log(this.arrayBajet)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<div>
|
||||
<harian-component></harian-component>
|
||||
|
||||
<div class="w-full flex justify-center items-center">
|
||||
<div class="p-2.5 -mt-3 font-bold">TAHUN : </div>
|
||||
<select v-model="selected" class="w-1/12 bg-white mb-2 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
<option value="2022">2022</option>
|
||||
<option value="2023">2023</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="w-full grid grid-cols-1 xl:grid-cols-3 2xl:grid-cols-3 gap-4">
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 2xl:col-span-1">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex-shrink-0">
|
||||
<h3 class="text-base font-normal text-gray-500">Pembiayaan Bulanan</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto mt-10"><pemb-chart ref="pemb"></pemb-chart></div>
|
||||
</div>
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 2xl:col-span-1">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex-shrink-0">
|
||||
<h3 class="text-base font-normal text-gray-500">Penebusan Bulanan</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto mt-10"><peny-chart ref="peny"></peny-chart></div>
|
||||
</div>
|
||||
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 2xl:col-span-1">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex-shrink-0">
|
||||
<h3 class="text-base font-normal text-gray-500">Keuntungan Bulanan</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto mt-10"><keun-chart ref="keun"></keun-chart></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tahunan-component ref="tahunan"></tahunan-component>
|
||||
|
||||
<aging-component></aging-component>
|
||||
|
||||
<bilangan-component ref="bilangan"></bilangan-component>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
selected: '2023',
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.selected = this.$tahun;
|
||||
},
|
||||
watch: {
|
||||
selected: function (val, oldVal) {
|
||||
this.settahun(val);
|
||||
this.$refs.pemb.getDataPembiayaan();
|
||||
this.$refs.peny.getDataPenebusan();
|
||||
this.$refs.keun.getDatakeuntungan();
|
||||
this.$refs.bilangan.getData();
|
||||
this.$refs.tahunan.getDataPembiayaan();
|
||||
this.$refs.tahunan.getDataPenebusan();
|
||||
this.$refs.tahunan.getDataKeuntungan();
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>>
|
||||
@@ -95,7 +95,6 @@ export default {
|
||||
page: pageNumber
|
||||
}
|
||||
}).then(response => {
|
||||
console.log(response.data)
|
||||
this.showkelulusan = response.data
|
||||
this.paginate = response.data
|
||||
this.currentPage = pageNumber
|
||||
@@ -104,7 +103,6 @@ export default {
|
||||
},
|
||||
ApproveFunc: async function (noruj, kcaw, tel, sir) {
|
||||
let boolkatalaluan = 0;
|
||||
console.log(noruj, kcaw, tel, sir)
|
||||
const {
|
||||
value: katalaluan
|
||||
} = await this.$swal({
|
||||
|
||||
Vendored
+18
-1
@@ -133,11 +133,13 @@ Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").get
|
||||
|
||||
let initial = 'KB2';
|
||||
let initialhostname = 'http://api.arrahn/';
|
||||
let initialtahun = new Date().getFullYear();
|
||||
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
$kodcaw: 'KB2',
|
||||
$hostname: 'http://api.arrahn/'
|
||||
$hostname: 'http://api.arrahn/',
|
||||
$tahun: new Date().getFullYear()
|
||||
},
|
||||
plugins: [createPersistedState()],
|
||||
mutations: {
|
||||
@@ -147,9 +149,14 @@ const store = new Vuex.Store({
|
||||
update$hostname: function(state, newHostname) {
|
||||
state.$hostname = newHostname;
|
||||
},
|
||||
update$tahun: function(state, newTahun) {
|
||||
state.$tahun = newTahun;
|
||||
},
|
||||
reset (state) {
|
||||
state.$kodcaw = initial;
|
||||
state.$hostname = initialhostname;
|
||||
state.$tahun = initialtahun;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -166,6 +173,11 @@ Vue.mixin({
|
||||
get: function () {
|
||||
return store.state.$hostname
|
||||
},
|
||||
},
|
||||
$tahun: {
|
||||
get: function () {
|
||||
return store.state.$tahun
|
||||
},
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
@@ -176,6 +188,9 @@ Vue.mixin({
|
||||
sethostname: function(newHostname) {
|
||||
return store.commit('update$hostname', newHostname);
|
||||
},
|
||||
settahun: function(newTahun) {
|
||||
return store.commit('update$tahun', newTahun);
|
||||
},
|
||||
setLogout: function(){
|
||||
return store.commit('reset');
|
||||
}
|
||||
@@ -184,6 +199,8 @@ Vue.mixin({
|
||||
|
||||
|
||||
//Chart
|
||||
Vue.component('dashboard-component', require('./Dashboard/index.vue').default)
|
||||
|
||||
Vue.component('pemb-chart', require('./components/Chart/PembiayaanChart.vue').default)
|
||||
Vue.component('peny-chart', require('./components/Chart/PenyelesaianChart.vue').default)
|
||||
Vue.component('keun-chart', require('./components/Chart/KeuntunganChart.vue').default)
|
||||
|
||||
@@ -266,7 +266,6 @@ export default {
|
||||
kodcaw: this.$kodcaw
|
||||
}
|
||||
}).then(response => {
|
||||
console.log(this.$api1)
|
||||
this.keuntunganharian = formatter.format(response.data[0].upahToday),
|
||||
this.bajetkeuntungan = formatter.format(response.data[0].bajetharian.toFixed(2)),
|
||||
this.percentkeuntungan = response.data[0].percentDiff,
|
||||
@@ -286,7 +285,6 @@ export default {
|
||||
channel.bind('trigger-gadai', ({
|
||||
cawangan
|
||||
}) => {
|
||||
console.log(`${cawangan}`);
|
||||
|
||||
if (this.$kodcaw === cawangan)
|
||||
this.getDataPembiayaan()
|
||||
@@ -297,7 +295,6 @@ export default {
|
||||
channel.bind('trigger-tebus', ({
|
||||
cawangan
|
||||
}) => {
|
||||
console.log(`${cawangan}`);
|
||||
|
||||
if (this.$kodcaw === cawangan)
|
||||
this.getDataPenebusan()
|
||||
@@ -308,7 +305,6 @@ export default {
|
||||
channel.bind('trigger-keuntungan', ({
|
||||
cawangan
|
||||
}) => {
|
||||
console.log(`${cawangan}`);
|
||||
|
||||
if (this.$kodcaw === cawangan)
|
||||
this.getDataKeuntungan()
|
||||
|
||||
@@ -82,13 +82,13 @@ export default {
|
||||
this.getDataPembiayaan()
|
||||
this.getDataPenebusan()
|
||||
this.getDataKeuntungan()
|
||||
console.log('tahunan' + this.$hostname);
|
||||
},
|
||||
methods: {
|
||||
getDataPembiayaan() {
|
||||
this.axios.get(this.$hostname + '/admin/pembiayaanTahunan', {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}).then(response => {
|
||||
this.pembiayaanterkumpul = formatter.format(response.data[0].total);
|
||||
@@ -104,7 +104,8 @@ export default {
|
||||
getDataPenebusan(){
|
||||
this.axios.get(this.$hostname + '/admin/penebusanTahunan', {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}).then(response => {
|
||||
this.penebusanterkumpul = formatter.format(response.data[0].total);
|
||||
@@ -120,7 +121,8 @@ export default {
|
||||
getDataKeuntungan(){
|
||||
this.axios.get(this.$hostname + '/admin/keuntunganTahunan', {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}).then(response => {
|
||||
this.keuntunganterkumpul = formatter.format(response.data[0].total);
|
||||
|
||||
@@ -136,12 +136,14 @@ export default {
|
||||
this.axios.all([
|
||||
axios.get(this.$hostname + `/admin/bilangan/gadai`, {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}),
|
||||
axios.get(this.$hostname + `/admin/bilangan/tebus`, {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
})
|
||||
])
|
||||
|
||||
@@ -103,7 +103,8 @@ export default {
|
||||
getDatakeuntungan () {
|
||||
this.axios.get(this.$hostname + '/admin/keuntunganBulanan', {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}).then(response => {
|
||||
|
||||
|
||||
@@ -104,7 +104,8 @@ export default {
|
||||
getDataPembiayaan () {
|
||||
this.axios.get(this.$hostname + '/admin/pembiayaanBulanan', {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}).then(response => {
|
||||
|
||||
|
||||
@@ -101,7 +101,8 @@ export default {
|
||||
getDataPenebusan(){
|
||||
this.axios.get(this.$hostname + '/admin/penebusanBulanan', {
|
||||
params: {
|
||||
kodcaw: this.$kodcaw
|
||||
kodcaw: this.$kodcaw,
|
||||
year: this.$tahun
|
||||
}
|
||||
}).then(response => {
|
||||
|
||||
|
||||
@@ -212,7 +212,6 @@ export default {
|
||||
methods: {
|
||||
getItems(){
|
||||
// $teller = Http::get( config('api.url') .'/api/get/tellerwork/'. $auth_user['cawangan'])->json();
|
||||
console.log('kodcaw',this.$kodcaw)
|
||||
return this.axios.get(this.$hostname + '/api/get/tellerwork/' + this.$kodcaw);
|
||||
|
||||
},
|
||||
|
||||
@@ -119,11 +119,9 @@ export default {
|
||||
FuncHantar: function () {
|
||||
|
||||
if (this.submitStatus == 'PENDING') {
|
||||
console.log(this.submitStatus);
|
||||
event.target.disabled = true;
|
||||
return;
|
||||
} else {
|
||||
console.log(this.submitStatus);
|
||||
event.target.disabled = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -163,9 +163,6 @@ export default {
|
||||
pageNumber: 1
|
||||
}
|
||||
},
|
||||
created(){
|
||||
console.log(this.kodcaw)
|
||||
},
|
||||
methods: {
|
||||
toggleModal: function(){
|
||||
this.showModal = !this.showModal;
|
||||
@@ -178,6 +175,7 @@ export default {
|
||||
kodcaw: this.kodcaw,
|
||||
teller: this.kodlaluan,
|
||||
tarikh: this.tarikh,
|
||||
bakiawal: this.bakiawal.replace(/[^0-9.-]+/g,""),
|
||||
gadaian: this.gadaian.replace(/[^0-9.-]+/g,""),
|
||||
penebusan: this.penebusan.replace(/[^0-9.-]+/g,""),
|
||||
bakiakhir: this.bakiakhir.replace(/[^0-9.-]+/g,"")
|
||||
|
||||
@@ -175,7 +175,6 @@ export default {
|
||||
channel.bind('operasi-event', ({ cawangan,khazanah }) => {
|
||||
var el = this.$refs.notification;
|
||||
var count = Number(localStorage.getItem("data-count")) || 0;
|
||||
console.log(count)
|
||||
localStorage.setItem('data-count',count + 1);
|
||||
el.setAttribute('data-count', count+1);
|
||||
el.classList.remove('notify');
|
||||
@@ -204,7 +203,6 @@ export default {
|
||||
Clicked:function(data){
|
||||
var el = this.$refs.notification;
|
||||
var count = Number(localStorage.getItem("data-count")) || 0;
|
||||
console.log(count)
|
||||
localStorage.setItem('data-count',count + 1);
|
||||
el.setAttribute('data-count', count+1);
|
||||
el.classList.remove('notify');
|
||||
|
||||
@@ -148,11 +148,9 @@ export default {
|
||||
|
||||
if(this.submitStatus == 'PENDING')
|
||||
{
|
||||
console.log(this.submitStatus);
|
||||
event.target.disabled = true;
|
||||
return;
|
||||
}else{
|
||||
console.log(this.submitStatus);
|
||||
event.target.disabled = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,6 @@ export default {
|
||||
}
|
||||
}).then(response => {
|
||||
|
||||
console.log(response.data)
|
||||
this.showblacklist = response.data
|
||||
this.paginate = response.data
|
||||
});
|
||||
|
||||
@@ -147,27 +147,31 @@
|
||||
|
||||
<div class="flex justify-center mt-10 mb-10">
|
||||
<div class="mx-2 radio">
|
||||
<input type="radio" id="belumtebus" name="radpendser" value="belum_tebus" class="hidden focus:bg-gray-500" v-model="selected">
|
||||
<input type="radio" id="belumtebus" :disabled="loading" name="radpendser" value="belum_tebus" class="hidden focus:bg-gray-500" v-model="selected">
|
||||
<label for="belumtebus" class="cursor-pointer text-gray-500 focus:bg-gray-500 hover:bg-gray-200 focus:outline-none border px-10 py-4 border-solid border-gray-500 rounded">Belum Tebus</label>
|
||||
</div>
|
||||
|
||||
<div class="mx-2 radio cursor-pointer">
|
||||
<input type="radio" id="sudahtebus" name="radpendser" value="sudah_tebus" class="hidden focus:bg-gray-500" v-model="selected">
|
||||
<input type="radio" id="sudahtebus" :disabled="loading" name="radpendser" value="sudah_tebus" class="hidden focus:bg-gray-500" v-model="selected">
|
||||
<label for="sudahtebus" class="cursor-pointer text-gray-500 focus:bg-gray-500 hover:bg-gray-200 focus:outline-none border px-10 py-4 border-solid border-gray-500 rounded">Sudah Tebus</label>
|
||||
</div>
|
||||
|
||||
<div class="mx-2 radio cursor-pointer">
|
||||
<input type="radio" id="lelong" name="radpendser" value="lelong" class="hidden focus:bg-gray-500" v-model="selected">
|
||||
<input type="radio" id="lelong" :disabled="loading" name="radpendser" value="lelong" class="hidden focus:bg-gray-500" v-model="selected">
|
||||
<label for="lelong" class="cursor-pointer text-gray-500 focus:bg-gray-500 hover:bg-gray-200 focus:outline-none border px-10 py-4 border-solid border-gray-500 rounded">Lelong</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mb-2">
|
||||
<div v-if="loading" class="h-50 w-full mt-8" id="loading">
|
||||
<i class="animate-spin fas fa-circle-notch flex items-center fa-4x m-auto justify-center text-yellow-500" ></i>
|
||||
</div>
|
||||
|
||||
<div v-if="loading == false" class="flex justify-end mb-2">
|
||||
<input v-model="search" class="border border-2 rounded px-4 py-2 w-80r mr-2 " type="text" />
|
||||
<button @click.prevent="searchsag" class="mr-2 border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300"><i class="fas fa-search mr-2"></i>Cari</button>
|
||||
</div>
|
||||
|
||||
<div v-if="selected=='belum_tebus'">
|
||||
<div v-if="selected=='belum_tebus' && loading == false">
|
||||
<table class="min-w-full leading-normal">
|
||||
<thead class="text-center">
|
||||
<tr>
|
||||
@@ -297,7 +301,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="selected=='sudah_tebus'">
|
||||
<div v-if="selected=='sudah_tebus' && loading == false">
|
||||
<table class="min-w-full leading-normal">
|
||||
<thead class="text-center">
|
||||
<tr>
|
||||
@@ -414,7 +418,7 @@
|
||||
<pagination :data="sudahtebuspaginate" @clickEvent_="getDataSenaraiSAG"></pagination>
|
||||
</div>
|
||||
|
||||
<div v-if="selected=='lelong'">
|
||||
<div v-if="selected=='lelong' && loading == false">
|
||||
<table class="min-w-full leading-normal">
|
||||
<thead class="text-center">
|
||||
<tr>
|
||||
@@ -620,7 +624,8 @@ export default {
|
||||
sudahtebuspaginate: {},
|
||||
belumtebuspaginate: {},
|
||||
lelongpaginate: {},
|
||||
search: ''
|
||||
search: '',
|
||||
loading:false
|
||||
}
|
||||
},
|
||||
setup: (props, context) => {
|
||||
@@ -637,7 +642,8 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
selected: function (val, oldVal) {
|
||||
this.showsag = false;
|
||||
this.showsag = true;
|
||||
this.loading = true;
|
||||
this.getDataSenaraiSAG(this.currentPage);
|
||||
}
|
||||
},
|
||||
@@ -708,7 +714,6 @@ export default {
|
||||
}
|
||||
},
|
||||
submit() {
|
||||
console.log('submit!')
|
||||
this.$v.$touch()
|
||||
if (this.$v.$invalid) {
|
||||
this.$toast.error('Sila isi butiran yang disediakan dengan betul!')
|
||||
@@ -789,6 +794,7 @@ export default {
|
||||
this.lelongpaginate = response.data;
|
||||
}
|
||||
|
||||
this.loading = false;
|
||||
this.showsag = true;
|
||||
});
|
||||
},
|
||||
|
||||
@@ -50,12 +50,10 @@ export default {
|
||||
});
|
||||
},
|
||||
async PostData(){
|
||||
console.log(this.content);
|
||||
let response = await this.axios.put(this.$hostname + '/admin/notislelong/update/' + this.$kodcaw,
|
||||
{
|
||||
content: this.content
|
||||
});
|
||||
console.log(response);
|
||||
return response
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.axios.get(this.$hostname + '/api/details/notislelong/' + this.$kodcaw).then(response => {
|
||||
console.log(response.data)
|
||||
this.content = response.data[0].para3;
|
||||
});
|
||||
},
|
||||
@@ -55,7 +54,6 @@ export default {
|
||||
{
|
||||
content: this.content
|
||||
});
|
||||
console.log(response);
|
||||
return response
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-1
@@ -26,6 +26,7 @@ import Prestasi from './Akaun/Prestasi'
|
||||
import SerahGadai from './Akaun/SerahGadai'
|
||||
import SerahTebus from './Akaun/SerahTebus'
|
||||
import Online from './Akaun/Online'
|
||||
import Dashboard from './Dashboard/index'
|
||||
|
||||
|
||||
|
||||
@@ -60,7 +61,7 @@ Vue.use(VueRouter)
|
||||
export default new VueRouter({
|
||||
routes:[
|
||||
{ path: '/online', component: OnlineHome },
|
||||
|
||||
{ path:'/home', component: Dashboard},
|
||||
{ path: '/akaunhome', component: Home },
|
||||
{ path: '/akaunhome/lejeram', component: Lejeram },
|
||||
{ path: '/akaunhome/imbangduga', component: Imbangduga },
|
||||
|
||||
@@ -11,45 +11,7 @@
|
||||
|
||||
{{-- @if(Auth::user()->roles == 'operasi')<a href="{{ route('bajet') }}" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mb-4">KEMASKINI BAJET</a>@endif --}}
|
||||
|
||||
|
||||
<harian-component kodcaw="{{ Auth::user()->cawangan }}"></harian-component>
|
||||
|
||||
<div class="w-full grid grid-cols-1 xl:grid-cols-3 2xl:grid-cols-3 gap-4">
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 2xl:col-span-1">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex-shrink-0">
|
||||
<h3 class="text-base font-normal text-gray-500">Pembiayaan Bulanan</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto mt-10"><pemb-chart kodcaw={{ Auth::user()->cawangan }}></pemb-chart></div>
|
||||
</div>
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 2xl:col-span-1">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex-shrink-0">
|
||||
<h3 class="text-base font-normal text-gray-500">Penebusan Bulanan</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto mt-10"><peny-chart kodcaw={{ Auth::user()->cawangan }}></peny-chart></div>
|
||||
</div>
|
||||
|
||||
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8 2xl:col-span-1">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex-shrink-0">
|
||||
<h3 class="text-base font-normal text-gray-500">Keuntungan Bulanan</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto mt-10"><keun-chart kodcaw={{ Auth::user()->cawangan }}></keun-chart></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<tahunan-component kodcaw={{ Auth::user()->cawangan }}></tahunan-component>
|
||||
|
||||
<aging-component></aging-component>
|
||||
|
||||
<bilangan-component kodcaw={{ Auth::user()->cawangan }}></bilangan-component>
|
||||
|
||||
|
||||
|
||||
<dashboard-component kodcaw="{{ Auth::user()->cawangan }}"></dashboard-component>
|
||||
</div>
|
||||
</main>
|
||||
@include('layouts.footer')
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
@endif
|
||||
<logout-component csrftoken="{{ csrf_token() }}" :route={{ json_encode(route('logout')) }}></logout-component>
|
||||
|
||||
<form id="logout-form" action="logout" method="POST" class="d-none">
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
|
||||
{{-- <input type="hidden" name="_token" :value="this.$props.csrftoken" /> --}}
|
||||
@csrf
|
||||
</form>
|
||||
|
||||
@@ -319,7 +319,7 @@
|
||||
|
||||
<a href="{{ route('pengguna') }}"
|
||||
class="rounded mb-2 mr-2 {{ Route::is('pengguna') || Route::is('pengguna.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
|
||||
<li class="flex w-full justify-between text-red-600 cursor-pointer items-center ">
|
||||
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
|
||||
<div class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
||||
class="bi bi-person-workspace" viewBox="0 0 16 16">
|
||||
@@ -348,7 +348,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="absolute inset-x-0 bottom-0 mb-10 items-center mx-auto flex xl:hidden 2xl:flex">
|
||||
{{-- <div class="absolute inset-x-0 bottom-0 mb-10 items-center mx-auto flex xl:hidden 2xl:flex">
|
||||
<button onclick="closeNav()"
|
||||
class="m-auto bg-yellow-600 hover:bg-gray-400 text-gray-800 font-bold py-2 px-8 rounded inline-flex items-center">
|
||||
<li class="flex w-full justify-between text-white cursor-pointer items-center ">
|
||||
@@ -358,5 +358,5 @@
|
||||
</div>
|
||||
</li>
|
||||
</button>
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user