作者 小范

新增任务管理界面

@@ -6,4 +6,6 @@ export const deployment = params => { return http.get(`${baseUrl}/deployment/dep @@ -6,4 +6,6 @@ export const deployment = params => { return http.get(`${baseUrl}/deployment/dep
6 export const del = params => { return http.post(`${baseUrl}/deployment/del`, params); }; 6 export const del = params => { return http.post(`${baseUrl}/deployment/del`, params); };
7 7
8 export const instanceList = params => { return http.get(`${baseUrl}/process/instanceList`, params); }; 8 export const instanceList = params => { return http.get(`${baseUrl}/process/instanceList`, params); };
  9 +export const allTask = params => { return http.get(`${baseUrl}/task/allTask`, params); };
  10 +
9 11
@@ -91,6 +91,8 @@ import queryConfigure from './views/airtransport/queryConfigure.vue' @@ -91,6 +91,8 @@ import queryConfigure from './views/airtransport/queryConfigure.vue'
91 import transit from './views/transit/transit.vue' 91 import transit from './views/transit/transit.vue'
92 import technological from './views/technological/technological.vue' 92 import technological from './views/technological/technological.vue'
93 import example from './views/technological/example.vue' 93 import example from './views/technological/example.vue'
  94 +import task from './views/technological/task.vue'
  95 +
94 96
95 97
96 import departure from './views/airtransport/departure.vue' 98 import departure from './views/airtransport/departure.vue'
@@ -368,8 +370,7 @@ let routes = [ @@ -368,8 +370,7 @@ let routes = [
368 iconCls:'el-icon-goods', 370 iconCls:'el-icon-goods',
369 children:[ 371 children:[
370 {path:'/lostLoad',component:LostLoad,name:'落装业务申报'}, 372 {path:'/lostLoad',component:LostLoad,name:'落装业务申报'},
371 - {path:'/lostLoadChange',component:LostLoadChange,name:'改配业务申报'}  
372 - 373 + {path:'/lostLoadChange',component:LostLoadChange,name:'改配业务申报'},
373 ] 374 ]
374 }, 375 },
375 { 376 {
@@ -457,6 +458,7 @@ let routes = [ @@ -457,6 +458,7 @@ let routes = [
457 children: [ 458 children: [
458 {path:'/technological',component:technological,name:'部署管理'}, 459 {path:'/technological',component:technological,name:'部署管理'},
459 {path:'/example',component:example,name:'部署实例管理'}, 460 {path:'/example',component:example,name:'部署实例管理'},
  461 + {path:'/task',component:task,name:'任务管理'},
460 462
461 ] 463 ]
462 464
  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>
1 { 1 {
2 - "nmmsVer": "1.19" 2 + "nmmsVer": "1.20"
3 } 3 }