coys 2 سال پیش
والد
کامیت
2525183c59
2فایلهای تغییر یافته به همراه57 افزوده شده و 23 حذف شده
  1. 51 17
      src/views/scorestatistics/index.vue
  2. 6 6
      src/views/scorestatistics/scorestatisticsDialog.vue

+ 51 - 17
src/views/scorestatistics/index.vue

@@ -8,7 +8,7 @@
           <el-form
             :model="queryParams"
             ref="queryForm"
-            size="small"
+            pageSize="small"
             :inline="true"
             v-show="showSearch"
           >
@@ -42,14 +42,14 @@
                 <el-button
                   type="primary"
                   icon="el-icon-search"
-                  size="mini"
+                  pageSize="mini"
                   @click="handleQuery"
                   >搜索</el-button
                 >
                 <el-button
                   type="primary"
                   icon="el-icon-refresh"
-                  size="mini"
+                  pageSize="mini"
                   @click="resetQuery"
                   >重置</el-button
                 >
@@ -61,7 +61,7 @@
         <el-table
           border
           height="650"
-          size="small"
+          pageSize="small"
           v-loading="loading"
           :data="dataList"
           align="center"
@@ -74,12 +74,36 @@
             width="100"
           ></el-table-column>
           <el-table-column label="年月" :formatter="formatterScore" />
-          <el-table-column label="机构名称" prop="orgName" />
-          <el-table-column label=">90 低" prop="level_gt90" />
-          <el-table-column label="80-90 中" prop="level_80_90" />
-          <el-table-column label="70-80 高" prop="level_70_80" />
+          <el-table-column label="机构名称" prop="orgName"> </el-table-column>
+          <el-table-column label=">90 低" prop="level_gt90">
+            <template slot-scope="{ row }">
+              <div >
+                <span class="text" @click="clickHandlerRow(row,1)">{{ row.level_gt90 }}</span>
+              </div>
+            </template>
+          </el-table-column>
+
+          <el-table-column label="80-90 中" prop="level_80_90" >
+            <template slot-scope="{ row }">
+              <div >
+                <span class="text" @click="clickHandlerRow(row,2)">{{ row.level_80_90 }}</span>
+              </div>
+            </template>
+            </el-table-column>
+          <el-table-column label="70-80 高" prop="level_70_80" >
+            <template slot-scope="{ row }">
+              <div >
+                <span class="text" @click="clickHandlerRow(row,3)">{{ row.level_70_80 }}</span>
+              </div>
+            </template>
+          </el-table-column>
 
           <el-table-column label="70及以下 极高" prop="level_lt70">
+            <template slot-scope="{ row }">
+              <div >
+                <span class="text" @click="clickHandlerRow(row,4)">{{ row.level_lt70 }}</span>
+              </div>
+            </template>
           </el-table-column>
 
           <el-table-column
@@ -90,13 +114,13 @@
           >
             <template slot-scope="{ row }">
               <el-button
-                size="mini"
+                pageSize="mini"
                 @click="editHandler(row)"
                 type="text"
                 class="el-icon-view"
                 >查看</el-button
               ><el-button
-                size="mini"
+                pageSize="mini"
                 @click="anewHandler(row)"
                 type="text"
                 class="el-icon-edit-outline"
@@ -109,8 +133,8 @@
         <pagination
           v-show="total > 0"
           :total="total"
-          :page.sync="queryParams.page"
-          :limit.sync="queryParams.size"
+          :page.sync="queryParams.pageNum"
+          :limit.sync="queryParams.pageSize"
           @pagination="getList"
         />
       </el-col>
@@ -153,8 +177,8 @@ export default {
         orgId: null,
         date: newDateMonth("", "1"),
 
-        page: 1,
-        size: 10,
+        pageNum: 1,
+        pageSize: 10,
       },
       // 显示搜索条件
       showSearch: true,
@@ -237,7 +261,7 @@ export default {
 
     /** 搜索按钮操作 */
     handleQuery() {
-      this.queryParams.page = 1;
+      this.queryParams.pageNum = 1;
       this.getList();
     },
     /** 重置按钮操作 */
@@ -245,12 +269,17 @@ export default {
       this.queryParams = {
         orgId: null,
         date: "",
-        page: 1,
-        size: 10,
+        pageNum: 1,
+        pageSize: 10,
       };
 
       this.getList();
     },
+    clickHandlerRow(row,num){
+      
+      row.levelId=num
+      this.$refs.Evaluate.show(row)
+    }
   },
 };
 </script>
@@ -260,4 +289,9 @@ export default {
     width: 264px;
   }
 }
+.text{
+  color: #008cd6;
+  text-decoration: underline;
+  cursor: pointer;
+}
 </style>

+ 6 - 6
src/views/scorestatistics/scorestatisticsDialog.vue

@@ -8,7 +8,7 @@
       destroy-on-close
       @open="openHandler"
     >
-      <div class="page-body">
+      <div class="pageNum-body">
         <el-form
           :model="queryParams"
           size="small"
@@ -36,7 +36,7 @@
         <pagination
           v-show="total > 0"
           :total="total"
-          :page.sync="queryParams.page"
+          :pageNum.sync="queryParams.pageNum"
           :limit.sync="queryParams.size"
           @pagination="getDetailList"
         />
@@ -64,8 +64,8 @@ export default {
       total: 0,
       loading:false,
       queryParams: {
-        page: 1,
-        size: 10,
+        pageNum: 1,
+        pageSize: 10,
         orgId: "",
         date: null,
         levelId: "",
@@ -114,8 +114,8 @@ export default {
       this.$refs.form.resetFields();
       this.isShow = false;
       this.queryParams = {
-        page: 1,
-        size: 10,
+        pageNum: 1,
+        pageSize: 10,
       };
 
       this.tableData = [];