From ed2f130164f4145560b4176da6629890c0806ded Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 10 八月 2023 18:11:27 +0800 Subject: [PATCH] 服务管理模块联调 --- src/views/service/serviceFollowup/DetailServiceFollowup.vue | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/service/serviceFollowup/DetailServiceFollowup.vue b/src/views/service/serviceFollowup/DetailServiceFollowup.vue index 44d36a1..d0a986f 100644 --- a/src/views/service/serviceFollowup/DetailServiceFollowup.vue +++ b/src/views/service/serviceFollowup/DetailServiceFollowup.vue @@ -37,11 +37,11 @@ <li v-for="(item, i) in basicInfoList" :key="i"> <div class="left"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> - <div class="right"> + <div v-if="item.rightStr" class="right"> <div class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -119,35 +119,35 @@ } }, created() { - this.setData() + this.setData(this.detailConfig.infomation) }, mounted() {}, methods: { - setData() { + setData(item) { this.basicInfoList = [ { leftStr: "瀹㈡埛鍚嶇О", - leftValue: "", + leftValue: item.client_name, rightStr: "鍥炶鍗曠紪鍙�", - rightValue: "" + rightValue: item.number }, { leftStr: "鑱旂郴浜哄鍚�", - leftValue: "", + leftValue: item.contact_name, rightStr: "瀹㈡埛鏈嶅姟鍗�", - rightValue: "" + rightValue: item.ServiceOrder.serviceNumber }, { leftStr: "鍥炶浜�", - leftValue: "", + leftValue: item.isVisit, rightStr: "椤圭洰璁″垝", rightValue: "" }, { leftStr: "婊℃剰搴�", - leftValue: "", + leftValue: item.satisfaction, rightStr: "鍙婃椂鐜�", - rightValue: "" + rightValue: item.timelyRate }, { leftStr: "瑙e喅鐜�", -- Gitblit v1.8.0