增加流程配置 增加流程中心接口
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<div class="execution">
|
||||
<basic-container>
|
||||
<iframe class="iframe" :src="src"></iframe>
|
||||
</basic-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BasicContainer from './basic-container/index'
|
||||
export default {
|
||||
name: "ProcessMapping",
|
||||
components: {
|
||||
BasicContainer
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
modelId : '',
|
||||
name: '',
|
||||
actUrl: 'http://10.0.10.87:17210/bat-wkflow/modeler.html?modelId='
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.modelId = this.$route.query.modelId
|
||||
},
|
||||
computed: {
|
||||
src() {
|
||||
return `${this.actUrl}${this.modelId}`
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
breaks() {
|
||||
this.$router.push({path: '/'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.execution{
|
||||
width: 100%;
|
||||
}
|
||||
.iframe{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
min-height: 850px;
|
||||
border: 0;
|
||||
overflow: hidden;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="basic-container"
|
||||
:class="{'basic-container--block':block}">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "basicContainer",
|
||||
props: {
|
||||
block: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.basic-container{
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
</el-form>
|
||||
</div>
|
||||
<div slot="footer">
|
||||
<el-button round class="common-button-default" icon="el-icon-close" @click="closeDialog">{{$t('m.cancel')}}</el-button>
|
||||
<el-button round class="common-button-primary" icon="el-icon-check" type="primary" @click="confirmDialog">{{$t('m.confirm')}}</el-button>
|
||||
<el-button round class="common-button-default" icon="el-icon-close" @click="closeDialog">取消</el-button>
|
||||
<el-button round class="common-button-primary" icon="el-icon-check" type="primary" @click="confirmDialog">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
@@ -63,7 +63,7 @@ export default {
|
||||
},
|
||||
|
||||
created() {
|
||||
this.queryTablePage()
|
||||
// this.queryTablePage()
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
@@ -67,8 +67,6 @@
|
||||
<!--</table-tools-bar>-->
|
||||
<!-- v-btn-permission="'XBRKH5BP5K'"-->
|
||||
<div class="content">
|
||||
|
||||
<loading :loading="tableDataLoading">加载中...</loading>
|
||||
<el-table
|
||||
border
|
||||
ref="selection"
|
||||
@@ -100,9 +98,9 @@
|
||||
<el-table-column
|
||||
prop="createTime" sortable="custom"
|
||||
label="创建时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{$moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss')}}</span>
|
||||
</template>
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{$moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss')}}</span>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" width="60" fixed="right">
|
||||
@@ -111,25 +109,25 @@
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<el-button type="text" class="text" style="padding: 0">更多</el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item v-btn-permission="'B44TL4SB6RRC6MNLBYMS'" :command="[scope.row, '编辑']">
|
||||
<el-dropdown-item :command="[scope.row, '编辑']">
|
||||
编辑
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-btn-permission="'THJ77DKLPVHP9FHU7BQ6'" :command="[scope.row, '部署']">
|
||||
<el-dropdown-item :command="[scope.row, '部署']">
|
||||
部署
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-btn-permission="'HHD8BQ2DM4T3MFY73GXL'" :command="[scope.row, '复制']">
|
||||
<el-dropdown-item :command="[scope.row, '复制']">
|
||||
复制
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-btn-permission="'CK8WF2ESAS7XV7MSFW5X'" :command="[scope.row, '删除']">
|
||||
<el-dropdown-item :command="[scope.row, '删除']">
|
||||
删除
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-btn-permission="'7U5RD92APKFDYQ8YWQ2S'" :command="[scope.row, '流程']">
|
||||
<el-dropdown-item :command="[scope.row, '流程']">
|
||||
流程人员配置
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-btn-permission="'SQHZVHRSX69SD96XRBSQ'" :command="[scope.row, '预设']" v-if="processId.indexOf(scope.row.id)>-1">
|
||||
<el-dropdown-item :command="[scope.row, '预设']" v-if="processId.indexOf(scope.row.id)>-1">
|
||||
预设人员配置
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item v-btn-permission="'HVTVWZ32Y32XT7XXDYF9'" :command="[scope.row, '提示']">
|
||||
<el-dropdown-item :command="[scope.row, '提示']">
|
||||
提示语配置
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@@ -213,9 +211,9 @@ export default {
|
||||
searchForm: {
|
||||
standardKey: ''
|
||||
},
|
||||
pageNo: this.$route.params.page ? (+this.$route.params.page) : 1,
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
tableList: [],
|
||||
tableList: [{name:1}],
|
||||
editRowDialogVisible: false,
|
||||
editRowDialogData: undefined, // 新增时为 undefined null 或者 false 即可
|
||||
nowOrder: 'prder',
|
||||
@@ -315,30 +313,30 @@ export default {
|
||||
},
|
||||
// 查询、加载表格
|
||||
queryTablePage () {
|
||||
const formData = {
|
||||
current: this.pageNo,
|
||||
size: this.$store.getters.userInfo.configContent,
|
||||
order: this.nowOrder,
|
||||
...this.processForm
|
||||
// standNumber: this.searchForm.standardKey
|
||||
}
|
||||
this.$http.get('lawss/activiti/modelListPage',
|
||||
formData,
|
||||
{
|
||||
_this: this,
|
||||
loading: 'tableDataLoading'
|
||||
},
|
||||
res => {
|
||||
if (res.success) {
|
||||
this.tableList = res.result.records
|
||||
this.total = res.result.total
|
||||
} else {
|
||||
this.tableList = []
|
||||
this.total = 0
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
// const formData = {
|
||||
// current: this.pageNo,
|
||||
// size: this.$store.getters.userInfo.configContent,
|
||||
// order: this.nowOrder,
|
||||
// ...this.processForm
|
||||
// // standNumber: this.searchForm.standardKey
|
||||
// }
|
||||
// this.$http.get('lawss/activiti/modelListPage',
|
||||
// formData,
|
||||
// {
|
||||
// _this: this,
|
||||
// loading: 'tableDataLoading'
|
||||
// },
|
||||
// res => {
|
||||
// if (res.success) {
|
||||
// this.tableList = res.result.records
|
||||
// this.total = res.result.total
|
||||
// } else {
|
||||
// this.tableList = []
|
||||
// this.total = 0
|
||||
// this.$message.warning(res.message)
|
||||
// }
|
||||
// }, e => {
|
||||
// })
|
||||
},
|
||||
clearAllSearchs () {
|
||||
this.processForm = { name: '' }
|
||||
@@ -362,8 +360,8 @@ export default {
|
||||
switch (command[1]) {
|
||||
case '编辑':
|
||||
this.$router.push({
|
||||
path: '/ProcessMapping',
|
||||
query: { id: command[0].id }
|
||||
path: '/userCenter/processMapping',
|
||||
query: { id: 'AEHJB8YNJ3' ,modelId: command[0].id}
|
||||
})
|
||||
// this.editRow(command[0])
|
||||
break
|
||||
@@ -424,7 +422,7 @@ export default {
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$router.push({
|
||||
path: '/ProcessMapping',
|
||||
path: '/processMapping',
|
||||
query: { id: res.result }
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user