浏览代码

新增需求-盯盘运营经理人员查看模块添加时间筛选条件

朱鑫波 4 年之前
父节点
当前提交
acb81bc4b0

+ 4 - 1
src/views/modules/stockWatch/modules/keep-manage/keep-manage.vue

@@ -567,7 +567,10 @@ export default {
 
         //跳转个人页面
         toPerson(records) {
-
+            let params = {};
+            params.person = records.userId;
+            params.timeRange = this.dateMiddle;
+            localStorage.setItem('stockWatchUserId',JSON.stringify(params));
             this.$nextTick(() => {
                 this.$router.push('/modules/stockWatch/modules/keep-person/keep-person?person=' + records.userId );
             })

+ 4 - 0
src/views/modules/stockWatch/modules/keep-person/keep-person.vue

@@ -408,6 +408,10 @@ export default {
     },
     mounted() {
         this.$nextTick(() => {
+            if(localStorage.getItem('stockWatchUserId')&&this.$route.query.person) {
+                let data = JSON.parse(localStorage.getItem('stockWatchUserId'));
+                this.dateValue = [moment(data.timeRange[0]),moment(data.timeRange[1])];
+            }
             this.showColumn();
             this.getPersonAchievements();
             this.getPersonList();