Browse Source

打款页面, 列表状态为未打款的才显示打款按钮

lxf 1 year ago
parent
commit
dbb445ba7f
1 changed files with 16 additions and 14 deletions
  1. 16 14
      src/views/finance/fundManage/accountPayment/index.vue

+ 16 - 14
src/views/finance/fundManage/accountPayment/index.vue

@@ -164,24 +164,26 @@ const config = computed(() => {
     {
       attrs: {
         label: "操作",
-        width: "200",
-        align: "right",
+        width: "120",
+        align: "center",
       },
       // 渲染 el-button,一般用在最后一列。
       renderHTML(row) {
         return [
-          {
-            attrs: {
-              label: "打款",
-              type: "primary",
-              text: true,
-            },
-            el: "button",
-            click() {
-              formOption.disabled = false;
-              getDtl(row);
-            },
-          },
+          row.status == 20
+            ? {
+                attrs: {
+                  label: "打款",
+                  type: "primary",
+                  text: true,
+                },
+                el: "button",
+                click() {
+                  formOption.disabled = false;
+                  getDtl(row);
+                },
+              }
+            : {},
           {
             attrs: {
               label: "查看",