|
|
@ -31,9 +31,10 @@ |
|
|
|
<span v-else>{{ scope.row[item] }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="300" fixed="right"> |
|
|
|
<el-table-column label="操作" width="380" fixed="right"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-button class="edit-button-style" @click="configuration(scope.row)" icon="el-icon-setting" size="small">配置</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handlePerform(scope.row)" icon="el-icon-s-open" size="small">执行</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleUpdate(scope.row)" icon="el-icon-edit" size="small">修改</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleDelete(scope.row)" icon="el-icon-delete" size="small">删除</el-button> |
|
|
|
</template> |
|
|
@ -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) { |
|
|
|