增加流程配置
This commit is contained in:
@@ -17,5 +17,29 @@ export default {
|
|||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//
|
//部署接口
|
||||||
|
deploy (data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/lawss/activiti/get_list_by_instance',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//获取流程配置列表
|
||||||
|
getModelListPage (data){
|
||||||
|
return request({
|
||||||
|
url: '/api/modelList',
|
||||||
|
method: 'get',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//新增模板
|
||||||
|
addModel (data){
|
||||||
|
return request({
|
||||||
|
url: '/api/createModel',
|
||||||
|
method: 'get',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="content">
|
<div class="content-height content-center">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<span>流程中心</span>
|
<span>流程中心</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="searchForm">
|
<div class="search">
|
||||||
<div class="item">
|
<el-row>
|
||||||
<div>流程编号:</div>
|
<el-col :span="20">
|
||||||
<el-input v-model="form.id" ></el-input>
|
<div class="search-box-left">
|
||||||
</div>
|
<label>流程编号:</label>
|
||||||
<div class="item">
|
<el-input v-model="form.id" ></el-input>
|
||||||
<div>流程名称:</div>
|
<label>流程名称:</label>
|
||||||
<el-input v-model="form.name"></el-input>
|
<el-input v-model="form.name"></el-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
</el-col>
|
||||||
<el-button type="primary" @click="search">查询</el-button>
|
<el-col :span="4" align="right">
|
||||||
<el-button type="" @click="reset">重置</el-button>
|
<div class="search-box-right">
|
||||||
</div>
|
<el-button type="primary" @click="search">查询</el-button>
|
||||||
|
<el-button type="" @click="reset">重置</el-button>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<tabs :tableData="tableData"/>
|
<tabs :tableData="tableData"/>
|
||||||
@@ -63,11 +67,7 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content{
|
.content-center{
|
||||||
min-height: calc(100vh - 60px - 20px);
|
|
||||||
box-shadow: 0 6px 11px 0 rgba(163, 163, 163, 0.2);
|
|
||||||
border-radius: 6px;
|
|
||||||
background: #FFFFFF;
|
|
||||||
.title {
|
.title {
|
||||||
border-bottom: 1px solid #EBEEF5;
|
border-bottom: 1px solid #EBEEF5;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
@@ -80,26 +80,58 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
|||||||
color: #262626;
|
color: #262626;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.searchForm{
|
.search {
|
||||||
width: 1200px;
|
.search-box-left {
|
||||||
display: flex;
|
padding-top: 20px;
|
||||||
align-items: center;
|
display: flex;
|
||||||
margin: 20px 0 0 22px;
|
justify-content: flex-start;
|
||||||
.item{
|
align-items: center;
|
||||||
width: 300px;
|
|
||||||
display: flex;
|
label {
|
||||||
align-items: center;
|
font-size: 14px;
|
||||||
font-size: 14px;
|
font-weight: 400;
|
||||||
font-weight: 400;
|
color: #595959;
|
||||||
color: #595959;
|
margin-right: 5px;
|
||||||
margin-right: 5px;
|
padding-left: 22px;
|
||||||
padding-left: 22px;
|
|
||||||
}
|
|
||||||
::v-deep .el-input{
|
|
||||||
width: 200px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.year {
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
padding: 0 15px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input {
|
||||||
|
width: 167px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1366px) {
|
||||||
|
::v-deep .el-input {
|
||||||
|
width: 135px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-button {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-box-right {
|
||||||
|
padding-top: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
padding-right: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate-box {
|
||||||
|
padding-left: 13px;
|
||||||
|
padding-bottom: 11px;
|
||||||
|
padding-top: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.tabs{
|
.tabs{
|
||||||
margin: 20px 0 0 13px;
|
margin: 20px 0 0 13px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
return {
|
return {
|
||||||
modelId : '',
|
modelId : '',
|
||||||
name: '',
|
name: '',
|
||||||
actUrl: 'http://10.0.10.87:17210/bat-wkflow/modeler.html?modelId='
|
actUrl: 'http://localhost:17210/bat-wkflow/modeler.html?modelId='
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
@@ -1,190 +1,84 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;background-color: #fff;position: relative;overflow: hidden;">
|
<div class="content-height configBox">
|
||||||
<div style="height:50px;margin-top: 20px;overflow:hidden;">
|
<div class="title">
|
||||||
<el-form class="hight_form label-input-form" :modal="processForm" :inline="true"
|
<span>报告管理</span>
|
||||||
label-width="103px" @keyup.enter.native="queryTablePage()">
|
|
||||||
<el-col :xl="6" :lg="8" >
|
|
||||||
<el-form-item label="流程名称:" prop="name" class="search-item search-item-last">
|
|
||||||
<el-input :maxlength='100' v-model="processForm.name"
|
|
||||||
placeholder="请输入流程名称"
|
|
||||||
clearable/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :xl=" 6" :lg="8">
|
|
||||||
<el-form-item class="btn-box">
|
|
||||||
<el-button size="small" type="primary"
|
|
||||||
class="common-button-primary img-button"
|
|
||||||
@click="queryTablePage()">查询
|
|
||||||
</el-button>
|
|
||||||
<el-button size="small" class="common-button-default img-button"
|
|
||||||
@click="clearAllSearchs('standCommonlySearch')">
|
|
||||||
重置
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-form>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="action-bar" style="text-align: left;width:100%;">
|
<div class="search">
|
||||||
<el-button
|
<el-row>
|
||||||
size="small"
|
<!-- <el-col :span="5">-->
|
||||||
type="primary"
|
<!-- <div class="search-box-left">-->
|
||||||
class="common-button-primary img-button"
|
<!-- <label>流程名称:</label>-->
|
||||||
@click="addRow"
|
<!-- <el-input v-model="processForm.name" ></el-input>-->
|
||||||
>新增
|
<!-- </div>-->
|
||||||
</el-button>
|
<!-- </el-col>-->
|
||||||
|
|
||||||
|
<!-- <el-col :span="4" align="right">-->
|
||||||
|
<!-- <div class="search-box-right">-->
|
||||||
|
<!-- <el-button type="primary" @click="queryTablePage">查询</el-button>-->
|
||||||
|
<!-- <el-button type="" @click="clearAllSearchs">重置</el-button>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<el-col :span="24">
|
||||||
|
<div class="operate-box">
|
||||||
|
<el-button @click="addRow">新增</el-button>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 100%;">
|
|
||||||
<!--<table-tools-bar>-->
|
|
||||||
<!-- <div slot="left">-->
|
|
||||||
<!-- <div class="search-area">-->
|
|
||||||
<!-- <el-form :model="searchForm" inline class="label-input-form">-->
|
|
||||||
<!-- <el-form-item :label="$t('m.standardNumAndName')" prop="standardKey" class="search-item">-->
|
|
||||||
<!-- <el-input-->
|
|
||||||
<!-- v-model="searchForm.standardKey"-->
|
|
||||||
<!-- :placeholder="$t('m.standardNumAndNameTips')"-->
|
|
||||||
<!-- clearable-->
|
|
||||||
<!-- :maxlength="100"/>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- <el-form-item class="search-item btn-box">-->
|
|
||||||
<!-- <el-button-->
|
|
||||||
<!-- icon="el-icon-search"-->
|
|
||||||
<!-- type="primary"-->
|
|
||||||
<!-- class="common-button-primary"-->
|
|
||||||
<!-- round-->
|
|
||||||
<!-- @click="searchBtn"-->
|
|
||||||
<!-- ></el-button>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- <el-form-item class="search-item btn-box">-->
|
|
||||||
<!-- <el-button-->
|
|
||||||
<!-- class="common-button-default"-->
|
|
||||||
<!-- icon="el-icon-refresh-left"-->
|
|
||||||
<!-- round-->
|
|
||||||
<!-- @click="resetSearchForm">{{$t('m.clearQuery')}}</el-button>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- </el-form>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!--</table-tools-bar>-->
|
|
||||||
<!-- v-btn-permission="'XBRKH5BP5K'"-->
|
|
||||||
<div class="content">
|
|
||||||
<el-table
|
|
||||||
border
|
|
||||||
ref="selection"
|
|
||||||
:data="tableList"
|
|
||||||
tooltip-effect="dark"
|
|
||||||
style="width: 100%;"
|
|
||||||
height="100%"
|
|
||||||
@sort-change="sortChange($event, 'queryTablePage')"
|
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
||||||
fontWeight: 'bold', height: '48px'}"
|
|
||||||
row-key="id"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
type="index"
|
|
||||||
width="55"
|
|
||||||
label="序号"
|
|
||||||
align="center">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="name"
|
|
||||||
label="流程名称"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
prop="categoryName"
|
|
||||||
label="流程类型"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<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>-->
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
<el-table-column label="操作" align="center" width="60" fixed="right">
|
<div class="table">
|
||||||
<template slot-scope="scope">
|
<vxe-table ref="xTable" :data="tableList" :empty-render="{name: 'NotData'}" align="center" border stripe v-table-min-height="'calc(100vh - 320px)'">
|
||||||
<div @click.stop style="display: inline-block">
|
<vxe-column show-overflow show-header-overflow field="name" title="流程名称"></vxe-column>
|
||||||
<el-dropdown trigger="click" @command="handleCommand">
|
<vxe-column show-overflow show-header-overflow field="categoryName" title="流程类型"></vxe-column>
|
||||||
<el-button type="text" class="text" style="padding: 0">更多</el-button>
|
<vxe-column show-overflow show-header-overflow field="createTime" title="创建时间"></vxe-column>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<vxe-column show-overflow show-header-overflow title="操作" width="200" fixed="right">
|
||||||
<el-dropdown-item :command="[scope.row, '编辑']">
|
<template #default="{ row }">
|
||||||
编辑
|
<el-button type="text" @click="editRow(row)">编辑</el-button>
|
||||||
</el-dropdown-item>
|
<el-button type="text" @click="deploy(row)">部署</el-button>
|
||||||
<el-dropdown-item :command="[scope.row, '部署']">
|
</template>
|
||||||
部署
|
</vxe-column>
|
||||||
</el-dropdown-item>
|
</vxe-table>
|
||||||
<el-dropdown-item :command="[scope.row, '复制']">
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="q.current"
|
||||||
复制
|
:page-sizes="[5, 10, 20]" :page-size="q.size" layout="total, sizes, prev, pager, next, jumper"
|
||||||
</el-dropdown-item>
|
:total="total" />
|
||||||
<el-dropdown-item :command="[scope.row, '删除']">
|
|
||||||
删除
|
|
||||||
</el-dropdown-item>
|
|
||||||
<el-dropdown-item :command="[scope.row, '流程']">
|
|
||||||
流程人员配置
|
|
||||||
</el-dropdown-item>
|
|
||||||
<el-dropdown-item :command="[scope.row, '预设']" v-if="processId.indexOf(scope.row.id)>-1">
|
|
||||||
预设人员配置
|
|
||||||
</el-dropdown-item>
|
|
||||||
<el-dropdown-item :command="[scope.row, '提示']">
|
|
||||||
提示语配置
|
|
||||||
</el-dropdown-item>
|
|
||||||
</el-dropdown-menu>
|
|
||||||
</el-dropdown>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<pagination :total="total" :page="pageNo" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
|
||||||
|
|
||||||
<edit-process
|
|
||||||
:visible="editRowDialogVisible"
|
|
||||||
:data="editRowDialogData"
|
|
||||||
@close="handleEditRowDialogClose"
|
|
||||||
@success="handleEditRowDialogSuccess"
|
|
||||||
></edit-process>
|
|
||||||
<el-dialog :close-on-click-modal="false"
|
<el-dialog :close-on-click-modal="false"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
:title="title"
|
:title="title"
|
||||||
@close="closeDialog"
|
@close="closeDialog"
|
||||||
width="400px"
|
width="300px"
|
||||||
|
class="addDialog"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="formData"
|
:model="formData"
|
||||||
class="label-input-form"
|
class="addform"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
inline
|
inline
|
||||||
>
|
>
|
||||||
<el-form-item label="流程类型" prop="category" class="add-form-item">
|
<el-row>
|
||||||
<el-select v-model="formData.category" placeholder="请选择流程类型" clearable>
|
<el-form-item label="模型名称" class="add-form-item">
|
||||||
<el-option v-for="opt in typeList" :value="opt.value" :key="opt.value" :label="opt.label">{{
|
<el-input
|
||||||
opt.label}}
|
v-model="formData.name"
|
||||||
</el-option>
|
placeholder="请输入模型名称"
|
||||||
</el-select>
|
clearable
|
||||||
</el-form-item>
|
:maxlength="100"></el-input>
|
||||||
<el-form-item label="模型名称" class="add-form-item">
|
</el-form-item>
|
||||||
<el-input
|
</el-row>
|
||||||
v-model="formData.name"
|
<el-row>
|
||||||
placeholder="请输入模型名称"
|
<el-form-item label="模型描述" class="add-form-item">
|
||||||
clearable
|
<el-input
|
||||||
:maxlength="100"></el-input>
|
v-model="formData.desc"
|
||||||
</el-form-item>
|
placeholder="请输入模型描述"
|
||||||
<el-form-item label="模型描述" class="add-form-item">
|
clearable
|
||||||
<el-input
|
:maxlength="100"></el-input>
|
||||||
v-model="formData.desc"
|
</el-form-item>
|
||||||
placeholder="请输入模型描述"
|
</el-row>
|
||||||
clearable
|
|
||||||
:maxlength="100"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer">
|
<div slot="footer" class="add-footer">
|
||||||
<el-button size="small" class="common-button-default" @click="closeDialog">
|
<el-button size="big" class="common-button-default" @click="closeDialog">
|
||||||
取消
|
取消
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="small" class="common-button-primary" type="primary"
|
<el-button size="big" class="common-button-primary" type="primary"
|
||||||
@click="confirmDialog">确认
|
@click="confirmDialog">确认
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -201,191 +95,43 @@ export default {
|
|||||||
components: { EditProcess },
|
components: { EditProcess },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
tableDataLoading: false,
|
formData: {
|
||||||
|
name: '',
|
||||||
|
desc: ''
|
||||||
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
visible: false,
|
q: {
|
||||||
formData: {},
|
current: 1,
|
||||||
title: '添加流程',
|
size: 10
|
||||||
selectRoleId: '',
|
|
||||||
typeList: [],
|
|
||||||
searchForm: {
|
|
||||||
standardKey: ''
|
|
||||||
},
|
},
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
tableList: [{name:1}],
|
tableList: [{name:1}],
|
||||||
editRowDialogVisible: false,
|
|
||||||
editRowDialogData: undefined, // 新增时为 undefined null 或者 false 即可
|
|
||||||
nowOrder: 'prder',
|
|
||||||
processId: ['6450334', '6465017', '6482501', '6482508', '6485001', '6482515'],
|
|
||||||
processForm: {
|
processForm: {
|
||||||
name: ''
|
name: ''
|
||||||
}
|
},
|
||||||
|
visible:false,
|
||||||
|
title: '添加流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// 表格排序
|
handleCurrentChange(page) {
|
||||||
sortChange (sortObj, tableName) {
|
this.q.current = page
|
||||||
console.log(sortObj)
|
|
||||||
if (sortObj.order === 'ascending') {
|
|
||||||
this.nowOrder = 'asc'
|
|
||||||
} else if (sortObj.order === 'descending') {
|
|
||||||
this.nowOrder = 'desc'
|
|
||||||
} else {
|
|
||||||
this.nowOrder = 'prder'
|
|
||||||
}
|
|
||||||
this[tableName]()
|
|
||||||
},
|
|
||||||
// 根据条件查询信息
|
|
||||||
searchBtn () {
|
|
||||||
this.resetPageNo()
|
|
||||||
this.queryTablePage()
|
this.queryTablePage()
|
||||||
},
|
},
|
||||||
closeDialog () {
|
handleSizeChange(size) {
|
||||||
this.visible = false
|
this.q.size = size
|
||||||
},
|
|
||||||
confirmDialog () {
|
|
||||||
const formData = {
|
|
||||||
category: this.formData.category,
|
|
||||||
desc: this.formData.desc,
|
|
||||||
name: this.formData.name
|
|
||||||
}
|
|
||||||
this.$http.get('lawss/activiti/createModel',
|
|
||||||
formData,
|
|
||||||
{
|
|
||||||
_this: this,
|
|
||||||
loading: 'tableDataLoading'
|
|
||||||
},
|
|
||||||
res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.visible = false
|
|
||||||
this.queryTablePage()
|
|
||||||
}
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 重置搜索表单并重新加载表格数据
|
|
||||||
*/
|
|
||||||
resetSearchForm () {
|
|
||||||
this.searchForm.standardKey = ''
|
|
||||||
// this.resetSearchForm()
|
|
||||||
this.queryTablePage()
|
this.queryTablePage()
|
||||||
},
|
},
|
||||||
|
closeDialog() {
|
||||||
pageChange (page) {
|
this.visible=false
|
||||||
this.pageNo = page
|
|
||||||
this.queryTablePage()
|
|
||||||
},
|
},
|
||||||
|
editRow(row) {
|
||||||
pageSizeChange () {
|
this.$router.push({
|
||||||
this.queryTablePage()
|
path: '/userCenter/processMapping',
|
||||||
},
|
query: {id: 'AEHJB8YNJ3',modelId: row.id}
|
||||||
|
|
||||||
resetPageNo () {
|
|
||||||
this.pageNo = 1
|
|
||||||
},
|
|
||||||
querytypeList () {
|
|
||||||
const formData = {
|
|
||||||
...this.processForm
|
|
||||||
// page: this.pageNo,
|
|
||||||
// pageSize: this.$store.getters.userInfo.configContent,
|
|
||||||
// standNumber: this.searchForm.standardKey
|
|
||||||
}
|
|
||||||
this.$http.get('lawss/activiti/categoryList',
|
|
||||||
formData,
|
|
||||||
{
|
|
||||||
_this: this,
|
|
||||||
loading: 'tableDataLoading'
|
|
||||||
},
|
|
||||||
res => {
|
|
||||||
this.typeList = res.result.map(item => {
|
|
||||||
return {
|
|
||||||
label: item.type,
|
|
||||||
value: item.objectId
|
|
||||||
}
|
|
||||||
})
|
|
||||||
// this.total = res.data.count
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 查询、加载表格
|
|
||||||
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 => {
|
|
||||||
// })
|
|
||||||
},
|
|
||||||
clearAllSearchs () {
|
|
||||||
this.processForm = { name: '' }
|
|
||||||
this.queryTablePage()
|
|
||||||
},
|
|
||||||
// 点击查看
|
|
||||||
handlePreview (item) {
|
|
||||||
console.log('item', item)
|
|
||||||
const routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.id,
|
|
||||||
pageType: 'INLAND_STAND'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
|
//部署
|
||||||
// 表格行 - 点击更多 事件
|
deploy(row) {
|
||||||
handleCommand (command) {
|
|
||||||
switch (command[1]) {
|
|
||||||
case '编辑':
|
|
||||||
this.$router.push({
|
|
||||||
path: '/userCenter/processMapping',
|
|
||||||
query: { id: 'AEHJB8YNJ3' ,modelId: command[0].id}
|
|
||||||
})
|
|
||||||
// this.editRow(command[0])
|
|
||||||
break
|
|
||||||
case '删除':
|
|
||||||
this.deleteRow(command[0])
|
|
||||||
break
|
|
||||||
case '复制':
|
|
||||||
this.copyModel(command[0].id)
|
|
||||||
break
|
|
||||||
case '部署':
|
|
||||||
this.deploy(command[0].id)
|
|
||||||
break
|
|
||||||
case '流程':
|
|
||||||
this.nodeConfiguration(command[0])
|
|
||||||
break
|
|
||||||
case '预设':
|
|
||||||
this.preSet(command[0])
|
|
||||||
break
|
|
||||||
case '提示':
|
|
||||||
this.showTip(command[0])
|
|
||||||
break
|
|
||||||
}
|
|
||||||
},
|
|
||||||
deploy (modelId) {
|
|
||||||
this.$confirm('确认部署该条数据?', '确认部署', {
|
this.$confirm('确认部署该条数据?', '确认部署', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
@@ -393,146 +139,129 @@ export default {
|
|||||||
|
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$http.get('lawss/activiti/deploy', {
|
this.$api.process.deploy({id: row.id}).then(res=>{
|
||||||
modelId: modelId
|
this.$message.warning(res.message)
|
||||||
}, {
|
this.queryTablePage()
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
this.queryTablePage()
|
|
||||||
}
|
|
||||||
}, e => {
|
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
copyModel (modelId) {
|
queryTablePage() {
|
||||||
this.$confirm('确认复制该条数据?', '确认复制', {
|
this.$api.process.getModelListPage({...this.q,...this.searchForm}).then(res=>{
|
||||||
confirmButtonText: '确定',
|
this.tableList = res.result.records
|
||||||
cancelButtonText: '取消',
|
this.total = res.result.total
|
||||||
confirmButtonClass: 'common-button-primary',
|
}).catch(err=>{
|
||||||
|
console.log("dddddddddddddddd")
|
||||||
type: 'warning'
|
this.tableList =[ {name:1}]
|
||||||
}).then(() => {
|
|
||||||
this.$http.get('/lawss/activiti/copyModel', {
|
|
||||||
modelId: modelId
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$router.push({
|
|
||||||
path: '/processMapping',
|
|
||||||
query: { id: res.result }
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}).catch(() => {
|
|
||||||
})
|
})
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
deleteRow (row) {
|
|
||||||
this.$confirm('确认删除该条数据?', '确认删除', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
confirmButtonClass: 'common-button-primary',
|
|
||||||
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
const id = row.id
|
|
||||||
const oDate1 = new Date('2021-09-22 15:00:00')
|
|
||||||
const oDate2 = new Date(row.createTime)
|
|
||||||
if (oDate1.getTime() > oDate2.getTime()) {
|
|
||||||
this.$message.warning('原始流程不可以删除')
|
|
||||||
} else {
|
|
||||||
this.$http.get('/lawss/activiti/deleteModel', {
|
|
||||||
modelId: id
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.$message.success(res.message)
|
|
||||||
this.queryTablePage()
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
preSet (row) {
|
addRow() {
|
||||||
row.page = this.pageNo
|
this.formData = {
|
||||||
this.$router.push({
|
name: '',
|
||||||
path: '/presetPersonnel',
|
desc: ''
|
||||||
query: { id: row.id }
|
}
|
||||||
})
|
|
||||||
},
|
|
||||||
nodeConfiguration (row) {
|
|
||||||
row.page = this.pageNo
|
|
||||||
this.$router.push({
|
|
||||||
path: '/nodeConfiguration',
|
|
||||||
query: row
|
|
||||||
})
|
|
||||||
},
|
|
||||||
showTip (row) {
|
|
||||||
row.page = this.pageNo
|
|
||||||
this.$router.push({
|
|
||||||
path: '/promptConfiguration',
|
|
||||||
query: row
|
|
||||||
})
|
|
||||||
},
|
|
||||||
editRow (row) {
|
|
||||||
this.editRowDialogData = { ...row }
|
|
||||||
this.editRowDialogVisible = true
|
|
||||||
},
|
|
||||||
|
|
||||||
handleEditRowDialogClose () {
|
|
||||||
this.editRowDialogVisible = false
|
|
||||||
},
|
|
||||||
|
|
||||||
handleEditRowDialogSuccess () {
|
|
||||||
this.queryTablePage()
|
|
||||||
},
|
|
||||||
|
|
||||||
addRow () {
|
|
||||||
this.visible = true
|
this.visible = true
|
||||||
// this.$router.push({
|
},
|
||||||
// path: '/ProcessMapping',
|
confirmDialog() {
|
||||||
// query:{id:0}
|
this.$api.process.addModel(this.formData).then(res=> {
|
||||||
// })
|
this.$message.success(res.message)
|
||||||
// this.editRowDialogData = undefined
|
this.visible = false
|
||||||
// this.editRowDialogVisible = true
|
this.queryTablePage()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
|
||||||
created () {
|
|
||||||
// this.queryTablePage()
|
|
||||||
// this.querytypeList()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content {
|
.configBox{
|
||||||
padding: 0 10px;
|
.search {
|
||||||
height: 100px;
|
.search-box-left {
|
||||||
}
|
padding-top: 20px;
|
||||||
::v-deep .label-input-form .el-input__inner{
|
display: flex;
|
||||||
border-radius: 20px;
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #595959;
|
||||||
|
margin-right: 5px;
|
||||||
|
padding-left: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.year {
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
padding: 0 15px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input {
|
||||||
|
width: 167px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1366px) {
|
||||||
|
::v-deep .el-input {
|
||||||
|
width: 135px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-button {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box-right {
|
||||||
|
padding-top: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
padding-right: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate-box {
|
||||||
|
padding-left: 13px;
|
||||||
|
padding-bottom: 11px;
|
||||||
|
padding-top: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
border-bottom: 1px solid #EBEEF5;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
margin: 0 18px 0 22px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #262626;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.table {
|
||||||
|
margin: 0 14px 0 13px;
|
||||||
|
|
||||||
|
::v-deep .el-pagination {
|
||||||
|
margin-top: 13px;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.addform{
|
||||||
|
padding: 50px 0;
|
||||||
|
.add-form-item {
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
padding: 0 15px !important;
|
||||||
|
width: 250px;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.add-footer{
|
||||||
|
padding: 20px 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-divider-low {
|
|
||||||
margin: 15px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-area {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-group {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 20px;
|
|
||||||
right: 20px;
|
|
||||||
background: #ffffff;
|
|
||||||
z-index: 999;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user