From 7f388f1edd226aef058dd9a32dd24ecf5304bcac Mon Sep 17 00:00:00 2001 From: taojinlong Date: Thu, 8 Jul 2021 15:11:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B8=E6=93=9A=E9=9B=86):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=9D=9E=E7=9B=B4=E8=BF=9E=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E6=99=82=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=85=A8=E9=87=8F=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/task/DatasetTaskList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/system/task/DatasetTaskList.vue b/frontend/src/views/system/task/DatasetTaskList.vue index c938a3119a..c5c8e8b244 100644 --- a/frontend/src/views/system/task/DatasetTaskList.vue +++ b/frontend/src/views/system/task/DatasetTaskList.vue @@ -189,7 +189,7 @@ export default { columns: [], buttons: [ { - label: this.$t('commons.edit'), icon: 'el-icon-edit', type: 'primary', click: this.addTask + label: this.$t('commons.edit'), icon: 'el-icon-edit', type: 'primary', click: this.addTask, disabled: this.disableEdit }, { label: this.$t('dataset.task.exec'), icon: 'el-icon-video-play', type: 'success', click: this.execTask, disabled: this.disableExec @@ -422,6 +422,9 @@ export default { cronChange(val) { this.taskForm.cron = val }, + disableEdit(task) { + return task.rate === 'SIMPLE' + }, disableExec(task) { return task.status === 'Stopped' },