PMCORE-3068:UI - add Send By Column to the task Lists
CR
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user