From e3249a6bbd6276fe026e03dba43171dd9818a8ac Mon Sep 17 00:00:00 2001 From: wangxy Date: Tue, 13 Jul 2021 14:14:51 +0800 Subject: [PATCH] =?UTF-8?q?etl=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/etl/index.vue | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/views/etl/index.vue b/src/views/etl/index.vue index 6818781..36a1c34 100644 --- a/src/views/etl/index.vue +++ b/src/views/etl/index.vue @@ -31,9 +31,10 @@ {{ scope.row[item] }} - + @@ -55,6 +56,7 @@ import EditTemplate from "./components/edit.vue" import Configuration from "./components/configuration.vue" import { ListMixin } from '@/mixins/ListMixin' + import { post } from "../../server/api.js"; export default { name: "field", components: { @@ -94,6 +96,25 @@ }) }, methods: { + // 执行 + handlePerform(row) { + this.$confirm('是否确认执行"' + row['TaskHead-TaskId'] + '"的数据项?', '警告', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + post('/admin/etl/taskhead/execute', {taskId: row['TaskHead-TaskId']}) + .then(res => { + if (res.code === 200) { + this.msgSuccess('执行成功') + } else { + this.msgError(res.msg) + } + }).catch(res => { + this.msgError(res.msg) + }) + }).catch(() => { return}) + }, // 标准定义字段转换 orderTypeTrans (value) { if (this.statusHeadArray.length > 0) {