Tiroble hace 3 años
padre
commit
beb75d2045
Se han modificado 3 ficheros con 35 adiciones y 17 borrados
  1. 2 2
      config/index.js
  2. 1 1
      package.json
  3. 32 14
      src/components/DilCommonUI/packages/table/src/table.vue

+ 2 - 2
config/index.js

@@ -64,8 +64,8 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-      target: "http://172.16.33.166:8080",
-    // target: "http://localhost:8080",
+     target: "http://172.16.33.166:8080",
+    //target: "http://localhost:8080",
     //target: "http://localhost:8019",
     // target: "http://192.168.1.107:8019",
     // target: "http://192.168.1.112:8019",

+ 1 - 1
package.json

@@ -29,7 +29,7 @@
     "crypto": "^1.0.1",
     "echarts": "^4.1.0",
     "el-cascader-multi": "^1.1.8",
-    "element-ui": "2.15.7",
+    "element-ui": "2.13.2",
     "file-saver": "^1.3.8",
     "graphql": "^14.1.1",
     "graphql-tag": "^2.10.1",

+ 32 - 14
src/components/DilCommonUI/packages/table/src/table.vue

@@ -7,7 +7,7 @@
       row-key="ROW_ID"
       :stripe="stripe"
       :border="border"
-      :row-class-name="rowClassName"
+      :row-class-name="tableRowClassName"
       :cell-class-name="cellClassName"
       :height="height"
       :highlight-current-row="highlightCurrentRow"
@@ -200,11 +200,11 @@ export default {
       default: true,
     },
     // 行的 className 的回调方法,也可以使用字符串为所有行设置一个固定的 className。
-    rowClassName: {
-      default() {
-        return ({ row, rowIndex }) => "";
-      },
-    },
+    // rowClassName: {
+    //   default() {
+    //     return ({ row, rowIndex }) => "";
+    //   },
+    // },
     // 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className。
     cellClassName: {
       default() {
@@ -268,18 +268,36 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-@media print {
-  .el-pagination {
-    display: none;
+
+.el-table .warning-row {
+    background: #fff ;
+    font-size: 22px;
+    height: 44px;
+    line-height: 46px;
+    font-size: 22px;
+    font-weight: 700;
   }
-  
-}
- /deep/.el-table .success-row {
-    background: #fff !important;
-    color: #f56c6c;
+
+  .el-table .success-row {
+    background: #fff ;
+    font-size: 22px;
     height: 44px;
     line-height: 46px;
     font-size: 22px;
     font-weight: 700;
   }
+@media print {
+  .el-pagination {
+    display: none;
+  }
+  
+}
+//  /deep/.el-table .success-row {
+//     background: #fff !important;
+//     color: #f56c6c;
+//     height: 44px;
+//     line-height: 46px;
+//     font-size: 22px;
+//     font-weight: 700;
+//   }
 </style>