From 0a8effeaa8e2e89babf883d1a74033510c27848d Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 12 四月 2024 18:09:06 +0800 Subject: [PATCH] 生丝定级标准模块 增加解锁状态才可以新增的逻辑 --- src/views/systemSetting/silkStandardSetting/index.vue | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/views/systemSetting/silkStandardSetting/index.vue b/src/views/systemSetting/silkStandardSetting/index.vue index ea8f6f5..f2ac1f7 100644 --- a/src/views/systemSetting/silkStandardSetting/index.vue +++ b/src/views/systemSetting/silkStandardSetting/index.vue @@ -17,6 +17,7 @@ <div class="edit-sace-label">{{ isEdit ? "閿佸畾淇濆瓨" : "鐣岄潰璁捐" }}</div> </div> <div> + 111锛歿{ this.silkTableList.tableData }} <SilkTableList :detail-enter="isEdit" :silk-table-list="silkTableList" @@ -153,14 +154,19 @@ }, // 鏂板 addBtnClick() { - this.tableData.push({ - projectName: "", - start: 0, - end: 0, - price1: 0, - price2: 0, - price3: 0 - }) + if(this.isEdit){ + this.tableData.push({ + projectName: "", + start: 0, + end: 0, + price1: 0, + price2: 0, + price3: 0 + }) + }else{ + this.$message.error('璇峰厛瑙i攣鍐嶆柊澧烇紒') + } + }, // 鍒锋柊 refreshClick() { -- Gitblit v1.8.0