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 | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/views/systemSetting/silkStandardSetting/index.vue b/src/views/systemSetting/silkStandardSetting/index.vue index f5a7c22..f2ac1f7 100644 --- a/src/views/systemSetting/silkStandardSetting/index.vue +++ b/src/views/systemSetting/silkStandardSetting/index.vue @@ -3,7 +3,7 @@ <div class="filter-card"> <CommonSearch :show-add="false" :amount-view="false" placeholder="璇疯緭鍏ュ叧閿瘝" @searchClick="onFilterSearch"> <template slot="leftButton"> - <el-button size="small" type="primary" @click="addBtnClick" :disabled="!isEdit">鏂板</el-button> + <el-button size="small" type="primary" @click="addBtnClick">鏂板</el-button> <el-button size="small" type="primary" @click="refreshClick">鍒锋柊</el-button> <el-button size="small" type="primary" @click="printClick" disabled>鎵撳嵃</el-button> </template> @@ -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" @@ -76,7 +77,7 @@ projectOptions: getDataByType("projectOptions"), rankObj: {}, columnInputList: [], - dynamicsRanks: [] + dynamicsRanks: [], } }, created() { @@ -137,7 +138,14 @@ this.silkTableList = { tableData: this.tableData, isReturn: false, - tableColumn: this.tableColumn + tableColumn: [ + { label: "妫�鏌ラ」鐩悕绉�", prop: "projectName", projectName: true }, + { label: "寮�濮嬬氦搴�", prop: "start", inputFloat: true }, + { label: "缁撴潫绾ゅ害", prop: "end", inputFloat: true }, + { label: "閲庣氦", prop: "price1", inputFloat: true }, + { label: "澶ч噹", prop: "price2", inputFloat: true }, + { label: "鐗归噹", prop: "price3", inputFloat: true } + ] } }, // 鎼滅储 @@ -146,7 +154,19 @@ }, // 鏂板 addBtnClick() { - this.tableData.push(this.dataObj) + 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