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