From 885ecddb35916f9fad1226357611aaf500ecd4da Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Mon, 08 Apr 2024 11:36:07 +0800
Subject: [PATCH] first commit

---
 src/views/product/markettrading.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/product/markettrading.vue b/src/views/product/markettrading.vue
index 24741eb..1f8c8fe 100644
--- a/src/views/product/markettrading.vue
+++ b/src/views/product/markettrading.vue
@@ -120,7 +120,7 @@
               />
             </a-form-item>
           </a-col>
-          <a-col :md="12" :lg="12" :sm="12">
+          <!-- <a-col :md="12" :lg="12" :sm="12">
             <a-form-item label="金额模式" :labelCol="labelCol" :wrapperCol="wrapperCol">
               <a-select
                 :value="typeValue"
@@ -131,7 +131,7 @@
                 <a-select-option value="1">百分比</a-select-option>
               </a-select>
             </a-form-item>
-          </a-col>
+          </a-col> -->
         </a-row>
         <a-row :gutter="48">
           <a-col :md="12" :lg="12" :sm="12">
@@ -191,7 +191,7 @@
           scopedSlots: { customRender: 'type' },
         },
         {
-          title: '金额/百分比',
+          title: '金额',
           dataIndex: 'price',
           align: 'center',
         },
@@ -225,7 +225,7 @@
         code: '',
         name: '',
         zt: undefined,
-        type: undefined,
+        type: 0,
       },
       datalist: [],
       labelCol: {
@@ -322,16 +322,18 @@
       const form = this.$refs.addUserform.form
 
       form.validateFields((errors, values) => {
+        values.type = 0
         if (!errors) {
           if (this.currentdetail != '') {
             this.addUserDialogloading = true
             values.id = this.currentdetail.id
+
             // values.subscriptionTime = this.subscriptionTime
             // values.subscribeTime = this.subscribeTime
             stockupdata(values).then((res) => {
               if (res.status == 0) {
                 this.addUserdialog = false
-                this.$message.success(res.msg)
+                this.$message.success('修改成功')
                 form.resetFields()
                 this.getlist()
               } else {

--
Gitblit v1.9.3