PMCORE-3116:UI - Download a JSON custon case list
Documentation
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
"bootstrap-vue-font-awesome-picker": "^0.1.3",
|
"bootstrap-vue-font-awesome-picker": "^0.1.3",
|
||||||
"chart.js": "^2.7.2",
|
"chart.js": "^2.7.2",
|
||||||
"dateformat": "^3.0.3",
|
"dateformat": "^3.0.3",
|
||||||
|
"downloadjs": "^1.4.7",
|
||||||
"faker": "^5.1.0",
|
"faker": "^5.1.0",
|
||||||
"font-awesome": "^4.7.0",
|
"font-awesome": "^4.7.0",
|
||||||
"hammerjs": "^2.0.8",
|
"hammerjs": "^2.0.8",
|
||||||
|
|||||||
@@ -28,7 +28,9 @@ import ButtonFleft from "../../../components/home/ButtonFleft.vue";
|
|||||||
import Ellipsis from "../../../components/utils/ellipsis.vue";
|
import Ellipsis from "../../../components/utils/ellipsis.vue";
|
||||||
import utils from "../../../utils/utils";
|
import utils from "../../../utils/utils";
|
||||||
import OwnerCell from "../../../components/vuetable/OwnerCell";
|
import OwnerCell from "../../../components/vuetable/OwnerCell";
|
||||||
import ModalDeleteCaseList from "./../../Modals/ModalDeleteCaseList.vue"
|
import ModalDeleteCaseList from "./../../Modals/ModalDeleteCaseList.vue";
|
||||||
|
import download from "downloadjs";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Tables",
|
name: "Tables",
|
||||||
props: ["module"],
|
props: ["module"],
|
||||||
@@ -188,8 +190,14 @@ export default {
|
|||||||
editCustomCaseList(data) {
|
editCustomCaseList(data) {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Export the Custom Case List in a json
|
||||||
|
* @param {object} data
|
||||||
|
*/
|
||||||
downloadCaseList(data) {
|
downloadCaseList(data) {
|
||||||
|
var fileName = data.name,
|
||||||
|
typeMime = "text/plain";
|
||||||
|
download(JSON.stringify(data), fileName + ".json", typeMime);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Show options in the ellipsis
|
* Show options in the ellipsis
|
||||||
|
|||||||
Reference in New Issue
Block a user