parent
aba7017566
commit
6323a79de6
11 changed files with 392 additions and 38 deletions
@ -1,9 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
|
|
||||||
echo "====================打包文件====================" |
|
||||||
yarn build |
|
||||||
echo "====================传输文件====================" |
|
||||||
|
|
||||||
scp -P 22 -r ./dist/** root@192.168.0.157:/docker/nginx/web/html |
|
||||||
|
|
||||||
echo "====================部署完毕====================" |
|
||||||
@ -0,0 +1,185 @@ |
|||||||
|
<template> |
||||||
|
<basic-container> |
||||||
|
<avue-crud :option="option" |
||||||
|
:table-loading="loading" |
||||||
|
:data="data" |
||||||
|
:page="page" |
||||||
|
v-model="form" |
||||||
|
@search-change="searchChange" |
||||||
|
@search-reset="searchReset" |
||||||
|
@selection-change="selectionChange" |
||||||
|
@current-change="currentChange" |
||||||
|
@size-change="sizeChange" |
||||||
|
@refresh-change="onLoad(page, query)" |
||||||
|
@on-load="onLoad"> |
||||||
|
<template slot="menu" |
||||||
|
slot-scope="{row}"> |
||||||
|
<el-button type="text" |
||||||
|
size="small" |
||||||
|
icon="el-icon-info" |
||||||
|
@click="handleDetail(row)">详情</el-button> |
||||||
|
<el-button type="text" |
||||||
|
size="small" |
||||||
|
icon="el-icon-search" |
||||||
|
@click="handleFlow(row)">流程图</el-button> |
||||||
|
</template> |
||||||
|
</avue-crud> |
||||||
|
|
||||||
|
<el-dialog :visible.sync="bpmnVisible" |
||||||
|
append-to-body |
||||||
|
destroy-on-close |
||||||
|
title="流程图"> |
||||||
|
<wf-design ref="bpmn" |
||||||
|
style="height: 500px;" |
||||||
|
access-key="OFdH37<Bs9[8A74vp)5B59Fu3c1I7{N:" |
||||||
|
:options="bpmnOption"></wf-design> |
||||||
|
</el-dialog> |
||||||
|
</basic-container> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { myDoneList as getList, detail } from "@/api/plugin/workflow/process"; |
||||||
|
|
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
form: {}, |
||||||
|
query: {}, |
||||||
|
loading: true, |
||||||
|
page: { |
||||||
|
pageSize: 10, |
||||||
|
currentPage: 1, |
||||||
|
total: 0 |
||||||
|
}, |
||||||
|
selectionList: [], |
||||||
|
option: { |
||||||
|
size: 'mini', |
||||||
|
height: 'auto', |
||||||
|
calcHeight: 30, |
||||||
|
tip: false, |
||||||
|
border: true, |
||||||
|
selection: true, |
||||||
|
dialogType: 'drawer', |
||||||
|
addBtn: false, |
||||||
|
editBtn: false, |
||||||
|
delBtn: false, |
||||||
|
align: 'center', |
||||||
|
searchMenuSpan: 6, |
||||||
|
column: [ |
||||||
|
{ |
||||||
|
label: '流程名称', |
||||||
|
prop: 'processDefinitionName', |
||||||
|
search: true, |
||||||
|
overHidden: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '流程标识', |
||||||
|
prop: 'processDefinitionKey', |
||||||
|
search: true, |
||||||
|
overHidden: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: "流程分类", |
||||||
|
type: "select", |
||||||
|
row: true, |
||||||
|
dicUrl: '/api/blade-workflow/design/category/tree', |
||||||
|
props: { |
||||||
|
label: 'name', |
||||||
|
value: 'id' |
||||||
|
}, |
||||||
|
prop: "category", |
||||||
|
search: true, |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '当前节点', |
||||||
|
prop: 'taskName', |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '申请时间', |
||||||
|
prop: 'createTime', |
||||||
|
type: 'datetime', |
||||||
|
format: 'yyyy-MM-dd HH:mm', |
||||||
|
width: 165, |
||||||
|
}, |
||||||
|
] |
||||||
|
}, |
||||||
|
data: [], |
||||||
|
bpmnVisible: false, |
||||||
|
bpmnOption: {} |
||||||
|
}; |
||||||
|
}, |
||||||
|
computed: { |
||||||
|
ids() { |
||||||
|
let ids = []; |
||||||
|
this.selectionList.forEach(ele => { |
||||||
|
ids.push(ele.id); |
||||||
|
}); |
||||||
|
return ids.join(","); |
||||||
|
} |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
handleDetail(row) { |
||||||
|
const param = { |
||||||
|
taskId: row.taskId, |
||||||
|
processInsId: row.processInstanceId |
||||||
|
} |
||||||
|
this.$router.push('/workflow/process/detail/' + Buffer.from(JSON.stringify(param)).toString('base64')) |
||||||
|
}, |
||||||
|
handleFlow(row) { |
||||||
|
const { taskId, processInstanceId } = row |
||||||
|
detail({ taskId, processInsId: processInstanceId }).then(res => { |
||||||
|
const { process, flow } = res.data.data |
||||||
|
|
||||||
|
const flows = [] |
||||||
|
flow.forEach(f => { |
||||||
|
const ff = { |
||||||
|
id: f.historyActivityId |
||||||
|
} |
||||||
|
if (f.historyActivityType == 'sequenceFlow') ff.class = "lineWarn" |
||||||
|
else ff.class = "nodeWarn" |
||||||
|
flows.push(ff) |
||||||
|
}) |
||||||
|
|
||||||
|
this.bpmnOption = { |
||||||
|
mode: 'view', |
||||||
|
xml: process.xml, |
||||||
|
flows |
||||||
|
} |
||||||
|
|
||||||
|
this.bpmnVisible = true |
||||||
|
}) |
||||||
|
}, |
||||||
|
searchReset() { |
||||||
|
this.query = {}; |
||||||
|
this.onLoad(this.page); |
||||||
|
}, |
||||||
|
searchChange(params, done) { |
||||||
|
this.query = params; |
||||||
|
this.page.currentPage = 1; |
||||||
|
this.onLoad(this.page, params); |
||||||
|
done(); |
||||||
|
}, |
||||||
|
selectionChange(list) { |
||||||
|
this.selectionList = list; |
||||||
|
}, |
||||||
|
currentChange(currentPage) { |
||||||
|
this.page.currentPage = currentPage; |
||||||
|
}, |
||||||
|
sizeChange(pageSize) { |
||||||
|
this.page.pageSize = pageSize; |
||||||
|
}, |
||||||
|
onLoad(page, params = {}) { |
||||||
|
this.loading = true; |
||||||
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
||||||
|
const data = res.data.data; |
||||||
|
this.page.total = data.total; |
||||||
|
this.data = data.records; |
||||||
|
this.loading = false; |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
}; |
||||||
|
</script> |
||||||
|
|
||||||
|
<style> |
||||||
|
</style> |
||||||
Loading…
Reference in new issue