提交代码
parent
47aed608a6
commit
3d10e5c4a8
|
@ -25,6 +25,12 @@ public class SysUser extends BaseEntity
|
||||||
@Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
@Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
|
/** 项目单位ID */
|
||||||
|
private Long parDeptId;
|
||||||
|
|
||||||
|
/** 项目单位名称 */
|
||||||
|
private String parDeptName;
|
||||||
|
|
||||||
/** 部门ID */
|
/** 部门ID */
|
||||||
@Excel(name = "部门编号", type = Type.IMPORT)
|
@Excel(name = "部门编号", type = Type.IMPORT)
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
@ -297,6 +303,22 @@ public class SysUser extends BaseEntity
|
||||||
this.roleId = roleId;
|
this.roleId = roleId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getParDeptId() {
|
||||||
|
return parDeptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParDeptId(Long parDeptId) {
|
||||||
|
this.parDeptId = parDeptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParDeptName() {
|
||||||
|
return parDeptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParDeptName(String parDeptName) {
|
||||||
|
this.parDeptName = parDeptName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|
|
@ -142,4 +142,5 @@ public class FlowBusinessKeyController extends BaseController {
|
||||||
return success(data);
|
return success(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
package com.yanzhu.framework.web.service;
|
package com.yanzhu.framework.web.service;
|
||||||
|
|
||||||
|
import com.yanzhu.common.core.domain.entity.SysDept;
|
||||||
|
import com.yanzhu.common.core.text.Convert;
|
||||||
|
import com.yanzhu.system.service.ISysDeptService;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -27,7 +30,10 @@ public class UserDetailsServiceImpl implements UserDetailsService
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISysUserService userService;
|
private ISysUserService userService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysDeptService sysDeptService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysPasswordService passwordService;
|
private SysPasswordService passwordService;
|
||||||
|
|
||||||
|
@ -54,8 +60,14 @@ public class UserDetailsServiceImpl implements UserDetailsService
|
||||||
throw new ServiceException(MessageUtils.message("user.blocked"));
|
throw new ServiceException(MessageUtils.message("user.blocked"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//设置项目单位信息
|
||||||
|
Long deptId = Convert.toLong(user.getDept().getAncestors().split(",")[2]);
|
||||||
|
if(deptId != null){
|
||||||
|
SysDept sysDept = sysDeptService.selectDeptById(deptId);
|
||||||
|
user.setParDeptId(sysDept.getDeptId());
|
||||||
|
user.setParDeptName(sysDept.getDeptName());
|
||||||
|
}
|
||||||
passwordService.validate(user);
|
passwordService.validate(user);
|
||||||
|
|
||||||
return createLoginUser(user);
|
return createLoginUser(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,9 @@ package com.yanzhu.project.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import com.yanzhu.common.core.domain.entity.SysUser;
|
||||||
|
import com.yanzhu.common.core.text.Convert;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
@ -101,4 +104,19 @@ public class ProProjectInfoController extends BaseController
|
||||||
{
|
{
|
||||||
return toAjax(proProjectInfoService.deleteProProjectInfoByIds(ids));
|
return toAjax(proProjectInfoService.deleteProProjectInfoByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取项目信息详细信息
|
||||||
|
*/
|
||||||
|
@GetMapping(value = "/findMyDeptProject")
|
||||||
|
public AjaxResult findMyDeptProject()
|
||||||
|
{
|
||||||
|
ProProjectInfo proProjectInfo = new ProProjectInfo();
|
||||||
|
//超管查询所有数据
|
||||||
|
if(!SysUser.isAdmin(super.getUserId())){
|
||||||
|
proProjectInfo.setDeptId(Convert.toLong(super.getLoginUser().getUser().getDept().getAncestors().split(",")[2]));
|
||||||
|
}
|
||||||
|
List<ProProjectInfo> list = proProjectInfoService.selectProProjectInfoList(proProjectInfo);
|
||||||
|
return success(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
|
||||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectProProjectInfoById" parameterType="Long" resultMap="ProProjectInfoResult">
|
<select id="selectProProjectInfoById" parameterType="Long" resultMap="ProProjectInfoResult">
|
||||||
|
|
|
@ -27,15 +27,6 @@ export function findCommentByProcInsId(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据业务流程查询表单数据
|
|
||||||
export function findFormDatasByProcInsId(query) {
|
|
||||||
return request({
|
|
||||||
url: '/flowable/businessKey/findFormDatasByProcInsId',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 根据条件查询我的代办任务
|
// 根据条件查询我的代办任务
|
||||||
export function myAwaitFlowTaskList(query) {
|
export function myAwaitFlowTaskList(query) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -42,3 +42,11 @@ export function delProjectInfo(id) {
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 我的部门项目
|
||||||
|
export function findMyDeptProject() {
|
||||||
|
return request({
|
||||||
|
url: '/project/projectInfo/findMyDeptProject',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ import './assets/icons' // icon
|
||||||
import './permission' // permission control
|
import './permission' // permission control
|
||||||
import { getDicts } from "@/api/system/dict/data";
|
import { getDicts } from "@/api/system/dict/data";
|
||||||
import { getConfigKey } from "@/api/system/config";
|
import { getConfigKey } from "@/api/system/config";
|
||||||
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/yanZhu";
|
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree, getDurationDate } from "@/utils/yanZhu";
|
||||||
// 分页组件
|
// 分页组件
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from "@/components/Pagination";
|
||||||
// 自定义表格工具组件
|
// 自定义表格工具组件
|
||||||
|
@ -53,6 +53,7 @@ Vue.prototype.selectDictLabel = selectDictLabel
|
||||||
Vue.prototype.selectDictLabels = selectDictLabels
|
Vue.prototype.selectDictLabels = selectDictLabels
|
||||||
Vue.prototype.download = download
|
Vue.prototype.download = download
|
||||||
Vue.prototype.handleTree = handleTree
|
Vue.prototype.handleTree = handleTree
|
||||||
|
Vue.prototype.getDurationDate = getDurationDate
|
||||||
|
|
||||||
// 全局组件挂载
|
// 全局组件挂载
|
||||||
Vue.component('DictTag', DictTag)
|
Vue.component('DictTag', DictTag)
|
||||||
|
|
|
@ -9,6 +9,9 @@ const getters = {
|
||||||
avatar: state => state.user.avatar,
|
avatar: state => state.user.avatar,
|
||||||
userId: state => state.user.id,
|
userId: state => state.user.id,
|
||||||
name: state => state.user.name,
|
name: state => state.user.name,
|
||||||
|
nickname: state => state.user.nickname,
|
||||||
|
dept:state=>state.user.dept,
|
||||||
|
parDeptName:state=>state.user.parDeptName,
|
||||||
introduction: state => state.user.introduction,
|
introduction: state => state.user.introduction,
|
||||||
roles: state => state.user.roles,
|
roles: state => state.user.roles,
|
||||||
permissions: state => state.user.permissions,
|
permissions: state => state.user.permissions,
|
||||||
|
|
|
@ -7,6 +7,7 @@ import tagsView from './modules/tagsView'
|
||||||
import permission from './modules/permission'
|
import permission from './modules/permission'
|
||||||
import settings from './modules/settings'
|
import settings from './modules/settings'
|
||||||
import getters from './getters'
|
import getters from './getters'
|
||||||
|
import flowtask from './modules/flowtask'
|
||||||
|
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
|
||||||
|
@ -17,7 +18,8 @@ const store = new Vuex.Store({
|
||||||
user,
|
user,
|
||||||
tagsView,
|
tagsView,
|
||||||
permission,
|
permission,
|
||||||
settings
|
settings,
|
||||||
|
flowtask
|
||||||
},
|
},
|
||||||
getters
|
getters
|
||||||
})
|
})
|
||||||
|
|
|
@ -6,7 +6,10 @@ const user = {
|
||||||
token: getToken(),
|
token: getToken(),
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
|
nickname: '',
|
||||||
avatar: '',
|
avatar: '',
|
||||||
|
dept: null,
|
||||||
|
parDeptName: null,
|
||||||
roles: [],
|
roles: [],
|
||||||
permissions: []
|
permissions: []
|
||||||
},
|
},
|
||||||
|
@ -21,9 +24,18 @@ const user = {
|
||||||
SET_NAME: (state, name) => {
|
SET_NAME: (state, name) => {
|
||||||
state.name = name
|
state.name = name
|
||||||
},
|
},
|
||||||
|
SET_NICKNAME: (state, nickname) => {
|
||||||
|
state.nickname = nickname
|
||||||
|
},
|
||||||
SET_AVATAR: (state, avatar) => {
|
SET_AVATAR: (state, avatar) => {
|
||||||
state.avatar = avatar
|
state.avatar = avatar
|
||||||
},
|
},
|
||||||
|
SET_DEPT: (state, dept) => {
|
||||||
|
state.dept = dept
|
||||||
|
},
|
||||||
|
SET_PAR_DEPT_NAME: (state, parDeptName) => {
|
||||||
|
state.parDeptName = parDeptName
|
||||||
|
},
|
||||||
SET_ROLES: (state, roles) => {
|
SET_ROLES: (state, roles) => {
|
||||||
state.roles = roles
|
state.roles = roles
|
||||||
},
|
},
|
||||||
|
@ -64,6 +76,9 @@ const user = {
|
||||||
}
|
}
|
||||||
commit('SET_ID', user.userId)
|
commit('SET_ID', user.userId)
|
||||||
commit('SET_NAME', user.userName)
|
commit('SET_NAME', user.userName)
|
||||||
|
commit('SET_NICKNAME', user.nickName)
|
||||||
|
commit('SET_PAR_DEPT_NAME', user.parDeptName)
|
||||||
|
commit("SET_DEPT",user.dept);
|
||||||
commit('SET_AVATAR', avatar)
|
commit('SET_AVATAR', avatar)
|
||||||
resolve(res)
|
resolve(res)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
|
|
@ -231,3 +231,38 @@ export function tansParams(params) {
|
||||||
export function blobValidate(data) {
|
export function blobValidate(data) {
|
||||||
return data.type !== 'application/json'
|
return data.type !== 'application/json'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getDurationDate(date) {
|
||||||
|
let day=0;
|
||||||
|
let hours=0;
|
||||||
|
let min = date;
|
||||||
|
if(min>1440){
|
||||||
|
day = parseInt(min/1440);
|
||||||
|
min = min % 1440;
|
||||||
|
if(min>60){
|
||||||
|
hours = parseInt(min/60);
|
||||||
|
min = min % 60;
|
||||||
|
}
|
||||||
|
}else if(min>60){
|
||||||
|
hours = parseInt(min/60);
|
||||||
|
min = min % 60;
|
||||||
|
}
|
||||||
|
if(day>0){
|
||||||
|
if(day<10) day="0"+day;
|
||||||
|
if(hours<10) hours="0"+hours;
|
||||||
|
if(min<10) min="0"+min;
|
||||||
|
return day+"天"+hours+"小时"+min+"分钟";
|
||||||
|
}
|
||||||
|
if(hours>0){
|
||||||
|
if(hours<10) hours="0"+hours;
|
||||||
|
if(min<10) min="0"+min;
|
||||||
|
return hours+"小时"+min+"分钟";
|
||||||
|
}
|
||||||
|
if(min>0){
|
||||||
|
if(min<10) min="0"+min;
|
||||||
|
return min+"分钟";
|
||||||
|
}
|
||||||
|
if(min==0){
|
||||||
|
return "1分钟";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- @click="handleForm(scope.row.formId)" -->
|
<!-- @click="handleForm(scope.row.formId)" -->
|
||||||
<el-tag type="info" v-if="scope.row.deptId">{{ scope.row.deptName }}</el-tag>
|
<el-tag type="info" v-if="scope.row.deptId">{{ scope.row.deptName }}</el-tag>
|
||||||
<el-tag>缺省工作流</el-tag>
|
<el-tag>默认工作流</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="流程版本" align="center">
|
<el-table-column label="流程版本" align="center">
|
||||||
|
|
|
@ -5,96 +5,171 @@
|
||||||
:visible.sync="onOpen"
|
:visible.sync="onOpen"
|
||||||
ref="drawer"
|
ref="drawer"
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
size="80%"
|
size="70%"
|
||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div>流程详情 【{{ title }}】 - 当前进度【{{ jdtitle }}】<span v-if="showjd"> - 当前节点【{{options.taskName}}】</span></div>
|
<div>
|
||||||
|
流程详情 【{{ title }}】 - 当前进度【{{ jdtitle }}】<span v-if="showjd">
|
||||||
|
- 当前节点【{{ options.taskName }}】</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="drawer">
|
<div class="drawer">
|
||||||
<div class="drawerLeft">
|
<div class="drawerLeft">
|
||||||
<div class="block containers">
|
<div class="block containers">
|
||||||
<div class="canvas" ref="flowCanvas"></div>
|
<div class="canvas" ref="flowCanvas"></div>
|
||||||
<div class="maskLayer" />
|
<div class="maskLayer" />
|
||||||
</div>
|
|
||||||
<el-timeline>
|
|
||||||
<el-timeline-item
|
|
||||||
v-for="(item,index ) in flowRecordList"
|
|
||||||
:key="index"
|
|
||||||
:icon="setIcon(item)"
|
|
||||||
:color="setColor(item)"
|
|
||||||
>
|
|
||||||
<p style="font-weight: 700"> {{ getSort(index) }}{{item.taskName}}{{item.commentResult}}</p>
|
|
||||||
<el-card :body-style="{ padding: '6px' }">
|
|
||||||
<el-descriptions class="margin-top" :column="1" size="small" border>
|
|
||||||
<el-descriptions-item v-if="item.assigneeName" label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-user"></i>办理人</template>
|
|
||||||
{{item.assigneeName}}
|
|
||||||
<el-tag type="info" size="mini">{{item.deptName}}</el-tag>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item v-if="item.candidate" label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-user"></i>候选办理</template>
|
|
||||||
{{item.candidate}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item v-if="item.deleteReason" label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-user"></i>驳回节点</template>
|
|
||||||
{{getDeleteReason(item.deleteReason)}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-date"></i>接收时间</template>
|
|
||||||
{{item.startTime}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item v-if="item.endTime" label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-date"></i>处理时间</template>
|
|
||||||
{{item.endTime}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item v-if="item.duration" label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-time"></i>处理耗时</template>
|
|
||||||
{{getDurationDate(item.duration)}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item v-if="item.message" label-class-name="my-label" :labelStyle="labelStyle">
|
|
||||||
<template slot="label"><i class="el-icon-tickets"></i>处理意见</template>
|
|
||||||
{{item.message}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
</el-descriptions>
|
|
||||||
</el-card>
|
|
||||||
</el-timeline-item>
|
|
||||||
</el-timeline>
|
|
||||||
</div>
|
|
||||||
<div class="drawerRight">
|
|
||||||
<el-form
|
|
||||||
label-width="100px"
|
|
||||||
>
|
|
||||||
<el-form-item label="所属项目">
|
|
||||||
{{ initData.projectName }}
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="发起单位">
|
|
||||||
{{ options.startDeptName }}
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="发起人">
|
|
||||||
{{ options.startUserName }}
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="审批事项">
|
|
||||||
{{ title }}
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="审批内容">
|
|
||||||
<div v-for="(file,index ) in initData.files" :key="index">
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="text"
|
|
||||||
icon="el-icon-paperclip"
|
|
||||||
@click="handledownload(file)"
|
|
||||||
>{{file.substring(file.lastIndexOf('/')+1)}}</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
<el-timeline>
|
||||||
<el-form-item label="申请说明">
|
<el-timeline-item
|
||||||
{{initData.remark}}
|
v-for="(item, index) in flowRecordList"
|
||||||
</el-form-item>
|
:key="index"
|
||||||
<div style="text-align: center">
|
:icon="setIcon(item)"
|
||||||
<el-button type="danger" @click="doCanel">关 闭</el-button>
|
:color="setColor(item)"
|
||||||
|
>
|
||||||
|
<p style="font-weight: 700">
|
||||||
|
{{ getSort(index) }}{{ item.taskName }}{{ item.commentResult }}
|
||||||
|
</p>
|
||||||
|
<el-card :body-style="{ padding: '6px' }">
|
||||||
|
<el-descriptions class="margin-top" :column="1" size="small" border>
|
||||||
|
<el-descriptions-item
|
||||||
|
v-if="item.assigneeName"
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"><i class="el-icon-user"></i>办理人</template>
|
||||||
|
{{ item.assigneeName }}
|
||||||
|
<el-tag type="info" size="mini">{{ item.deptName }}</el-tag>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
v-if="item.candidate"
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"><i class="el-icon-user"></i>候选办理</template>
|
||||||
|
{{ item.candidate }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
v-if="item.deleteReason"
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"><i class="el-icon-user"></i>驳回节点</template>
|
||||||
|
{{ getDeleteReason(item.deleteReason) }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"><i class="el-icon-date"></i>接收时间</template>
|
||||||
|
{{ item.startTime }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
v-if="item.endTime"
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"><i class="el-icon-date"></i>处理时间</template>
|
||||||
|
{{ item.endTime }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
v-if="item.duration"
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"><i class="el-icon-time"></i>处理耗时</template>
|
||||||
|
{{ getDurationDateStr(item.duration) }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item
|
||||||
|
v-if="item.message"
|
||||||
|
label-class-name="my-label"
|
||||||
|
:labelStyle="labelStyle"
|
||||||
|
>
|
||||||
|
<template slot="label"
|
||||||
|
><i class="el-icon-tickets"></i>处理意见</template
|
||||||
|
>
|
||||||
|
{{ item.message }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</el-card>
|
||||||
|
</el-timeline-item>
|
||||||
|
</el-timeline>
|
||||||
|
</div>
|
||||||
|
<div class="drawerRight">
|
||||||
|
<el-form label-width="80px">
|
||||||
|
<el-form-item label="项目单位">
|
||||||
|
{{ initData.projParName }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="项目名称">
|
||||||
|
{{ initData.projParName }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="申请类型">
|
||||||
|
{{ title }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="申请人">
|
||||||
|
<label
|
||||||
|
>{{ initData.createBy }}
|
||||||
|
<el-tag type="info" size="mini">{{
|
||||||
|
initData.createByDeptName
|
||||||
|
}}</el-tag></label
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="申请原因">
|
||||||
|
{{ initData.applyReason }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="申请附件" v-if="initData.applyFiles">
|
||||||
|
<div v-for="(file, index) in initData.applyFiles.split(',')" :key="index">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-paperclip"
|
||||||
|
@click="handledownload(file)"
|
||||||
|
>{{ file.substring(file.lastIndexOf("/") + 1) }}</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="申请时间">
|
||||||
|
{{ parseTime(initData.updateTime, "{y}-{m}-{d} {h}:{i}") }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="使用时间">
|
||||||
|
{{ initData.applyReason }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-divider content-position="left">申请明细</el-divider>
|
||||||
|
<el-table stripe :data="initData.proProjectApplyDetailList">
|
||||||
|
<el-table-column label="序号" width="40" type="index"></el-table-column>
|
||||||
|
<el-table-column label="申请明细" align="left">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-breadcrumb separator=">">
|
||||||
|
<el-breadcrumb-item>{{ scope.row.superTypeName }}</el-breadcrumb-item>
|
||||||
|
<el-breadcrumb-item>{{ scope.row.typeName }}</el-breadcrumb-item>
|
||||||
|
<el-breadcrumb-item class="assetsName">{{
|
||||||
|
scope.row.assetsName
|
||||||
|
}}</el-breadcrumb-item>
|
||||||
|
</el-breadcrumb>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="规格" prop="assetsVersion"></el-table-column>
|
||||||
|
<el-table-column label="数量" prop="number">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<label
|
||||||
|
>{{ scope.row.number }}
|
||||||
|
<el-tag type="info" size="mini">{{
|
||||||
|
scope.row.assetsUnit
|
||||||
|
}}</el-tag></label
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="说明"
|
||||||
|
prop="useReason"
|
||||||
|
width="150"
|
||||||
|
></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div style="text-align: center">
|
||||||
|
<el-button type="danger" @click="doCanel">关 闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
|
@ -103,11 +178,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { flowXmlAndNode } from "@/api/flowable/definition";
|
import { flowXmlAndNode } from "@/api/flowable/definition";
|
||||||
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
||||||
import { findCommentByProcInsId, findFormDatasByProcInsId } from "@/api/flowable/businessKey";
|
import { findCommentByProcInsId } from "@/api/flowable/businessKey";
|
||||||
|
import { getProjectApply } from "@/api/project/projectApply";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
props: {
|
props: {},
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 抽屉层
|
// 抽屉层
|
||||||
|
@ -116,7 +192,7 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
// 标题
|
// 标题
|
||||||
title: "",
|
title: "",
|
||||||
jdtitle:"",
|
jdtitle: "",
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
@ -124,10 +200,10 @@ export default {
|
||||||
bpmnViewer: null,
|
bpmnViewer: null,
|
||||||
options: {},
|
options: {},
|
||||||
flowRecordList: [],
|
flowRecordList: [],
|
||||||
showjd:false,
|
showjd: false,
|
||||||
//label样式
|
//label样式
|
||||||
labelStyle: { width: "180px" },
|
labelStyle: { width: "180px" },
|
||||||
initData:{}
|
initData: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -138,10 +214,9 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
setIcon(row) {
|
setIcon(row) {
|
||||||
if (row.endTime) {
|
if (row.endTime) {
|
||||||
if(row.commentResult=="驳回")
|
if (row.commentResult == "驳回") {
|
||||||
{
|
|
||||||
return "el-icon-close";
|
return "el-icon-close";
|
||||||
}else{
|
} else {
|
||||||
return "el-icon-check";
|
return "el-icon-check";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -150,10 +225,9 @@ export default {
|
||||||
},
|
},
|
||||||
setColor(row) {
|
setColor(row) {
|
||||||
if (row.endTime) {
|
if (row.endTime) {
|
||||||
if(row.commentResult=="驳回")
|
if (row.commentResult == "驳回") {
|
||||||
{
|
|
||||||
return "#f56c6c";
|
return "#f56c6c";
|
||||||
}else{
|
} else {
|
||||||
return "#2bc418";
|
return "#2bc418";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -178,19 +252,21 @@ export default {
|
||||||
this.onOpen = true;
|
this.onOpen = true;
|
||||||
this.showjd = false;
|
this.showjd = false;
|
||||||
|
|
||||||
if(options.finishTime==null){
|
if (options.finishTime == null) {
|
||||||
this.jdtitle="进行中";
|
this.jdtitle = "进行中";
|
||||||
this.showjd=true;
|
this.showjd = true;
|
||||||
}else if(options.finishTime!=null && options.assigneeId==null){
|
} else if (options.finishTime != null && options.assigneeId == null) {
|
||||||
this.jdtitle="已终止";
|
this.jdtitle = "已终止";
|
||||||
}else{
|
} else {
|
||||||
this.jdtitle="已完成";
|
this.jdtitle = "已完成";
|
||||||
}
|
}
|
||||||
this.getFlowRecordList(options.procInsId, options.deployId);
|
this.getFlowRecordList(options.procInsId, options.deployId);
|
||||||
this.getFormDatasList(options.procInsId, options.deployId);
|
this.getFormDatasList(options.businessKey);
|
||||||
flowXmlAndNode({ procInsId:options.procInsId, deployId: options.deployId }).then((res) => {
|
flowXmlAndNode({ procInsId: options.procInsId, deployId: options.deployId }).then(
|
||||||
this.initFlowImage(res.data);
|
(res) => {
|
||||||
});
|
this.initFlowImage(res.data);
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
async initFlowImage(data) {
|
async initFlowImage(data) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
@ -202,8 +278,8 @@ export default {
|
||||||
await self.bpmnViewer.importXML(data.xmlData);
|
await self.bpmnViewer.importXML(data.xmlData);
|
||||||
// 自适应
|
// 自适应
|
||||||
self.bpmnViewer.get("canvas").zoom("fit-viewport", "auto");
|
self.bpmnViewer.get("canvas").zoom("fit-viewport", "auto");
|
||||||
if (data.nodeData !==undefined && data.nodeData.length > 0 ) {
|
if (data.nodeData !== undefined && data.nodeData.length > 0) {
|
||||||
self.fillColor(data.nodeData)
|
self.fillColor(data.nodeData);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err.message, err.warnings);
|
console.error(err.message, err.warnings);
|
||||||
|
@ -218,192 +294,221 @@ export default {
|
||||||
// }).catch(res => {
|
// }).catch(res => {
|
||||||
// this.$message.error("数据异常,请联系管理员...");
|
// this.$message.error("数据异常,请联系管理员...");
|
||||||
// })
|
// })
|
||||||
const that = this
|
const that = this;
|
||||||
const params = {procInsId: procInsId}
|
const params = { procInsId: procInsId };
|
||||||
findCommentByProcInsId(params).then(res => {
|
findCommentByProcInsId(params)
|
||||||
that.flowRecordList = res.data;
|
.then((res) => {
|
||||||
}).catch(res => {
|
that.flowRecordList = res.data;
|
||||||
this.$message.error("数据异常,请联系管理员...");
|
})
|
||||||
})
|
.catch((res) => {
|
||||||
|
this.$message.error("数据异常,请联系管理员...");
|
||||||
|
});
|
||||||
},
|
},
|
||||||
/** 流程表单数据 */
|
/** 流程表单数据 */
|
||||||
getFormDatasList(procInsId, deployId) {
|
getFormDatasList(businessKey) {
|
||||||
// const that = this
|
getProjectApply(businessKey)
|
||||||
// const params = {procInsId: procInsId, deployId: deployId}
|
.then((res) => {
|
||||||
// flowRecord(params).then(res => {
|
if (res.code == 200) {
|
||||||
// that.flowRecordList = res.data.flowList;
|
this.initData = res.data;
|
||||||
// }).catch(res => {
|
} else {
|
||||||
// this.$message.error("数据异常,请联系管理员...");
|
this.$message.error("数据异常,请联系管理员...");
|
||||||
// })
|
}
|
||||||
const that = this
|
})
|
||||||
const params = {procInsId: procInsId}
|
.catch((res) => {
|
||||||
findFormDatasByProcInsId(params).then(res => {
|
this.$message.error("数据异常,请联系管理员...");
|
||||||
this.initData = res.data;
|
});
|
||||||
this.initData.files = res.data.files.split(',');
|
|
||||||
}).catch(res => {
|
|
||||||
this.$message.error("数据异常,请联系管理员...");
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 设置高亮颜色的
|
// 设置高亮颜色的
|
||||||
fillColor(nodeData) {
|
fillColor(nodeData) {
|
||||||
const canvas = this.bpmnViewer.get('canvas')
|
const canvas = this.bpmnViewer.get("canvas");
|
||||||
this.bpmnViewer.getDefinitions().rootElements[0].flowElements.forEach(n => {
|
this.bpmnViewer.getDefinitions().rootElements[0].flowElements.forEach((n) => {
|
||||||
const completeTask = nodeData.find(m => m.key === n.id)
|
const completeTask = nodeData.find((m) => m.key === n.id);
|
||||||
const todoTask = nodeData.find(m => !m.completed)
|
const todoTask = nodeData.find((m) => !m.completed);
|
||||||
const endTask = nodeData[nodeData.length - 1]
|
const endTask = nodeData[nodeData.length - 1];
|
||||||
if (n.$type === 'bpmn:UserTask') {
|
if (n.$type === "bpmn:UserTask") {
|
||||||
if (completeTask) {
|
if (completeTask) {
|
||||||
canvas.addMarker(n.id, completeTask.completed ? 'highlight' : 'highlight-todo')
|
canvas.addMarker(
|
||||||
n.outgoing?.forEach(nn => {
|
n.id,
|
||||||
const targetTask = nodeData.find(m => m.key === nn.targetRef.id)
|
completeTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
n.outgoing?.forEach((nn) => {
|
||||||
|
const targetTask = nodeData.find((m) => m.key === nn.targetRef.id);
|
||||||
if (targetTask) {
|
if (targetTask) {
|
||||||
if (todoTask && completeTask.key === todoTask.key && !todoTask.completed){
|
if (
|
||||||
canvas.addMarker(nn.id, todoTask.completed ? 'highlight' : 'highlight-todo')
|
todoTask &&
|
||||||
canvas.addMarker(nn.targetRef.id, todoTask.completed ? 'highlight' : 'highlight-todo')
|
completeTask.key === todoTask.key &&
|
||||||
}else {
|
!todoTask.completed
|
||||||
canvas.addMarker(nn.id, targetTask.completed ? 'highlight' : 'highlight-todo')
|
) {
|
||||||
canvas.addMarker(nn.targetRef.id, targetTask.completed ? 'highlight' : 'highlight-todo')
|
canvas.addMarker(
|
||||||
|
nn.id,
|
||||||
|
todoTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
canvas.addMarker(
|
||||||
|
nn.targetRef.id,
|
||||||
|
todoTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
canvas.addMarker(
|
||||||
|
nn.id,
|
||||||
|
targetTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
canvas.addMarker(
|
||||||
|
nn.targetRef.id,
|
||||||
|
targetTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 排他网关
|
// 排他网关
|
||||||
else if (n.$type === 'bpmn:ExclusiveGateway') {
|
else if (n.$type === "bpmn:ExclusiveGateway") {
|
||||||
if (completeTask) {
|
if (completeTask) {
|
||||||
canvas.addMarker(n.id, completeTask.completed ? 'highlight' : 'highlight-todo')
|
canvas.addMarker(
|
||||||
n.outgoing?.forEach(nn => {
|
n.id,
|
||||||
const targetTask = nodeData.find(m => m.key === nn.targetRef.id)
|
completeTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
n.outgoing?.forEach((nn) => {
|
||||||
|
const targetTask = nodeData.find((m) => m.key === nn.targetRef.id);
|
||||||
if (targetTask) {
|
if (targetTask) {
|
||||||
|
canvas.addMarker(
|
||||||
canvas.addMarker(nn.id, targetTask.completed ? 'highlight' : 'highlight-todo')
|
nn.id,
|
||||||
canvas.addMarker(nn.targetRef.id, targetTask.completed ? 'highlight' : 'highlight-todo')
|
targetTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
canvas.addMarker(
|
||||||
|
nn.targetRef.id,
|
||||||
|
targetTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// 并行网关
|
// 并行网关
|
||||||
else if (n.$type === 'bpmn:ParallelGateway') {
|
else if (n.$type === "bpmn:ParallelGateway") {
|
||||||
if (completeTask) {
|
if (completeTask) {
|
||||||
canvas.addMarker(n.id, completeTask.completed ? 'highlight' : 'highlight-todo')
|
canvas.addMarker(
|
||||||
n.outgoing?.forEach(nn => {
|
n.id,
|
||||||
const targetTask = nodeData.find(m => m.key === nn.targetRef.id)
|
completeTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
n.outgoing?.forEach((nn) => {
|
||||||
|
const targetTask = nodeData.find((m) => m.key === nn.targetRef.id);
|
||||||
if (targetTask) {
|
if (targetTask) {
|
||||||
canvas.addMarker(nn.id, targetTask.completed ? 'highlight' : 'highlight-todo')
|
canvas.addMarker(
|
||||||
canvas.addMarker(nn.targetRef.id, targetTask.completed ? 'highlight' : 'highlight-todo')
|
nn.id,
|
||||||
|
targetTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
|
canvas.addMarker(
|
||||||
|
nn.targetRef.id,
|
||||||
|
targetTask.completed ? "highlight" : "highlight-todo"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
} else if (n.$type === "bpmn:StartEvent") {
|
||||||
else if (n.$type === 'bpmn:StartEvent') {
|
n.outgoing.forEach((nn) => {
|
||||||
n.outgoing.forEach(nn => {
|
const completeTask = nodeData.find((m) => m.key === nn.targetRef.id);
|
||||||
const completeTask = nodeData.find(m => m.key === nn.targetRef.id)
|
|
||||||
if (completeTask) {
|
if (completeTask) {
|
||||||
canvas.addMarker(nn.id, 'highlight')
|
canvas.addMarker(nn.id, "highlight");
|
||||||
canvas.addMarker(n.id, 'highlight')
|
canvas.addMarker(n.id, "highlight");
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
} else if (n.$type === "bpmn:EndEvent") {
|
||||||
else if (n.$type === 'bpmn:EndEvent') {
|
|
||||||
if (endTask.key === n.id && endTask.completed) {
|
if (endTask.key === n.id && endTask.completed) {
|
||||||
canvas.addMarker(n.id, 'highlight')
|
canvas.addMarker(n.id, "highlight");
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
getDurationDate(val){
|
getDurationDateStr(val) {
|
||||||
// 计算出相差天数
|
// 计算出相差天数
|
||||||
let days = Math.floor(val / (24 * 3600 * 1000))
|
let days = Math.floor(val / (24 * 3600 * 1000));
|
||||||
// 计算出小时数
|
// 计算出小时数
|
||||||
let leave1 = val % (24 * 3600 * 1000) // 计算天数后剩余的毫秒数
|
let leave1 = val % (24 * 3600 * 1000); // 计算天数后剩余的毫秒数
|
||||||
let hours = Math.floor(leave1 / (3600 * 1000))
|
let hours = Math.floor(leave1 / (3600 * 1000));
|
||||||
// 计算相差分钟数
|
// 计算相差分钟数
|
||||||
let leave2 = leave1 % (3600 * 1000) // 计算小时数后剩余的毫秒数
|
let leave2 = leave1 % (3600 * 1000); // 计算小时数后剩余的毫秒数
|
||||||
let minutes = Math.floor(leave2 / (60 * 1000))
|
let minutes = Math.floor(leave2 / (60 * 1000));
|
||||||
// 计算相差秒数
|
// 计算相差秒数
|
||||||
let leave3 = leave2 % (60 * 1000) // 计算分钟数后剩余的毫秒数
|
let leave3 = leave2 % (60 * 1000); // 计算分钟数后剩余的毫秒数
|
||||||
let seconds = Math.round(leave3 / 1000)
|
let seconds = Math.round(leave3 / 1000);
|
||||||
if(days>0){
|
if (days > 0) {
|
||||||
if(days<10) days = "0"+days;
|
if (days < 10) days = "0" + days;
|
||||||
if(hours<10) hours = "0"+hours;
|
if (hours < 10) hours = "0" + hours;
|
||||||
if(minutes<10) minutes = "0"+minutes;
|
if (minutes < 10) minutes = "0" + minutes;
|
||||||
if(seconds<10) seconds = "0"+seconds;
|
if (seconds < 10) seconds = "0" + seconds;
|
||||||
return days + '天' + hours + '小时' + minutes + '分钟' + seconds + '秒';
|
return days + "天" + hours + "小时" + minutes + "分钟" + seconds + "秒";
|
||||||
}
|
}
|
||||||
if(hours>0){
|
if (hours > 0) {
|
||||||
if(hours<10) hours = "0"+hours;
|
if (hours < 10) hours = "0" + hours;
|
||||||
if(minutes<10) minutes = "0"+minutes;
|
if (minutes < 10) minutes = "0" + minutes;
|
||||||
if(seconds<10) seconds = "0"+seconds;
|
if (seconds < 10) seconds = "0" + seconds;
|
||||||
return hours + '小时' + minutes + '分钟' + seconds + '秒';
|
return hours + "小时" + minutes + "分钟" + seconds + "秒";
|
||||||
}
|
}
|
||||||
if(minutes>0){
|
if (minutes > 0) {
|
||||||
if(minutes<10) minutes = "0"+minutes;
|
if (minutes < 10) minutes = "0" + minutes;
|
||||||
if(seconds<10) seconds = "0"+seconds;
|
if (seconds < 10) seconds = "0" + seconds;
|
||||||
return minutes + '分钟' + seconds + '秒';
|
return minutes + "分钟" + seconds + "秒";
|
||||||
}
|
}
|
||||||
if(seconds>0){
|
if (seconds > 0) {
|
||||||
if(seconds<10) seconds = "0"+seconds;
|
if (seconds < 10) seconds = "0" + seconds;
|
||||||
return seconds + '秒';
|
return seconds + "秒";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handledownload(url){
|
handledownload(url) {
|
||||||
this.$download.resource(url);
|
this.$download.resource(url);
|
||||||
},
|
},
|
||||||
getDeleteReason(val){
|
getDeleteReason(val) {
|
||||||
val = val.replace("Change activity to ","");
|
val = val.replace("Change activity to ", "");
|
||||||
let flowRecordList = this.flowRecordList;
|
let flowRecordList = this.flowRecordList;
|
||||||
for(let i=0;i<flowRecordList.length;i++){
|
for (let i = 0; i < flowRecordList.length; i++) {
|
||||||
if(flowRecordList[i].taskDefKey==val){
|
if (flowRecordList[i].taskDefKey == val) {
|
||||||
return "驳回至"+flowRecordList[i].taskName;
|
return "驳回至" + flowRecordList[i].taskName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.app-detailDrawer{
|
.app-detailDrawer {
|
||||||
.drawer {
|
.drawer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
.drawerLeft {
|
.drawerLeft {
|
||||||
width: 60%;
|
width: 50%;
|
||||||
min-width: 280px;
|
min-width: 280px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
float: left;
|
float: left;
|
||||||
border-right: 1px solid #dcdfe6;
|
border-right: 1px solid #dcdfe6;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
.bjs-powered-by {
|
.bjs-powered-by {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
}
|
||||||
}
|
.maskLayer {
|
||||||
.maskLayer {
|
width: 100%;
|
||||||
width: 100%;
|
height: 90px;
|
||||||
height: 90px;
|
position: absolute;
|
||||||
position: absolute;
|
z-index: 9999;
|
||||||
z-index: 9999;
|
top: 77px;
|
||||||
top: 77px;
|
}
|
||||||
}
|
}
|
||||||
}
|
.drawerRight {
|
||||||
.drawerRight {
|
width: 50%;
|
||||||
width: 40%;
|
min-width: 400px;
|
||||||
min-width: 400px;
|
height: 100%;
|
||||||
height: 100%;
|
float: left;
|
||||||
float: left;
|
padding-left: 20px;
|
||||||
padding-left: 20px;
|
}
|
||||||
}
|
}
|
||||||
}
|
.containers {
|
||||||
.containers {
|
width: 100%;
|
||||||
width: 100%;
|
height: 150px;
|
||||||
height: 150px;
|
|
||||||
.canvas {
|
.canvas {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
@ -417,12 +522,12 @@ export default {
|
||||||
.load {
|
.load {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.el-form-item__label{
|
.el-form-item__label {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.djs-palette{
|
.djs-palette {
|
||||||
left: 0px!important;
|
left: 0px !important;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
@ -466,4 +571,8 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.assetsName {
|
||||||
|
font-weight: 800;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
@close="closeCallBack"
|
@close="closeCallBack"
|
||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div>工程管理 【{{ title }}】</div>
|
<div>临时工程申请 【{{ title }}】</div>
|
||||||
</template>
|
</template>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick" type="card">
|
||||||
<el-tab-pane name="all"
|
<el-tab-pane name="all"
|
||||||
><div slot="label">全部申请({{ tabs.all }})</div></el-tab-pane
|
><div slot="label">全部申请({{ tabs.all }})</div></el-tab-pane
|
||||||
>
|
>
|
||||||
|
@ -111,37 +111,73 @@
|
||||||
border
|
border
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="流程编号"
|
label="项目单位"
|
||||||
align="center"
|
align="center"
|
||||||
prop="procInsId"
|
prop="businessKeyParName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="项目名称"
|
||||||
|
align="center"
|
||||||
|
prop="businessKeyName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="流程名称"
|
label="流程名称"
|
||||||
align="center"
|
align="center"
|
||||||
prop="procDefName"
|
prop="procDefName"
|
||||||
|
width="120"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="流程类别" align="center" prop="category" width="100px" />
|
<el-table-column label="流程编号" align="center" width="80">
|
||||||
<el-table-column label="流程版本" align="center" width="80px">
|
<template slot-scope="scope">
|
||||||
|
<label>{{ scope.row.taskId }}</label>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="流程类别" align="center" prop="category">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag
|
||||||
|
:options="dict.type.sys_process_category"
|
||||||
|
:value="scope.row.category"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="流程版本" align="center" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag size="medium">v{{ scope.row.procDefVersion }}</el-tag>
|
<el-tag size="medium">v{{ scope.row.procDefVersion }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="提交时间" align="center" prop="createTime" width="180" />
|
<el-table-column label="提交时间" align="center" prop="createTime" width="160" />
|
||||||
<el-table-column label="流程状态" align="center" width="100">
|
<el-table-column label="流程状态" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.finishTime == null" size="mini">进行中</el-tag>
|
<el-tag v-if="scope.row.finishTime == null" size="mini">进行中</el-tag>
|
||||||
<el-tag type="success" v-if="scope.row.finishTime != null" size="mini"
|
<el-tag
|
||||||
|
type="success"
|
||||||
|
v-if="scope.row.finishTime != null && scope.row.assigneeId != null"
|
||||||
|
size="mini"
|
||||||
>已完成</el-tag
|
>已完成</el-tag
|
||||||
>
|
>
|
||||||
|
<el-tag
|
||||||
|
type="danger"
|
||||||
|
v-if="scope.row.finishTime != null && scope.row.assigneeId == null"
|
||||||
|
size="mini"
|
||||||
|
>已终止</el-tag
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="耗时" align="center" prop="duration" width="180" />
|
<el-table-column label="当前节点" align="center" prop="taskName">
|
||||||
<el-table-column label="当前节点" align="center" prop="taskName" />
|
<template slot-scope="scope">
|
||||||
<el-table-column label="办理人" align="center">
|
<div v-if="scope.row.finishTime == null">{{ scope.row.taskName }}</div>
|
||||||
|
<div v-if="scope.row.finishTime != null">流程结束</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="处理耗时" align="center" prop="duration" width="150">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ getDurationDate(scope.row.duration) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="办理人" align="center" width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<label v-if="scope.row.assigneeName"
|
<label v-if="scope.row.assigneeName"
|
||||||
>{{ scope.row.assigneeName }}
|
>{{ scope.row.assigneeName }}
|
||||||
|
@ -149,7 +185,6 @@
|
||||||
scope.row.assigneeDeptName
|
scope.row.assigneeDeptName
|
||||||
}}</el-tag></label
|
}}</el-tag></label
|
||||||
>
|
>
|
||||||
<!-- <label v-if="scope.row.candidate">{{scope.row.candidate}}</label>-->
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -240,6 +275,12 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table v-loading="processLoading" fit :data="definitionList" border>
|
<el-table v-loading="processLoading" fit :data="definitionList" border>
|
||||||
|
<el-table-column label="项目单位" align="center" prop="deptName">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag type="info" v-if="scope.row.deptId">{{ scope.row.deptName }}</el-tag>
|
||||||
|
<el-tag>默认工作流</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="流程名称" align="center" prop="name" />
|
<el-table-column label="流程名称" align="center" prop="name" />
|
||||||
<el-table-column label="流程版本" align="center">
|
<el-table-column label="流程版本" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -272,6 +313,9 @@
|
||||||
@pagination="listDefinition"
|
@pagination="listDefinition"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<detailDrawer ref="detailDrawer"></detailDrawer>
|
||||||
|
<editTaskDrawer ref="editTaskDrawer" :closeCallBack="getList"></editTaskDrawer>
|
||||||
|
<initTaskDrawer ref="initTaskDrawer" :closeCallBack="getList"></initTaskDrawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -294,7 +338,7 @@ import detailDrawer from "./detail/detailDrawer.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "Deploy",
|
name: "Deploy",
|
||||||
dicts: ["sys_process_category"],
|
dicts: ["sys_process_category"],
|
||||||
components: {},
|
components: { initTaskDrawer, editTaskDrawer, detailDrawer },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
|
@ -384,8 +428,8 @@ export default {
|
||||||
}
|
}
|
||||||
this.queryGroupCount(this.queryParams);
|
this.queryGroupCount(this.queryParams);
|
||||||
allList(this.queryParams).then((response) => {
|
allList(this.queryParams).then((response) => {
|
||||||
this.myProcessList = response.data.records;
|
this.myProcessList = response.rows;
|
||||||
this.total = response.data.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -461,13 +505,8 @@ export default {
|
||||||
},
|
},
|
||||||
/** 发起流程申请 */
|
/** 发起流程申请 */
|
||||||
handleStartProcess(row) {
|
handleStartProcess(row) {
|
||||||
this.$router.push({
|
this.open = false;
|
||||||
path: "/flowable/task/myProcess/send/index",
|
this.$refs.initTaskDrawer.show(row);
|
||||||
query: {
|
|
||||||
deployId: row.deploymentId,
|
|
||||||
procDefId: row.id,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
/** 取消流程申请 */
|
/** 取消流程申请 */
|
||||||
handleStop(row) {
|
handleStop(row) {
|
||||||
|
@ -481,14 +520,15 @@ export default {
|
||||||
},
|
},
|
||||||
/** 流程流转记录 */
|
/** 流程流转记录 */
|
||||||
handleFlowRecord(row) {
|
handleFlowRecord(row) {
|
||||||
this.$router.push({
|
/** this.$router.push({
|
||||||
path: "/flowable/task/myProcess/detail/index",
|
path: "/flowable/task/myProcess/detail/index",
|
||||||
query: {
|
query: {
|
||||||
procInsId: row.procInsId,
|
procInsId: row.procInsId,
|
||||||
deployId: row.deployId,
|
deployId: row.deployId,
|
||||||
taskId: row.taskId,
|
taskId: row.taskId,
|
||||||
},
|
},
|
||||||
});
|
});*/
|
||||||
|
this.$refs.detailDrawer.show(row);
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
@ -551,6 +591,12 @@ export default {
|
||||||
this.download(response.msg);
|
this.download(response.msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 页签点击
|
||||||
|
handleClick() {
|
||||||
|
console.log(this.queryParams.activeName);
|
||||||
|
this.queryParams.activeName = this.activeName;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
:visible.sync="onOpen"
|
:visible.sync="onOpen"
|
||||||
ref="drawer"
|
ref="drawer"
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
size="60%"
|
size="50%"
|
||||||
@close="closeCallBack"
|
@close="closeCallBack"
|
||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div>工程管理 【{{ title }}】</div>
|
<div>临时工程申请 【{{ title }}】</div>
|
||||||
</template>
|
</template>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
|
@ -23,50 +23,50 @@
|
||||||
<div class="canvas" ref="flowCanvas"></div>
|
<div class="canvas" ref="flowCanvas"></div>
|
||||||
<div class="maskLayer" />
|
<div class="maskLayer" />
|
||||||
</div>
|
</div>
|
||||||
<el-form-item label="所属项目" prop="businessKey">
|
<el-form-item label="项目单位">
|
||||||
|
{{ form.parProjName }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="项目名称" prop="projId">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.businessKey"
|
v-model="form.projId"
|
||||||
placeholder="请选择所属项目"
|
placeholder="请选择项目名称"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
filterable
|
filterable
|
||||||
:disabled="disPro"
|
|
||||||
@change="projectChage"
|
@change="projectChage"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) in projectOptions"
|
v-for="(item, index) in projectOptions"
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="item.projectName"
|
:label="item.projName"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="发起单位">
|
<el-form-item label="申请类型">
|
||||||
{{ deptName }}
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="发起人">
|
|
||||||
{{ nickName }}
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="审批事项">
|
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="审批内容" prop="files">
|
<el-form-item label="申请人">
|
||||||
|
<label
|
||||||
|
>{{ nickName }} <el-tag type="info" size="mini">{{ deptName }}</el-tag></label
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="申请原因" prop="applyReason">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
v-model="form.applyReason"
|
||||||
|
placeholder="请输入申请原因"
|
||||||
|
rows="3"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="附件说明" prop="applyFiles">
|
||||||
<FileUpload
|
<FileUpload
|
||||||
@input="fileInput"
|
|
||||||
:limit="9"
|
:limit="9"
|
||||||
:fileType="['pdf', 'png', 'jpg', 'jpeg', 'doc', 'docx', 'xls', 'xlsx']"
|
:fileType="['pdf', 'png', 'jpg', 'jpeg', 'doc', 'docx', 'xls', 'xlsx']"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="申请说明" prop="remark">
|
|
||||||
<el-input
|
|
||||||
type="textarea"
|
|
||||||
v-model="form.remark"
|
|
||||||
placeholder="请输入申请说明"
|
|
||||||
rows="5"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<el-button type="primary" @click="submitForm">提交流程</el-button>
|
<el-button type="primary" @click="submitForm">提交申请</el-button>
|
||||||
<el-button @click="doCanel">取 消</el-button>
|
<el-button @click="doCanel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -79,6 +79,7 @@ import store from "@/store";
|
||||||
import { definitionStart, flowXmlAndNode } from "@/api/flowable/definition";
|
import { definitionStart, flowXmlAndNode } from "@/api/flowable/definition";
|
||||||
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
||||||
import { getNextFlowNodeByStart } from "@/api/flowable/todo";
|
import { getNextFlowNodeByStart } from "@/api/flowable/todo";
|
||||||
|
import { findMyDeptProject } from "@/api/project/projectInfo";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
|
@ -97,10 +98,23 @@ export default {
|
||||||
title: "",
|
title: "",
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
businessKey: "",
|
id: null,
|
||||||
projectName: "",
|
deptId: null,
|
||||||
files: "",
|
projId: null,
|
||||||
remark: "",
|
projName: null,
|
||||||
|
parProjName: null,
|
||||||
|
applyType: null,
|
||||||
|
applyStatus: null,
|
||||||
|
applyReason: null,
|
||||||
|
applyFiles: null,
|
||||||
|
applyUser: null,
|
||||||
|
useTime: null,
|
||||||
|
isDel: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
remark: null
|
||||||
},
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
|
@ -115,10 +129,9 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
projectOptions: null,
|
projectOptions: [],
|
||||||
deptName: null,
|
deptName: null,
|
||||||
nickName: null,
|
nickName: null,
|
||||||
disPro: false,
|
|
||||||
bpmnViewer: null,
|
bpmnViewer: null,
|
||||||
options: {},
|
options: {},
|
||||||
taskTitle: null,
|
taskTitle: null,
|
||||||
|
@ -135,27 +148,22 @@ export default {
|
||||||
// 查询和我相关的项目信息
|
// 查询和我相关的项目信息
|
||||||
initMyProject() {
|
initMyProject() {
|
||||||
// 获取项目列表的接口
|
// 获取项目列表的接口
|
||||||
this.$api.publics.getMyProjectList({}).then((response) => {
|
findMyDeptProject().then((response) => {
|
||||||
this.projectOptions = response.rows;
|
if (response.code == 200 && response.data) {
|
||||||
if (response.rows.length == 0) {
|
this.projectOptions = response.data;
|
||||||
this.$message.error("未查询到和您关联项目,请联系子公司或管理员...");
|
this.form.projId = response.data[0].id;
|
||||||
} else if (response.rows.length == 1) {
|
this.form.projName = response.data[0].projName;
|
||||||
// 这里只有一个项目,默认选中并只读
|
|
||||||
this.form.businessKey = response.rows[0].id;
|
|
||||||
this.form.projectName = response.rows[0].projectName;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 项目选择
|
// 项目选择
|
||||||
projectChage(val) {
|
projectChage(val) {
|
||||||
let projectName = "";
|
for(let i = 0; i < this.projectOptions.length; i++) {
|
||||||
this.projectOptions.forEach((item) => {
|
if(this.projectOptions[i].id == val) {
|
||||||
if ((item.id = val)) {
|
this.form.projName = this.projectOptions[i].projName;
|
||||||
projectName = item.projectName;
|
return false;
|
||||||
return;
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
this.form.projectName = projectName;
|
|
||||||
},
|
},
|
||||||
doCanel() {
|
doCanel() {
|
||||||
this.onOpen = false;
|
this.onOpen = false;
|
||||||
|
@ -164,8 +172,9 @@ export default {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
this.initMyProject();
|
this.initMyProject();
|
||||||
this.title = options.name;
|
this.title = options.name;
|
||||||
this.deptName = store.getters.dept.deptName;
|
this.form.parProjName = store.getters.parDeptName;
|
||||||
this.nickName = store.getters.name;
|
this.nickName = store.getters.name;
|
||||||
|
this.deptName = store.getters.dept.deptName;
|
||||||
const self = this;
|
const self = this;
|
||||||
this.onOpen = true;
|
this.onOpen = true;
|
||||||
flowXmlAndNode({ deployId: options.deploymentId }).then((res) => {
|
flowXmlAndNode({ deployId: options.deploymentId }).then((res) => {
|
||||||
|
@ -185,17 +194,6 @@ export default {
|
||||||
console.error(err.message, err.warnings);
|
console.error(err.message, err.warnings);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fileInput(files) {
|
|
||||||
let fileUrls = "";
|
|
||||||
if (files.length > 0) {
|
|
||||||
fileUrls = "";
|
|
||||||
files.forEach((item) => {
|
|
||||||
fileUrls += "," + item.url;
|
|
||||||
});
|
|
||||||
fileUrls = fileUrls.substring(1);
|
|
||||||
}
|
|
||||||
this.form.files = fileUrls;
|
|
||||||
},
|
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { getDept, delDept, addDept, updateDept } from "@/api/system/dept";
|
import { getDept, delDept, addDept, updateDept } from "@/api/system/dept";
|
||||||
import { companyList } from '@/api/project/company'
|
import { companyList } from '@/api/project/company'
|
||||||
import {projectList} from '@/api/project/project'
|
import { projectList } from '@/api/project/project'
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue