PMCORE-3068:UI - add Send By Column to the task Lists

CR
This commit is contained in:
fabio
2021-08-03 16:36:00 -04:00
parent a543b6d55d
commit 0647efd7e8
11 changed files with 208 additions and 24 deletions

View File

@@ -7,7 +7,7 @@
>
<vue-list v-for="item in data" :key="item.id" :item="item" :options="options">
<b-row>
<b-col sm="10">
<b-col sm="5">
<slot
v-for="column in options.columns"
:name="column"
@@ -17,8 +17,19 @@
ref="containerList"
></slot>
</b-col>
<b-col sm="5">
<slot
name="send_by"
:item="item"
column="send_by"
:headings="options.headings"
></slot>
</b-col>
<b-col sm="2">
<slot name="actions"></slot>
<slot
name="actions"
:item="item"
></slot>
</b-col>
</b-row>
</vue-list>
@@ -46,12 +57,20 @@ export default {
};
},
mounted() {
this.filterOptions();
},
methods: {
classBtn(cls) {
return "btn btn-slim btn-force-radius v-btn-header " + cls;
},
/**
* Filter the column send_by
*/
filterOptions() {
this.options.columns = this.options.columns.filter(function(item) {
return item !== "send_by";
});
}
},
};
</script>