From 8adc013351b5df52010eb45bf4a288d7d3a679df Mon Sep 17 00:00:00 2001 From: yuebenshan Date: Tue, 14 Feb 2023 17:03:26 +0800 Subject: [PATCH] review todo.html --- app/view/page/todo.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/view/page/todo.html b/app/view/page/todo.html index bea8d46..4c3e44c 100644 --- a/app/view/page/todo.html +++ b/app/view/page/todo.html @@ -261,7 +261,6 @@ new Vue({ await this.confirmSubmitDialog(); await this.submitForReview(uiActionData); await this.closeSubmitDrawer(); - await this.clearSubmitData(); this.getTableData(); this.getHistoryData(); break; @@ -324,10 +323,6 @@ new Vue({ this.lineTypeList = []; // 所有操作按钮 }, - async closeSubmitDrawer() { - this.isSubmitDrawerShown = false; - }, - async openUpdateDrawer() { this.isSubmitDrawerShown = true; }, @@ -338,9 +333,6 @@ new Vue({ } }, - async clearSubmitData() { - this.updateItem = {}; - }, async submitForReview(lineType) { await window.vtoast.loading("提交审核"); await window.jianghuAxios({ @@ -354,6 +346,10 @@ new Vue({ }) await window.vtoast.success("提交审核成功"); }, + async closeSubmitDrawer() { + this.isSubmitDrawerShown = false; + this.updateItem = {}; + }, setLineTypeList(lineTypeList) { this.lineTypeList = _.uniqBy((lineTypeList || '').split(",").map(lineType => ({type: lineType, label: lineType})), 'type'); },