From 01de916bf23ed912a2b19f2b77d8d9bcdb4ae925 Mon Sep 17 00:00:00 2001 From: 2183691628 <2183691628@qq.com> Date: Thu, 23 Dec 2021 11:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=92=8C=E9=80=9A=E7=94=A8=E4=BE=8B=E5=A4=96=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/checkout-status-to-num.js | 4 ++-- src/views/off-limits-manage/user-exception/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/checkout-status-to-num.js b/src/utils/checkout-status-to-num.js index 2a734e1..80507d1 100644 --- a/src/utils/checkout-status-to-num.js +++ b/src/utils/checkout-status-to-num.js @@ -1,14 +1,14 @@ /* * @Date: 2021-12-07 10:45:23 * @LastEditors: JinxuChen - * @LastEditTime: 2021-12-23 11:23:00 + * @LastEditTime: 2021-12-23 11:41:43 * @FilePath: \GpsCardAdmin\src\utils\checkout-status-to-num.js * @description: 将接口里面的kindId转化为文字 */ exports.install = function (Vue, options) { Vue.prototype.checkoutStatusToNum = function (value) { if (value === true) { - return 1 + return 2 } else if (value === false) { return 0 } diff --git a/src/views/off-limits-manage/user-exception/index.vue b/src/views/off-limits-manage/user-exception/index.vue index 79864a7..a1325e8 100644 --- a/src/views/off-limits-manage/user-exception/index.vue +++ b/src/views/off-limits-manage/user-exception/index.vue @@ -1,7 +1,7 @@ @@ -335,7 +335,7 @@ export default { console.log("row", row); this.dialogTrans = true; this.content = row.content; - this.form.status = row.status === '启用' ? 1 : 0; + this.form.status = row.status === '启用' ? 2 : 0; }, // 确定转通用例外 onTransConfirm() {