|
|
1
|
+<template>
|
|
|
2
|
+ <el-container>
|
|
|
3
|
+ <el-main>
|
|
|
4
|
+ <!--检索条件-->
|
|
|
5
|
+ <el-row class="toolbar" style="background-color: white;margin-bottom: 10px">
|
|
|
6
|
+ <el-col :span="6">
|
|
|
7
|
+ <el-input v-model="queryinfo.name" placeholder="任务名称" style="width: 200px" clearable>
|
|
|
8
|
+ <template slot="prepend">任务名称</template>
|
|
|
9
|
+ </el-input>
|
|
|
10
|
+ </el-col>
|
|
|
11
|
+ <el-col :span="6">
|
|
|
12
|
+ <el-input v-model="queryinfo.taskDefinitionKey " placeholder="关键字" style="width: 200px" clearable>
|
|
|
13
|
+ <template slot="prepend">关键字</template>
|
|
|
14
|
+ </el-input>
|
|
|
15
|
+ </el-col>
|
|
|
16
|
+
|
|
|
17
|
+ <el-col :span="8">
|
|
|
18
|
+ <el-button type="primary" v-on:click="getList">查询</el-button>
|
|
|
19
|
+ <!-- <el-button type="success" v-on:click="toAddDialog">新增</el-button>-->
|
|
|
20
|
+
|
|
|
21
|
+ </el-col>
|
|
|
22
|
+ </el-row>
|
|
|
23
|
+ <el-row>
|
|
|
24
|
+ <template>
|
|
|
25
|
+ <el-table
|
|
|
26
|
+ v-loading="tableloading"
|
|
|
27
|
+ :data="tableData"
|
|
|
28
|
+ style="width: 100%"
|
|
|
29
|
+ :default-sort = "{prop: 'date', order: 'descending'}"
|
|
|
30
|
+ :header-cell-style="{background:'#6F8294',color:'#FFFFFF'}" size="small"
|
|
|
31
|
+ >
|
|
|
32
|
+ <el-table-column
|
|
|
33
|
+ prop="name"
|
|
|
34
|
+ label="任务名称"
|
|
|
35
|
+ width="160">
|
|
|
36
|
+ </el-table-column>
|
|
|
37
|
+ <el-table-column
|
|
|
38
|
+ prop="taskDefinitionKey "
|
|
|
39
|
+ label="关键字">
|
|
|
40
|
+ </el-table-column>
|
|
|
41
|
+ <el-table-column
|
|
|
42
|
+ prop="owner"
|
|
|
43
|
+ label="所有者">
|
|
|
44
|
+ </el-table-column>
|
|
|
45
|
+ <el-table-column
|
|
|
46
|
+ prop="assignee "
|
|
|
47
|
+ label="执行者"
|
|
|
48
|
+ width="160"
|
|
|
49
|
+ show-overflow-tooltip>
|
|
|
50
|
+ </el-table-column>
|
|
|
51
|
+ <el-table-column
|
|
|
52
|
+ prop="createTime"
|
|
|
53
|
+ label="开始时间"
|
|
|
54
|
+ width="160">
|
|
|
55
|
+ </el-table-column>
|
|
|
56
|
+<!-- <el-table-column-->
|
|
|
57
|
+<!-- fixed="right"-->
|
|
|
58
|
+<!-- label="操作"-->
|
|
|
59
|
+<!-- width="280">-->
|
|
|
60
|
+<!-- <template slot-scope="scope">-->
|
|
|
61
|
+<!-- <el-button type="success" size="mini" @click="sendForm()">实例管理</el-button>-->
|
|
|
62
|
+<!-- <el-button type="warning" size="mini" @click="remove(scope.$index,scope.row)">删除</el-button>-->
|
|
|
63
|
+<!-- <el-button type="danger" size="mini" @click="removeDel(scope.$index,scope.row)">彻底删除</el-button>-->
|
|
|
64
|
+<!-- </template>-->
|
|
|
65
|
+<!-- </el-table-column>-->
|
|
|
66
|
+ </el-table>
|
|
|
67
|
+ </template>
|
|
|
68
|
+ </el-row>
|
|
|
69
|
+ <!--分页模块-->
|
|
|
70
|
+ <el-row style="float: right;margin-top: 20px">
|
|
|
71
|
+ <el-col>
|
|
|
72
|
+ <div class="block">
|
|
|
73
|
+ <el-pagination
|
|
|
74
|
+ @size-change="handleSizeChange"
|
|
|
75
|
+ @current-change="handleCurrentChange"
|
|
|
76
|
+ :current-page="queryinfo.pageNum"
|
|
|
77
|
+ :page-sizes="[10, 20, 30, 40]"
|
|
|
78
|
+ :page-size="queryinfo.pageSize"
|
|
|
79
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
80
|
+ :total="total">
|
|
|
81
|
+ </el-pagination>
|
|
|
82
|
+ </div>
|
|
|
83
|
+ </el-col>
|
|
|
84
|
+ </el-row>
|
|
|
85
|
+ </el-main>
|
|
|
86
|
+ </el-container>
|
|
|
87
|
+</template>
|
|
|
88
|
+
|
|
|
89
|
+<script>
|
|
|
90
|
+ import {allTask} from "../../api/technological";
|
|
|
91
|
+
|
|
|
92
|
+ export default {
|
|
|
93
|
+ name: "task",
|
|
|
94
|
+ data() {
|
|
|
95
|
+ return{
|
|
|
96
|
+ queryinfo:{
|
|
|
97
|
+ name:'',
|
|
|
98
|
+ taskDefinitionKey:'',
|
|
|
99
|
+ pageNum:1,
|
|
|
100
|
+ pageSize:10,
|
|
|
101
|
+ },
|
|
|
102
|
+ total:0,
|
|
|
103
|
+ tableData: [],
|
|
|
104
|
+ tableloading:false,
|
|
|
105
|
+ }
|
|
|
106
|
+ },
|
|
|
107
|
+ mounted() {
|
|
|
108
|
+ this.getList();
|
|
|
109
|
+ },
|
|
|
110
|
+ methods: {
|
|
|
111
|
+ // 分页
|
|
|
112
|
+ handleSizeChange(val) {
|
|
|
113
|
+ this.queryinfo.pageSize= val
|
|
|
114
|
+ this.getList()
|
|
|
115
|
+ },
|
|
|
116
|
+ handleCurrentChange(val) {
|
|
|
117
|
+ this.queryinfo.pageNum = val
|
|
|
118
|
+ this.getList()
|
|
|
119
|
+ },
|
|
|
120
|
+ //查询
|
|
|
121
|
+ getList() {
|
|
|
122
|
+ const _this = this
|
|
|
123
|
+ this.tableloading = true;
|
|
|
124
|
+ allTask(this.queryinfo).then((response) => {
|
|
|
125
|
+ const res = response.data
|
|
|
126
|
+ if (res.code != '200') {
|
|
|
127
|
+ return _this.$message.error('获取消息收发记录,失败!')
|
|
|
128
|
+ }
|
|
|
129
|
+ // 获取列表数据
|
|
|
130
|
+ _this.tableData = res.data
|
|
|
131
|
+ // 获取列表的总记录数
|
|
|
132
|
+ _this.total = res.total
|
|
|
133
|
+ this.tableloading = false;
|
|
|
134
|
+ _this.$message.success('获取消息收发记录,成功!')
|
|
|
135
|
+ }).catch(error => {
|
|
|
136
|
+
|
|
|
137
|
+ // 关闭加载
|
|
|
138
|
+ _this.$message.error(error.toString())
|
|
|
139
|
+ this.tableloading = false;
|
|
|
140
|
+
|
|
|
141
|
+ })
|
|
|
142
|
+ },
|
|
|
143
|
+ }
|
|
|
144
|
+
|
|
|
145
|
+ }
|
|
|
146
|
+</script>
|
|
|
147
|
+
|
|
|
148
|
+<style scoped>
|
|
|
149
|
+
|
|
|
150
|
+</style> |