@@ -1,14 +1,14 @@ | |||||
/* | /* | ||||
* @Date: 2021-12-07 10:45:23 | * @Date: 2021-12-07 10:45:23 | ||||
* @LastEditors: JinxuChen | * @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 | * @FilePath: \GpsCardAdmin\src\utils\checkout-status-to-num.js | ||||
* @description: 将接口里面的kindId转化为文字 | * @description: 将接口里面的kindId转化为文字 | ||||
*/ | */ | ||||
exports.install = function (Vue, options) { | exports.install = function (Vue, options) { | ||||
Vue.prototype.checkoutStatusToNum = function (value) { | Vue.prototype.checkoutStatusToNum = function (value) { | ||||
if (value === true) { | if (value === true) { | ||||
return 1 | |||||
return 2 | |||||
} else if (value === false) { | } else if (value === false) { | ||||
return 0 | return 0 | ||||
} | } | ||||
@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2021-11-30 09:44:24 | * @Date: 2021-11-30 09:44:24 | ||||
* @LastEditors: JinxuChen | * @LastEditors: JinxuChen | ||||
* @LastEditTime: 2021-12-23 11:29:20 | |||||
* @LastEditTime: 2021-12-23 11:43:25 | |||||
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue | * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\user-exception\index.vue | ||||
* @description: | * @description: | ||||
--> | --> | ||||
@@ -335,7 +335,7 @@ export default { | |||||
console.log("row", row); | console.log("row", row); | ||||
this.dialogTrans = true; | this.dialogTrans = true; | ||||
this.content = row.content; | this.content = row.content; | ||||
this.form.status = row.status === '启用' ? 1 : 0; | |||||
this.form.status = row.status === '启用' ? 2 : 0; | |||||
}, | }, | ||||
// 确定转通用例外 | // 确定转通用例外 | ||||
onTransConfirm() { | onTransConfirm() { | ||||