|
@@ -1,58 +1,54 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
- <el-form-item label="名称" prop="name">
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="queryParams.name"
|
|
|
|
|
- placeholder="请输入名称"
|
|
|
|
|
- clearable
|
|
|
|
|
- size="small"
|
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
|
- />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item label="开始时间" prop="deployTime">
|
|
|
|
|
- <el-date-picker clearable size="small"
|
|
|
|
|
- v-model="queryParams.deployTime"
|
|
|
|
|
- type="date"
|
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
|
- placeholder="选择时间">
|
|
|
|
|
- </el-date-picker>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- <el-form-item>
|
|
|
|
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-position="top">
|
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="名称" prop="name">
|
|
|
|
|
+ <el-input v-model="queryParams.name" placeholder="请输入名称" clearable size="small"
|
|
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="开始时间" prop="deployTime">
|
|
|
|
|
+ <el-date-picker clearable size="small" v-model="queryParams.deployTime" type="date"
|
|
|
|
|
+ value-format="yyyy-MM-dd" placeholder="选择时间" style="width: 100%;">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6"></el-col>
|
|
|
|
|
+ <el-col :span="6"></el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="搜索">
|
|
|
|
|
+ <el-button style="width: 100%;" type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="重置">
|
|
|
|
|
+ <el-button style="width: 100%;" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<!-- <el-col :span="1.5">-->
|
|
<!-- <el-col :span="1.5">-->
|
|
|
<!-- <el-button-->
|
|
<!-- <el-button-->
|
|
|
<!-- type="primary"-->
|
|
<!-- type="primary"-->
|
|
|
- <!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-upload"-->
|
|
<!-- icon="el-icon-upload"-->
|
|
|
- <!-- size="mini"-->
|
|
|
|
|
|
|
+ <!-- size="small"-->
|
|
|
<!-- @click="handleImport"-->
|
|
<!-- @click="handleImport"-->
|
|
|
<!-- >导入</el-button>-->
|
|
<!-- >导入</el-button>-->
|
|
|
<!-- </el-col>-->
|
|
<!-- </el-col>-->
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
|
|
- type="success"
|
|
|
|
|
- plain
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- @click="handleLoadXml"
|
|
|
|
|
- >新增</el-button>
|
|
|
|
|
|
|
+ <el-button type="success" icon="el-icon-plus" size="small" @click="handleLoadXml">新增</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
|
|
- type="danger"
|
|
|
|
|
- plain
|
|
|
|
|
- icon="el-icon-delete"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- :disabled="multiple"
|
|
|
|
|
- @click="handleDelete"
|
|
|
|
|
- v-hasPermi="['system:deployment:remove']"
|
|
|
|
|
- >删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="danger" icon="el-icon-delete" size="small" :disabled="multiple" @click="handleDelete"
|
|
|
|
|
+ v-hasPermi="['system:deployment:remove']">删除</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -62,59 +58,65 @@
|
|
|
<div>1、XML文件中的流程定义id属性用作流程定义的key参数。</div>
|
|
<div>1、XML文件中的流程定义id属性用作流程定义的key参数。</div>
|
|
|
<div>2、XML文件中的流程定义name属性用作流程定义的name参数。如果未给定name属性,会使用id作为name。</div>
|
|
<div>2、XML文件中的流程定义name属性用作流程定义的name参数。如果未给定name属性,会使用id作为name。</div>
|
|
|
<div>3、当每个唯一key的流程第一次部署时,指定版本为1。对其后所有使用相同key的流程定义,部署时版本会在该key当前已部署的最高版本号基础上加1。key参数用于区分流程定义。</div>
|
|
<div>3、当每个唯一key的流程第一次部署时,指定版本为1。对其后所有使用相同key的流程定义,部署时版本会在该key当前已部署的最高版本号基础上加1。key参数用于区分流程定义。</div>
|
|
|
- <div>4、id参数设置为{processDefinitionKey}:{processDefinitionVersion}:{generated-id},其中generated-id是一个唯一数字,用以保证在集群环境下,流程定义缓存中,流程id的唯一性。</div>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ 4、id参数设置为{processDefinitionKey}:{processDefinitionVersion}:{generated-id},其中generated-id是一个唯一数字,用以保证在集群环境下,流程定义缓存中,流程id的唯一性。
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-alert>
|
|
</el-alert>
|
|
|
- <el-table v-loading="loading" fit :data="definitionList" border @selection-change="handleSelectionChange">
|
|
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
- <el-table-column label="流程编号" align="center" prop="deploymentId" :show-overflow-tooltip="true"/>
|
|
|
|
|
- <el-table-column label="流程标识" align="center" prop="flowKey" :show-overflow-tooltip="true" />
|
|
|
|
|
- <el-table-column label="流程分类" align="center" prop="category" />
|
|
|
|
|
- <el-table-column label="流程名称" align="center" width="120" :show-overflow-tooltip="true">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button type="text" @click="handleReadImage(scope.row.deploymentId)">
|
|
|
|
|
- <span>{{ scope.row.name }}</span>
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="业务表单" align="center" :show-overflow-tooltip="true">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button v-if="scope.row.formId" type="text" @click="handleForm(scope.row.formId)">
|
|
|
|
|
- <span>{{ scope.row.formName }}</span>
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <label v-else>暂无表单</label>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="流程版本" align="center">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-tag size="medium" >v{{ scope.row.version }}</el-tag>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="状态" align="center">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-tag type="success" v-if="scope.row.suspensionState === 1">激活</el-tag>
|
|
|
|
|
- <el-tag type="warning" v-if="scope.row.suspensionState === 2">挂起</el-tag>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="部署时间" align="center" prop="deploymentTime" width="180"/>
|
|
|
|
|
- <el-table-column label="操作" width="250" fixed="right"class-name="small-padding fixed-width">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <el-button @click="handleLoadXml(scope.row)" icon="el-icon-edit-outline" type="text" size="small">设计</el-button>
|
|
|
|
|
- <el-button @click="handleAddForm(scope.row)" icon="el-icon-edit-el-icon-s-promotion" type="text" size="small" v-if="scope.row.formId == null">配置主表单</el-button>
|
|
|
|
|
- <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-pause" type="text" size="small" v-if="scope.row.suspensionState === 1">挂起</el-button>
|
|
|
|
|
- <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-play" type="text" size="small" v-if="scope.row.suspensionState === 2">激活</el-button>
|
|
|
|
|
- <el-button @click="handleDelete(scope.row)" icon="el-icon-delete" type="text" size="small" v-hasPermi="['system:deployment:remove']">删除</el-button>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- </el-table>
|
|
|
|
|
|
|
+ <div class="border-card">
|
|
|
|
|
+ <el-table height="450" v-loading="loading" fit :data="definitionList" border
|
|
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
+ <el-table-column label="流程编号" align="center" prop="deploymentId" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="流程标识" align="center" prop="flowKey" :show-overflow-tooltip="true" />
|
|
|
|
|
+ <el-table-column label="流程分类" align="center" prop="category" />
|
|
|
|
|
+ <el-table-column label="流程名称" align="center" width="120" :show-overflow-tooltip="true">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button type="text" @click="handleReadImage(scope.row.deploymentId)">
|
|
|
|
|
+ <span>{{ scope.row.name }}</span>
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="业务表单" align="center" :show-overflow-tooltip="true">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button v-if="scope.row.formId" type="text" @click="handleForm(scope.row.formId)">
|
|
|
|
|
+ <span>{{ scope.row.formName }}</span>
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <label v-else>暂无表单</label>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="流程版本" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag size="medium">v{{ scope.row.version }}</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="状态" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag type="success" v-if="scope.row.suspensionState === 1">激活</el-tag>
|
|
|
|
|
+ <el-tag type="warning" v-if="scope.row.suspensionState === 2">挂起</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="部署时间" align="center" prop="deploymentTime" width="180" />
|
|
|
|
|
+ <el-table-column label="操作" width="250" fixed="right" class-name="small-padding fixed-width">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button @click="handleLoadXml(scope.row)" icon="el-icon-edit-outline" type="text"
|
|
|
|
|
+ size="small">设计</el-button>
|
|
|
|
|
+ <el-button @click="handleAddForm(scope.row)" icon="el-icon-edit-el-icon-s-promotion" type="text"
|
|
|
|
|
+ size="small" v-if="scope.row.formId == null">配置主表单</el-button>
|
|
|
|
|
+ <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-pause" type="text"
|
|
|
|
|
+ size="small" v-if="scope.row.suspensionState === 1">挂起</el-button>
|
|
|
|
|
+ <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-play" type="text"
|
|
|
|
|
+ size="small" v-if="scope.row.suspensionState === 2">激活</el-button>
|
|
|
|
|
+ <el-button class="custom-red-color" @click="handleDelete(scope.row)" icon="el-icon-delete" type="text"
|
|
|
|
|
+ size="small" v-hasPermi="['system:deployment:remove']">删除</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+
|
|
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
|
|
+ @pagination="getList" />
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <pagination
|
|
|
|
|
- v-show="total>0"
|
|
|
|
|
- :total="total"
|
|
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
|
|
- @pagination="getList"
|
|
|
|
|
- />
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改流程定义对话框 -->
|
|
<!-- 添加或修改流程定义对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
@@ -131,35 +133,22 @@
|
|
|
|
|
|
|
|
<!-- bpmn20.xml导入对话框 -->
|
|
<!-- bpmn20.xml导入对话框 -->
|
|
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
|
- <el-upload
|
|
|
|
|
- ref="upload"
|
|
|
|
|
- :limit="1"
|
|
|
|
|
- accept=".xml"
|
|
|
|
|
- :headers="upload.headers"
|
|
|
|
|
- :action="upload.url + '?name=' + upload.name+'&category='+ upload.category"
|
|
|
|
|
- :disabled="upload.isUploading"
|
|
|
|
|
- :on-progress="handleFileUploadProgress"
|
|
|
|
|
- :on-success="handleFileSuccess"
|
|
|
|
|
- :auto-upload="false"
|
|
|
|
|
- drag
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-upload ref="upload" :limit="1" accept=".xml" :headers="upload.headers"
|
|
|
|
|
+ :action="upload.url + '?name=' + upload.name + '&category=' + upload.category" :disabled="upload.isUploading"
|
|
|
|
|
+ :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag>
|
|
|
<i class="el-icon-upload"></i>
|
|
<i class="el-icon-upload"></i>
|
|
|
<div class="el-upload__text">
|
|
<div class="el-upload__text">
|
|
|
将文件拖到此处,或
|
|
将文件拖到此处,或
|
|
|
<em>点击上传</em>
|
|
<em>点击上传</em>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="el-upload__tip" slot="tip">
|
|
<div class="el-upload__tip" slot="tip">
|
|
|
- 流程名称:<el-input v-model="upload.name"/>
|
|
|
|
|
|
|
+ 流程名称:<el-input v-model="upload.name" />
|
|
|
流程分类:
|
|
流程分类:
|
|
|
<div>
|
|
<div>
|
|
|
<!-- <el-input v-model="upload.category"/>-->
|
|
<!-- <el-input v-model="upload.category"/>-->
|
|
|
<el-select v-model="upload.category" placeholder="请选择流程分类">
|
|
<el-select v-model="upload.category" placeholder="请选择流程分类">
|
|
|
- <el-option
|
|
|
|
|
- v-for="dict in dict.type.sys_process_category"
|
|
|
|
|
- :key="dict.value"
|
|
|
|
|
- :label="dict.label"
|
|
|
|
|
- :value="dict.value"
|
|
|
|
|
- ></el-option>
|
|
|
|
|
|
|
+ <el-option v-for="dict in dict.type.sys_process_category" :key="dict.value" :label="dict.label"
|
|
|
|
|
+ :value="dict.value"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -174,18 +163,18 @@
|
|
|
<!-- 流程图 -->
|
|
<!-- 流程图 -->
|
|
|
<el-dialog :title="readImage.title" :visible.sync="readImage.open" width="70%" append-to-body>
|
|
<el-dialog :title="readImage.title" :visible.sync="readImage.open" width="70%" append-to-body>
|
|
|
<!-- <el-image :src="readImage.src"></el-image> -->
|
|
<!-- <el-image :src="readImage.src"></el-image> -->
|
|
|
- <flow :flowData="flowData"/>
|
|
|
|
|
|
|
+ <flow :flowData="flowData" />
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!--表单配置详情-->
|
|
<!--表单配置详情-->
|
|
|
-<!-- <el-dialog :title="formTitle" :visible.sync="formConfOpen" width="50%" append-to-body>
|
|
|
|
|
|
|
+ <!-- <el-dialog :title="formTitle" :visible.sync="formConfOpen" width="50%" append-to-body>
|
|
|
<div class="test-form">
|
|
<div class="test-form">
|
|
|
<parser :key="new Date().getTime()" :form-conf="formConf" />
|
|
<parser :key="new Date().getTime()" :form-conf="formConf" />
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>-->
|
|
</el-dialog>-->
|
|
|
<el-dialog :title="formTitle" :visible.sync="formConfOpen" width="50%" append-to-body>
|
|
<el-dialog :title="formTitle" :visible.sync="formConfOpen" width="50%" append-to-body>
|
|
|
<div class="test-form">
|
|
<div class="test-form">
|
|
|
- <v-form-render :form-data="formData" ref="vFormRef"/>
|
|
|
|
|
|
|
+ <v-form-render :form-data="formData" ref="vFormRef" />
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
@@ -193,40 +182,28 @@
|
|
|
<el-dialog :title="formDeployTitle" :visible.sync="formDeployOpen" width="60%" append-to-body>
|
|
<el-dialog :title="formDeployTitle" :visible.sync="formDeployOpen" width="60%" append-to-body>
|
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="10" :xs="24">
|
|
<el-col :span="10" :xs="24">
|
|
|
- <el-table
|
|
|
|
|
- ref="singleTable"
|
|
|
|
|
- :data="formList"
|
|
|
|
|
- border
|
|
|
|
|
- highlight-current-row
|
|
|
|
|
- @current-change="handleCurrentChange"
|
|
|
|
|
- style="width: 100%">
|
|
|
|
|
|
|
+ <el-table ref="singleTable" :data="formList" border highlight-current-row
|
|
|
|
|
+ @current-change="handleCurrentChange" style="width: 100%">
|
|
|
<el-table-column label="表单编号" align="center" prop="formId" />
|
|
<el-table-column label="表单编号" align="center" prop="formId" />
|
|
|
<el-table-column label="表单名称" align="center" prop="formName" />
|
|
<el-table-column label="表单名称" align="center" prop="formName" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" @click="submitFormDeploy(scope.row)">确定</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="text" @click="submitFormDeploy(scope.row)">确定</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
- <pagination
|
|
|
|
|
- small
|
|
|
|
|
- layout="prev, pager, next"
|
|
|
|
|
- v-show="formTotal>0"
|
|
|
|
|
- :total="formTotal"
|
|
|
|
|
- :page.sync="formQueryParams.pageNum"
|
|
|
|
|
- :limit.sync="formQueryParams.pageSize"
|
|
|
|
|
- @pagination="ListFormDeploy"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <pagination small layout="prev, pager, next" v-show="formTotal > 0" :total="formTotal"
|
|
|
|
|
+ :page.sync="formQueryParams.pageNum" :limit.sync="formQueryParams.pageSize" @pagination="ListFormDeploy" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-<!-- <el-col :span="14" :xs="24">
|
|
|
|
|
|
|
+ <!-- <el-col :span="14" :xs="24">
|
|
|
<div v-if="currentRow">
|
|
<div v-if="currentRow">
|
|
|
<parser :key="new Date().getTime()" :form-conf="currentRow" />
|
|
<parser :key="new Date().getTime()" :form-conf="currentRow" />
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>-->
|
|
</el-col>-->
|
|
|
<el-col :span="14" :xs="24">
|
|
<el-col :span="14" :xs="24">
|
|
|
<div class="test-form">
|
|
<div class="test-form">
|
|
|
- <v-form-render :form-data="formData" ref="vFormCurrentRowRef"/>
|
|
|
|
|
|
|
+ <v-form-render :form-data="formData" ref="vFormCurrentRowRef" />
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -257,7 +234,7 @@ import {
|
|
|
flowXmlAndNode
|
|
flowXmlAndNode
|
|
|
} from "@/api/flowable/definition";
|
|
} from "@/api/flowable/definition";
|
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
|
-import { getForm, addDeployForm ,listForm } from "@/api/flowable/form";
|
|
|
|
|
|
|
+import { getForm, addDeployForm, listForm } from "@/api/flowable/form";
|
|
|
import Parser from '@/components/parser/Parser'
|
|
import Parser from '@/components/parser/Parser'
|
|
|
import flow from '@/views/flowable/task/myProcess/send/flow'
|
|
import flow from '@/views/flowable/task/myProcess/send/flow'
|
|
|
import Model from './model';
|
|
import Model from './model';
|
|
@@ -296,10 +273,10 @@ export default {
|
|
|
formDeployOpen: false,
|
|
formDeployOpen: false,
|
|
|
formDeployTitle: "",
|
|
formDeployTitle: "",
|
|
|
formList: [],
|
|
formList: [],
|
|
|
- formTotal:0,
|
|
|
|
|
|
|
+ formTotal: 0,
|
|
|
formConf: {}, // 默认表单数据
|
|
formConf: {}, // 默认表单数据
|
|
|
formData: {}, // 默认表单数据
|
|
formData: {}, // 默认表单数据
|
|
|
- readImage:{
|
|
|
|
|
|
|
+ readImage: {
|
|
|
open: false,
|
|
open: false,
|
|
|
src: "",
|
|
src: "",
|
|
|
},
|
|
},
|
|
@@ -332,12 +309,12 @@ export default {
|
|
|
parentDeploymentId: null,
|
|
parentDeploymentId: null,
|
|
|
engineVersion: null
|
|
engineVersion: null
|
|
|
},
|
|
},
|
|
|
- formQueryParams:{
|
|
|
|
|
|
|
+ formQueryParams: {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
|
},
|
|
},
|
|
|
// 挂载表单到流程实例
|
|
// 挂载表单到流程实例
|
|
|
- formDeployParam:{
|
|
|
|
|
|
|
+ formDeployParam: {
|
|
|
formId: null,
|
|
formId: null,
|
|
|
deployId: null
|
|
deployId: null
|
|
|
},
|
|
},
|
|
@@ -378,7 +355,7 @@ export default {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
done();
|
|
done();
|
|
|
- }).catch(() => {});
|
|
|
|
|
|
|
+ }).catch(() => { });
|
|
|
},
|
|
},
|
|
|
// 取消按钮
|
|
// 取消按钮
|
|
|
cancel() {
|
|
cancel() {
|
|
@@ -414,7 +391,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.deploymentId)
|
|
this.ids = selection.map(item => item.deploymentId)
|
|
|
- this.single = selection.length!==1
|
|
|
|
|
|
|
+ this.single = selection.length !== 1
|
|
|
this.multiple = !selection.length
|
|
this.multiple = !selection.length
|
|
|
},
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
@@ -424,17 +401,17 @@ export default {
|
|
|
this.title = "添加流程定义";
|
|
this.title = "添加流程定义";
|
|
|
},
|
|
},
|
|
|
/** 跳转到流程设计页面 */
|
|
/** 跳转到流程设计页面 */
|
|
|
- handleLoadXml(row){
|
|
|
|
|
|
|
+ handleLoadXml(row) {
|
|
|
// this.dialogVisible = true;
|
|
// this.dialogVisible = true;
|
|
|
// this.deployId = row.deploymentId;
|
|
// this.deployId = row.deploymentId;
|
|
|
- this.$router.push({ path: '/flowable/definition/model',query: { deployId: row.deploymentId }})
|
|
|
|
|
|
|
+ this.$router.push({ path: '/flowable/definition/model', query: { deployId: row.deploymentId } })
|
|
|
},
|
|
},
|
|
|
/** 流程图查看 */
|
|
/** 流程图查看 */
|
|
|
- handleReadImage(deployId){
|
|
|
|
|
|
|
+ handleReadImage(deployId) {
|
|
|
this.readImage.title = "流程图";
|
|
this.readImage.title = "流程图";
|
|
|
this.readImage.open = true;
|
|
this.readImage.open = true;
|
|
|
// this.readImage.src = process.env.VUE_APP_BASE_API + "/flowable/definition/readImage/" + deploymentId;
|
|
// this.readImage.src = process.env.VUE_APP_BASE_API + "/flowable/definition/readImage/" + deploymentId;
|
|
|
- flowXmlAndNode({deployId:deployId}).then(res => {
|
|
|
|
|
|
|
+ flowXmlAndNode({ deployId: deployId }).then(res => {
|
|
|
this.flowData = res.data;
|
|
this.flowData = res.data;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -446,8 +423,8 @@ export default {
|
|
|
this.formConf = JSON.parse(res.data.formContent)
|
|
this.formConf = JSON.parse(res.data.formContent)
|
|
|
})
|
|
})
|
|
|
},*/
|
|
},*/
|
|
|
- handleForm(formId){
|
|
|
|
|
- getForm(formId).then(res =>{
|
|
|
|
|
|
|
+ handleForm(formId) {
|
|
|
|
|
+ getForm(formId).then(res => {
|
|
|
this.formTitle = "表单详情";
|
|
this.formTitle = "表单详情";
|
|
|
this.formConfOpen = true;
|
|
this.formConfOpen = true;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -461,19 +438,19 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
/** 启动流程 */
|
|
/** 启动流程 */
|
|
|
- handleDefinitionStart(row){
|
|
|
|
|
- definitionStart(row.id).then(res =>{
|
|
|
|
|
|
|
+ handleDefinitionStart(row) {
|
|
|
|
|
+ definitionStart(row.id).then(res => {
|
|
|
this.$modal.msgSuccess(res.msg);
|
|
this.$modal.msgSuccess(res.msg);
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
/** 挂载表单弹框 */
|
|
/** 挂载表单弹框 */
|
|
|
- handleAddForm(row){
|
|
|
|
|
|
|
+ handleAddForm(row) {
|
|
|
this.formDeployParam.deployId = row.deploymentId
|
|
this.formDeployParam.deployId = row.deploymentId
|
|
|
this.ListFormDeploy()
|
|
this.ListFormDeploy()
|
|
|
},
|
|
},
|
|
|
/** 挂载表单列表 */
|
|
/** 挂载表单列表 */
|
|
|
- ListFormDeploy(){
|
|
|
|
|
- listForm(this.formQueryParams).then(res =>{
|
|
|
|
|
|
|
+ ListFormDeploy() {
|
|
|
|
|
+ listForm(this.formQueryParams).then(res => {
|
|
|
this.formList = res.rows;
|
|
this.formList = res.rows;
|
|
|
this.formTotal = res.total;
|
|
this.formTotal = res.total;
|
|
|
this.formDeployOpen = true;
|
|
this.formDeployOpen = true;
|
|
@@ -494,19 +471,19 @@ export default {
|
|
|
// })
|
|
// })
|
|
|
// },
|
|
// },
|
|
|
/** 挂载表单 */
|
|
/** 挂载表单 */
|
|
|
- submitFormDeploy(row){
|
|
|
|
|
|
|
+ submitFormDeploy(row) {
|
|
|
this.formDeployParam.formId = row.formId;
|
|
this.formDeployParam.formId = row.formId;
|
|
|
- addDeployForm(this.formDeployParam).then(res =>{
|
|
|
|
|
|
|
+ addDeployForm(this.formDeployParam).then(res => {
|
|
|
this.$modal.msgSuccess(res.msg);
|
|
this.$modal.msgSuccess(res.msg);
|
|
|
this.formDeployOpen = false;
|
|
this.formDeployOpen = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- /* handleCurrentChange(data) {
|
|
|
|
|
- if (data) {
|
|
|
|
|
- this.currentRow = JSON.parse(data.formContent);
|
|
|
|
|
- }
|
|
|
|
|
- },*/
|
|
|
|
|
|
|
+ /* handleCurrentChange(data) {
|
|
|
|
|
+ if (data) {
|
|
|
|
|
+ this.currentRow = JSON.parse(data.formContent);
|
|
|
|
|
+ }
|
|
|
|
|
+ },*/
|
|
|
handleCurrentChange(data) {
|
|
handleCurrentChange(data) {
|
|
|
if (data) {
|
|
if (data) {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -520,7 +497,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/** 挂起/激活流程 */
|
|
/** 挂起/激活流程 */
|
|
|
- handleUpdateSuspensionState(row){
|
|
|
|
|
|
|
+ handleUpdateSuspensionState(row) {
|
|
|
let state = 1;
|
|
let state = 1;
|
|
|
if (row.suspensionState === 1) {
|
|
if (row.suspensionState === 1) {
|
|
|
state = 2
|
|
state = 2
|
|
@@ -571,7 +548,7 @@ export default {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
- }).then(function() {
|
|
|
|
|
|
|
+ }).then(function () {
|
|
|
return delDeployment(deploymentIds);
|
|
return delDeployment(deploymentIds);
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.getList();
|
|
this.getList();
|
|
@@ -585,14 +562,14 @@ export default {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
- }).then(function() {
|
|
|
|
|
|
|
+ }).then(function () {
|
|
|
return exportDeployment(queryParams);
|
|
return exportDeployment(queryParams);
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
this.download(response.msg);
|
|
this.download(response.msg);
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
/** 导入bpmn.xml文件 */
|
|
/** 导入bpmn.xml文件 */
|
|
|
- handleImport(){
|
|
|
|
|
|
|
+ handleImport() {
|
|
|
this.upload.title = "bpmn20.xml文件导入";
|
|
this.upload.title = "bpmn20.xml文件导入";
|
|
|
this.upload.open = true;
|
|
this.upload.open = true;
|
|
|
},
|
|
},
|