浏览代码

产品第三方接口推送

chen 1 年之前
父节点
当前提交
30f336603a
共有 1 个文件被更改,包括 40 次插入0 次删除
  1. 40 0
      src/option/productModel/productModel.js

+ 40 - 0
src/option/productModel/productModel.js

@@ -192,6 +192,46 @@ export default {
         },
       ],
     },
+    {
+      label: "上传第三方平台",
+      prop: "isPushTripartite",
+      type: 'switch',
+      dicData: [{
+        label: '否',
+        value: 0
+      }, {
+        label: '是',
+        value: 1
+      }],
+      control: (val, form) => {
+        if (val == 1) {
+          return {
+            tripartiteUrl: {
+              display: true
+            },
+          }
+        } else {
+          return {
+            tripartiteUrl: {
+              display: false
+            },
+          }
+        }
+      }
+    },
+    {
+      label: "三方平台地址",
+      prop: "tripartiteUrl",
+      type: "input",
+      rules: [
+        {
+          required: true,
+          message: '请输入三方平台地址',
+          trigger: 'click',
+        },
+      ],
+      hide: true,
+    },
     {
       label: "创建人",
       prop: "createUser",