PMCORE-3703
This commit is contained in:
@@ -251,14 +251,26 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<b-form-checkbox
|
<b-form-checkbox
|
||||||
|
v-if="props.row.field =='process_category' || props.row.field =='process_name'"
|
||||||
v-model="enabledFilterRows"
|
v-model="enabledFilterRows"
|
||||||
@change="onTongleFilter(props.row.field)"
|
@change="onTongleFilter(props.row.field)"
|
||||||
name="check-button"
|
name="check-button"
|
||||||
:checked="props.row.enableFilter"
|
:checked="props.row.enableFilter"
|
||||||
:value="props.row.field"
|
:value="props.row.field"
|
||||||
switch
|
switch
|
||||||
>
|
disabled
|
||||||
</b-form-checkbox>
|
>
|
||||||
|
</b-form-checkbox>
|
||||||
|
<b-form-checkbox
|
||||||
|
v-else
|
||||||
|
v-model="enabledFilterRows"
|
||||||
|
@change="onTongleFilter(props.row.field)"
|
||||||
|
name="check-button"
|
||||||
|
:checked="props.row.enableFilter"
|
||||||
|
:value="props.row.field"
|
||||||
|
switch
|
||||||
|
>
|
||||||
|
</b-form-checkbox>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
</div>
|
</div>
|
||||||
@@ -294,7 +306,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import utils from "../../../utils/utils";
|
|
||||||
import Multiselect from "vue-multiselect";
|
import Multiselect from "vue-multiselect";
|
||||||
import Api from "./Api/CaseList";
|
import Api from "./Api/CaseList";
|
||||||
import IconPicker from "../../../components/iconPicker/IconPicker.vue";
|
import IconPicker from "../../../components/iconPicker/IconPicker.vue";
|
||||||
@@ -420,7 +431,8 @@ export default {
|
|||||||
this.data =this.params.columns.filter(elem => elem.set === false);
|
this.data =this.params.columns.filter(elem => elem.set === false);
|
||||||
this.dataCaseList =this.params.columns.filter(elem => elem.set === true);
|
this.dataCaseList =this.params.columns.filter(elem => elem.set === true);
|
||||||
this.dataCaseList.forEach(function (value) {
|
this.dataCaseList.forEach(function (value) {
|
||||||
if (value.enableFilter) {
|
//Force to false in process_category & process_name
|
||||||
|
if (value.enableFilter && (value.field != "process_category" && value.field != "process_name" )) {
|
||||||
that.enabledFilterRows.push(value.field);
|
that.enabledFilterRows.push(value.field);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import VueSidebarMenu from "vue-sidebar-menu";
|
|||||||
import VueI18n from 'vue-i18n';
|
import VueI18n from 'vue-i18n';
|
||||||
import { BootstrapVue } from 'bootstrap-vue';
|
import { BootstrapVue } from 'bootstrap-vue';
|
||||||
import { ServerTable, Event, ClientTable} from 'vue-tables-2';
|
import { ServerTable, Event, ClientTable} from 'vue-tables-2';
|
||||||
import Sortable from 'sortablejs';
|
|
||||||
import "@fortawesome/fontawesome-free/css/all.css";
|
import "@fortawesome/fontawesome-free/css/all.css";
|
||||||
import 'bootstrap/dist/css/bootstrap-grid.css';
|
import 'bootstrap/dist/css/bootstrap-grid.css';
|
||||||
import 'bootstrap/dist/css/bootstrap.min.css'
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
||||||
|
|||||||
@@ -398,6 +398,7 @@ export default {
|
|||||||
},
|
},
|
||||||
itemMap: {
|
itemMap: {
|
||||||
case_number: "caseNumber",
|
case_number: "caseNumber",
|
||||||
|
task_title: "taskTitle",
|
||||||
thread_title: "caseTitle",
|
thread_title: "caseTitle",
|
||||||
delegation_date: "delegationDate",
|
delegation_date: "delegationDate",
|
||||||
send_by: "bySendBy",
|
send_by: "bySendBy",
|
||||||
@@ -809,7 +810,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
that.headings[item.field] = item.name;
|
that.headings[item.field] = item.name;
|
||||||
columns.push(item.field);
|
if(item.enableFilter){
|
||||||
|
columns.push(item.field);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
that.filterItems = newItems;
|
that.filterItems = newItems;
|
||||||
dt = that.formatDataResponse(response.data.data);
|
dt = that.formatDataResponse(response.data.data);
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ class CaseList extends Model
|
|||||||
'set' => true
|
'set' => true
|
||||||
], [
|
], [
|
||||||
'list' => ['inbox', 'draft', 'paused', 'unassigned'],
|
'list' => ['inbox', 'draft', 'paused', 'unassigned'],
|
||||||
'field' => 'task',
|
'field' => 'task_title',
|
||||||
'name' => G::LoadTranslation('ID_TASK'),
|
'name' => G::LoadTranslation('ID_TASK'),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'source' => 'APPLICATION',
|
'source' => 'APPLICATION',
|
||||||
|
|||||||
Reference in New Issue
Block a user