main
赵培友 3 years ago
parent 9e5313a660
commit 73c9d59125
  1. 108
      src/const/workflow/crontab.js
  2. 28
      src/views/journal/index.vue
  3. 14
      src/views/maintenance/database1.vue
  4. 14
      src/views/maintenance/system.vue
  5. 14
      src/views/maintenance/task.vue
  6. 1
      src/views/plugin/workflow/process/components/form.vue
  7. 288
      src/views/plugin/workflow/process/crontab.vue
  8. 14
      src/views/plugin/workflow/process/todo.vue
  9. 14
      src/views/plugin/workflow/process/workorder.vue

@ -0,0 +1,108 @@
export const tableOption = {
index: true,
indexLabel: "序号",
indexWidth:120,
selection: false,
border: false,
gutter: 60, //设置input的大小
headerAlign: "left",
align: "left",
menuAlign:'left',
menuHeaderAlign:'left',
menuBtn: true,
editBtn: false,
delBtn: false,
addBtn: false,
tip: false,
searchMenuSpan: 3, //控制搜索按钮
columnBtn: false,
refreshBtn: false,
// dialogCustomClass: "custom",
header: false,
menuWidth:200,
column: [
{
type: "input",
label: "任务父类",
prop: "taskParent",
align: "left",
overHidden: true,
},
{
type: "input",
label: "任务种类",
prop: "taskType",
align: "left",
overHidden: true,
},
{
type: "input",
label: "操作模块",
prop: "operationModule",
align: "left",
overHidden: true,
},
// 改
{
type: "input",
label: "操作对象",
prop: "operationModule",
align: "left",
overHidden: true,
},
{
type: "input",
label: "当前责任人",
prop: "currentResponsiblePerson",
align: "left",
overHidden: true,
},
{
type: "input",
label: "管理部门",
prop: "dept",
align: "left",
overHidden: true,
},
{
type: "input",
label: "运维公司",
prop: "currentResponsiblePerson",
align: "left",
overHidden: true,
},
{
type: "input",
label: "发起人",
prop: "sponsor",
align: "left",
overHidden: true,
},
{
label: "创建时间",
type: "datetime",
overHidden: true,
prop: "createTime",
format: "yyyy-MM-dd HH:mm",
valueFormat: "yyyy-MM-dd HH:mm:ss",
},
// 改
{
type: "input",
label: "重复模式",
prop: "approvalStatus",
align: "left",
overHidden: true,
},
// 改
{
label: "终止日期",
type: "datetime",
overHidden: true,
prop: "expectedCompletionTime",
format: "yyyy-MM-dd HH:mm",
valueFormat: "yyyy-MM-dd HH:mm:ss",
},
],
}

@ -53,12 +53,12 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
<el-button class="search-btn" @click="searchHandle(1)"
>查询</el-button
>
<div class="search-reset" @click="searchHandle(2)">
<i class="el-icon-refresh-right" style="font-size: 20px"></i>
</div>
<el-button class="search-btn" @click="searchHandle(1)"
>查询</el-button
>
<div class="search-reset" @click="searchHandle(2)">
<i class="el-icon-refresh-right" style="font-size: 20px"></i>
</div>
</div>
</div>
</el-form>
@ -94,9 +94,9 @@ export default {
},
option: tableOption,
page: {
current: 1,
pageSize: 10,
currentPage: 1,
total: 0,
size: 10,
},
//
tableData: [],
@ -125,7 +125,7 @@ export default {
//
onLoad() {
this.loading = true;
const { current, size } = this.page;
const { currentPage, pageSize } = this.page;
if (
this.searchForm.timeArr !== null &&
this.searchForm.timeArr !== undefined
@ -141,7 +141,7 @@ export default {
startTime,
endTime,
};
getList({ current, size, ...params }).then((res) => {
getList({ current:currentPage, size:pageSize, ...params }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
this.tableData = records;
@ -150,16 +150,16 @@ export default {
},
//
currentChange(currentPage) {
this.page.current = currentPage;
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.size = pageSize;
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.current = 1;
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {
timeArr: null,
@ -191,7 +191,7 @@ export default {
margin-right: 20px;
}
.search-reset {
display:inline-block;
display: inline-block;
width: 46px;
height: 44px !important;
background: #ff9130;

@ -115,9 +115,9 @@ export default {
searchForm: {},
option: tableOption,
page: {
current: 1,
currentPage: 1,
total: 0,
size: 10,
pageSize: 10,
},
//
tableData: [],
@ -166,8 +166,8 @@ export default {
//
onLoad() {
this.loading = true;
const { current, size } = this.page;
getList({ current, size, ...this.searchForm }).then((res) => {
const { currentPage, pageSize } = this.page;
getList({ current:currentPage, size:pageSize, ...this.searchForm }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
this.tableData = records;
@ -176,16 +176,16 @@ export default {
},
//
currentChange(currentPage) {
this.page.current = currentPage;
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.size = pageSize;
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.current = 1;
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {};
}

@ -117,9 +117,9 @@ export default {
searchForm: {},
option: tableOption,
page: {
current: 1,
currentPage: 1,
total: 0,
size: 10,
pageSize: 10,
},
//
tableData: [],
@ -165,8 +165,8 @@ export default {
//
onLoad() {
this.loading = true;
const { current, size } = this.page;
getList({ current, size, ...this.searchForm }).then((res) => {
const { currentPage, pageSize } = this.page;
getList({ current:currentPage, size:pageSize, ...this.searchForm }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
this.tableData = records;
@ -175,16 +175,16 @@ export default {
},
//
currentChange(currentPage) {
this.page.current = currentPage;
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.size = pageSize;
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.current = 1;
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {};
}

@ -117,9 +117,9 @@ export default {
conpanyList: [{ label: "运维公司", value: 1 }],
option: tableOption,
page: {
current: 1,
currentPage: 1,
total: 0,
size: 10,
pageSize: 10,
},
//
tableData: [],
@ -152,7 +152,7 @@ export default {
//
onLoad() {
this.loading = true;
const { current, size } = this.page;
const { currentPage, pageSize } = this.page;
if (
this.searchForm.timeArr !== null &&
this.searchForm.timeArr !== undefined
@ -176,7 +176,7 @@ export default {
startTime,
endTime,
};
getList({ current, size, ...params }).then((res) => {
getList({ current:currentPage, size:pageSize, ...params }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
this.tableData = records;
@ -185,16 +185,16 @@ export default {
},
//
currentChange(currentPage) {
this.page.current = currentPage;
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.size = pageSize;
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.current = 1;
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {
timeArr: null,

@ -297,6 +297,7 @@ export default {
"xitongmokuaishujubiao"
);
xitongmokuaishujubiao.dicData = res.data.data;
this.form.type = obj.type
});
},
//

@ -0,0 +1,288 @@
<template>
<div class="cus-container">
<el-form :model="searchForm">
<div class="search">
<el-select
v-model="searchForm.taskParent"
placeholder="任务父类"
class="search-select"
clearable
>
<el-option
v-for="item in taskParent"
:key="item.dictValue"
:label="item.dictValue"
:value="item.dictValue"
>
</el-option>
</el-select>
<el-select
v-model="searchForm.taskType"
placeholder="任务种类"
class="search-select"
clearable
>
<el-option
v-for="item in taskInfos"
:key="item.taskTypeName"
:label="item.taskTypeName"
:value="item.taskTypeName"
>
</el-option>
</el-select>
<el-select
v-model="searchForm.currentResponsiblePerson"
placeholder="当前责任人"
class="search-select"
clearable
>
<el-option
v-for="item in users"
:key="item.realName"
:label="item.realName"
:value="item.realName"
>
</el-option>
</el-select>
<el-select
v-model="searchForm.sponsor"
placeholder="发起人"
class="search-select"
clearable
>
<el-option
v-for="item in users"
:key="item.realName"
:label="item.realName"
:value="item.realName"
>
</el-option>
</el-select>
<el-select
v-model="searchForm.dept"
placeholder="运维公司"
class="search-select"
clearable
>
<el-option
v-for="item in depts"
:key="item.deptName"
:label="item.deptName"
:value="item.deptName"
>
</el-option>
</el-select>
<el-select
v-model="searchForm.approvalStatus"
placeholder="重复模式"
class="search-select"
clearable
>
<el-option
v-for="item in statusList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-date-picker
style="width: 314px; margin-right: 20px"
v-model="searchForm.timeArr"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm:ss"
class="search-picker"
type="datetimerange"
range-separator="至"
start-placeholder="创建开始日期"
end-placeholder="创建结束日期"
></el-date-picker>
<el-button class="search-btn" @click="searchHandle(1)"
>查询</el-button
>
<div class="search-reset" @click="searchHandle(2)">
<i class="el-icon-refresh-right" style="font-size: 20px"></i>
</div>
</div>
</el-form>
<div style="margin-top: 30px">
<avue-crud
id="avue-id"
ref="crud"
:option="option"
:data="tableData"
:page.sync="page"
:table-loading="loading"
@current-change="currentChange"
@size-change="sizeChange"
>
<template slot="menu" slot-scope="{ row }">
<el-button
@click="dynamicRoute(row, 'detail')"
>详情</el-button
>
<el-button
type="danger"
@click="stopHandle(row)"
>终止</el-button
>
</template>
</avue-crud>
</div>
</div>
</template>
<script>
import {
todoList as getList,
conditionalData,
} from "@/api/plugin/workflow/workorder.js";
import { tableOption } from "@/const/workflow/crontab.js";
import { mapGetters } from "vuex";
import exForm from "../mixins/ex-form";
export default {
mixins: [exForm],
data() {
return {
searchForm: {},
option: tableOption,
page: {
currentPage: 1,
total: 0,
pageSize: 10,
},
//
tableData: [],
loading: false,
taskParent: [],
taskInfos: [],
depts: [],
users: [],
statusList: [
{
label: "审批中",
value: "审批中",
},
{
label: "进行中",
value: "进行中",
},
{
label: "已完成",
value: "已完成",
},
],
};
},
created() {
this.dictBiz();
this.onLoad();
},
computed: {
...mapGetters(["permission"]),
},
methods: {
dictBiz() {
conditionalData().then((res) => {
const { taskParent, taskInfos, depts, users, taskLevel } = res.data.data;
this.taskParent = taskParent;
this.taskInfos = taskInfos;
this.depts = depts;
this.users = users;
this.taskLevel = taskLevel
});
},
//
onLoad() {
this.loading = true;
const { currentPage, pageSize } = this.page;
if (
this.searchForm.timeArr !== null &&
this.searchForm.timeArr !== undefined
) {
this.searchForm.startTime = this.searchForm.timeArr[0];
this.searchForm.endTime = this.searchForm.timeArr[1];
}
getList({ current:currentPage, size:pageSize,...this.searchForm }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
this.tableData = records;
this.loading = false;
});
},
//
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {
timeArr: null,
};
}
this.onLoad();
},
//
stopHandle(row) {
this.$confirm("此操作会终止该条重复任务,且无法恢复,确定停止吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
// remove(row.id).then((res) => {
// //
// console.log(res);
// this.$message.success("!");
// this.onLoad(this.page[0]);
// });
})
.catch(() => {
// this.$message({ type: "info", message: "" });
});
}
},
};
</script>
<style lang="scss" scoped>
.search-line {
margin-top: 20px;
display: flex;
justify-content: space-between;
}
.search-select {
width: 150px;
margin-right: 20px;
}
.search-input {
width: 288px;
}
.search-btn {
width: 130px;
height: 46px !important;
background: #2e92f6;
color: #fff;
margin: 0 20px;
}
.search-reset {
display: inline-block;
width: 46px;
height: 44px !important;
background: #ff9130;
color: #fff;
text-align: center;
line-height: 46px;
cursor: pointer;
}
/deep/ .el-input__inner {
height: 46px;
}
</style>

@ -159,9 +159,9 @@ export default {
conpanyList: [{ label: "运维公司", value: 1 }],
option: tableOption,
page: {
current: 1,
currentPage: 1,
total: 0,
size: 10,
pageSize: 10,
},
//
tableData: [],
@ -207,7 +207,7 @@ export default {
//
onLoad() {
this.loading = true;
const { current, size } = this.page;
const { currentPage, pageSize } = this.page;
if (
this.searchForm.timeArr !== null &&
this.searchForm.timeArr !== undefined
@ -215,7 +215,7 @@ export default {
this.searchForm.startTime = this.searchForm.timeArr[0];
this.searchForm.endTime = this.searchForm.timeArr[1];
}
getList({ current, size,...this.searchForm }).then((res) => {
getList({ current:currentPage, size:pageSize,...this.searchForm }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
this.tableData = records;
@ -224,16 +224,16 @@ export default {
},
//
currentChange(currentPage) {
this.page.current = currentPage;
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.size = pageSize;
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.current = 1;
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {
timeArr: null,

@ -187,9 +187,9 @@ export default {
conpanyList: [{ label: "运维公司", value: 1 }],
option: tableOption,
page: {
current: 1,
currentPage: 1,
total: 0,
size: 10,
pageSize: 10,
},
//
tableData: [],
@ -233,7 +233,7 @@ export default {
//
onLoad() {
this.loading = true;
const { current, size } = this.page;
const { currentPage, pageSize } = this.page;
if (
this.searchForm.timeArr !== null &&
this.searchForm.timeArr !== undefined
@ -248,7 +248,7 @@ export default {
this.searchForm.startTime2 = this.searchForm.timeArr2[0];
this.searchForm.endTime2 = this.searchForm.timeArr2[1];
}
getList({ current, size,...this.searchForm }).then((res) => {
getList({ current:currentPage, size:pageSize ,...this.searchForm }).then((res) => {
const { total, records } = res.data.data;
this.page.total = total;
@ -258,16 +258,16 @@ export default {
},
//
currentChange(currentPage) {
this.page.current = currentPage;
this.page.currentPage = currentPage;
this.onLoad();
},
sizeChange(pageSize) {
this.page.size = pageSize;
this.page.pageSize = pageSize;
this.onLoad();
},
//
searchHandle(index) {
this.page.current = 1;
this.page.currentPage = 1;
if (index === 2) {
this.searchForm = {
timeArr: null,

Loading…
Cancel
Save