Compare commits

...

5 Commits

8 changed files with 20 additions and 22 deletions

View File

@ -1,5 +1,5 @@
export enum MapboxConfig { export enum MapboxConfig {
ACCESS_TOKEN = 'pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg', ACCESS_TOKEN = 'pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ',
// ACCESS_TOKEN = "1234", // ACCESS_TOKEN = "1234",
TDT_TOKEN = 'b6585bc41ee16251dbe6b1af64f375d9', TDT_TOKEN = 'b6585bc41ee16251dbe6b1af64f375d9',
// add more config options here // add more config options here

View File

@ -158,7 +158,7 @@ export const servicesColumns: BasicColumn[] = [
}, },
]; ];
export const MAPBOX_TOKEN = "pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg"; export const MAPBOX_TOKEN = "pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ";
export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9"; export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9";

View File

@ -184,9 +184,9 @@ const yearSelect = ref({
}) })
const monthSelect = ref({ const monthSelect = ref({
issued:parseInt(new Date().getMonth()), issued:0,
verify:parseInt(new Date().getMonth()), verify:0,
rectification:parseInt(new Date().getMonth()), rectification:0,
}) })
@ -220,7 +220,7 @@ function handlerCheckedFilter(type,item,state=false) {
switch(type){ switch(type){
case "issued": case "issued":
handlerGetIssuedStatitical(monthSelect.value[type] > 0 ? currentFilterName.value[type] : null) handlerGetIssuedStatitical(monthSelect.value[type]>0?currentFilterName.value[type]:null)
break; break;
case "verify": case "verify":
handlerGetVerifyStatitical(monthSelect.value[type]>0?currentFilterName.value[type]:null) handlerGetVerifyStatitical(monthSelect.value[type]>0?currentFilterName.value[type]:null)
@ -345,9 +345,8 @@ const chartThreeData = ref( [
} }
]) ])
async function handlerGetIssuedStatitical(month=""){ async function handlerGetIssuedStatitical(month=null){
let data = await getIssuedStatitical({month:month}); let data = await getIssuedStatitical({month:month});
for(let key in data){ for(let key in data){
issued.value?.forEach((item,index)=>{ issued.value?.forEach((item,index)=>{
if(item.mark == key){ if(item.mark == key){
@ -364,7 +363,7 @@ async function handlerGetIssuedStatitical(month=""){
handlerLoadChartsOne(chartOneData.value); handlerLoadChartsOne(chartOneData.value);
} }
async function handlerGetVerifyStatitical(month=""){ async function handlerGetVerifyStatitical(month=null){
let data = await getVerifyStatitical({month:month}); let data = await getVerifyStatitical({month:month});
for(let key in data){ for(let key in data){
verify.value?.forEach((item,index)=>{ verify.value?.forEach((item,index)=>{
@ -383,7 +382,7 @@ async function handlerGetVerifyStatitical(month=""){
} }
async function handlerGetRectificationStatitical(month=""){ async function handlerGetRectificationStatitical(month=null){
let data = await getRectificationStatitical({month:month}); let data = await getRectificationStatitical({month:month});
for(let key in data){ for(let key in data){
rectification.value?.forEach((item,index)=>{ rectification.value?.forEach((item,index)=>{
@ -973,14 +972,13 @@ function createData() {
onMounted(()=>{ onMounted(()=>{
setTimeout(function(){ setTimeout(function(){
let default_date = yearSelect.value['issued']+"-"+monthSelect.value['issued'] handlerGetIssuedStatitical();
handlerGetIssuedStatitical(default_date); handlerGetVerifyStatitical();
handlerGetVerifyStatitical(default_date); handlerGetRectificationStatitical();
handlerGetRectificationStatitical(default_date); // handlerLoadChartsOne();
// handlerLoadChartsTow();
// handlerLoadChartsThree();
},500) },500)
}) })

View File

@ -1,4 +1,4 @@
export const MAPBOX_TOKEN = "pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg"; export const MAPBOX_TOKEN = "pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ";
export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9"; export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9";

View File

@ -1,5 +1,5 @@
export enum MapboxConfig { export enum MapboxConfig {
ACCESS_TOKEN = 'pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg', ACCESS_TOKEN = 'pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ',
// ACCESS_TOKEN = "1234", // ACCESS_TOKEN = "1234",
TDT_TOKEN = 'b6585bc41ee16251dbe6b1af64f375d9', TDT_TOKEN = 'b6585bc41ee16251dbe6b1af64f375d9',
// add more config options here // add more config options here

View File

@ -1,4 +1,4 @@
export const MAPBOX_TOKEN = "pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg"; export const MAPBOX_TOKEN = "pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ";
export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9"; export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9";

View File

@ -1,4 +1,4 @@
export const MAPBOX_TOKEN = "pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg"; export const MAPBOX_TOKEN = "pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ";
export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9"; export const TINADITU_TOKEN = "b6585bc41ee16251dbe6b1af64f375d9";

View File

@ -1,5 +1,5 @@
export enum MapboxConfig { export enum MapboxConfig {
ACCESS_TOKEN = 'pk.eyJ1Ijoic2h1c2h1YmlvIiwiYSI6ImNsN2QxZGdxdjE2aWYzd21pazFteGY3OGMifQ.fb3z0dSPrKhHjKu50zO-sg', ACCESS_TOKEN = 'pk.eyJ1IjoiYzRzci1nc2FwcCIsImEiOiJja2J0ajRtNzMwOHBnMnNvNnM3Ymw5MnJzIn0.fsTNczOFZG8Ik3EtO9LdNQ',
// ACCESS_TOKEN = "1234", // ACCESS_TOKEN = "1234",
TDT_TOKEN = 'b6585bc41ee16251dbe6b1af64f375d9', TDT_TOKEN = 'b6585bc41ee16251dbe6b1af64f375d9',
// add more config options here // add more config options here