From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- admin/src/views/task/visReportDetail.vue | 63 ++++++++++++++++++++++++++----- 1 files changed, 53 insertions(+), 10 deletions(-) diff --git a/admin/src/views/task/visReportDetail.vue b/admin/src/views/task/visReportDetail.vue index 2ef8471..60f8ec5 100644 --- a/admin/src/views/task/visReportDetail.vue +++ b/admin/src/views/task/visReportDetail.vue @@ -1,13 +1,21 @@ <template> - <GlobalWindow :title="title" :visible.sync="isShowModal" @confirm="confirm"> + <GlobalWindow :title="title" :visible.sync="isShowModal" @close="close" @confirm="confirm"> <div class="modal_wrap"> <div class="modal_content"> <div class="header"> + <img v-if="info.businessStatus == '3'" class="head_bg" src="@/assets/task/bg_shenhe_fail@2x.png" + alt=""> + <img v-else-if="info.businessStatus == '2'" class="head_bg" + src="@/assets/task/bg_shenhe_pass@2x.png" alt=""> + <img v-else-if="info.businessStatus == '4'" class="head_bg" src="@/assets/task/bg_shenhe_chexiao@2x.png" alt=""> + <img v-else class="head_bg" src="@/assets/task/bg_shenhe@2x.png" alt=""> <div class="left"> <div class="h1">{{ cateList[type] }}</div> <div class="time">鎻愪氦鏃堕棿锛歿{ info.createDate }}</div> </div> - <div class="right">{{ statusMap[info.status] }}</div> + <div class="right" + :class="{ scs: info.businessStatus == '2', msg: info.businessStatus == '3' }">{{ + statusMap[info.businessStatus] }}</div> </div> <div class="info"> <div class="title">璁垮鎶ュ淇℃伅</div> @@ -73,7 +81,7 @@ <div class="company"> {{ item.memberName }} <div style="display: inline" v-if="item.statusInfo != null && item.statusInfo != ''"> - 锛�<span class="status-green">{{ + 锛�<span :class="{ padding: item.statusInfo == '澶勭悊涓�' || item.status == '1' }">{{ item.statusInfo || "" }}</span>锛� </div> @@ -112,7 +120,7 @@ info.approveDateVO.canBeApproved != null && info.approveDateVO.canBeApproved == 1 ">鎷掔粷</el-button> - <el-button @click="isShowModal = false">杩斿洖</el-button> + <el-button @click="close">杩斿洖</el-button> </template> <!-- 鍚屾剰/鎷掔粷 --> <el-dialog append-to-body :title="apprTitle" :visible.sync="isShowAppr" width="480px"> @@ -184,10 +192,10 @@ checkInfo: [{ required: true, message: '璇疯緭鍏�', trigger: 'blur' }] }, statusMap: { - 0: '寰呭鎵�', - 1: '瀹℃壒涓�', - 2: '瀹℃壒閫氳繃', - 3: '瀹℃壒鏈�氳繃', + 0: '寰呭鏍�', + 1: '澶勭悊涓�', + 2: '宸查�氳繃', + 3: '宸叉嫆缁�', 4: '宸插彇娑�', 5: '浠栦汉鎴栫', 6: '浠栦汉鎷掔粷' @@ -220,6 +228,8 @@ this.subLoading = false this.$tip.apiSuccess('澶勭悊鎴愬姛') this.getDetail() + this.$emit('success') + this.$emit('close') this.isShowAppr = false }) .finally(() => { @@ -227,6 +237,10 @@ }) }) }) + }, + close(){ + this.isShowModal = false + this.$emit('close') }, getDetail() { const { id } = this @@ -253,6 +267,8 @@ </script> <style lang="scss" scoped> +@import "@/assets/style/variables.scss"; + .upload_box { width: 84px; height: 84px; @@ -335,7 +351,16 @@ padding: 20px 30px; margin: 0 -30px; border-radius: 8px 8px 0 0; - background: linear-gradient(to right, #f2f6fe, #cadffa); + position: relative; + + .head_bg { + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + z-index: 9; + } .h1 { font-weight: 600; @@ -358,6 +383,16 @@ background: #207ff7; box-shadow: 4px 4px 0px 0px rgba(32, 127, 247, 0.16); border-radius: 16px 0px 16px 0px; + position: relative; + z-index: 99; + } + + .scs { + background-color: #00BA67; + } + + .msg { + background-color: #ED4545; } } @@ -405,7 +440,7 @@ position: absolute; border-left: 2px dashed #cccccc; left: 31px; - height: calc(100% - 36px); + height: calc(100% - 30px); top: 49px; } @@ -487,6 +522,14 @@ align-content: center; margin-bottom: 6px; + .status { + color: #888888; + } + + .padding { + color: $primaryColor; + } + .name { font-weight: 600; font-size: 16px; -- Gitblit v1.9.3