浏览代码

普通员工首页:点击审计开项完成率,跳转审计详情列表,显示“已通过”的数据

wangggziwen 8 月之前
父节点
当前提交
4ce76944e1
共有 2 个文件被更改,包括 13 次插入1 次删除
  1. 9 1
      ruoyi-ui/src/views/home2.vue
  2. 4 0
      ruoyi-ui/src/views/rc/openitem/index.vue

+ 9 - 1
ruoyi-ui/src/views/home2.vue

@@ -35,7 +35,7 @@
         <div id="barChart" style="width: 600px;height: 400px;"></div>
       </div>
       <!-- 饼图 -->
-      <div class="echartsBox_Piechart">
+      <div class="echartsBox_Piechart" @click="pieOnclick" style="cursor: pointer;">
         <div id="pieChart" style="width: 600px;height: 400px;"></div>
       </div>
     </div>
@@ -248,6 +248,14 @@ export default {
         });
       });
     },
+    pieOnclick() {
+      this.$router.push({
+        path: "/rc/openitem",
+        query: {
+          status: '4'
+        }
+      });
+    },
     getString1(date) {
       return Number(date.getYear() + 1900) + "年" + Number(date.getMonth() + 1) + "月" + date.getDate() + "日";
     },

+ 4 - 0
ruoyi-ui/src/views/rc/openitem/index.vue

@@ -431,6 +431,10 @@ export default {
     /** 查询开项列表 */
     getList() {
       this.loading = true;
+      if (this.$route.query.status != null) {
+        this.queryParams.status = this.$route.query.status;
+      }
+      console.log(this.queryParams)
       listOpenitem(this.queryParams).then(response => {
         this.openitemList = response.rows;
         this.total = response.total;