Skip to content

Commit 6990b35

Browse files
authored
Merge branch 'master' into dev
2 parents c9faa5a + c2fa6c4 commit 6990b35

File tree

5 files changed

+58
-9
lines changed

5 files changed

+58
-9
lines changed

camunda-formio-tasklist-vue/src/components/TaskList.vue

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@
3939
:filterList="filterList"
4040
/>
4141
</div>
42+
4243
<!-- need to bring here right side -->
4344
<div
4445
class="ctf-task-details-container ms-md-2 rounded"
4546
:class="{ 'col-12 mx-0': !maximize ,'col-md-9 col-12':maximize}"
4647
>
4748

4849
<!-- single taks loading -->
50+
4951
<div
5052
v-if="singleTaskLoading"
5153
class="d-flex justify-content-center align-items-center"
@@ -55,7 +57,18 @@
5557
role="status"
5658
>
5759
<span class="sr-only">Loading...</span>
60+
5861
</div>
62+
</template>
63+
<div
64+
v-else
65+
class="d-flex align-items-center justify-content-center task-details-empty"
66+
:style="{
67+
height: taskScrollableHeight
68+
}"
69+
>
70+
<i class="fa fa-exclamation-circle"></i>
71+
<h4 class="mt-0 mx-2">Please select a task from the list</h4>
5972
</div>
6073
<!-- single task loading end -->
6174

@@ -191,6 +204,7 @@ const StoreServiceFlowModule = namespace("serviceFlowModule");
191204
BpmnViewer,
192205
RightSider,
193206
207+
194208
},
195209
})
196210
export default class Tasklist extends Mixins(TaskListMixin) {
@@ -237,6 +251,7 @@ export default class Tasklist extends Mixins(TaskListMixin) {
237251
238252
public perPage: number = 10;
239253
private filterList: FilterPayload[] = [];
254+
240255
private userEmail: string = "external";
241256
private selectedfilterId: string = "";
242257
private xmlData!: string;
@@ -280,7 +295,7 @@ export default class Tasklist extends Mixins(TaskListMixin) {
280295
this.userName = getUserName();
281296
}
282297
283-
298+
284299
285300
async onFormSubmitCallback(actionType = "") {
286301
if (this.task.id !== null) {
@@ -289,8 +304,7 @@ export default class Tasklist extends Mixins(TaskListMixin) {
289304
}
290305
}
291306
292-
293-
307+
294308
async onBPMTaskFormSubmit(taskId: string, actionType: string) {
295309
let formRequestFormat: FormRequestPayload = {
296310
variables: {
@@ -468,13 +482,16 @@ export default class Tasklist extends Mixins(TaskListMixin) {
468482
469483
470484
485+
471486
async getBPMTaskandReload(){
472487
await this.getBPMTaskDetail(this.getFormsFlowTaskId);
473488
await this.reloadLHSTaskList();
489+
474490
}
475491
476492
477493
494+
478495
async fetchFullTaskList(filterId: string, requestData: Payload) {
479496
const taskList = await CamundaRest.filterTaskList(
480497
this.token,
@@ -519,7 +536,6 @@ export default class Tasklist extends Mixins(TaskListMixin) {
519536
}
520537
521538
522-
523539
async fetchTaskDetails(taskId: string) {
524540
await Promise.all([
525541
this.getBPMTaskDetail(taskId),
@@ -579,6 +595,7 @@ export default class Tasklist extends Mixins(TaskListMixin) {
579595
this.setFormsFlowactiveIndex(NaN);
580596
this.taskLoading = true;
581597
this.$root.$on("call-fetchTaskDetails", async (para: any) => {
598+
582599
this.singleTaskLoading = true;
583600
this.setFormsFlowTaskId(para.selectedTaskId);
584601
await this.fetchTaskDetails(this.getFormsFlowTaskId);
@@ -711,7 +728,7 @@ export default class Tasklist extends Mixins(TaskListMixin) {
711728
712729
}
713730
714-
731+
715732
716733
beforeDestroy() {
717734
SocketIOService.disconnect();
@@ -734,10 +751,12 @@ export default class Tasklist extends Mixins(TaskListMixin) {
734751
}
735752
</script>
736753
754+
737755
738756
739757
<style>
740758
.highlight:not(.djs-connection) .djs-visual > :nth-child(1) {
741759
fill: rgb(56,89,138) !important;
742760
}
761+
743762
</style>

camunda-formio-tasklist-vue/src/components/layout/LeftSider.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
:variables="task._embedded.variable"
9494
:filterTaskVariable="selectedFilterTaskVariable"/>
9595

96+
9697
</div>
9798
</template>
9899
<div
@@ -174,6 +175,7 @@ export default class LeftSider extends Mixins(BaseMixin) {
174175
@serviceFlowModule.Mutation("setFormsFlowactiveIndex")
175176
public setFormsFlowactiveIndex: any;
176177
private selectedFilterTaskVariable: Array<any> = [];
178+
177179
private getProcessDefinitions: Array<any> = [];
178180
private processDefinitionId = "";
179181
private currentPage = 1;

camunda-formio-tasklist-vue/src/components/search/TaskSearchItem.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@
9090
v-if="showVariableValueState[index] === 's'"
9191
@click="updateVariableInput(index)"
9292
>
93+
9394
<span v-if="selectedSearchQueries[index].variable== ''">0</span>
9495
<span v-else data-bs-toggle="tooltip" data-bs-placement="top" :title="selectedSearchQueries[index].variable "> {{ selectedSearchQueries[index].variable }}</span>
96+
9597
</div>
9698

9799
</div>
@@ -143,11 +145,13 @@
143145
<input
144146
class="form-control"
145147
:type="showCalender?'datetime-local':'text'"
148+
146149
v-model="selectedSearchQueries[index].value"
147150
v-on:keyup.enter="
148151
setSearchQueryValue(selectedSearchQueries, index);
149152
showSearchValueItem(index);"
150153
>
154+
151155
</div>
152156
<div>
153157
<button
@@ -167,18 +171,21 @@
167171
><i class="fa fa-times" aria-hidden="true" ></i>
168172
</button>
169173
</div>
174+
170175
</template>
171176
<div
172177
v-if="showSearchState[index] === 's' && query.type !== 'date'"
173178
@click="updateSearchInput(index)"
174179
>
180+
175181
<div v-if="selectedSearchQueries[index].value===''">
176182
0
177183
</div>
178184
<div v-else >
179185
{{ selectedSearchQueries[index].value }}
180186
</div>
181187
</div>
188+
182189
</div>
183190

184191
</div>
@@ -255,6 +262,22 @@ export default class TaskSearchItem extends Vue {
255262
256263
}
257264
265+
@Watch("selectedfilterId")
266+
settingTaskVariable (){
267+
if(this.filterList.length&&this.selectedfilterId){
268+
this.filterList.forEach(filterListItem=>{
269+
if(filterListItem.id===this.selectedfilterId){
270+
this.filteredVariable = filterListItem?.properties?.variables ||[];
271+
this.taskVariableArray= filterListItem?.properties?.variables ||[];
272+
}
273+
});
274+
}
275+
}
276+
mounted(){
277+
this.settingTaskVariable();
278+
279+
}
280+
258281
deleteSearchQueryElement(query: SearchOptionPayload, index: number) {
259282
this.$root.$emit("call-deleteSearchQueryElement", {
260283
query: query,
@@ -377,3 +400,4 @@ export default class TaskSearchItem extends Vue {
377400
color: transparent;
378401
}
379402
</style>
403+

camunda-formio-tasklist-vue/src/components/taskVariable/TaskVariable.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
</span>
1313
</div>
1414
<div class="text-truncate ">
15+
1516
<span data-toggle="tooltip" class="ctf-description" data-placement="top" :title="item.value.toString()">
1617
{{ item.value.toString()}}
18+
1719
</span>
1820
</div>
1921
</div>
@@ -38,7 +40,7 @@ import {
3840
Vue,
3941
Watch,
4042
} from "vue-property-decorator";
41-
43+
4244
@Component
4345
export default class TaskVariable extends Vue {
4446
@Prop() private variables!: any[];
@@ -85,6 +87,7 @@ export default class TaskVariable extends Vue {
8587
}
8688
}
8789
90+
8891
8992
}
9093
</script>

camunda-formio-tasklist-vue/src/services/SearchOptions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export const FILTER_OPERATOR_TYPES = {
160160
AFTER: "after",
161161
};
162162

163+
163164
const convertingValueNumber =(searchOption: any)=>{
164165
// if it is not like operator
165166
if(searchOption.operator===FILTER_OPERATOR_TYPES.LIKE){
@@ -177,9 +178,8 @@ const convertingValueNumber =(searchOption: any)=>{
177178
newValue= Number(value);
178179
}
179180
return newValue;
180-
}
181-
182-
};
181+
};
182+
183183

184184

185185
const getProcessedParamObject = (searchOption: SearchOptionPayload) =>
@@ -242,6 +242,7 @@ export const getFormattedQueryListParams = (
242242
name: searchOption.variable,
243243
operator: getVariableOperator(searchOption.operator),
244244
value: convertingValueNumber(searchOption),
245+
245246
});
246247
}
247248
}

0 commit comments

Comments
 (0)