Browse Source

etl列表增加执行按钮

pull/3/head
wangxy 3 years ago
parent
commit
e3249a6bbd
1 changed files with 22 additions and 1 deletions
  1. +22
    -1
      src/views/etl/index.vue

+ 22
- 1
src/views/etl/index.vue View File

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


Loading…
Cancel
Save