mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 19:23:38 +03:30
fix : cycles export
This commit is contained in:
+1
-1
@@ -169,7 +169,7 @@ export default [
|
||||
name: 'NotVerifyTestResult',
|
||||
view: 'TestResult/List',
|
||||
meta: {
|
||||
title: 'Not Verify Test Resul | CSSD Dashboard'
|
||||
title: 'Verify Test Resul | CSSD Dashboard'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -252,7 +252,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async download() {
|
||||
const result = await ApiService.get(urls.exportItems());
|
||||
const result = await ApiService.get(urls.exportCycles());
|
||||
if (result && result.status == 200) {
|
||||
window.open(result.data.data.url, '_blank');
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ export default {
|
||||
text: 'all existing packages in your medical center ',
|
||||
// image: '/img/Static/Dashboard/alltest.png',
|
||||
color: 'WM-LightGray-BG',
|
||||
route: {name: 'AllItem'},
|
||||
route: {name: 'AllPackage'},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md4 sm4',
|
||||
@@ -254,7 +254,7 @@ export default {
|
||||
text: 'All active labels in your medical center',
|
||||
// image: '/img/Static/Dashboard/alltest.png',
|
||||
color: 'WM-LightGray-BG',
|
||||
route: {name: 'AllResultTest'},
|
||||
route: {name: 'AllLabels'},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md8 sm8',
|
||||
@@ -286,7 +286,7 @@ export default {
|
||||
text: 'All active cycles in your medical center',
|
||||
// image: '/img/Static/Dashboard/alltest.png',
|
||||
color: 'WM-LightGray-BG',
|
||||
route: {name: 'AllResultTest'},
|
||||
route: {name: 'AllCycle'},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md8 sm8',
|
||||
|
||||
@@ -259,7 +259,7 @@ export default {
|
||||
},
|
||||
async download() {
|
||||
const result = await ApiService.get(urls.exportItems());
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
window.open(result.data.data.url, '_blank');
|
||||
}
|
||||
},
|
||||
@@ -269,9 +269,9 @@ export default {
|
||||
properties: {width: '30'},
|
||||
success: async () => {
|
||||
const result = await ApiService.delete(urls.removeItem(id));
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
for (const key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == id) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id === id) {
|
||||
this.items.splice(key, 1);
|
||||
}
|
||||
}
|
||||
@@ -282,7 +282,7 @@ export default {
|
||||
},
|
||||
async loadMedicalCenters() {
|
||||
const result = await ApiService.get(urls.listFilterItemsTestResult);
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
this.medicalCenters = result.data.data.MedicalCenters;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -223,7 +223,7 @@ export default {
|
||||
}
|
||||
filter += (page) ? `page=${page}` : `page=1`;
|
||||
const result = await ApiService.get(urls.listPackage(filter));
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
const {data, meta} = result.data;
|
||||
this.items = data;
|
||||
this.currentPage = meta.current_page;
|
||||
@@ -233,7 +233,7 @@ export default {
|
||||
},
|
||||
async show(testResultId) {
|
||||
const result = await ApiService.get(urls.showPackage(testResultId));
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
this.changeCurrentModal({
|
||||
modal: "modal-package-show",
|
||||
properties: {result}
|
||||
@@ -246,7 +246,7 @@ export default {
|
||||
properties: {width: '30'},
|
||||
success: async () => {
|
||||
const result = await ApiService.delete(urls.removePackage(testResultId));
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
for (const key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == testResultId) {
|
||||
this.items.splice(key, 1);
|
||||
@@ -259,7 +259,7 @@ export default {
|
||||
},
|
||||
async generateBarcode(id, type) {
|
||||
const result = await ApiService.post(urls.Barcode(id, type));
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
this.changeCurrentModal({
|
||||
modal: "modal-barcode-barcode",
|
||||
properties: {result}
|
||||
@@ -268,7 +268,7 @@ export default {
|
||||
},
|
||||
async loadMedicalCenters() {
|
||||
const result = await ApiService.get(urls.listFilterItemsTestResult);
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
this.medicalCenters = result.data.data.MedicalCenters;
|
||||
}
|
||||
},
|
||||
@@ -315,7 +315,7 @@ export default {
|
||||
},
|
||||
async download() {
|
||||
const result = await ApiService.get(urls.exportPackages());
|
||||
if (result && result.status == 200) {
|
||||
if (result && result.status === 200) {
|
||||
window.open(result.data.data.url, '_blank');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user