|
@@ -36,9 +36,9 @@
|
|
<el-input v-model="queryInfo.task_name"></el-input>
|
|
<el-input v-model="queryInfo.task_name"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 查询 -->
|
|
<!-- 查询 -->
|
|
- <el-button style="height: 28px;margin-left: 10px;" size="mini" type="success" @click="searchData()">查询</el-button>
|
|
|
|
|
|
+ <el-button style="height: 28px;margin-left: 10px;" size="mini" type="primary" @click="searchData()">查询</el-button>
|
|
<!-- 重置 -->
|
|
<!-- 重置 -->
|
|
- <el-button style="height: 28px;margin-left: 5px;" size="mini" type="success" @click="reset()">重置</el-button>
|
|
|
|
|
|
+ <el-button style="height: 28px;margin-left: 5px;" size="mini" type="primary" @click="reset()">重置</el-button>
|
|
</el-form>
|
|
</el-form>
|
|
</el-row>
|
|
</el-row>
|
|
<!-- 头部钮区域-->
|
|
<!-- 头部钮区域-->
|
|
@@ -88,8 +88,12 @@
|
|
<el-table-column label="操作" align="center" fixed="right">
|
|
<el-table-column label="操作" align="center" fixed="right">
|
|
<!-- 操作按钮区域的作用域插槽 -->
|
|
<!-- 操作按钮区域的作用域插槽 -->
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="success" size="mini" @click="runtask(scope.row.id)">执行任务</el-button>
|
|
|
|
-
|
|
|
|
|
|
+ <el-col>
|
|
|
|
+ <el-button type="primary" style="margin-top:5px;" size="mini" @click="runtask(scope.row.id)">执行任务</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col>
|
|
|
|
+ <el-button type="success" style="margin:5px 0px;" size="mini" @click="up(scope.row.id)">上报任务</el-button>
|
|
|
|
+ </el-col>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -254,6 +258,9 @@ const HeadersList = [{
|
|
mounted: function() {
|
|
mounted: function() {
|
|
this.gettaskList()
|
|
this.gettaskList()
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ this.gettaskList()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.queryInfo.pageSize = val;
|
|
this.queryInfo.pageSize = val;
|
|
@@ -304,7 +311,7 @@ const HeadersList = [{
|
|
}
|
|
}
|
|
this.gettaskList()
|
|
this.gettaskList()
|
|
},
|
|
},
|
|
- runtask(id) {
|
|
|
|
|
|
+ async runtask(id) {
|
|
console.log(id)
|
|
console.log(id)
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'setTaskcd',
|
|
name: 'setTaskcd',
|
|
@@ -313,6 +320,25 @@ const HeadersList = [{
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ async up(id){
|
|
|
|
+ this.$confirm('上报任务后不可撤回, 是否继续?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '任务上报成功!'
|
|
|
|
+ });
|
|
|
|
+ this.task_id = id
|
|
|
|
+ this.uptask(task_id)
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '已取消上报'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 导出Excel
|
|
// 导出Excel
|
|
async exportData() {
|
|
async exportData() {
|
|
|
|
|