dengjie : 待我处理的审批详情的必填标志*已删除,审批流程条件右边的'优先级'已删除 #15

Merged
odjbin merged 1 commits from DJ into master 2023-02-16 10:29:36 +00:00
3 changed files with 15 additions and 9 deletions
Showing only changes of commit 092faccee6 - Show all commits

View File

@ -78,7 +78,6 @@ export default {
if (item.name === 'SpanLayout'){ if (item.name === 'SpanLayout'){
this.loadFormConfig(item.props.items) this.loadFormConfig(item.props.items)
}else { }else {
console.log(item,!item.perm)
if (!item.perm){ if (!item.perm){
this.$set(item, 'perm', 'E') this.$set(item, 'perm', 'E')
} }

View File

@ -7,7 +7,7 @@
<div class="node-body-main" @click="$emit('selected')"> <div class="node-body-main" @click="$emit('selected')">
<div class="node-body-main-header"> <div class="node-body-main-header">
<ellipsis class="title" hover-tip :content="config.name ? config.name : ('条件' + level)"/> <ellipsis class="title" hover-tip :content="config.name ? config.name : ('条件' + level)"/>
<span class="level">优先级{{ level }}</span> <!-- <span class="level">优先级{{ level }}</span>-->
<span class="option" v-if="designStart()"> <span class="option" v-if="designStart()">
<el-tooltip effect="dark" content="复制条件" placement="top"> <el-tooltip effect="dark" content="复制条件" placement="top">
<i class="el-icon-copy-document" @click.stop="$emit('copy')"></i> <i class="el-icon-copy-document" @click.stop="$emit('copy')"></i>

View File

@ -60,9 +60,8 @@
<div style="height: 15px;background:#f5f5f5;"></div> <div style="height: 15px;background:#f5f5f5;"></div>
<form-render v-if="!loading" ref="taskViewForm" :form-items="taskData.formItems" <form-render v-if="!loading" ref="taskViewForm" :form-items="taskData.formItems"
v-model="taskData.formData"/> v-model="taskData.formData"/>
<!-- <process-diagram-viewer/>-->
<div style="height: 15px;background:#f5f5f5;"></div> <div style="height: 15px;background:#f5f5f5;"></div>
<footer class="footer"> <el-footer class="footer">
<div class="footer_comment" @click="showCommentBox"> <div class="footer_comment" @click="showCommentBox">
<i class="el-icon-chat-line-round" style="font-size: 18px;"></i> <i class="el-icon-chat-line-round" style="font-size: 18px;"></i>
<span style="font-size: 12px;">评论</span> <span style="font-size: 12px;">评论</span>
@ -85,7 +84,7 @@
</el-button> </el-button>
<el-button type="primary" size="mini" round @click="submitTask()">同意</el-button> <el-button type="primary" size="mini" round @click="submitTask()">同意</el-button>
</div> </div>
</footer> </el-footer>
</div> </div>
</el-drawer> </el-drawer>
<comment ref="comment" <comment ref="comment"
@ -131,6 +130,7 @@ export default {
this.approveOpen = true; this.approveOpen = true;
this.loadProcessTask(row.taskId); this.loadProcessTask(row.taskId);
this.selectTask = row; this.selectTask = row;
}, },
getList() { getList() {
getTaskList().then(res => { getTaskList().then(res => {
@ -153,6 +153,13 @@ export default {
let that = this; let that = this;
this.init(); this.init();
getTaskInfo(taskId).then(res => { getTaskInfo(taskId).then(res => {
let data=res.data
data.formItems.map(item=>{
if(item.props.required){
item.props.required=!item.props.required
}
return item
})
that.taskData = res.data; that.taskData = res.data;
that.$store.state.design = that.taskData; that.$store.state.design = that.taskData;
that.$store.state.userTaskOption = that.taskData.userTaskOption; that.$store.state.userTaskOption = that.taskData.userTaskOption;
@ -296,15 +303,15 @@ export default {
} }
.footer { .footer {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
height: 30px; height: 30px;
padding: 15px 0; padding: 15px 0;
position: absolute;
width: 100%;
bottom: 0;
left: 0;
z-index: 99; z-index: 99;
background: #fff; background: #fff;
border-top: 1px solid #dcdfe6; border-top: 1px solid #dcdfe6;