From e7cbe284a0f591f60e2c3d6dc0233dd298047573 Mon Sep 17 00:00:00 2001 From: yechenhao Date: Wed, 24 Jun 2020 16:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/IncreaseStaffManager.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/shop/IncreaseStaffManager.vue b/src/pages/shop/IncreaseStaffManager.vue index fa40b92..17f6b6d 100644 --- a/src/pages/shop/IncreaseStaffManager.vue +++ b/src/pages/shop/IncreaseStaffManager.vue @@ -222,17 +222,23 @@ export default { h("i-switch", { props: { value: params.row.accountFlag, - "true-value": 1, //开启值 - "false-value": 0, //关闭值 + "true-value": true, //开启值 + "false-value": false, //关闭值 size: "large" }, on: { //操作事件 "on-change": function(value) { + let status = null; + if (value == true){ + status = 1; + }else{ + status = 0; + } //修改后请求方法 // _this.modifyStatus(params.row.accountId, value); let request = { - status: value, + status: status, id: params.row.accountId }; debugger;