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() {