瀏覽代碼

修改单位质态列表

“yueshang” 1 年之前
父節點
當前提交
4d15b989a5

+ 1 - 1
src/api/backend/statistics.js

@@ -11,7 +11,7 @@ export function getDdlist(data) {
     return request({
       url: '/backend/org/page2',
       method: 'post',
-      data: data
+      params: data,
     })
   }
   // 发现隐患-整改隐患数

+ 2 - 2
src/views/backend/statisticsFire/component/unitActive.vue

@@ -31,8 +31,8 @@ export default {
       default: "#fff",
     },
     actList: {
-      type: Object,
-      default: {},
+      type: Array,
+      default: () => [],
     },
   },
   data() {

+ 6 - 2
src/views/backend/statisticsFire/index.vue

@@ -256,6 +256,7 @@ export default {
       queryRader: {
         pageSize: 10,
         pageNo: 1,
+        deptid:0
       },
       deptId: 0,
       tongjiData: null, //找到对应大队下的统计数字数据
@@ -391,7 +392,9 @@ export default {
     //切换tab
     clickTab(e) {
       this.deptId = e.name;
+      this.queryRader.deptid=e.name
       this.watcherList = [];
+      this.getData();
       this.navList();
       this.Devscanorder();
       this.Dengertypeorder();
@@ -417,8 +420,9 @@ export default {
     },
     //质态表格
     getData() {
-      getOrgPage(this.queryRader).then((response) => {
-        this.list = response.data.list;
+        // getOrgPage
+        getPoliceId(this.queryRader).then((response) => {
+        this.list = response.data?.records;
         this.total = response.data.total;
       });
     },