Bläddra i källkod

血缘查询页面调整

haizhouwang 2 år sedan
förälder
incheckning
a1b3e2b98f
2 ändrade filer med 26 tillägg och 2 borttagningar
  1. 2 2
      config/dev.env.js
  2. 24 0
      src/views/PeopleManage/Seo/BloodSeo.vue

+ 2 - 2
config/dev.env.js

@@ -5,9 +5,9 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
-  // BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
+  BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
   // BASE_URL:'"http://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
-  BASE_URL: '"http://192.168.0.115:8080/"' //凯森
+  // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
 })
 

+ 24 - 0
src/views/PeopleManage/Seo/BloodSeo.vue

@@ -32,6 +32,7 @@
         fontWeight: '700',
         color: '#606266',
       }"
+      :row-class-name="tableRowClassName"
       style="width: 100%"
     >
       <el-table-column
@@ -75,6 +76,14 @@
         minwidth="180"
       >
       </el-table-column>
+      <el-table-column
+        header-align="center"
+        align="center"
+        prop="referrerName"
+        label="推荐人"
+        minwidth="180"
+      >
+      </el-table-column>
       <el-table-column
         header-align="center"
         align="center"
@@ -579,6 +588,14 @@ export default {
     this.queryBlood()
   },
   methods: {
+    //页面符合条件表格添加class
+    tableRowClassName({row, rowIndex}) {
+      console.log(row, rowIndex)
+      if (row.userId == this.queryFrom.affiliation && this.queryFrom.affiliation!='') {
+        return 'success-row';
+      }
+      return '';
+    },
     handleSizeChange(value) {
         this.pagination.pageSize = value;
         this.queryBlood()
@@ -790,4 +807,11 @@ export default {
   margin-left: 0px !important;
 }
 /* 顶部查询条件样式End */
+/* /deep/ .el-table .warning-row {
+  background: oldlace;
+} */
+
+/deep/ .el-table .success-row {
+  background: #f0f9eb;
+}
 </style>