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