From 17d7043f10d55429db919238fe639bff1b51ec0e Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期五, 07 二月 2025 15:59:37 +0800 Subject: [PATCH] Merge branch '2.0.1' of http://139.186.142.91:10010/r/productDev/funingyunwei into 2.0.1 --- admin/src/views/workorder/components/problemReportingDetails.vue | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/admin/src/views/workorder/components/problemReportingDetails.vue b/admin/src/views/workorder/components/problemReportingDetails.vue index 5093d72..8d52710 100644 --- a/admin/src/views/workorder/components/problemReportingDetails.vue +++ b/admin/src/views/workorder/components/problemReportingDetails.vue @@ -10,9 +10,9 @@ <div class="title">闂璇︽儏</div> <el-tag style="margin-left: 10px;" v-if="form.dealStatus === 0">寰呭鐞�</el-tag> <el-tag style="margin-left: 10px;" v-if="form.dealStatus === 1">宸茶浆宸ュ崟</el-tag> - <el-tag style="margin-left: 10px;" v-if="form.dealStatus === 2">宸插叧闂�</el-tag> + <el-tag style="margin-left: 10px;" type="info" v-if="form.dealStatus === 2">宸插叧闂�</el-tag> </div> - <el-button @click="handleDetail" v-if="form.dealStatus === 1">鏌ョ湅宸ュ崟</el-button> + <el-button @click="handleDetail" v-if="form.dealStatus === 1">鏌ョ湅宸ュ崟{{form.workorderId}}</el-button> </div> <div class="wt_content"> <div class="wt_content_row" style="width: 25%;"> @@ -35,7 +35,7 @@ <div class="wt_content_row_list" v-if="form.fileList && form.fileList.length >= 0"> <div class="wt_content_row_list_img" v-for="(item, index) in form.fileList" :key="index"> <el-image - style="width: 100px; height: 100px" + style="width: 80px; height: 80px" :src="item.fileurlFull" :preview-src-list="form.fileList.map(item => item.fileurlFull)"> </el-image> @@ -45,7 +45,7 @@ </div> <div class="wt_head"> <div class="wt_head_title"> - <div class="title">闂璇︽儏</div> + <div class="title">澶勭悊缁撴灉</div> </div> </div> <div class="wt_content"> @@ -64,7 +64,7 @@ </div> </div> <!-- 宸ュ崟璇︽儏 --> - <Detail v-if="showDetail" ref="DetailRef" @close="showDetail = false" /> + <Detail v-if="showDetail" ref="DetailRef1" @close="showDetail = false" /> </GlobalWindow> </template> @@ -72,6 +72,7 @@ import BaseOpera from '@/components/base/BaseOpera' import GlobalWindow from '@/components/common/GlobalWindow' import Detail from './detail' + import { getById } from '@/api/ywProblem' export default { name: "problemReportingDetails", extends: BaseOpera, @@ -86,15 +87,18 @@ open (title, target) { this.title = title this.form = target - console.log(this.form) - this.visible = true + getById(target.id) + .then(res => { + this.form = res + this.visible = true + }) }, handleDetail() { this.showDetail = true this.$nextTick(() => { - this.$refs.DetailRef.visible = true - this.$refs.DetailRef.id = this.form.workorderId - this.$refs.DetailRef.getDetail() + this.$refs.DetailRef1.visible = true + this.$refs.DetailRef1.id = this.form.workorderId + this.$refs.DetailRef1.getDetail() }) }, returnText(status) { -- Gitblit v1.9.3