From 969e592cb06e82dedd55e8645cd49b7c01e2a019 Mon Sep 17 00:00:00 2001 From: CherrysChang <1935003650@qq.com> Date: Wed, 6 May 2020 10:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E7=BC=96=E8=BE=91=E3=80=81?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/server.js | 2 +- src/views/train/case-detail.vue | 23 ++++++++++++++++++----- src/views/train/case-list.vue | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/api/server.js b/src/api/server.js index 55aa5ee..1d2a6a7 100644 --- a/src/api/server.js +++ b/src/api/server.js @@ -57,7 +57,7 @@ export const Train = new (class { //修改 updateCase(params) { return axios - .post(this.updateCaseApi, qs.stringify(params)) + .post(this.updateCaseApi, qs.stringify(params,{allowDots: true })) .then(res => res.data); } //删除 diff --git a/src/views/train/case-detail.vue b/src/views/train/case-detail.vue index 159efd6..8046309 100644 --- a/src/views/train/case-detail.vue +++ b/src/views/train/case-detail.vue @@ -25,7 +25,7 @@ 量化指标 - + @@ -41,7 +41,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -72,7 +72,7 @@ - + 移除 @@ -83,7 +83,7 @@ - + 确定 取消 @@ -253,6 +253,13 @@ getRowKey (row) {// 指定一个key标识这一行的数据 return row.id //id为row的data属性之一,必须唯一且与tableData中保持一致 }, + checkboxIsEnabled() { // 复选框是否可用 + if (this.formAction === 2) { + return false; + } else { + return true; + } + }, leftSelectionChange(selection) { this.leftSelectedRows = selection; }, @@ -412,6 +419,12 @@ .el-form-item.is-required .el-form-item__label:after { content: ''; } + .el-form-item.is-success .el-input__inner{ + border-color: #DCDFE6 !important; + } + .el-form-item.is-success .el-input__inner:focus{ + border-color: #409EFF !important; + } .target-set{ /*.el-table__header .el-table-column--selection .cell .el-checkbox:after {*/ /* content: "全选";*/ diff --git a/src/views/train/case-list.vue b/src/views/train/case-list.vue index 04b0048..72ffe7d 100644 --- a/src/views/train/case-list.vue +++ b/src/views/train/case-list.vue @@ -46,7 +46,7 @@ - + 查看 编辑