PMCORE-3865: button does not works correctly for a Custom Case List
CR
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
>
|
>
|
||||||
{{ $t('ID_CLEAR') }}
|
{{ $t('ID_CLEAR') }}
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Event } from "vue-tables-2";
|
import { Event } from "vue-tables-2";
|
||||||
|
|||||||
@@ -622,7 +622,7 @@ export default {
|
|||||||
// force to open case
|
// force to open case
|
||||||
this.openDefaultCase();
|
this.openDefaultCase();
|
||||||
// define sort event
|
// define sort event
|
||||||
Event.$on("vue-tables.todo.sorted", function(data) {
|
Event.$on("vue-tables.custom.sorted", function(data) {
|
||||||
that.$emit("updateSettings", {
|
that.$emit("updateSettings", {
|
||||||
data: data,
|
data: data,
|
||||||
key: "orderBy",
|
key: "orderBy",
|
||||||
@@ -1254,23 +1254,23 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return dataEllipsisMap[page];
|
return dataEllipsisMap[page];
|
||||||
}
|
},
|
||||||
|
/**
|
||||||
|
* Reset the sort in the table
|
||||||
|
*/
|
||||||
|
clearSort() {
|
||||||
|
if (this.$refs['vueTable']) {
|
||||||
|
this.$refs['vueTable'].setOrder(false);
|
||||||
|
this.$emit("updateSettings", {
|
||||||
|
data: [],
|
||||||
|
key: "orderBy",
|
||||||
|
page: this.data.pageParent,
|
||||||
|
type: "custom",
|
||||||
|
id: this.data.customListId
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* Reset the sort in the table
|
|
||||||
*/
|
|
||||||
clearSort() {
|
|
||||||
if (this.$refs['vueTable']) {
|
|
||||||
this.$refs['vueTable'].setOrder(false)
|
|
||||||
this.$emit("updateSettings", {
|
|
||||||
data: [],
|
|
||||||
key: "orderBy",
|
|
||||||
page: that.data.pageParent,
|
|
||||||
type: "custom",
|
|
||||||
id: that.data.customListId
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user