Generated
+19
-11142
File diff suppressed because it is too large
Load Diff
Vendored
+5
-6
@@ -126,20 +126,19 @@ Vue.use(require('vue-pusher'), {
|
||||
}
|
||||
});
|
||||
|
||||
Vue.prototype.$api1 = 'http://api-xtra.test/'
|
||||
Vue.prototype.$api1 = 'http://api.arrahn/'
|
||||
Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content');
|
||||
Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content');
|
||||
|
||||
|
||||
let initial = 'X0301';
|
||||
let initialhostname = 'http://api-xtra.test/';
|
||||
let initial = 'KB2';
|
||||
let initialhostname = 'http://api.arrahn/';
|
||||
let initialtahun = new Date().getFullYear();
|
||||
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
$kodcaw: 'X0301',
|
||||
|
||||
$hostname: 'http://api-xtra.test/',
|
||||
$kodcaw: 'KB2',
|
||||
$hostname: 'http://api.arrahn/',
|
||||
$tahun: new Date().getFullYear()
|
||||
},
|
||||
plugins: [createPersistedState()],
|
||||
|
||||
@@ -71,13 +71,51 @@
|
||||
},
|
||||
pembahagiancawangan: function(cawangannama){
|
||||
switch (cawangannama) {
|
||||
case 'X0301':
|
||||
case 'X0201':
|
||||
case 'KB2':
|
||||
case 'WCY':
|
||||
case '1STOP':
|
||||
case '020301':
|
||||
case 'WB':
|
||||
case 'ALS':
|
||||
case '020306':
|
||||
case 'ARM':
|
||||
case 'APM':
|
||||
case '010311':
|
||||
case 'GC':
|
||||
case 'JLI':
|
||||
case 'ARP':
|
||||
case '020303':{
|
||||
this.sethostname('http://api-xtra.test/')
|
||||
this.sethostname('http://api.arrahn')
|
||||
break;
|
||||
}
|
||||
default: this.sethostname('http://api-xtra.test/')
|
||||
case '010621':
|
||||
case '010136':
|
||||
case '011235':
|
||||
case '010620':
|
||||
case '010617':
|
||||
case '010915':
|
||||
case '010219':
|
||||
case '010618':
|
||||
case '011013':
|
||||
case '011412':{
|
||||
// this.$hostname = 'http://api2.arrahn'
|
||||
this.sethostname('http://api2.arrahn')
|
||||
break;
|
||||
}
|
||||
case '011229':
|
||||
case '011230':
|
||||
case '011227':
|
||||
case '011231':
|
||||
case '011232':
|
||||
case '011228':
|
||||
case '011234':
|
||||
case '011237':
|
||||
case '011233':{
|
||||
// this.$hostname = 'http://api3.arrahn'
|
||||
this.sethostname('http://api2.arrahn')
|
||||
break;
|
||||
}
|
||||
default: this.sethostname('http://api.arrahn')
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user