|
@@ -225,7 +225,7 @@
|
|
|
import Title from '@/components/Title';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
import mPagination from '@/components/m-pagination';
|
|
|
-
|
|
|
+let isClearStorage = true
|
|
|
export default {
|
|
|
name: 'Dashboard',
|
|
|
components: {
|
|
@@ -316,7 +316,24 @@ export default {
|
|
|
this.getSearchOptions();
|
|
|
}
|
|
|
},
|
|
|
+ beforeRouteEnter(to, from, next) {
|
|
|
+ isClearStorage = from.path != '/caseViews' ? true : false
|
|
|
+ next()
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ if(isClearStorage) {
|
|
|
+ this.storageSet('getData', '');
|
|
|
+ this.storageSet('getDataRule', '');
|
|
|
+ }
|
|
|
+ this.funQuery();
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ tableRowClassName({row}) {
|
|
|
+ if (row.selected) {
|
|
|
+ return 'selected-row'
|
|
|
+ }
|
|
|
+ return ''
|
|
|
+ },
|
|
|
handleSortChange(column) {
|
|
|
const { prop, order } = column;
|
|
|
if (order === 'descending') {
|
|
@@ -404,6 +421,11 @@ export default {
|
|
|
this.$axios.post('CaseHistory/Terminal/qxBlNumberTableList', pramse).then(res => {
|
|
|
this.paginationData.total = res.data.count;
|
|
|
this.tableData = res.data.data;
|
|
|
+ // 切换选中状态
|
|
|
+ let currentRuleId = this.storageGet('getDataRule')
|
|
|
+ Array.isArray(this.tableData) && this.tableData.map(item => {
|
|
|
+ item.selected = item.rule_id == currentRuleId ? true : false
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
handleResetZmblzkWtsl() {
|