From adc47e860f2b56027db1022a604e9be9f4fb6e3b Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 15 一月 2025 11:13:41 +0800 Subject: [PATCH] 办理、查看详情页面优化 --- src/views/flowable/task/myProcess/detail/index.vue | 43 ++++++++++++++++++++++++++++++++++++------- 1 files changed, 36 insertions(+), 7 deletions(-) diff --git a/src/views/flowable/task/myProcess/detail/index.vue b/src/views/flowable/task/myProcess/detail/index.vue index 3bde1b8..fd34a07 100644 --- a/src/views/flowable/task/myProcess/detail/index.vue +++ b/src/views/flowable/task/myProcess/detail/index.vue @@ -15,34 +15,35 @@ <div v-for="(formDataObj, index) in formDataList" :key="index" class="form-warp" style="position: relative"> <div v-if="formDataObj.current"> <!-- 褰撳墠鑺傜偣鍙崗鍚屻�佽浆鍔炵瓑鎿嶄綔 --> - <div style="position: absolute; top: 4px; right: 4px; display: flex;justify-content: center; align-items: center;"> + <div class="op-list"> <el-button size="small" type="primary" @click="submitForm">纭骞舵彁浜�</el-button> <el-button size="small" type="primary" disabled @click="submitForm">鍗忓悓鍔炵悊(鍔熻兘寮�鍙戜腑)</el-button> <el-button size="small" type="primary" @click="openDelegation(formDataList[0].beforeNodeName)">杞姙</el-button> </div> - <div style="margin-bottom: 15px;color: #E6A23C">褰撳墠闃舵锛�<span style="color: #409EFF">{{formDataObj.beforeNodeName}}</span></div> + <div class="current">褰撳墠闃舵锛�<span>{{formDataObj.beforeNodeName}}</span></div> </div> <div v-else-if="formDataList.length > 1"> <!-- 鍓嶇疆鑺傜偣鍙┏鍥� --> - <div style="position: absolute; top: 4px; right: 4px"> + <div class="reject-but"> <el-button type="danger" size="small" @click="openRejectTask(formDataObj.beforeNodeDefId)">椹� 鍥�</el-button> </div> - <div style="margin-bottom: 15px;color: #E6A23C">鍓嶇疆闃舵锛�<span style="color: #F56C6C">{{formDataObj.beforeNodeName}}</span></div> + <div class="before">鍓嶇疆闃舵锛�<span>{{formDataObj.beforeNodeName}}</span></div> </div> - <div v-if="formDataObj.formJson !== null && formDataObj.formJson !== ''"> + <div v-if="formDataObj != null && formDataObj.formJson != null && formDataObj.formJson != ''"> <v-form-render :form-data="formDataObj.formJson" :ref="'form' + index"/> </div> <div v-else> <el-alert - title="鑺傜偣鏈粦瀹氳〃鍗�" + title="鏈粦瀹氳〃鍗�" type="warning" :closable="false" > </el-alert> </div> <div v-if="formDataList.length <= 1"> + <div class="before">鍓嶇疆闃舵锛�<span>涓嶅瓨鍦ㄥ墠缃樁娈�</span></div> <el-alert - title="涓嶅瓨鍦ㄥ墠缃妭鐐�" + title="涓嶅瓨鍦ㄥ墠缃樁娈�" type="warning" :closable="false" > @@ -283,4 +284,32 @@ margin-bottom: 20px; box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em; } +.before { + span { + color: #F56C6C + } + margin-bottom: 15px; + margin-top: 15px; + color: #E6A23C +} +.reject-but { + position: absolute; + top: 4px; + right: 4px +} +.current { + span { + color: #409EFF + } + margin-bottom: 15px; + color: #E6A23C +} +.op-list { + position: absolute; + top: 4px; + right: 4px; + display: flex; + justify-content: center; + align-items: center; +} </style> -- Gitblit v1.8.0