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

@@ -124,13 +124,22 @@ export default {
this.caseListDuplicate = false; this.caseListDuplicate = false;
this.$refs["modal-import"].show(); this.$refs["modal-import"].show();
}, },
/**
* Close table
*/
close() { close() {
this.pmTableNoFields = false; this.pmTableNoFields = false;
}, },
/**
* Hide modal import
*/
hide() { hide() {
this.caseListDuplicate = false; this.caseListDuplicate = false;
this.$refs["modal-import"].hide(); this.$refs["modal-import"].hide();
}, },
/**
* Get the custom list case API
*/
importCustomCaseList() { importCustomCaseList() {
let that = this; let that = this;
this.data.file = this.fileCaseList; this.data.file = this.fileCaseList;
@@ -162,6 +171,9 @@ export default {
console.error(e); console.error(e);
}); });
}, },
/**
* Continue import custom case list
*/
continueImport() { continueImport() {
let that = this; let that = this;
this.data.file = this.fileCaseList; this.data.file = this.fileCaseList;

View File

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

View File

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

View File

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

View File

@@ -24,8 +24,8 @@ export default {
.then((data) => { .then((data) => {
that.data = data.data; that.data = data.data;
}) })
.catch(() => { .catch((e) => {
console.error(e);
}); });
}, },
/** /**
@@ -43,8 +43,8 @@ export default {
that.loadMore = that.$t("ID_NO_MORE_INFORMATION"); that.loadMore = that.$t("ID_NO_MORE_INFORMATION");
} }
}) })
.catch(() => { .catch((e) => {
console.error(e);
}); });
}, },
/** /**

View File

@@ -24,8 +24,8 @@ export default {
.then((data) => { .then((data) => {
that.data = data.data; that.data = data.data;
}) })
.catch(() => { .catch((e) => {
console.error(e);
}); });
}, },
/** /**
@@ -43,8 +43,8 @@ export default {
that.loadMore = that.$t("ID_NO_MORE_INFORMATION"); that.loadMore = that.$t("ID_NO_MORE_INFORMATION");
} }
}) })
.catch(() => { .catch((e) => {
console.error(e);
}); });
}, },
/** /**

View File

@@ -10,11 +10,11 @@
<div class="rip-search"> <div class="rip-search">
<div class="rip-input"> <div class="rip-input">
<label for="ripSearch" style="display: none;" <label for="ripSearch" style="display: none;"
>Search for Icon</label >{{$t("ID_SEARCH_FOR_ICON")}}</label
> >
<input <input
id="ripSearch" id="ripSearch"
placeholder="Search for Icon" :placeholder="$t('ID_SEARCH_FOR_ICON')"
v-model="searchText" v-model="searchText"
@input="searchTextChanged" @input="searchTextChanged"
/> />
@@ -29,14 +29,14 @@
</div> </div>
<div class="rip-icons" v-show="!loading"> <div class="rip-icons" v-show="!loading">
<h4 class="icon-title"> <h4 class="icon-title">
Regular Icons {{$t('ID_REGULAR_ICONS')}}
</h4> </h4>
<p <p
style="text-align: center;" style="text-align: center;"
v-if="regularIcons.length <= 0" v-if="regularIcons.length <= 0"
> >
<i class="fas fa-eye-slash"></i> <i class="fas fa-eye-slash"></i>
Sorry, No icons found! {{$t('ID_SORRY_NO_ICONS')}}
</p> </p>
<ul class="rip-row" v-if="regularIcons.length > 0"> <ul class="rip-row" v-if="regularIcons.length > 0">
<li <li
@@ -58,14 +58,14 @@
</li> </li>
</ul> </ul>
<h4 class="icon-title"> <h4 class="icon-title">
Brand Icons {{$t('ID_BRAND_ICONS')}}
</h4> </h4>
<p <p
style="text-align: center;" style="text-align: center;"
v-if="brandIcons.length <= 0" v-if="brandIcons.length <= 0"
> >
<i class="fas fa-eye-slash"></i> <i class="fas fa-eye-slash"></i>
Sorry, No Brand icons found! {{$t('ID_BRAND_ICONS_NOT_FOUND')}}
</p> </p>
<ul class="rip-row" v-if="brandIcons.length > 0"> <ul class="rip-row" v-if="brandIcons.length > 0">
<li <li
@@ -87,14 +87,14 @@
</li> </li>
</ul> </ul>
<h4 class="icon-title"> <h4 class="icon-title">
Solid Icons {{$t('ID_SOLID_ICONS')}}
</h4> </h4>
<p <p
style="text-align: center;" style="text-align: center;"
v-if="solidIcons.length <= 0" v-if="solidIcons.length <= 0"
> >
<i class="fas fa-eye-slash"></i> <i class="fas fa-eye-slash"></i>
Sorry, No Solid icons found! {{$t('ID_SOLID_ICONS_NOT_FOUND')}}
</p> </p>
<ul class="rip-row" v-if="solidIcons.length > 0"> <ul class="rip-row" v-if="solidIcons.length > 0">
<li <li
@@ -170,19 +170,31 @@ export default {
}, },
}, },
methods: { methods: {
/**
* Handler select icon
*/
selectIcon(icon, type) { selectIcon(icon, type) {
this.icon = `${type} fa-${icon}`; this.icon = `${type} fa-${icon}`;
this.popUpActive = false; this.popUpActive = false;
this.$emit("selected", this.icon); this.$emit("selected", this.icon);
}, },
/**
* Handler search text changed
*/
searchTextChanged() { searchTextChanged() {
this.searchIcon(this.searchText); this.searchIcon(this.searchText);
}, },
/**
* Set default icons
*/
setDefaultIcons() { setDefaultIcons() {
this.allIcons.brand = ripIcons.brand; this.allIcons.brand = ripIcons.brand;
this.allIcons.regular = ripIcons.regular; this.allIcons.regular = ripIcons.regular;
this.allIcons.solid = ripIcons.solid; this.allIcons.solid = ripIcons.solid;
}, },
/**
* Serach icons handler
*/
searchIcon(txt) { searchIcon(txt) {
this.loading = true; this.loading = true;
if (txt && txt.length > 0) { if (txt && txt.length > 0) {

View File

@@ -99,7 +99,6 @@ export default {
onSave() { onSave() {
let sels; let sels;
sels = _.clone(this.localSelected); sels = _.clone(this.localSelected);
//this.$root.$emit("bv::hide::popover");
this.$emit("onUpdateColumnSettings", sels); this.$emit("onUpdateColumnSettings", sels);
}, },
/** /**
@@ -121,7 +120,6 @@ export default {
return val.search(txt) != -1; return val.search(txt) != -1;
}); });
this.results = opts; this.results = opts;
}, },
/** /**

View File

@@ -530,9 +530,15 @@ export default {
if (index !== -1) advSearch.child.splice(index, 1); if (index !== -1) advSearch.child.splice(index, 1);
} }
}, },
/**
* Update filters handler
*/
onUpdateFilters(filters) { onUpdateFilters(filters) {
this.filters = filters; this.filters = filters;
}, },
/**
* Service to get Highlight
*/
getHighlight() { getHighlight() {
let that = this; let that = this;
if (that.menu.length > 0) { if (that.menu.length > 0) {

View File

@@ -87,13 +87,22 @@ export default {
classBtn(cls) { classBtn(cls) {
return "btn v-btn-request " + cls; return "btn v-btn-request " + cls;
}, },
/**
* Show modal
*/
show() { show() {
this.getUsersReassign(); this.getUsersReassign();
this.$refs["modal-reassign-case"].show(); this.$refs["modal-reassign-case"].show();
}, },
/**
* Button cancel
*/
cancel() { cancel() {
this.$refs["modal-reassign-case"].hide(); this.$refs["modal-reassign-case"].hide();
}, },
/**
* Service to get user reassign
*/
getUsersReassign() { getUsersReassign() {
let that = this; let that = this;
api.cases.getUserReassign(this.data).then((response) => { api.cases.getUserReassign(this.data).then((response) => {
@@ -114,6 +123,9 @@ export default {
} }
}); });
}, },
/**
* Service reassign case
*/
reassignCase() { reassignCase() {
let that = this; let that = this;
this.data.userSelected = this.userSelected; this.data.userSelected = this.userSelected;
@@ -138,6 +150,3 @@ export default {
}, },
}; };
</script> </script>
<style>
</style>

View File

@@ -53180,3 +53180,45 @@ msgstr "Case Thread Title"
#: LABEL/ID_NO_MORE_INFORMATION #: LABEL/ID_NO_MORE_INFORMATION
msgid "No more Information to Load" msgid "No more Information to Load"
msgstr "No more Information to Load" msgstr "No more Information to Load"
# TRANSLATION
# LABEL/ID_SEARCH_FOR_ICON
#: LABEL/ID_SEARCH_FOR_ICON
msgid "Search for icon"
msgstr "Search for icon"
# TRANSLATION
# LABEL/ID_REGULAR_ICONS
#: LABEL/ID_REGULAR_ICONS
msgid "Regular icons"
msgstr "Regular icons"
# TRANSLATION
# LABEL/ID_SORRY_NO_ICONS
#: LABEL/ID_SORRY_NO_ICONS
msgid "Sorry, No icons found!"
msgstr "Sorry, No icons found!"
# TRANSLATION
# LABEL/ID_BRAND_ICONS
#: LABEL/ID_BRAND_ICONS
msgid "Brand Icons"
msgstr "Brand Icons"
# TRANSLATION
# LABEL/ID_BRAND_ICONS_NOT_FOUND
#: LABEL/ID_BRAND_ICONS_NOT_FOUND
msgid "Sorry, No Brand icons found!"
msgstr "Sorry, No Brand icons found!"
# TRANSLATION
# LABEL/ID_SOLID_ICONS
#: LABEL/ID_SOLID_ICONS
msgid "Solid icons"
msgstr "Solid icons"
# TRANSLATION
# LABEL/ID_SOLID_ICONS_NOT_FOUND
#: LABEL/ID_SOLID_ICONS_NOT_FOUND
msgid "Sorry, No Solid icons found!"
msgstr "Sorry, No Solid icons found!"

View File

@@ -57312,6 +57312,8 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ) VALUES INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ) VALUES
( 'LABEL','ID_BREAK_DW_PROCESS','en','were lost by a connection problem.','2014-01-15') , ( 'LABEL','ID_BREAK_DW_PROCESS','en','were lost by a connection problem.','2014-01-15') ,
( 'LABEL','ID_BRAND_ICONS','en','Brand Icons','2020-08-06') ,
( 'LABEL','ID_BRAND_ICONS_NOT_FOUND','en','Sorry, No Brand icons found!','2020-08-06') ,
( 'LABEL','ID_BROWSE','en','Browse','2014-01-15') , ( 'LABEL','ID_BROWSE','en','Browse','2014-01-15') ,
( 'LABEL','ID_BROWSER_NOT_SUPPORTED','en','This browser is not supported.','2014-01-15') , ( 'LABEL','ID_BROWSER_NOT_SUPPORTED','en','This browser is not supported.','2014-01-15') ,
( 'LABEL','ID_BROWSE_LIBRARY','en','Browse Library','2014-01-15') , ( 'LABEL','ID_BROWSE_LIBRARY','en','Browse Library','2014-01-15') ,
@@ -60813,6 +60815,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_REFRESH_TIME_SECONDS','en','Counters Refresh Time (seconds)','2020-01-30') , ( 'LABEL','ID_REFRESH_TIME_SECONDS','en','Counters Refresh Time (seconds)','2020-01-30') ,
( 'LABEL','ID_REFRESH_VIEW','en','Refresh view','2014-01-15') , ( 'LABEL','ID_REFRESH_VIEW','en','Refresh view','2014-01-15') ,
( 'LABEL','ID_REGENERATE','en','Regenerate','2014-01-15') , ( 'LABEL','ID_REGENERATE','en','Regenerate','2014-01-15') ,
( 'LABEL','ID_REGULAR_ICONS','en','Regular icons','2021-08-06') ,
( 'LABEL','ID_REGENERATE_DATA_REPORT','en','Regenerate Data Report','2014-01-15') , ( 'LABEL','ID_REGENERATE_DATA_REPORT','en','Regenerate Data Report','2014-01-15') ,
( 'LABEL','ID_REGISTRY_CANNOT_BE_UPDATED','en','The registry cannot be updated!','2014-05-21') , ( 'LABEL','ID_REGISTRY_CANNOT_BE_UPDATED','en','The registry cannot be updated!','2014-05-21') ,
( 'LABEL','ID_RELATED_GROUPS','en','Related Groups','2015-03-30') , ( 'LABEL','ID_RELATED_GROUPS','en','Related Groups','2015-03-30') ,
@@ -60995,6 +60998,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_SEARCH_BY_STATUS','en','Search by Status:','2020-12-22') , ( 'LABEL','ID_SEARCH_BY_STATUS','en','Search by Status:','2020-12-22') ,
( 'LABEL','ID_SEARCH_BY_TASK_NAME','en','Search by Task Name:','2020-12-16') , ( 'LABEL','ID_SEARCH_BY_TASK_NAME','en','Search by Task Name:','2020-12-16') ,
( 'LABEL','ID_SEARCH_FOR_USER','en','Search for user','2015-09-15') , ( 'LABEL','ID_SEARCH_FOR_USER','en','Search for user','2015-09-15') ,
( 'LABEL','ID_SEARCH_FOR_ICON','en','Search for user','2021-09-06') ,
( 'LABEL','ID_SEARCH_PATTERN','en','Search Pattern','2014-01-15') , ( 'LABEL','ID_SEARCH_PATTERN','en','Search Pattern','2014-01-15') ,
( 'LABEL','ID_SEARCH_RESULT','en','Search results','2014-01-15') , ( 'LABEL','ID_SEARCH_RESULT','en','Search results','2014-01-15') ,
( 'LABEL','ID_SEARCH_USER','en','Username','2014-01-15') , ( 'LABEL','ID_SEARCH_USER','en','Username','2014-01-15') ,
@@ -61165,8 +61169,11 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_SOME_FIELDS_REQUIRED','en','Some Fields are required.','2014-01-15') , ( 'LABEL','ID_SOME_FIELDS_REQUIRED','en','Some Fields are required.','2014-01-15') ,
( 'LABEL','ID_SOME_TEXT','en','Some Text','2021-08-10') , ( 'LABEL','ID_SOME_TEXT','en','Some Text','2021-08-10') ,
( 'LABEL','ID_SORT_BY','en','Sort by','2015-04-28') , ( 'LABEL','ID_SORT_BY','en','Sort by','2015-04-28') ,
( 'LABEL','ID_SORRY_NO_ICONS','en','Sorry, No icons found!','2021-08-06') ,
( 'LABEL','ID_SOURCE','en','Source','2021-08-10') , ( 'LABEL','ID_SOURCE','en','Source','2021-08-10') ,
( 'LABEL','ID_SOUTHPANEL','en','southPanel','2014-01-15') , ( 'LABEL','ID_SOUTHPANEL','en','southPanel','2014-01-15') ,
( 'LABEL','ID_SOLID_ICONS','en','Solid icons','2021-08-06') ,
( 'LABEL','ID_SOLID_ICONS_NOT_FOUND','en','Sorry, No Solid icons found!','2021-08-06') ,
( 'LABEL','ID_SPECIFY_DELEGATION_INDEX','en','Please specify the delegation index','2014-01-15') , ( 'LABEL','ID_SPECIFY_DELEGATION_INDEX','en','Please specify the delegation index','2014-01-15') ,
( 'LABEL','ID_SPLIT_BUTTON','en','Split Button','2014-01-15') , ( 'LABEL','ID_SPLIT_BUTTON','en','Split Button','2014-01-15') ,
( 'LABEL','ID_SQL_ESCAPE','en','Replace the value for use in SQL sentences','2014-01-15') , ( 'LABEL','ID_SQL_ESCAPE','en','Replace the value for use in SQL sentences','2014-01-15') ,