lilei 1 yıl önce
ebeveyn
işleme
64ab0b6792

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1719198184647
+  "version": 1719198667720
 }

+ 10 - 2
src/views/numsGoodsShelves/shelfProductTempl/list.vue

@@ -28,7 +28,7 @@
         </a-form>
       </div>
       <div class="table-operator">
-        <a-button type="primary" class="button-error" @click="addTemp" id="shelfPlList-addTemp">新增</a-button>
+        <a-button v-if="orgData.length<20" type="primary" class="button-error" @click="addTemp" id="shelfPlList-addTemp">新增</a-button>
       </div>
       <!-- 列表 -->
       <s-table
@@ -56,7 +56,13 @@
               type="link"
               class="button-primary"
               @click="addTemp(record)">更改名称</a-button>
-            <a-button id="shelfPlList-copy" size="small" type="link" class="button-primary" @click="handleCopy(record)">复制</a-button>
+            <a-button
+              v-if="orgData.length<20"
+              id="shelfPlList-copy"
+              size="small"
+              type="link"
+              class="button-primary"
+              @click="handleCopy(record)">复制</a-button>
             <a-button
               id="shelfPlList-del"
               size="small"
@@ -114,9 +120,11 @@ export default {
             this.disabled = false
           }
           this.spinning = false
+          this.orgData = data.list
           return data
         })
       },
+      orgData: [], // 原始列表数据
       openModal: false, // 打开新增编辑弹框
       nowData: null // 当前操作数据
     }