Fix observations CR in FE

This commit is contained in:
Henry Jordan
2021-09-06 20:07:48 +00:00
parent 11183e2231
commit aab8827b6e
12 changed files with 148 additions and 27 deletions

View File

@@ -36,6 +36,11 @@ class caseListApi extends Api {
keys: {}
});
}
/**
* Service delete case list
* @param {*} data
* @returns
*/
deleteCaseList(data) {
return axios.delete(
window.config.SYS_SERVER_API +
@@ -49,6 +54,11 @@ class caseListApi extends Api {
}
);
}
/**
* Service return report tables
* @param {*} data
* @returns
*/
reportTables(data) {
return this.get({
service: 'REPORT_TABLES',
@@ -56,6 +66,11 @@ class caseListApi extends Api {
keys: {}
});
}
/**
* Service default columns
* @param {*} type
* @returns
*/
getDefault(type){
return this.get({
service: 'DEFAULT_COLUMNS',
@@ -64,12 +79,22 @@ class caseListApi extends Api {
}
});
}
/**
* Service create case list
* @param {*} data
* @returns
*/
createCaseList(data) {
return this.post({
service: "CASE_LIST",
data: data
});
}
/**
* Service update case list
* @param {*} data
* @returns
*/
updateCaseList(data) {
return this.put({
service: "PUT_CASE_LIST",
@@ -79,6 +104,11 @@ class caseListApi extends Api {
data: data
});
}
/**
* Service import case list
* @param {*} data
* @returns
*/
importCaseList(data) {
let formData = new FormData();
formData.append('file_content', data.file);

View File

@@ -387,7 +387,6 @@ export default {
if(this.params.id) {
this.editMode();
}
},
methods: {
/**
@@ -412,7 +411,6 @@ export default {
}
return info;
},
/**
* Edit mode handler
* prepare the datato be rendered
@@ -429,7 +427,6 @@ export default {
if (value.enableFilter) {
that.enabledFilterRows.push(value.field);
}
});
},
/**

View File

@@ -16,7 +16,6 @@
</b-tab>
</b-tabs>
</b-container>
</div>
</div>
<div class="container" v-if="showSketch">
@@ -68,13 +67,22 @@ export default {
this.tabModule= this.tabs[0];
},
methods: {
/**
* Show sketch
*/
onShowSketch (params) {
this.showSketch = true;
this.params = params;
},
/**
* Close sketch
*/
onCloseSketch (params) {
this.showSketch = false;
},
/**
* On change input
*/
onInputTab(tabIndex){
this.tabModule= this.tabs[tabIndex];
}