|
@@ -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 // 当前操作数据
|
|
|
}
|